pub struct DistributedExecutor {
pub backends: Vec<ExecutionBackend>,
pub load_balancer: LoadBalancer,
pub fault_tolerance: FaultToleranceConfig,
pub scheduler: ExecutionScheduler,
pub resource_manager: ResourceManager,
}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 const fn get_job_status(
&self,
job_id: &str,
) -> QuantRS2Result<ExecutionStatus>
pub const fn get_job_status( &self, job_id: &str, ) -> QuantRS2Result<ExecutionStatus>
Get execution status for a job
Sourcepub const fn cancel_job(&mut self, job_id: &str) -> QuantRS2Result<()>
pub const fn cancel_job(&mut self, job_id: &str) -> QuantRS2Result<()>
Cancel a job
Sourcepub fn get_results(&self, job_id: &str) -> QuantRS2Result<DistributedResult>
pub fn get_results(&self, job_id: &str) -> QuantRS2Result<DistributedResult>
Get results for a completed job
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 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.