pub struct DistributedExecutor {
pub backends: Vec<ExecutionBackend>,
pub load_balancer: LoadBalancer,
pub fault_tolerance: FaultToleranceConfig,
pub scheduler: ExecutionScheduler,
pub resource_manager: ResourceManager,
/* private fields */
}Expand description
A distributed quantum circuit execution engine
This manages execution of quantum circuits across multiple backends, handling load balancing, fault tolerance, and result aggregation.
Fields§
§backends: Vec<ExecutionBackend>Available execution backends
load_balancer: LoadBalancerLoad balancing strategy
fault_tolerance: FaultToleranceConfigFault tolerance configuration
scheduler: ExecutionSchedulerExecution scheduling policy
resource_manager: ResourceManagerResource management
Implementations§
Source§impl DistributedExecutor
impl DistributedExecutor
Sourcepub fn add_backend(&mut self, backend: ExecutionBackend) -> QuantRS2Result<()>
pub fn add_backend(&mut self, backend: ExecutionBackend) -> QuantRS2Result<()>
Add a backend to the distributed executor
Sourcepub fn submit_job<const N: usize>(
&mut self,
job: DistributedJob<N>,
) -> QuantRS2Result<String>
pub fn submit_job<const N: usize>( &mut self, job: DistributedJob<N>, ) -> QuantRS2Result<String>
Submit a job for distributed execution
Sourcepub fn get_job_status(&self, job_id: &str) -> QuantRS2Result<ExecutionStatus>
pub fn get_job_status(&self, job_id: &str) -> QuantRS2Result<ExecutionStatus>
Get the current execution status for a previously submitted job.
Returns QuantRS2Error::InvalidInput if no job with the given ID exists.
Sourcepub fn cancel_job(&mut self, job_id: &str) -> QuantRS2Result<()>
pub fn cancel_job(&mut self, job_id: &str) -> QuantRS2Result<()>
Cancel a queued or running job.
If the job is already completed, failed, or cancelled the call succeeds
but the status is not changed. Returns QuantRS2Error::InvalidInput
if no job with the given ID exists.
Sourcepub fn get_results(&self, job_id: &str) -> QuantRS2Result<DistributedResult>
pub fn get_results(&self, job_id: &str) -> QuantRS2Result<DistributedResult>
Retrieve the result record for a job.
Returns QuantRS2Error::InvalidInput if no job with the given ID exists.
For jobs that are still queued or running the returned status field
will reflect that; callers should check the status before consuming the
result fields.
Sourcepub fn get_health_status(&self) -> SystemHealthStatus
pub fn get_health_status(&self) -> SystemHealthStatus
Get system health status
Trait Implementations§
Source§impl Debug for DistributedExecutor
impl Debug for DistributedExecutor
Auto Trait Implementations§
impl Freeze for DistributedExecutor
impl RefUnwindSafe for DistributedExecutor
impl Send for DistributedExecutor
impl Sync for DistributedExecutor
impl Unpin for DistributedExecutor
impl UnsafeUnpin for DistributedExecutor
impl UnwindSafe for DistributedExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.