Enum roqoqo::operations::Rotation [−][src]
pub enum Rotation {
RotateZ(RotateZ),
RotateX(RotateX),
RotateY(RotateY),
PhaseShiftState1(PhaseShiftState1),
PhaseShiftState0(PhaseShiftState0),
RotateAroundSphericalAxis(RotateAroundSphericalAxis),
XY(XY),
ControlledPhaseShift(ControlledPhaseShift),
VariableMSXX(VariableMSXX),
GivensRotation(GivensRotation),
GivensRotationLittleEndian(GivensRotationLittleEndian),
}
Expand description
Enum of all Operations implementing Rotate
Variants
RotateZ(RotateZ)
Variant for RotateZ
Tuple Fields of RotateZ
0: RotateZ
RotateX(RotateX)
Variant for RotateX
Tuple Fields of RotateX
0: RotateX
RotateY(RotateY)
Variant for RotateY
Tuple Fields of RotateY
0: RotateY
PhaseShiftState1(PhaseShiftState1)
Variant for PhaseShiftState1
Tuple Fields of PhaseShiftState1
PhaseShiftState0(PhaseShiftState0)
Variant for PhaseShiftState0
Tuple Fields of PhaseShiftState0
RotateAroundSphericalAxis(RotateAroundSphericalAxis)
Variant for RotateAroundSphericalAxis
Tuple Fields of RotateAroundSphericalAxis
XY(XY)
Variant for XY
Tuple Fields of XY
0: XY
ControlledPhaseShift(ControlledPhaseShift)
Variant for ControlledPhaseShift
Tuple Fields of ControlledPhaseShift
VariableMSXX(VariableMSXX)
Variant for VariableMSXX
Tuple Fields of VariableMSXX
0: VariableMSXX
GivensRotation(GivensRotation)
Variant for GivensRotation
Tuple Fields of GivensRotation
GivensRotationLittleEndian(GivensRotationLittleEndian)
Variant for GivensRotationLittleEndian
Tuple Fields of GivensRotationLittleEndian
Trait Implementations
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
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Implements InvolveQubits trait for the qubits involved in this Operation.
Returns a list of all involved qubits.
Implements the universal basic trait Operate for this Operation.
Returns unitary matrix of the gate.
Returns rotation parameter theta.
Returns the gate to the power of power
.`
Implements Substitute trait allowing to replace symbolic parameters and to perform qubit mappings.
Substitutes symbolic parameters in clone of the operation.
Remaps the qubits in clone of the operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Auto Trait Implementations
impl RefUnwindSafe for Rotation
impl UnwindSafe for Rotation
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.