Enum roqoqo::operations::SpinsAnalogOperation
source · #[non_exhaustive]pub enum SpinsAnalogOperation {}
Expand description
Enum of all Operations implementing [OperateSpinsAnalog]
Trait Implementations§
source§impl Clone for SpinsAnalogOperation
impl Clone for SpinsAnalogOperation
source§fn clone(&self) -> SpinsAnalogOperation
fn clone(&self) -> SpinsAnalogOperation
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 SpinsAnalogOperation
impl Debug for SpinsAnalogOperation
source§impl<'de> Deserialize<'de> for SpinsAnalogOperation
impl<'de> Deserialize<'de> for SpinsAnalogOperation
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<SpinsAnalogOperation> for Operation
impl From<SpinsAnalogOperation> for Operation
source§fn from(op: SpinsAnalogOperation) -> Self
fn from(op: SpinsAnalogOperation) -> Self
Converts to this type from the input type.
source§impl InvolveQubits for SpinsAnalogOperation
impl InvolveQubits for SpinsAnalogOperation
Implements InvolveQubits trait for the qubits involved in this Operation.
source§fn involved_qubits(&self) -> InvolvedQubits
fn involved_qubits(&self) -> InvolvedQubits
Returns all qubits involved in operation.
source§fn involved_classical(&self) -> InvolvedClassical
fn involved_classical(&self) -> InvolvedClassical
Returns all classical registers involved in operation.
source§impl Operate for SpinsAnalogOperation
impl Operate for SpinsAnalogOperation
Implements the universal basic trait Operate for this Operation.
source§impl PartialEq for SpinsAnalogOperation
impl PartialEq for SpinsAnalogOperation
source§fn eq(&self, other: &SpinsAnalogOperation) -> bool
fn eq(&self, other: &SpinsAnalogOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SpinsAnalogOperation
impl Serialize for SpinsAnalogOperation
source§impl Substitute for SpinsAnalogOperation
impl Substitute for SpinsAnalogOperation
Implements Substitute trait allowing to replace symbolic parameters and to perform qubit mappings.
source§fn substitute_parameters(
&self,
calculator: &Calculator
) -> Result<Self, RoqoqoError>
fn substitute_parameters( &self, calculator: &Calculator ) -> Result<Self, RoqoqoError>
Substitutes symbolic parameters in clone of the operation.
source§fn remap_qubits(
&self,
mapping: &HashMap<usize, usize>
) -> Result<Self, RoqoqoError>
fn remap_qubits( &self, mapping: &HashMap<usize, usize> ) -> Result<Self, RoqoqoError>
Remaps the qubits in clone of the operation.
source§impl TryFrom<&Operation> for SpinsAnalogOperation
impl TryFrom<&Operation> for SpinsAnalogOperation
source§impl TryFrom<Operation> for SpinsAnalogOperation
impl TryFrom<Operation> for SpinsAnalogOperation
impl StructuralPartialEq for SpinsAnalogOperation
Auto Trait Implementations§
impl Freeze for SpinsAnalogOperation
impl RefUnwindSafe for SpinsAnalogOperation
impl Send for SpinsAnalogOperation
impl Sync for SpinsAnalogOperation
impl Unpin for SpinsAnalogOperation
impl UnwindSafe for SpinsAnalogOperation
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<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.