Struct roqoqo::operations::InputSymbolic
source · pub struct InputSymbolic {
name: String,
input: f64,
}
Expand description
InputSymbolic is the Definition for a floating point type parameter which will replace a certain symbolic parameter.
Fields§
§name: String
The name of the register that is defined.
input: f64
The floating point type value by which to replace the quantities marked as “name”.
Implementations§
Trait Implementations§
source§impl Clone for InputSymbolic
impl Clone for InputSymbolic
source§fn clone(&self) -> InputSymbolic
fn clone(&self) -> InputSymbolic
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InputSymbolic
impl Debug for InputSymbolic
source§impl Define for InputSymbolic
impl Define for InputSymbolic
source§impl<'de> Deserialize<'de> for InputSymbolic
impl<'de> Deserialize<'de> for InputSymbolic
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>,
source§impl From<InputSymbolic> for Definition
impl From<InputSymbolic> for Definition
Implements the From trait from this Operation.
source§fn from(v: InputSymbolic) -> Self
fn from(v: InputSymbolic) -> Self
Performs the conversion.
source§impl From<InputSymbolic> for Operation
impl From<InputSymbolic> for Operation
Implements the From trait from this Operation.
source§fn from(v: InputSymbolic) -> Self
fn from(v: InputSymbolic) -> Self
Performs the conversion.
source§impl InvolveQubits for InputSymbolic
impl InvolveQubits for InputSymbolic
source§fn involved_qubits(&self) -> InvolvedQubits
fn involved_qubits(&self) -> InvolvedQubits
Lists all involved Qubits (here, none).
source§fn involved_classical(&self) -> InvolvedClassical
fn involved_classical(&self) -> InvolvedClassical
source§impl Operate for InputSymbolic
impl Operate for InputSymbolic
Implements the universal basic trait Operate for this Operation.
source§impl PartialEq for InputSymbolic
impl PartialEq for InputSymbolic
source§fn eq(&self, other: &InputSymbolic) -> bool
fn eq(&self, other: &InputSymbolic) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InputSymbolic
impl Serialize for InputSymbolic
source§impl Substitute for InputSymbolic
impl Substitute for InputSymbolic
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 SupportedVersion for InputSymbolic
impl SupportedVersion for InputSymbolic
source§impl TryFrom<Definition> for InputSymbolic
impl TryFrom<Definition> for InputSymbolic
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<Operation> for InputSymbolic
impl TryFrom<Operation> for InputSymbolic
Implements the core::convert::TryFrom trait into this Operation.
impl StructuralPartialEq for InputSymbolic
Auto Trait Implementations§
impl Freeze for InputSymbolic
impl RefUnwindSafe for InputSymbolic
impl Send for InputSymbolic
impl Sync for InputSymbolic
impl Unpin for InputSymbolic
impl UnwindSafe for InputSymbolic
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
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>
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.