Struct roqoqo_aqt::devices::NoisySimulatorDevice
source · pub struct NoisySimulatorDevice {
pub number_qubits: usize,
}
Expand description
AQT noisy quantum simulator device
Provides endpoint that receives instructions that are simulated and returns measurement results.
Fields§
§number_qubits: usize
Number of qubits supported by the device
Implementations§
source§impl NoisySimulatorDevice
impl NoisySimulatorDevice
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 Clone for NoisySimulatorDevice
impl Clone for NoisySimulatorDevice
source§fn clone(&self) -> NoisySimulatorDevice
fn clone(&self) -> NoisySimulatorDevice
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NoisySimulatorDevice
impl Debug for NoisySimulatorDevice
source§impl<'de> Deserialize<'de> for NoisySimulatorDevice
impl<'de> Deserialize<'de> for NoisySimulatorDevice
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<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 PartialEq for NoisySimulatorDevice
impl PartialEq for NoisySimulatorDevice
source§fn eq(&self, other: &NoisySimulatorDevice) -> bool
fn eq(&self, other: &NoisySimulatorDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NoisySimulatorDevice
impl Serialize for NoisySimulatorDevice
impl Eq for NoisySimulatorDevice
impl StructuralPartialEq for NoisySimulatorDevice
Auto Trait Implementations§
impl RefUnwindSafe for NoisySimulatorDevice
impl Send for NoisySimulatorDevice
impl Sync for NoisySimulatorDevice
impl Unpin for NoisySimulatorDevice
impl UnwindSafe for NoisySimulatorDevice
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.