Enum roqoqo::operations::Operation [−][src]
pub enum Operation {
Show 65 variants
SingleQubitGate(SingleQubitGate),
RotateZ(RotateZ),
RotateX(RotateX),
RotateY(RotateY),
PauliX(PauliX),
PauliY(PauliY),
PauliZ(PauliZ),
SqrtPauliX(SqrtPauliX),
InvSqrtPauliX(InvSqrtPauliX),
Hadamard(Hadamard),
SGate(SGate),
TGate(TGate),
PhaseShiftState1(PhaseShiftState1),
PhaseShiftState0(PhaseShiftState0),
RotateAroundSphericalAxis(RotateAroundSphericalAxis),
PragmaSetNumberOfMeasurements(PragmaSetNumberOfMeasurements),
PragmaSetStateVector(PragmaSetStateVector),
PragmaSetDensityMatrix(PragmaSetDensityMatrix),
PragmaRepeatGate(PragmaRepeatGate),
PragmaOverrotation(PragmaOverrotation),
PragmaBoostNoise(PragmaBoostNoise),
PragmaStopParallelBlock(PragmaStopParallelBlock),
PragmaGlobalPhase(PragmaGlobalPhase),
PragmaSleep(PragmaSleep),
PragmaActiveReset(PragmaActiveReset),
PragmaStartDecompositionBlock(PragmaStartDecompositionBlock),
PragmaStopDecompositionBlock(PragmaStopDecompositionBlock),
PragmaDamping(PragmaDamping),
PragmaDepolarising(PragmaDepolarising),
PragmaDephasing(PragmaDephasing),
PragmaRandomNoise(PragmaRandomNoise),
PragmaGeneralNoise(PragmaGeneralNoise),
PragmaConditional(PragmaConditional),
CNOT(CNOT),
SWAP(SWAP),
ISwap(ISwap),
FSwap(FSwap),
SqrtISwap(SqrtISwap),
InvSqrtISwap(InvSqrtISwap),
XY(XY),
ControlledPhaseShift(ControlledPhaseShift),
ControlledPauliY(ControlledPauliY),
ControlledPauliZ(ControlledPauliZ),
MolmerSorensenXX(MolmerSorensenXX),
VariableMSXX(VariableMSXX),
GivensRotation(GivensRotation),
GivensRotationLittleEndian(GivensRotationLittleEndian),
Qsim(Qsim),
Fsim(Fsim),
SpinInteraction(SpinInteraction),
Bogoliubov(Bogoliubov),
PMInteraction(PMInteraction),
ComplexPMInteraction(ComplexPMInteraction),
PhaseShiftedControlledZ(PhaseShiftedControlledZ),
MeasureQubit(MeasureQubit),
PragmaGetStateVector(PragmaGetStateVector),
PragmaGetDensityMatrix(PragmaGetDensityMatrix),
PragmaGetOccupationProbability(PragmaGetOccupationProbability),
PragmaGetPauliProduct(PragmaGetPauliProduct),
PragmaRepeatedMeasurement(PragmaRepeatedMeasurement),
DefinitionFloat(DefinitionFloat),
DefinitionComplex(DefinitionComplex),
DefinitionUsize(DefinitionUsize),
DefinitionBit(DefinitionBit),
InputSymbolic(InputSymbolic),
}
Expand description
Enum of all Operations implementing Operate
Variants
SingleQubitGate(SingleQubitGate)
Variant for SingleQubitGate
Tuple Fields of SingleQubitGate
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
PauliX(PauliX)
Variant for PauliX
Tuple Fields of PauliX
0: PauliX
PauliY(PauliY)
Variant for PauliY
Tuple Fields of PauliY
0: PauliY
PauliZ(PauliZ)
Variant for PauliZ
Tuple Fields of PauliZ
0: PauliZ
SqrtPauliX(SqrtPauliX)
Variant for SqrtPauliX
Tuple Fields of SqrtPauliX
0: SqrtPauliX
InvSqrtPauliX(InvSqrtPauliX)
Variant for InvSqrtPauliX
Tuple Fields of InvSqrtPauliX
Hadamard(Hadamard)
Variant for Hadamard
Tuple Fields of Hadamard
0: Hadamard
SGate(SGate)
Variant for SGate
Tuple Fields of SGate
0: SGate
TGate(TGate)
Variant for TGate
Tuple Fields of TGate
0: TGate
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
PragmaSetNumberOfMeasurements(PragmaSetNumberOfMeasurements)
Variant for PragmaSetNumberOfMeasurements
Tuple Fields of PragmaSetNumberOfMeasurements
PragmaSetStateVector(PragmaSetStateVector)
Variant for PragmaSetStateVector
Tuple Fields of PragmaSetStateVector
PragmaSetDensityMatrix(PragmaSetDensityMatrix)
Variant for PragmaSetDensityMatrix
Tuple Fields of PragmaSetDensityMatrix
PragmaRepeatGate(PragmaRepeatGate)
Variant for PragmaRepeatGate
Tuple Fields of PragmaRepeatGate
PragmaOverrotation(PragmaOverrotation)
Variant for PragmaOverrotation
Tuple Fields of PragmaOverrotation
PragmaBoostNoise(PragmaBoostNoise)
Variant for PragmaBoostNoise
Tuple Fields of PragmaBoostNoise
PragmaStopParallelBlock(PragmaStopParallelBlock)
Variant for PragmaStopParallelBlock
Tuple Fields of PragmaStopParallelBlock
PragmaGlobalPhase(PragmaGlobalPhase)
Variant for PragmaGlobalPhase
Tuple Fields of PragmaGlobalPhase
PragmaSleep(PragmaSleep)
Variant for PragmaSleep
Tuple Fields of PragmaSleep
0: PragmaSleep
PragmaActiveReset(PragmaActiveReset)
Variant for PragmaActiveReset
Tuple Fields of PragmaActiveReset
PragmaStartDecompositionBlock(PragmaStartDecompositionBlock)
Variant for PragmaStartDecompositionBlock
Tuple Fields of PragmaStartDecompositionBlock
PragmaStopDecompositionBlock(PragmaStopDecompositionBlock)
Variant for PragmaStopDecompositionBlock
Tuple Fields of PragmaStopDecompositionBlock
PragmaDamping(PragmaDamping)
Variant for PragmaDamping
Tuple Fields of PragmaDamping
PragmaDepolarising(PragmaDepolarising)
Variant for PragmaDepolarising
Tuple Fields of PragmaDepolarising
PragmaDephasing(PragmaDephasing)
Variant for PragmaDephasing
Tuple Fields of PragmaDephasing
PragmaRandomNoise(PragmaRandomNoise)
Variant for PragmaRandomNoise
Tuple Fields of PragmaRandomNoise
PragmaGeneralNoise(PragmaGeneralNoise)
Variant for PragmaGeneralNoise
Tuple Fields of PragmaGeneralNoise
PragmaConditional(PragmaConditional)
Variant for PragmaConditional
Tuple Fields of PragmaConditional
CNOT(CNOT)
Variant for CNOT
Tuple Fields of CNOT
0: CNOT
SWAP(SWAP)
Variant for SWAP
Tuple Fields of SWAP
0: SWAP
ISwap(ISwap)
Variant for ISwap
Tuple Fields of ISwap
0: ISwap
FSwap(FSwap)
Variant for FSwap
Tuple Fields of FSwap
0: FSwap
SqrtISwap(SqrtISwap)
Variant for SqrtISwap
Tuple Fields of SqrtISwap
0: SqrtISwap
InvSqrtISwap(InvSqrtISwap)
Variant for InvSqrtISwap
Tuple Fields of InvSqrtISwap
0: InvSqrtISwap
XY(XY)
Variant for XY
Tuple Fields of XY
0: XY
ControlledPhaseShift(ControlledPhaseShift)
Variant for ControlledPhaseShift
Tuple Fields of ControlledPhaseShift
ControlledPauliY(ControlledPauliY)
Variant for ControlledPauliY
Tuple Fields of ControlledPauliY
ControlledPauliZ(ControlledPauliZ)
Variant for ControlledPauliZ
Tuple Fields of ControlledPauliZ
MolmerSorensenXX(MolmerSorensenXX)
Variant for MolmerSorensenXX
Tuple Fields of MolmerSorensenXX
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
Qsim(Qsim)
Variant for Qsim
Tuple Fields of Qsim
0: Qsim
Fsim(Fsim)
Variant for Fsim
Tuple Fields of Fsim
0: Fsim
SpinInteraction(SpinInteraction)
Variant for SpinInteraction
Tuple Fields of SpinInteraction
Bogoliubov(Bogoliubov)
Variant for Bogoliubov
Tuple Fields of Bogoliubov
0: Bogoliubov
PMInteraction(PMInteraction)
Variant for PMInteraction
Tuple Fields of PMInteraction
ComplexPMInteraction(ComplexPMInteraction)
Variant for ComplexPMInteraction
Tuple Fields of ComplexPMInteraction
PhaseShiftedControlledZ(PhaseShiftedControlledZ)
Variant for PhaseShiftedControlledZ
Tuple Fields of PhaseShiftedControlledZ
MeasureQubit(MeasureQubit)
Variant for MeasureQubit
Tuple Fields of MeasureQubit
0: MeasureQubit
PragmaGetStateVector(PragmaGetStateVector)
Variant for PragmaGetStateVector
Tuple Fields of PragmaGetStateVector
PragmaGetDensityMatrix(PragmaGetDensityMatrix)
Variant for PragmaGetDensityMatrix
Tuple Fields of PragmaGetDensityMatrix
PragmaGetOccupationProbability(PragmaGetOccupationProbability)
Variant for PragmaGetOccupationProbability
Tuple Fields of PragmaGetOccupationProbability
PragmaGetPauliProduct(PragmaGetPauliProduct)
Variant for PragmaGetPauliProduct
Tuple Fields of PragmaGetPauliProduct
PragmaRepeatedMeasurement(PragmaRepeatedMeasurement)
Variant for PragmaRepeatedMeasurement
Tuple Fields of PragmaRepeatedMeasurement
DefinitionFloat(DefinitionFloat)
Variant for DefinitionFloat
Tuple Fields of DefinitionFloat
DefinitionComplex(DefinitionComplex)
Variant for DefinitionComplex
Tuple Fields of DefinitionComplex
DefinitionUsize(DefinitionUsize)
Variant for DefinitionUsize
Tuple Fields of DefinitionUsize
DefinitionBit(DefinitionBit)
Variant for DefinitionBit
Tuple Fields of DefinitionBit
InputSymbolic(InputSymbolic)
Variant for InputSymbolic
Tuple Fields of InputSymbolic
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.
Performs the conversion.
Performs the conversion.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Performs the conversion.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Performs the conversion.
Performs the conversion.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Performs the conversion.
Performs the conversion.
Performs the conversion.
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 the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Performs the conversion.
Performs the conversion.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Performs the conversion.
Performs the conversion.
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.
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.
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.
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.
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.
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.
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 Operation
impl UnwindSafe for Operation
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.