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

0: PhaseShiftState1
PhaseShiftState0(PhaseShiftState0)

Variant for PhaseShiftState0

Tuple Fields of PhaseShiftState0

0: PhaseShiftState0
RotateAroundSphericalAxis(RotateAroundSphericalAxis)

Variant for RotateAroundSphericalAxis

Tuple Fields of RotateAroundSphericalAxis

0: RotateAroundSphericalAxis
XY(XY)

Variant for XY

Tuple Fields of XY

0: XY
ControlledPhaseShift(ControlledPhaseShift)

Variant for ControlledPhaseShift

Tuple Fields of ControlledPhaseShift

0: ControlledPhaseShift
VariableMSXX(VariableMSXX)

Variant for VariableMSXX

Tuple Fields of VariableMSXX

0: VariableMSXX
GivensRotation(GivensRotation)

Variant for GivensRotation

Tuple Fields of GivensRotation

0: GivensRotation
GivensRotationLittleEndian(GivensRotationLittleEndian)

Variant for GivensRotationLittleEndian

Tuple Fields of GivensRotationLittleEndian

0: GivensRotationLittleEndian

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

Implements the From trait $\textit{from}$ this Operation.

Performs the conversion.

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 tags classifying the type of the Operation.

Returns hqslang name of the Operation.

Returns true when Operation has symbolic parameters.

Returns unitary matrix of the gate.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Returns rotation parameter theta.

Returns the gate to the power of power.`

Serialize this value into the given Serde serializer. Read more

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.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.

The type returned in case of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.