#[non_exhaustive]
pub enum Operation {
Show 94 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), RotateXY(RotateXY), 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), PragmaLoop(PragmaLoop), InputBit(InputBit), PhaseShiftedControlledPhase(PhaseShiftedControlledPhase), ControlledRotateX(ControlledRotateX), ControlledRotateXY(ControlledRotateXY), ControlledControlledPauliZ(ControlledControlledPauliZ), ControlledControlledPhaseShift(ControlledControlledPhaseShift), Toffoli(Toffoli), GPi(GPi), GPi2(GPi2), PragmaControlledCircuit(PragmaControlledCircuit), Squeezing(Squeezing), PhaseShift(PhaseShift), BeamSplitter(BeamSplitter), PhotonDetection(PhotonDetection), Identity(Identity), PragmaAnnotatedOp(PragmaAnnotatedOp), EchoCrossResonance(EchoCrossResonance), PhaseDisplacement(PhaseDisplacement), QuantumRabi(QuantumRabi), LongitudinalCoupling(LongitudinalCoupling), JaynesCummings(JaynesCummings), SingleExcitationStore(SingleExcitationStore), SingleExcitationLoad(SingleExcitationLoad), CZQubitResonator(CZQubitResonator),
}
Expand description

Enum of all Operations implementing Operate

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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

§

RotateXY(RotateXY)

Variant for RotateXY

§

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

§

PragmaLoop(PragmaLoop)

Variant for PragmaLoop

§

InputBit(InputBit)

Variant for InputBit

§

PhaseShiftedControlledPhase(PhaseShiftedControlledPhase)

Variant for PhaseShiftedControlledPhase

§

ControlledRotateX(ControlledRotateX)

Variant for ControlledRotateX

§

ControlledRotateXY(ControlledRotateXY)

Variant for ControlledRotateXY

§

ControlledControlledPauliZ(ControlledControlledPauliZ)

Variant for ControlledControlledPauliZ

§

ControlledControlledPhaseShift(ControlledControlledPhaseShift)

Variant for ControlledControlledPhaseShift

§

Toffoli(Toffoli)

Variant for Toffoli

§

GPi(GPi)

Variant for GPi

§

GPi2(GPi2)

Variant for GPi2

§

PragmaControlledCircuit(PragmaControlledCircuit)

Variant for PragmaControlledCircuit

§

Squeezing(Squeezing)

Variant for Squeezing

§

PhaseShift(PhaseShift)

Variant for PhaseShift

§

BeamSplitter(BeamSplitter)

Variant for BeamSplitter

§

PhotonDetection(PhotonDetection)

Variant for PhotonDetection

§

Identity(Identity)

Variant for Identity

§

PragmaAnnotatedOp(PragmaAnnotatedOp)

Variant for PragmaAnnotatedOp

§

EchoCrossResonance(EchoCrossResonance)

Variant for EchoCrossResonance

§

PhaseDisplacement(PhaseDisplacement)

Variant for PhaseDisplacement

§

QuantumRabi(QuantumRabi)

Variant for QuantumRabi

§

LongitudinalCoupling(LongitudinalCoupling)

Variant for LongitudinalCoupling

§

JaynesCummings(JaynesCummings)

Variant for JaynesCummings

§

SingleExcitationStore(SingleExcitationStore)

Variant for SingleExcitationStore

§

SingleExcitationLoad(SingleExcitationLoad)

Variant for SingleExcitationLoad

§

CZQubitResonator(CZQubitResonator)

Variant for CZQubitResonator

Trait Implementations§

source§

impl Clone for Operation

source§

fn clone(&self) -> Operation

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Operation

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Operation

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<BeamSplitter> for Operation

Implements the From trait from this Operation.

source§

fn from(v: BeamSplitter) -> Self

Performs the conversion.

source§

impl From<Bogoliubov> for Operation

Implements the From trait from this Operation.

source§

fn from(v: Bogoliubov) -> Self

Performs the conversion.

source§

impl From<CNOT> for Operation

Implements the From trait from this Operation.

source§

fn from(v: CNOT) -> Self

Performs the conversion.

source§

impl From<CZQubitResonator> for Operation

Implements the From trait from this Operation.

source§

fn from(v: CZQubitResonator) -> Self

Performs the conversion.

source§

impl From<ComplexPMInteraction> for Operation

Implements the From trait from this Operation.

source§

fn from(v: ComplexPMInteraction) -> Self

Performs the conversion.

source§

impl From<ConstantGateOperation> for Operation

source§

fn from(op: ConstantGateOperation) -> Self

Converts to this type from the input type.
source§

impl From<ControlledControlledPauliZ> for Operation

Implements the From trait from this Operation.

source§

fn from(v: ControlledControlledPauliZ) -> Self

Performs the conversion.

source§

impl From<ControlledControlledPhaseShift> for Operation

Implements the From trait from this Operation.

source§

fn from(v: ControlledControlledPhaseShift) -> Self

Performs the conversion.

source§

impl From<ControlledPauliY> for Operation

Implements the From trait from this Operation.

source§

fn from(v: ControlledPauliY) -> Self

Performs the conversion.

source§

impl From<ControlledPauliZ> for Operation

Implements the From trait from this Operation.

source§

fn from(v: ControlledPauliZ) -> Self

Performs the conversion.

source§

impl From<ControlledPhaseShift> for Operation

Implements the From trait from this Operation.

source§

fn from(v: ControlledPhaseShift) -> Self

Performs the conversion.

source§

impl From<ControlledRotateX> for Operation

Implements the From trait from this Operation.

source§

fn from(v: ControlledRotateX) -> Self

Performs the conversion.

source§

impl From<ControlledRotateXY> for Operation

Implements the From trait from this Operation.

source§

fn from(v: ControlledRotateXY) -> Self

Performs the conversion.

source§

impl From<Definition> for Operation

source§

fn from(op: Definition) -> Self

Converts to this type from the input type.
source§

impl From<DefinitionBit> for Operation

Implements the From trait from this Operation.

source§

fn from(v: DefinitionBit) -> Self

Performs the conversion.

source§

impl From<DefinitionComplex> for Operation

Implements the From trait from this Operation.

source§

fn from(v: DefinitionComplex) -> Self

Performs the conversion.

source§

impl From<DefinitionFloat> for Operation

Implements the From trait from this Operation.

source§

fn from(v: DefinitionFloat) -> Self

Performs the conversion.

source§

impl From<DefinitionUsize> for Operation

Implements the From trait from this Operation.

source§

fn from(v: DefinitionUsize) -> Self

Performs the conversion.

source§

impl From<EchoCrossResonance> for Operation

Implements the From trait from this Operation.

source§

fn from(v: EchoCrossResonance) -> Self

Performs the conversion.

source§

impl From<FSwap> for Operation

Implements the From trait from this Operation.

source§

fn from(v: FSwap) -> Self

Performs the conversion.

source§

impl From<Fsim> for Operation

Implements the From trait from this Operation.

source§

fn from(v: Fsim) -> Self

Performs the conversion.

source§

impl From<GPi> for Operation

Implements the From trait from this Operation.

source§

fn from(v: GPi) -> Self

Performs the conversion.

source§

impl From<GPi2> for Operation

Implements the From trait from this Operation.

source§

fn from(v: GPi2) -> Self

Performs the conversion.

source§

impl From<GateOperation> for Operation

source§

fn from(op: GateOperation) -> Self

Converts to this type from the input type.
source§

impl From<GivensRotation> for Operation

Implements the From trait from this Operation.

source§

fn from(v: GivensRotation) -> Self

Performs the conversion.

source§

impl From<GivensRotationLittleEndian> for Operation

Implements the From trait from this Operation.

source§

fn from(v: GivensRotationLittleEndian) -> Self

Performs the conversion.

source§

impl From<Hadamard> for Operation

Implements the From trait from this Operation.

source§

fn from(v: Hadamard) -> Self

Performs the conversion.

source§

impl From<ISwap> for Operation

Implements the From trait from this Operation.

source§

fn from(v: ISwap) -> Self

Performs the conversion.

source§

impl From<Identity> for Operation

Implements the From trait from this Operation.

source§

fn from(v: Identity) -> Self

Performs the conversion.

source§

impl From<InputBit> for Operation

Implements the From trait from this Operation.

source§

fn from(v: InputBit) -> Self

Performs the conversion.

source§

impl From<InputSymbolic> for Operation

Implements the From trait from this Operation.

source§

fn from(v: InputSymbolic) -> Self

Performs the conversion.

source§

impl From<InvSqrtISwap> for Operation

Implements the From trait from this Operation.

source§

fn from(v: InvSqrtISwap) -> Self

Performs the conversion.

source§

impl From<InvSqrtPauliX> for Operation

Implements the From trait from this Operation.

source§

fn from(v: InvSqrtPauliX) -> Self

Performs the conversion.

source§

impl From<JaynesCummings> for Operation

Implements the From trait from this Operation.

source§

fn from(v: JaynesCummings) -> Self

Performs the conversion.

source§

impl From<LongitudinalCoupling> for Operation

Implements the From trait from this Operation.

source§

fn from(v: LongitudinalCoupling) -> Self

Performs the conversion.

source§

impl From<MeasureQubit> for Operation

Implements the From trait from this Operation.

source§

fn from(v: MeasureQubit) -> Self

Performs the conversion.

source§

impl From<ModeGateOperation> for Operation

source§

fn from(op: ModeGateOperation) -> Self

Converts to this type from the input type.
source§

impl From<MolmerSorensenXX> for Operation

Implements the From trait from this Operation.

source§

fn from(v: MolmerSorensenXX) -> Self

Performs the conversion.

source§

impl From<MultiQubitGateOperation> for Operation

source§

fn from(op: MultiQubitGateOperation) -> Self

Converts to this type from the input type.
source§

impl From<MultiQubitMS> for Operation

Implements the From trait from this Operation.

source§

fn from(v: MultiQubitMS) -> Self

Performs the conversion.

source§

impl From<MultiQubitOperation> for Operation

source§

fn from(op: MultiQubitOperation) -> Self

Converts to this type from the input type.
source§

impl From<MultiQubitZZ> for Operation

Implements the From trait from this Operation.

source§

fn from(v: MultiQubitZZ) -> Self

Performs the conversion.

source§

impl From<PMInteraction> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PMInteraction) -> Self

Performs the conversion.

source§

impl From<PauliX> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PauliX) -> Self

Performs the conversion.

source§

impl From<PauliY> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PauliY) -> Self

Performs the conversion.

source§

impl From<PauliZ> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PauliZ) -> Self

Performs the conversion.

source§

impl From<PhaseDisplacement> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PhaseDisplacement) -> Self

Performs the conversion.

source§

impl From<PhaseShift> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PhaseShift) -> Self

Performs the conversion.

source§

impl From<PhaseShiftState0> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PhaseShiftState0) -> Self

Performs the conversion.

source§

impl From<PhaseShiftState1> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PhaseShiftState1) -> Self

Performs the conversion.

source§

impl From<PhaseShiftedControlledPhase> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PhaseShiftedControlledPhase) -> Self

Performs the conversion.

source§

impl From<PhaseShiftedControlledZ> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PhaseShiftedControlledZ) -> Self

Performs the conversion.

source§

impl From<PhotonDetection> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PhotonDetection) -> Self

Performs the conversion.

source§

impl From<PragmaActiveReset> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaActiveReset) -> Self

Performs the conversion.

source§

impl From<PragmaAnnotatedOp> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaAnnotatedOp) -> Self

Performs the conversion.

source§

impl From<PragmaBoostNoise> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaBoostNoise) -> Self

Performs the conversion.

source§

impl From<PragmaChangeDevice> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaChangeDevice) -> Self

Performs the conversion.

source§

impl From<PragmaConditional> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaConditional) -> Self

Performs the conversion.

source§

impl From<PragmaControlledCircuit> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaControlledCircuit) -> Self

Performs the conversion.

source§

impl From<PragmaDamping> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaDamping) -> Self

Performs the conversion.

source§

impl From<PragmaDephasing> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaDephasing) -> Self

Performs the conversion.

source§

impl From<PragmaDepolarising> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaDepolarising) -> Self

Performs the conversion.

source§

impl From<PragmaGeneralNoise> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaGeneralNoise) -> Self

Performs the conversion.

source§

impl From<PragmaGetDensityMatrix> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaGetDensityMatrix) -> Self

Performs the conversion.

source§

impl From<PragmaGetOccupationProbability> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaGetOccupationProbability) -> Self

Performs the conversion.

source§

impl From<PragmaGetPauliProduct> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaGetPauliProduct) -> Self

Performs the conversion.

source§

impl From<PragmaGetStateVector> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaGetStateVector) -> Self

Performs the conversion.

source§

impl From<PragmaGlobalPhase> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaGlobalPhase) -> Self

Performs the conversion.

source§

impl From<PragmaLoop> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaLoop) -> Self

Performs the conversion.

source§

impl From<PragmaNoiseOperation> for Operation

source§

fn from(op: PragmaNoiseOperation) -> Self

Converts to this type from the input type.
source§

impl From<PragmaNoiseProbaOperation> for Operation

source§

fn from(op: PragmaNoiseProbaOperation) -> Self

Converts to this type from the input type.
source§

impl From<PragmaOperation> for Operation

source§

fn from(op: PragmaOperation) -> Self

Converts to this type from the input type.
source§

impl From<PragmaOverrotation> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaOverrotation) -> Self

Performs the conversion.

source§

impl From<PragmaRandomNoise> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaRandomNoise) -> Self

Performs the conversion.

source§

impl From<PragmaRepeatGate> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaRepeatGate) -> Self

Performs the conversion.

source§

impl From<PragmaRepeatedMeasurement> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaRepeatedMeasurement) -> Self

Performs the conversion.

source§

impl From<PragmaSetDensityMatrix> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaSetDensityMatrix) -> Self

Performs the conversion.

source§

impl From<PragmaSetNumberOfMeasurements> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaSetNumberOfMeasurements) -> Self

Performs the conversion.

source§

impl From<PragmaSetStateVector> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaSetStateVector) -> Self

Performs the conversion.

source§

impl From<PragmaSleep> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaSleep) -> Self

Performs the conversion.

source§

impl From<PragmaStartDecompositionBlock> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaStartDecompositionBlock) -> Self

Performs the conversion.

source§

impl From<PragmaStopDecompositionBlock> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaStopDecompositionBlock) -> Self

Performs the conversion.

source§

impl From<PragmaStopParallelBlock> for Operation

Implements the From trait from this Operation.

source§

fn from(v: PragmaStopParallelBlock) -> Self

Performs the conversion.

source§

impl From<Qsim> for Operation

Implements the From trait from this Operation.

source§

fn from(v: Qsim) -> Self

Performs the conversion.

source§

impl From<QuantumRabi> for Operation

Implements the From trait from this Operation.

source§

fn from(v: QuantumRabi) -> Self

Performs the conversion.

source§

impl From<RotateAroundSphericalAxis> for Operation

Implements the From trait from this Operation.

source§

fn from(v: RotateAroundSphericalAxis) -> Self

Performs the conversion.

source§

impl From<RotateX> for Operation

Implements the From trait from this Operation.

source§

fn from(v: RotateX) -> Self

Performs the conversion.

source§

impl From<RotateXY> for Operation

Implements the From trait from this Operation.

source§

fn from(v: RotateXY) -> Self

Performs the conversion.

source§

impl From<RotateY> for Operation

Implements the From trait from this Operation.

source§

fn from(v: RotateY) -> Self

Performs the conversion.

source§

impl From<RotateZ> for Operation

Implements the From trait from this Operation.

source§

fn from(v: RotateZ) -> Self

Performs the conversion.

source§

impl From<Rotation> for Operation

source§

fn from(op: Rotation) -> Self

Converts to this type from the input type.
source§

impl From<SGate> for Operation

Implements the From trait from this Operation.

source§

fn from(v: SGate) -> Self

Performs the conversion.

source§

impl From<SWAP> for Operation

Implements the From trait from this Operation.

source§

fn from(v: SWAP) -> Self

Performs the conversion.

source§

impl From<SingleExcitationLoad> for Operation

Implements the From trait from this Operation.

source§

fn from(v: SingleExcitationLoad) -> Self

Performs the conversion.

source§

impl From<SingleExcitationStore> for Operation

Implements the From trait from this Operation.

source§

fn from(v: SingleExcitationStore) -> Self

Performs the conversion.

source§

impl From<SingleModeGateOperation> for Operation

source§

fn from(op: SingleModeGateOperation) -> Self

Converts to this type from the input type.
source§

impl From<SingleModeOperation> for Operation

source§

fn from(op: SingleModeOperation) -> Self

Converts to this type from the input type.
source§

impl From<SingleQubitGate> for Operation

Implements the From trait from this Operation.

source§

fn from(v: SingleQubitGate) -> Self

Performs the conversion.

source§

impl From<SingleQubitGateOperation> for Operation

source§

fn from(op: SingleQubitGateOperation) -> Self

Converts to this type from the input type.
source§

impl From<SingleQubitOperation> for Operation

source§

fn from(op: SingleQubitOperation) -> Self

Converts to this type from the input type.
source§

impl From<SpinInteraction> for Operation

Implements the From trait from this Operation.

source§

fn from(v: SpinInteraction) -> Self

Performs the conversion.

source§

impl From<SpinsAnalogOperation> for Operation

source§

fn from(op: SpinsAnalogOperation) -> Self

Converts to this type from the input type.
source§

impl From<SqrtISwap> for Operation

Implements the From trait from this Operation.

source§

fn from(v: SqrtISwap) -> Self

Performs the conversion.

source§

impl From<SqrtPauliX> for Operation

Implements the From trait from this Operation.

source§

fn from(v: SqrtPauliX) -> Self

Performs the conversion.

source§

impl From<Squeezing> for Operation

Implements the From trait from this Operation.

source§

fn from(v: Squeezing) -> Self

Performs the conversion.

source§

impl From<TGate> for Operation

Implements the From trait from this Operation.

source§

fn from(v: TGate) -> Self

Performs the conversion.

source§

impl From<ThreeQubitGateOperation> for Operation

source§

fn from(op: ThreeQubitGateOperation) -> Self

Converts to this type from the input type.
source§

impl From<ThreeQubitOperation> for Operation

source§

fn from(op: ThreeQubitOperation) -> Self

Converts to this type from the input type.
source§

impl From<Toffoli> for Operation

Implements the From trait from this Operation.

source§

fn from(v: Toffoli) -> Self

Performs the conversion.

source§

impl From<TwoModeGateOperation> for Operation

source§

fn from(op: TwoModeGateOperation) -> Self

Converts to this type from the input type.
source§

impl From<TwoModeOperation> for Operation

source§

fn from(op: TwoModeOperation) -> Self

Converts to this type from the input type.
source§

impl From<TwoQubitGateOperation> for Operation

source§

fn from(op: TwoQubitGateOperation) -> Self

Converts to this type from the input type.
source§

impl From<TwoQubitOperation> for Operation

source§

fn from(op: TwoQubitOperation) -> Self

Converts to this type from the input type.
source§

impl From<VariableMSXX> for Operation

Implements the From trait from this Operation.

source§

fn from(v: VariableMSXX) -> Self

Performs the conversion.

source§

impl From<XY> for Operation

Implements the From trait from this Operation.

source§

fn from(v: XY) -> Self

Performs the conversion.

source§

impl InvolveQubits for Operation

Implements InvolveQubits trait for the qubits involved in this Operation.

source§

fn involved_qubits(&self) -> InvolvedQubits

Returns all qubits involved in operation.
source§

fn involved_classical(&self) -> InvolvedClassical

Returns all classical registers involved in operation.
source§

impl Operate for Operation

Implements the universal basic trait Operate for this Operation.

source§

fn tags(&self) -> &'static [&'static str]

Returns tags classifying the type of the Operation.

source§

fn hqslang(&self) -> &'static str

Returns hqslang name of the Operation.

source§

fn is_parametrized(&self) -> bool

Returns true when Operation has symbolic parameters.

source§

impl PartialEq for Operation

source§

fn eq(&self, other: &Operation) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Operation

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Substitute for Operation

Implements Substitute trait allowing to replace symbolic parameters and to perform qubit mappings.

source§

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>

Remaps the qubits in clone of the operation.

source§

impl SupportedVersion for Operation

source§

fn minimum_supported_roqoqo_version(&self) -> (u32, u32, u32)

Returns the minimum roqoqo version that supports the operation. Read more
source§

impl TryFrom<&Operation> for ConstantGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for Definition

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for GateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for ModeGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for MultiQubitGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for MultiQubitOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for PragmaNoiseOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for PragmaNoiseProbaOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for PragmaOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for Rotation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for SingleModeGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for SingleModeOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for SingleQubitGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for SingleQubitOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for SpinsAnalogOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for ThreeQubitGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for ThreeQubitOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for TwoModeGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for TwoModeOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for TwoQubitGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<&Operation> for TwoQubitOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: &Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for BeamSplitter

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for Bogoliubov

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for CNOT

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for CZQubitResonator

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ComplexPMInteraction

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ConstantGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for ControlledControlledPauliZ

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ControlledControlledPhaseShift

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ControlledPauliY

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ControlledPauliZ

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ControlledPhaseShift

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ControlledRotateX

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ControlledRotateXY

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for Definition

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for DefinitionBit

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for DefinitionComplex

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for DefinitionFloat

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for DefinitionUsize

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for EchoCrossResonance

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for FSwap

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for Fsim

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for GPi

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for GPi2

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for GateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for GivensRotation

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for GivensRotationLittleEndian

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for Hadamard

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ISwap

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for Identity

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for InputBit

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for InputSymbolic

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for InvSqrtISwap

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for InvSqrtPauliX

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for JaynesCummings

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for LongitudinalCoupling

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for MeasureQubit

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ModeGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for MolmerSorensenXX

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for MultiQubitGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for MultiQubitMS

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for MultiQubitOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for MultiQubitZZ

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PMInteraction

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PauliX

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PauliY

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PauliZ

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PhaseDisplacement

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PhaseShift

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PhaseShiftState0

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PhaseShiftState1

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PhaseShiftedControlledPhase

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PhaseShiftedControlledZ

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PhotonDetection

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaActiveReset

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaAnnotatedOp

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaBoostNoise

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaChangeDevice

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaConditional

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaControlledCircuit

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaDamping

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaDephasing

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaDepolarising

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaGeneralNoise

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaGetDensityMatrix

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaGetOccupationProbability

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaGetPauliProduct

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaGetStateVector

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaGlobalPhase

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaLoop

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaNoiseOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for PragmaNoiseProbaOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for PragmaOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for PragmaOverrotation

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaRandomNoise

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaRepeatGate

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaRepeatedMeasurement

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaSetDensityMatrix

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaSetNumberOfMeasurements

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaSetStateVector

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaSleep

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaStartDecompositionBlock

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaStopDecompositionBlock

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for PragmaStopParallelBlock

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for Qsim

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for QuantumRabi

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for RotateAroundSphericalAxis

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for RotateX

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for RotateXY

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for RotateY

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for RotateZ

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for Rotation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for SGate

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for SWAP

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for SingleExcitationLoad

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for SingleExcitationStore

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for SingleModeGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for SingleModeOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for SingleQubitGate

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for SingleQubitGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for SingleQubitOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for SpinInteraction

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for SpinsAnalogOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for SqrtISwap

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for SqrtPauliX

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for Squeezing

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for TGate

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for ThreeQubitGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for ThreeQubitOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for Toffoli

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for TwoModeGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for TwoModeOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for TwoQubitGateOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for TwoQubitOperation

§

type Error = RoqoqoError

The type returned in the event of a conversion error.
source§

fn try_from(op: Operation) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Operation> for VariableMSXX

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl TryFrom<Operation> for XY

Implements the core::convert::TryFrom trait into this Operation.

§

type Error = &'static str

The type returned in case of a conversion error.

source§

fn try_from(e: Operation) -> Result<Self, Self::Error>

Performs the conversion.

source§

impl StructuralPartialEq for Operation

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

source§

fn to_subset(&self) -> Option<SS>

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

fn is_in_subset(&self) -> bool

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

fn to_subset_unchecked(&self) -> SS

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

fn from_subset(element: &SS) -> SP

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

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,