pub struct QuantumCloudService { /* private fields */ }Expand description
Quantum cloud service manager
Implementations§
Source§impl QuantumCloudService
impl QuantumCloudService
Sourcepub fn new(config: CloudConfig) -> Result<Self>
pub fn new(config: CloudConfig) -> Result<Self>
Create new quantum cloud service
Sourcepub fn submit_job(
&mut self,
circuit: InterfaceCircuit,
shots: usize,
backend_name: Option<String>,
) -> Result<String>
pub fn submit_job( &mut self, circuit: InterfaceCircuit, shots: usize, backend_name: Option<String>, ) -> Result<String>
Submit quantum job to cloud service
Sourcepub fn get_job_status(&self, job_id: &str) -> Result<JobStatus>
pub fn get_job_status(&self, job_id: &str) -> Result<JobStatus>
Get job status
Sourcepub fn get_job_result(&mut self, job_id: &str) -> Result<QuantumJobResult>
pub fn get_job_result(&mut self, job_id: &str) -> Result<QuantumJobResult>
Get job result
Sourcepub fn list_backends(
&self,
provider: Option<CloudProvider>,
) -> Vec<&QuantumBackend>
pub fn list_backends( &self, provider: Option<CloudProvider>, ) -> Vec<&QuantumBackend>
List available backends
Sourcepub fn execute_hybrid_algorithm(
&mut self,
initial_params: Array1<f64>,
cost_function: Box<dyn Fn(&Array1<f64>) -> Result<f64>>,
hybrid_config: HybridExecutionManager,
) -> Result<(Array1<f64>, f64)>
pub fn execute_hybrid_algorithm( &mut self, initial_params: Array1<f64>, cost_function: Box<dyn Fn(&Array1<f64>) -> Result<f64>>, hybrid_config: HybridExecutionManager, ) -> Result<(Array1<f64>, f64)>
Execute hybrid quantum-classical algorithm
Sourcepub const fn get_stats(&self) -> &CloudStats
pub const fn get_stats(&self) -> &CloudStats
Get service statistics
Sourcepub fn cancel_job(&mut self, job_id: &str) -> Result<()>
pub fn cancel_job(&mut self, job_id: &str) -> Result<()>
Cancel job
Sourcepub fn get_queue_info(
&self,
provider: CloudProvider,
) -> Result<Vec<(String, usize)>>
pub fn get_queue_info( &self, provider: CloudProvider, ) -> Result<Vec<(String, usize)>>
Get queue information
Auto Trait Implementations§
impl Freeze for QuantumCloudService
impl RefUnwindSafe for QuantumCloudService
impl Send for QuantumCloudService
impl Sync for QuantumCloudService
impl Unpin for QuantumCloudService
impl UnwindSafe for QuantumCloudService
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.