Enum roqoqo::operations::Operation
source · [−]pub enum Operation {
Show 68 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),
PragmaChangeDevice(PragmaChangeDevice),
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),
MultiQubitMS(MultiQubitMS),
MultiQubitZZ(MultiQubitZZ),
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
RotateZ(RotateZ)
Variant for RotateZ
RotateX(RotateX)
Variant for RotateX
RotateY(RotateY)
Variant for RotateY
PauliX(PauliX)
Variant for PauliX
PauliY(PauliY)
Variant for PauliY
PauliZ(PauliZ)
Variant for PauliZ
SqrtPauliX(SqrtPauliX)
Variant for SqrtPauliX
InvSqrtPauliX(InvSqrtPauliX)
Variant for InvSqrtPauliX
Hadamard(Hadamard)
Variant for Hadamard
SGate(SGate)
Variant for SGate
TGate(TGate)
Variant for TGate
PhaseShiftState1(PhaseShiftState1)
Variant for PhaseShiftState1
PhaseShiftState0(PhaseShiftState0)
Variant for PhaseShiftState0
RotateAroundSphericalAxis(RotateAroundSphericalAxis)
Variant for RotateAroundSphericalAxis
PragmaSetNumberOfMeasurements(PragmaSetNumberOfMeasurements)
Variant for PragmaSetNumberOfMeasurements
PragmaSetStateVector(PragmaSetStateVector)
Variant for PragmaSetStateVector
PragmaSetDensityMatrix(PragmaSetDensityMatrix)
Variant for PragmaSetDensityMatrix
PragmaRepeatGate(PragmaRepeatGate)
Variant for PragmaRepeatGate
PragmaOverrotation(PragmaOverrotation)
Variant for PragmaOverrotation
PragmaBoostNoise(PragmaBoostNoise)
Variant for PragmaBoostNoise
PragmaStopParallelBlock(PragmaStopParallelBlock)
Variant for PragmaStopParallelBlock
PragmaGlobalPhase(PragmaGlobalPhase)
Variant for PragmaGlobalPhase
PragmaSleep(PragmaSleep)
Variant for PragmaSleep
PragmaActiveReset(PragmaActiveReset)
Variant for PragmaActiveReset
PragmaStartDecompositionBlock(PragmaStartDecompositionBlock)
Variant for PragmaStartDecompositionBlock
PragmaStopDecompositionBlock(PragmaStopDecompositionBlock)
Variant for PragmaStopDecompositionBlock
PragmaDamping(PragmaDamping)
Variant for PragmaDamping
PragmaDepolarising(PragmaDepolarising)
Variant for PragmaDepolarising
PragmaDephasing(PragmaDephasing)
Variant for PragmaDephasing
PragmaRandomNoise(PragmaRandomNoise)
Variant for PragmaRandomNoise
PragmaGeneralNoise(PragmaGeneralNoise)
Variant for PragmaGeneralNoise
PragmaConditional(PragmaConditional)
Variant for PragmaConditional
PragmaChangeDevice(PragmaChangeDevice)
Variant for PragmaChangeDevice
CNOT(CNOT)
Variant for CNOT
SWAP(SWAP)
Variant for SWAP
ISwap(ISwap)
Variant for ISwap
FSwap(FSwap)
Variant for FSwap
SqrtISwap(SqrtISwap)
Variant for SqrtISwap
InvSqrtISwap(InvSqrtISwap)
Variant for InvSqrtISwap
XY(XY)
Variant for XY
ControlledPhaseShift(ControlledPhaseShift)
Variant for ControlledPhaseShift
ControlledPauliY(ControlledPauliY)
Variant for ControlledPauliY
ControlledPauliZ(ControlledPauliZ)
Variant for ControlledPauliZ
MolmerSorensenXX(MolmerSorensenXX)
Variant for MolmerSorensenXX
VariableMSXX(VariableMSXX)
Variant for VariableMSXX
GivensRotation(GivensRotation)
Variant for GivensRotation
GivensRotationLittleEndian(GivensRotationLittleEndian)
Variant for GivensRotationLittleEndian
Qsim(Qsim)
Variant for Qsim
Fsim(Fsim)
Variant for Fsim
SpinInteraction(SpinInteraction)
Variant for SpinInteraction
Bogoliubov(Bogoliubov)
Variant for Bogoliubov
PMInteraction(PMInteraction)
Variant for PMInteraction
ComplexPMInteraction(ComplexPMInteraction)
Variant for ComplexPMInteraction
PhaseShiftedControlledZ(PhaseShiftedControlledZ)
Variant for PhaseShiftedControlledZ
MultiQubitMS(MultiQubitMS)
Variant for MultiQubitMS
MultiQubitZZ(MultiQubitZZ)
Variant for MultiQubitZZ
MeasureQubit(MeasureQubit)
Variant for MeasureQubit
PragmaGetStateVector(PragmaGetStateVector)
Variant for PragmaGetStateVector
PragmaGetDensityMatrix(PragmaGetDensityMatrix)
Variant for PragmaGetDensityMatrix
PragmaGetOccupationProbability(PragmaGetOccupationProbability)
Variant for PragmaGetOccupationProbability
PragmaGetPauliProduct(PragmaGetPauliProduct)
Variant for PragmaGetPauliProduct
PragmaRepeatedMeasurement(PragmaRepeatedMeasurement)
Variant for PragmaRepeatedMeasurement
DefinitionFloat(DefinitionFloat)
Variant for DefinitionFloat
DefinitionComplex(DefinitionComplex)
Variant for DefinitionComplex
DefinitionUsize(DefinitionUsize)
Variant for DefinitionUsize
DefinitionBit(DefinitionBit)
Variant for DefinitionBit
InputSymbolic(InputSymbolic)
Variant for InputSymbolic
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
sourcefn 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
sourceimpl From<Bogoliubov> for Operation
impl From<Bogoliubov> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: Bogoliubov) -> Self
fn from(v: Bogoliubov) -> Self
Performs the conversion.
sourceimpl From<ComplexPMInteraction> for Operation
impl From<ComplexPMInteraction> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: ComplexPMInteraction) -> Self
fn from(v: ComplexPMInteraction) -> Self
Performs the conversion.
sourceimpl From<ConstantGateOperation> for Operation
impl From<ConstantGateOperation> for Operation
sourcefn from(op: ConstantGateOperation) -> Self
fn from(op: ConstantGateOperation) -> Self
Performs the conversion.
sourceimpl From<ControlledPauliY> for Operation
impl From<ControlledPauliY> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: ControlledPauliY) -> Self
fn from(v: ControlledPauliY) -> Self
Performs the conversion.
sourceimpl From<ControlledPauliZ> for Operation
impl From<ControlledPauliZ> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: ControlledPauliZ) -> Self
fn from(v: ControlledPauliZ) -> Self
Performs the conversion.
sourceimpl From<ControlledPhaseShift> for Operation
impl From<ControlledPhaseShift> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: ControlledPhaseShift) -> Self
fn from(v: ControlledPhaseShift) -> Self
Performs the conversion.
sourceimpl From<Definition> for Operation
impl From<Definition> for Operation
sourcefn from(op: Definition) -> Self
fn from(op: Definition) -> Self
Performs the conversion.
sourceimpl From<DefinitionBit> for Operation
impl From<DefinitionBit> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: DefinitionBit) -> Self
fn from(v: DefinitionBit) -> Self
Performs the conversion.
sourceimpl From<DefinitionComplex> for Operation
impl From<DefinitionComplex> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: DefinitionComplex) -> Self
fn from(v: DefinitionComplex) -> Self
Performs the conversion.
sourceimpl From<DefinitionFloat> for Operation
impl From<DefinitionFloat> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: DefinitionFloat) -> Self
fn from(v: DefinitionFloat) -> Self
Performs the conversion.
sourceimpl From<DefinitionUsize> for Operation
impl From<DefinitionUsize> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: DefinitionUsize) -> Self
fn from(v: DefinitionUsize) -> Self
Performs the conversion.
sourceimpl From<GateOperation> for Operation
impl From<GateOperation> for Operation
sourcefn from(op: GateOperation) -> Self
fn from(op: GateOperation) -> Self
Performs the conversion.
sourceimpl From<GivensRotation> for Operation
impl From<GivensRotation> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: GivensRotation) -> Self
fn from(v: GivensRotation) -> Self
Performs the conversion.
sourceimpl From<GivensRotationLittleEndian> for Operation
impl From<GivensRotationLittleEndian> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: GivensRotationLittleEndian) -> Self
fn from(v: GivensRotationLittleEndian) -> Self
Performs the conversion.
sourceimpl From<InputSymbolic> for Operation
impl From<InputSymbolic> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: InputSymbolic) -> Self
fn from(v: InputSymbolic) -> Self
Performs the conversion.
sourceimpl From<InvSqrtISwap> for Operation
impl From<InvSqrtISwap> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: InvSqrtISwap) -> Self
fn from(v: InvSqrtISwap) -> Self
Performs the conversion.
sourceimpl From<InvSqrtPauliX> for Operation
impl From<InvSqrtPauliX> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: InvSqrtPauliX) -> Self
fn from(v: InvSqrtPauliX) -> Self
Performs the conversion.
sourceimpl From<MeasureQubit> for Operation
impl From<MeasureQubit> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: MeasureQubit) -> Self
fn from(v: MeasureQubit) -> Self
Performs the conversion.
sourceimpl From<MolmerSorensenXX> for Operation
impl From<MolmerSorensenXX> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: MolmerSorensenXX) -> Self
fn from(v: MolmerSorensenXX) -> Self
Performs the conversion.
sourceimpl From<MultiQubitGateOperation> for Operation
impl From<MultiQubitGateOperation> for Operation
sourcefn from(op: MultiQubitGateOperation) -> Self
fn from(op: MultiQubitGateOperation) -> Self
Performs the conversion.
sourceimpl From<MultiQubitMS> for Operation
impl From<MultiQubitMS> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: MultiQubitMS) -> Self
fn from(v: MultiQubitMS) -> Self
Performs the conversion.
sourceimpl From<MultiQubitOperation> for Operation
impl From<MultiQubitOperation> for Operation
sourcefn from(op: MultiQubitOperation) -> Self
fn from(op: MultiQubitOperation) -> Self
Performs the conversion.
sourceimpl From<MultiQubitZZ> for Operation
impl From<MultiQubitZZ> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: MultiQubitZZ) -> Self
fn from(v: MultiQubitZZ) -> Self
Performs the conversion.
sourceimpl From<PMInteraction> for Operation
impl From<PMInteraction> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PMInteraction) -> Self
fn from(v: PMInteraction) -> Self
Performs the conversion.
sourceimpl From<PhaseShiftState0> for Operation
impl From<PhaseShiftState0> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PhaseShiftState0) -> Self
fn from(v: PhaseShiftState0) -> Self
Performs the conversion.
sourceimpl From<PhaseShiftState1> for Operation
impl From<PhaseShiftState1> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PhaseShiftState1) -> Self
fn from(v: PhaseShiftState1) -> Self
Performs the conversion.
sourceimpl From<PhaseShiftedControlledZ> for Operation
impl From<PhaseShiftedControlledZ> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PhaseShiftedControlledZ) -> Self
fn from(v: PhaseShiftedControlledZ) -> Self
Performs the conversion.
sourceimpl From<PragmaActiveReset> for Operation
impl From<PragmaActiveReset> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaActiveReset) -> Self
fn from(v: PragmaActiveReset) -> Self
Performs the conversion.
sourceimpl From<PragmaBoostNoise> for Operation
impl From<PragmaBoostNoise> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaBoostNoise) -> Self
fn from(v: PragmaBoostNoise) -> Self
Performs the conversion.
sourceimpl From<PragmaChangeDevice> for Operation
impl From<PragmaChangeDevice> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaChangeDevice) -> Self
fn from(v: PragmaChangeDevice) -> Self
Performs the conversion.
sourceimpl From<PragmaConditional> for Operation
impl From<PragmaConditional> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaConditional) -> Self
fn from(v: PragmaConditional) -> Self
Performs the conversion.
sourceimpl From<PragmaDamping> for Operation
impl From<PragmaDamping> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaDamping) -> Self
fn from(v: PragmaDamping) -> Self
Performs the conversion.
sourceimpl From<PragmaDephasing> for Operation
impl From<PragmaDephasing> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaDephasing) -> Self
fn from(v: PragmaDephasing) -> Self
Performs the conversion.
sourceimpl From<PragmaDepolarising> for Operation
impl From<PragmaDepolarising> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaDepolarising) -> Self
fn from(v: PragmaDepolarising) -> Self
Performs the conversion.
sourceimpl From<PragmaGeneralNoise> for Operation
impl From<PragmaGeneralNoise> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaGeneralNoise) -> Self
fn from(v: PragmaGeneralNoise) -> Self
Performs the conversion.
sourceimpl From<PragmaGetDensityMatrix> for Operation
impl From<PragmaGetDensityMatrix> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaGetDensityMatrix) -> Self
fn from(v: PragmaGetDensityMatrix) -> Self
Performs the conversion.
sourceimpl From<PragmaGetOccupationProbability> for Operation
impl From<PragmaGetOccupationProbability> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaGetOccupationProbability) -> Self
fn from(v: PragmaGetOccupationProbability) -> Self
Performs the conversion.
sourceimpl From<PragmaGetPauliProduct> for Operation
impl From<PragmaGetPauliProduct> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaGetPauliProduct) -> Self
fn from(v: PragmaGetPauliProduct) -> Self
Performs the conversion.
sourceimpl From<PragmaGetStateVector> for Operation
impl From<PragmaGetStateVector> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaGetStateVector) -> Self
fn from(v: PragmaGetStateVector) -> Self
Performs the conversion.
sourceimpl From<PragmaGlobalPhase> for Operation
impl From<PragmaGlobalPhase> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaGlobalPhase) -> Self
fn from(v: PragmaGlobalPhase) -> Self
Performs the conversion.
sourceimpl From<PragmaNoiseOperation> for Operation
impl From<PragmaNoiseOperation> for Operation
sourcefn from(op: PragmaNoiseOperation) -> Self
fn from(op: PragmaNoiseOperation) -> Self
Performs the conversion.
sourceimpl From<PragmaNoiseProbaOperation> for Operation
impl From<PragmaNoiseProbaOperation> for Operation
sourcefn from(op: PragmaNoiseProbaOperation) -> Self
fn from(op: PragmaNoiseProbaOperation) -> Self
Performs the conversion.
sourceimpl From<PragmaOperation> for Operation
impl From<PragmaOperation> for Operation
sourcefn from(op: PragmaOperation) -> Self
fn from(op: PragmaOperation) -> Self
Performs the conversion.
sourceimpl From<PragmaOverrotation> for Operation
impl From<PragmaOverrotation> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaOverrotation) -> Self
fn from(v: PragmaOverrotation) -> Self
Performs the conversion.
sourceimpl From<PragmaRandomNoise> for Operation
impl From<PragmaRandomNoise> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaRandomNoise) -> Self
fn from(v: PragmaRandomNoise) -> Self
Performs the conversion.
sourceimpl From<PragmaRepeatGate> for Operation
impl From<PragmaRepeatGate> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaRepeatGate) -> Self
fn from(v: PragmaRepeatGate) -> Self
Performs the conversion.
sourceimpl From<PragmaRepeatedMeasurement> for Operation
impl From<PragmaRepeatedMeasurement> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaRepeatedMeasurement) -> Self
fn from(v: PragmaRepeatedMeasurement) -> Self
Performs the conversion.
sourceimpl From<PragmaSetDensityMatrix> for Operation
impl From<PragmaSetDensityMatrix> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaSetDensityMatrix) -> Self
fn from(v: PragmaSetDensityMatrix) -> Self
Performs the conversion.
sourceimpl From<PragmaSetNumberOfMeasurements> for Operation
impl From<PragmaSetNumberOfMeasurements> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaSetNumberOfMeasurements) -> Self
fn from(v: PragmaSetNumberOfMeasurements) -> Self
Performs the conversion.
sourceimpl From<PragmaSetStateVector> for Operation
impl From<PragmaSetStateVector> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaSetStateVector) -> Self
fn from(v: PragmaSetStateVector) -> Self
Performs the conversion.
sourceimpl From<PragmaSleep> for Operation
impl From<PragmaSleep> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaSleep) -> Self
fn from(v: PragmaSleep) -> Self
Performs the conversion.
sourceimpl From<PragmaStartDecompositionBlock> for Operation
impl From<PragmaStartDecompositionBlock> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaStartDecompositionBlock) -> Self
fn from(v: PragmaStartDecompositionBlock) -> Self
Performs the conversion.
sourceimpl From<PragmaStopDecompositionBlock> for Operation
impl From<PragmaStopDecompositionBlock> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaStopDecompositionBlock) -> Self
fn from(v: PragmaStopDecompositionBlock) -> Self
Performs the conversion.
sourceimpl From<PragmaStopParallelBlock> for Operation
impl From<PragmaStopParallelBlock> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: PragmaStopParallelBlock) -> Self
fn from(v: PragmaStopParallelBlock) -> Self
Performs the conversion.
sourceimpl From<RotateAroundSphericalAxis> for Operation
impl From<RotateAroundSphericalAxis> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: RotateAroundSphericalAxis) -> Self
fn from(v: RotateAroundSphericalAxis) -> Self
Performs the conversion.
sourceimpl From<SingleQubitGate> for Operation
impl From<SingleQubitGate> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: SingleQubitGate) -> Self
fn from(v: SingleQubitGate) -> Self
Performs the conversion.
sourceimpl From<SingleQubitGateOperation> for Operation
impl From<SingleQubitGateOperation> for Operation
sourcefn from(op: SingleQubitGateOperation) -> Self
fn from(op: SingleQubitGateOperation) -> Self
Performs the conversion.
sourceimpl From<SingleQubitOperation> for Operation
impl From<SingleQubitOperation> for Operation
sourcefn from(op: SingleQubitOperation) -> Self
fn from(op: SingleQubitOperation) -> Self
Performs the conversion.
sourceimpl From<SpinInteraction> for Operation
impl From<SpinInteraction> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: SpinInteraction) -> Self
fn from(v: SpinInteraction) -> Self
Performs the conversion.
sourceimpl From<SqrtPauliX> for Operation
impl From<SqrtPauliX> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: SqrtPauliX) -> Self
fn from(v: SqrtPauliX) -> Self
Performs the conversion.
sourceimpl From<TwoQubitGateOperation> for Operation
impl From<TwoQubitGateOperation> for Operation
sourcefn from(op: TwoQubitGateOperation) -> Self
fn from(op: TwoQubitGateOperation) -> Self
Performs the conversion.
sourceimpl From<TwoQubitOperation> for Operation
impl From<TwoQubitOperation> for Operation
sourcefn from(op: TwoQubitOperation) -> Self
fn from(op: TwoQubitOperation) -> Self
Performs the conversion.
sourceimpl From<VariableMSXX> for Operation
impl From<VariableMSXX> for Operation
Implements the From trait $\textit{from}$ this Operation.
sourcefn from(v: VariableMSXX) -> Self
fn from(v: VariableMSXX) -> Self
Performs the conversion.
sourceimpl InvolveQubits for Operation
impl InvolveQubits for Operation
Implements InvolveQubits trait for the qubits involved in this Operation.
sourcefn involved_qubits(&self) -> InvolvedQubits
fn involved_qubits(&self) -> InvolvedQubits
Returns a list of all involved qubits.
sourceimpl Substitute for Operation
impl Substitute for Operation
Implements Substitute trait allowing to replace symbolic parameters and to perform qubit mappings.
sourcefn substitute_parameters(
&self,
calculator: &mut Calculator
) -> Result<Self, RoqoqoError>
fn substitute_parameters(
&self,
calculator: &mut Calculator
) -> Result<Self, RoqoqoError>
Substitutes symbolic parameters in clone of the operation.
sourcefn 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.
sourceimpl TryFrom<&'_ Operation> for SingleQubitOperation
impl TryFrom<&'_ Operation> for SingleQubitOperation
sourceimpl TryFrom<&'_ Operation> for TwoQubitOperation
impl TryFrom<&'_ Operation> for TwoQubitOperation
sourceimpl TryFrom<&'_ Operation> for SingleQubitGateOperation
impl TryFrom<&'_ Operation> for SingleQubitGateOperation
sourceimpl TryFrom<&'_ Operation> for TwoQubitGateOperation
impl TryFrom<&'_ Operation> for TwoQubitGateOperation
sourceimpl TryFrom<&'_ Operation> for MultiQubitGateOperation
impl TryFrom<&'_ Operation> for MultiQubitGateOperation
sourceimpl TryFrom<&'_ Operation> for MultiQubitOperation
impl TryFrom<&'_ Operation> for MultiQubitOperation
sourceimpl TryFrom<&'_ Operation> for PragmaOperation
impl TryFrom<&'_ Operation> for PragmaOperation
sourceimpl TryFrom<&'_ Operation> for PragmaNoiseOperation
impl TryFrom<&'_ Operation> for PragmaNoiseOperation
sourceimpl TryFrom<&'_ Operation> for PragmaNoiseProbaOperation
impl TryFrom<&'_ Operation> for PragmaNoiseProbaOperation
sourceimpl TryFrom<&'_ Operation> for GateOperation
impl TryFrom<&'_ Operation> for GateOperation
sourceimpl TryFrom<&'_ Operation> for Definition
impl TryFrom<&'_ Operation> for Definition
sourceimpl TryFrom<&'_ Operation> for ConstantGateOperation
impl TryFrom<&'_ Operation> for ConstantGateOperation
sourceimpl TryFrom<Operation> for SingleQubitGate
impl TryFrom<Operation> for SingleQubitGate
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for RotateZ
impl TryFrom<Operation> for RotateZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for SGate
impl TryFrom<Operation> for SGate
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for TGate
impl TryFrom<Operation> for TGate
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PhaseShiftState1
impl TryFrom<Operation> for PhaseShiftState1
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PhaseShiftState0
impl TryFrom<Operation> for PhaseShiftState0
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for RotateAroundSphericalAxis
impl TryFrom<Operation> for RotateAroundSphericalAxis
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaSetNumberOfMeasurements
impl TryFrom<Operation> for PragmaSetNumberOfMeasurements
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaSetStateVector
impl TryFrom<Operation> for PragmaSetStateVector
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaSetDensityMatrix
impl TryFrom<Operation> for PragmaSetDensityMatrix
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaRepeatGate
impl TryFrom<Operation> for PragmaRepeatGate
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaOverrotation
impl TryFrom<Operation> for PragmaOverrotation
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for RotateX
impl TryFrom<Operation> for RotateX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaBoostNoise
impl TryFrom<Operation> for PragmaBoostNoise
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaStopParallelBlock
impl TryFrom<Operation> for PragmaStopParallelBlock
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaGlobalPhase
impl TryFrom<Operation> for PragmaGlobalPhase
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaSleep
impl TryFrom<Operation> for PragmaSleep
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaActiveReset
impl TryFrom<Operation> for PragmaActiveReset
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaStartDecompositionBlock
impl TryFrom<Operation> for PragmaStartDecompositionBlock
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaStopDecompositionBlock
impl TryFrom<Operation> for PragmaStopDecompositionBlock
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaDamping
impl TryFrom<Operation> for PragmaDamping
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaDepolarising
impl TryFrom<Operation> for PragmaDepolarising
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaDephasing
impl TryFrom<Operation> for PragmaDephasing
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for RotateY
impl TryFrom<Operation> for RotateY
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaRandomNoise
impl TryFrom<Operation> for PragmaRandomNoise
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaGeneralNoise
impl TryFrom<Operation> for PragmaGeneralNoise
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaConditional
impl TryFrom<Operation> for PragmaConditional
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaChangeDevice
impl TryFrom<Operation> for PragmaChangeDevice
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for CNOT
impl TryFrom<Operation> for CNOT
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for SWAP
impl TryFrom<Operation> for SWAP
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for ISwap
impl TryFrom<Operation> for ISwap
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for FSwap
impl TryFrom<Operation> for FSwap
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for SqrtISwap
impl TryFrom<Operation> for SqrtISwap
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for InvSqrtISwap
impl TryFrom<Operation> for InvSqrtISwap
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PauliX
impl TryFrom<Operation> for PauliX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for XY
impl TryFrom<Operation> for XY
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for ControlledPhaseShift
impl TryFrom<Operation> for ControlledPhaseShift
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for ControlledPauliY
impl TryFrom<Operation> for ControlledPauliY
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for ControlledPauliZ
impl TryFrom<Operation> for ControlledPauliZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for MolmerSorensenXX
impl TryFrom<Operation> for MolmerSorensenXX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for VariableMSXX
impl TryFrom<Operation> for VariableMSXX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for GivensRotation
impl TryFrom<Operation> for GivensRotation
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for GivensRotationLittleEndian
impl TryFrom<Operation> for GivensRotationLittleEndian
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for Qsim
impl TryFrom<Operation> for Qsim
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for Fsim
impl TryFrom<Operation> for Fsim
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PauliY
impl TryFrom<Operation> for PauliY
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for SpinInteraction
impl TryFrom<Operation> for SpinInteraction
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for Bogoliubov
impl TryFrom<Operation> for Bogoliubov
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PMInteraction
impl TryFrom<Operation> for PMInteraction
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for ComplexPMInteraction
impl TryFrom<Operation> for ComplexPMInteraction
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PhaseShiftedControlledZ
impl TryFrom<Operation> for PhaseShiftedControlledZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for MultiQubitMS
impl TryFrom<Operation> for MultiQubitMS
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for MultiQubitZZ
impl TryFrom<Operation> for MultiQubitZZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for MeasureQubit
impl TryFrom<Operation> for MeasureQubit
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaGetStateVector
impl TryFrom<Operation> for PragmaGetStateVector
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaGetDensityMatrix
impl TryFrom<Operation> for PragmaGetDensityMatrix
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PauliZ
impl TryFrom<Operation> for PauliZ
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaGetOccupationProbability
impl TryFrom<Operation> for PragmaGetOccupationProbability
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaGetPauliProduct
impl TryFrom<Operation> for PragmaGetPauliProduct
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for PragmaRepeatedMeasurement
impl TryFrom<Operation> for PragmaRepeatedMeasurement
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for DefinitionFloat
impl TryFrom<Operation> for DefinitionFloat
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for DefinitionComplex
impl TryFrom<Operation> for DefinitionComplex
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for DefinitionUsize
impl TryFrom<Operation> for DefinitionUsize
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for DefinitionBit
impl TryFrom<Operation> for DefinitionBit
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for InputSymbolic
impl TryFrom<Operation> for InputSymbolic
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for SingleQubitOperation
impl TryFrom<Operation> for SingleQubitOperation
sourceimpl TryFrom<Operation> for TwoQubitOperation
impl TryFrom<Operation> for TwoQubitOperation
sourceimpl TryFrom<Operation> for SqrtPauliX
impl TryFrom<Operation> for SqrtPauliX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for MultiQubitOperation
impl TryFrom<Operation> for MultiQubitOperation
sourceimpl TryFrom<Operation> for PragmaOperation
impl TryFrom<Operation> for PragmaOperation
sourceimpl TryFrom<Operation> for PragmaNoiseOperation
impl TryFrom<Operation> for PragmaNoiseOperation
sourceimpl TryFrom<Operation> for PragmaNoiseProbaOperation
impl TryFrom<Operation> for PragmaNoiseProbaOperation
sourceimpl TryFrom<Operation> for GateOperation
impl TryFrom<Operation> for GateOperation
sourceimpl TryFrom<Operation> for Definition
impl TryFrom<Operation> for Definition
sourceimpl TryFrom<Operation> for ConstantGateOperation
impl TryFrom<Operation> for ConstantGateOperation
sourceimpl TryFrom<Operation> for SingleQubitGateOperation
impl TryFrom<Operation> for SingleQubitGateOperation
sourceimpl TryFrom<Operation> for TwoQubitGateOperation
impl TryFrom<Operation> for TwoQubitGateOperation
sourceimpl TryFrom<Operation> for InvSqrtPauliX
impl TryFrom<Operation> for InvSqrtPauliX
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
sourceimpl TryFrom<Operation> for MultiQubitGateOperation
impl TryFrom<Operation> for MultiQubitGateOperation
sourceimpl TryFrom<Operation> for Hadamard
impl TryFrom<Operation> for Hadamard
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
impl StructuralPartialEq for Operation
Auto Trait Implementations
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
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.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more