Struct roqoqo_aqt::devices::SimulatorDevice
source · pub struct SimulatorDevice {
pub number_qubits: usize,
}
Expand description
AQT 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 SimulatorDevice
impl SimulatorDevice
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 SimulatorDevice
impl Clone for SimulatorDevice
source§fn clone(&self) -> SimulatorDevice
fn clone(&self) -> SimulatorDevice
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 SimulatorDevice
impl Debug for SimulatorDevice
source§impl<'de> Deserialize<'de> for SimulatorDevice
impl<'de> Deserialize<'de> for SimulatorDevice
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<&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<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 SimulatorDevice
impl PartialEq for SimulatorDevice
source§fn eq(&self, other: &SimulatorDevice) -> bool
fn eq(&self, other: &SimulatorDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SimulatorDevice
impl Serialize for SimulatorDevice
impl Eq for SimulatorDevice
impl StructuralPartialEq for SimulatorDevice
Auto Trait Implementations§
impl RefUnwindSafe for SimulatorDevice
impl Send for SimulatorDevice
impl Sync for SimulatorDevice
impl Unpin for SimulatorDevice
impl UnwindSafe for SimulatorDevice
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.