Enum roqoqo_aqt::devices::AqtDevice
source · pub enum AqtDevice {
SimulatorDevice(SimulatorDevice),
NoisySimulatorDevice(NoisySimulatorDevice),
}
Expand description
Collection of AQT quantum devices
At the moment only supports a simulator endpoint
Variants§
SimulatorDevice(SimulatorDevice)
AQT online simulator
NoisySimulatorDevice(NoisySimulatorDevice)
AQT online simulator with noise model
Implementations§
source§impl AqtDevice
impl AqtDevice
sourcepub fn number_qubits(&self) -> usize
pub fn number_qubits(&self) -> usize
Returns the number of qubits in the device.
sourcepub fn remote_host(&self) -> &str
pub fn remote_host(&self) -> &str
Returns the remote_host url endpoint of the device
Trait Implementations§
source§impl<'de> Deserialize<'de> for AqtDevice
impl<'de> Deserialize<'de> for AqtDevice
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&NoisySimulatorDevice> for AqtDevice
impl From<&NoisySimulatorDevice> for AqtDevice
source§fn from(input: &NoisySimulatorDevice) -> Self
fn from(input: &NoisySimulatorDevice) -> Self
Converts to this type from the input type.
source§impl From<&SimulatorDevice> for AqtDevice
impl From<&SimulatorDevice> for AqtDevice
source§fn from(input: &SimulatorDevice) -> Self
fn from(input: &SimulatorDevice) -> Self
Converts to this type from the input type.
source§impl From<NoisySimulatorDevice> for AqtDevice
impl From<NoisySimulatorDevice> for AqtDevice
source§fn from(input: NoisySimulatorDevice) -> Self
fn from(input: NoisySimulatorDevice) -> Self
Converts to this type from the input type.
source§impl From<SimulatorDevice> for AqtDevice
impl From<SimulatorDevice> for AqtDevice
source§fn from(input: SimulatorDevice) -> Self
fn from(input: SimulatorDevice) -> Self
Converts to this type from the input type.
source§impl PartialEq for AqtDevice
impl PartialEq for AqtDevice
impl Eq for AqtDevice
impl StructuralPartialEq for AqtDevice
Auto Trait Implementations§
impl RefUnwindSafe for AqtDevice
impl Send for AqtDevice
impl Sync for AqtDevice
impl Unpin for AqtDevice
impl UnwindSafe for AqtDevice
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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.