pub struct QuantumComputingBackend { /* private fields */ }Expand description
Main quantum computing backend
Implementations§
Source§impl QuantumComputingBackend
impl QuantumComputingBackend
Sourcepub fn new(backend: QuantumBackend) -> Self
pub fn new(backend: QuantumBackend) -> Self
Create a new quantum computing backend
Sourcepub fn add_circuit(&mut self, circuit: QuantumCircuit) -> Result<usize>
pub fn add_circuit(&mut self, circuit: QuantumCircuit) -> Result<usize>
Add a quantum circuit to the backend
Sourcepub fn execute_circuit(
&self,
circuit_id: usize,
shots: u32,
) -> Result<QuantumExecutionResult>
pub fn execute_circuit( &self, circuit_id: usize, shots: u32, ) -> Result<QuantumExecutionResult>
Execute a quantum circuit
Sourcepub fn create_hybrid_workflow(
&self,
classical_graph: FxGraph,
quantum_circuits: Vec<QuantumCircuit>,
strategy: HybridOptimizationStrategy,
) -> Result<HybridWorkflow>
pub fn create_hybrid_workflow( &self, classical_graph: FxGraph, quantum_circuits: Vec<QuantumCircuit>, strategy: HybridOptimizationStrategy, ) -> Result<HybridWorkflow>
Create a hybrid classical-quantum workflow
Sourcepub fn optimize_circuits(&mut self) -> Result<()>
pub fn optimize_circuits(&mut self) -> Result<()>
Optimize quantum circuits for specific backend
Sourcepub fn apply_error_mitigation(
&self,
result: &mut QuantumExecutionResult,
) -> Result<()>
pub fn apply_error_mitigation( &self, result: &mut QuantumExecutionResult, ) -> Result<()>
Apply error mitigation techniques
Auto Trait Implementations§
impl Freeze for QuantumComputingBackend
impl RefUnwindSafe for QuantumComputingBackend
impl Send for QuantumComputingBackend
impl Sync for QuantumComputingBackend
impl Unpin for QuantumComputingBackend
impl UnsafeUnpin for QuantumComputingBackend
impl UnwindSafe for QuantumComputingBackend
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 more