pub struct QuantumRuntime { /* private fields */ }Expand description
Quantum runtime
Implementations§
Source§impl QuantumRuntime
impl QuantumRuntime
Sourcepub fn devices(&self) -> &[QuantumDevice]
pub fn devices(&self) -> &[QuantumDevice]
Get available devices
Sourcepub fn simulators(&self) -> &[QuantumDevice]
pub fn simulators(&self) -> &[QuantumDevice]
Get available simulators
Sourcepub fn is_available() -> bool
pub fn is_available() -> bool
Check if quantum hardware is available
Sourcepub fn get_best_device(
&self,
circuit: &QuantumCircuit,
) -> Option<&QuantumDevice>
pub fn get_best_device( &self, circuit: &QuantumCircuit, ) -> Option<&QuantumDevice>
Get best device for circuit
Auto Trait Implementations§
impl Freeze for QuantumRuntime
impl RefUnwindSafe for QuantumRuntime
impl Send for QuantumRuntime
impl Sync for QuantumRuntime
impl Unpin for QuantumRuntime
impl UnsafeUnpin for QuantumRuntime
impl UnwindSafe for QuantumRuntime
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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