Enum roqoqo::operations::SingleQubitOperation
source · #[non_exhaustive]pub enum SingleQubitOperation {
Show 32 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),
PragmaActiveReset(PragmaActiveReset),
PragmaDamping(PragmaDamping),
PragmaDepolarising(PragmaDepolarising),
PragmaDephasing(PragmaDephasing),
PragmaRandomNoise(PragmaRandomNoise),
PragmaGeneralNoise(PragmaGeneralNoise),
MeasureQubit(MeasureQubit),
GPi(GPi),
GPi2(GPi2),
Identity(Identity),
QuantumRabi(QuantumRabi),
LongitudinalCoupling(LongitudinalCoupling),
JaynesCummings(JaynesCummings),
SingleExcitationStore(SingleExcitationStore),
SingleExcitationLoad(SingleExcitationLoad),
CZQubitResonator(CZQubitResonator),
}
Expand description
Enum of all Operations implementing OperateSingleQubit
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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
PragmaActiveReset(PragmaActiveReset)
Variant for PragmaActiveReset
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
MeasureQubit(MeasureQubit)
Variant for MeasureQubit
GPi(GPi)
Variant for GPi
GPi2(GPi2)
Variant for GPi2
Identity(Identity)
Variant for Identity
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 SingleQubitOperation
impl Clone for SingleQubitOperation
source§fn clone(&self) -> SingleQubitOperation
fn clone(&self) -> SingleQubitOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SingleQubitOperation
impl Debug for SingleQubitOperation
source§impl<'de> Deserialize<'de> for SingleQubitOperation
impl<'de> Deserialize<'de> for SingleQubitOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<CZQubitResonator> for SingleQubitOperation
impl From<CZQubitResonator> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: CZQubitResonator) -> Self
fn from(v: CZQubitResonator) -> Self
Performs the conversion.
source§impl From<InvSqrtPauliX> for SingleQubitOperation
impl From<InvSqrtPauliX> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: InvSqrtPauliX) -> Self
fn from(v: InvSqrtPauliX) -> Self
Performs the conversion.
source§impl From<JaynesCummings> for SingleQubitOperation
impl From<JaynesCummings> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: JaynesCummings) -> Self
fn from(v: JaynesCummings) -> Self
Performs the conversion.
source§impl From<LongitudinalCoupling> for SingleQubitOperation
impl From<LongitudinalCoupling> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: LongitudinalCoupling) -> Self
fn from(v: LongitudinalCoupling) -> Self
Performs the conversion.
source§impl From<MeasureQubit> for SingleQubitOperation
impl From<MeasureQubit> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: MeasureQubit) -> Self
fn from(v: MeasureQubit) -> Self
Performs the conversion.
source§impl From<PhaseShiftState0> for SingleQubitOperation
impl From<PhaseShiftState0> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PhaseShiftState0) -> Self
fn from(v: PhaseShiftState0) -> Self
Performs the conversion.
source§impl From<PhaseShiftState1> for SingleQubitOperation
impl From<PhaseShiftState1> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PhaseShiftState1) -> Self
fn from(v: PhaseShiftState1) -> Self
Performs the conversion.
source§impl From<PragmaActiveReset> for SingleQubitOperation
impl From<PragmaActiveReset> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaActiveReset) -> Self
fn from(v: PragmaActiveReset) -> Self
Performs the conversion.
source§impl From<PragmaDamping> for SingleQubitOperation
impl From<PragmaDamping> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaDamping) -> Self
fn from(v: PragmaDamping) -> Self
Performs the conversion.
source§impl From<PragmaDephasing> for SingleQubitOperation
impl From<PragmaDephasing> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaDephasing) -> Self
fn from(v: PragmaDephasing) -> Self
Performs the conversion.
source§impl From<PragmaDepolarising> for SingleQubitOperation
impl From<PragmaDepolarising> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaDepolarising) -> Self
fn from(v: PragmaDepolarising) -> Self
Performs the conversion.
source§impl From<PragmaGeneralNoise> for SingleQubitOperation
impl From<PragmaGeneralNoise> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaGeneralNoise) -> Self
fn from(v: PragmaGeneralNoise) -> Self
Performs the conversion.
source§impl From<PragmaRandomNoise> for SingleQubitOperation
impl From<PragmaRandomNoise> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: PragmaRandomNoise) -> Self
fn from(v: PragmaRandomNoise) -> Self
Performs the conversion.
source§impl From<QuantumRabi> for SingleQubitOperation
impl From<QuantumRabi> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: QuantumRabi) -> Self
fn from(v: QuantumRabi) -> Self
Performs the conversion.
source§impl From<RotateAroundSphericalAxis> for SingleQubitOperation
impl From<RotateAroundSphericalAxis> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: RotateAroundSphericalAxis) -> Self
fn from(v: RotateAroundSphericalAxis) -> Self
Performs the conversion.
source§impl From<SingleExcitationLoad> for SingleQubitOperation
impl From<SingleExcitationLoad> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: SingleExcitationLoad) -> Self
fn from(v: SingleExcitationLoad) -> Self
Performs the conversion.
source§impl From<SingleExcitationStore> for SingleQubitOperation
impl From<SingleExcitationStore> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: SingleExcitationStore) -> Self
fn from(v: SingleExcitationStore) -> Self
Performs the conversion.
source§impl From<SingleQubitGate> for SingleQubitOperation
impl From<SingleQubitGate> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: SingleQubitGate) -> Self
fn from(v: SingleQubitGate) -> Self
Performs the conversion.
source§impl From<SingleQubitOperation> for Operation
impl From<SingleQubitOperation> for Operation
source§fn from(op: SingleQubitOperation) -> Self
fn from(op: SingleQubitOperation) -> Self
source§impl From<SqrtPauliX> for SingleQubitOperation
impl From<SqrtPauliX> for SingleQubitOperation
Implements the From trait from this Operation.
source§fn from(v: SqrtPauliX) -> Self
fn from(v: SqrtPauliX) -> Self
Performs the conversion.
source§impl InvolveQubits for SingleQubitOperation
impl InvolveQubits for SingleQubitOperation
Implements InvolveQubits trait for the qubits involved in this Operation.
source§fn involved_qubits(&self) -> InvolvedQubits
fn involved_qubits(&self) -> InvolvedQubits
source§fn involved_classical(&self) -> InvolvedClassical
fn involved_classical(&self) -> InvolvedClassical
source§impl Operate for SingleQubitOperation
impl Operate for SingleQubitOperation
Implements the universal basic trait Operate for this Operation.
source§impl OperateSingleQubit for SingleQubitOperation
impl OperateSingleQubit for SingleQubitOperation
Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.
source§impl PartialEq for SingleQubitOperation
impl PartialEq for SingleQubitOperation
source§fn eq(&self, other: &SingleQubitOperation) -> bool
fn eq(&self, other: &SingleQubitOperation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SingleQubitOperation
impl Serialize for SingleQubitOperation
source§impl Substitute for SingleQubitOperation
impl Substitute for SingleQubitOperation
Implements Substitute trait allowing to replace symbolic parameters and to perform qubit mappings.
source§fn substitute_parameters(
&self,
calculator: &Calculator
) -> Result<Self, RoqoqoError>
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>
fn remap_qubits( &self, mapping: &HashMap<usize, usize> ) -> Result<Self, RoqoqoError>
Remaps the qubits in clone of the operation.
source§impl TryFrom<&Operation> for SingleQubitOperation
impl TryFrom<&Operation> for SingleQubitOperation
source§impl TryFrom<Operation> for SingleQubitOperation
impl TryFrom<Operation> for SingleQubitOperation
source§impl TryFrom<SingleQubitOperation> for CZQubitResonator
impl TryFrom<SingleQubitOperation> for CZQubitResonator
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for GPi
impl TryFrom<SingleQubitOperation> for GPi
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for GPi2
impl TryFrom<SingleQubitOperation> for GPi2
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for Hadamard
impl TryFrom<SingleQubitOperation> for Hadamard
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for Identity
impl TryFrom<SingleQubitOperation> for Identity
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for InvSqrtPauliX
impl TryFrom<SingleQubitOperation> for InvSqrtPauliX
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for JaynesCummings
impl TryFrom<SingleQubitOperation> for JaynesCummings
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for LongitudinalCoupling
impl TryFrom<SingleQubitOperation> for LongitudinalCoupling
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for MeasureQubit
impl TryFrom<SingleQubitOperation> for MeasureQubit
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PauliX
impl TryFrom<SingleQubitOperation> for PauliX
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PauliY
impl TryFrom<SingleQubitOperation> for PauliY
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PauliZ
impl TryFrom<SingleQubitOperation> for PauliZ
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PhaseShiftState0
impl TryFrom<SingleQubitOperation> for PhaseShiftState0
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PhaseShiftState1
impl TryFrom<SingleQubitOperation> for PhaseShiftState1
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PragmaActiveReset
impl TryFrom<SingleQubitOperation> for PragmaActiveReset
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PragmaDamping
impl TryFrom<SingleQubitOperation> for PragmaDamping
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PragmaDephasing
impl TryFrom<SingleQubitOperation> for PragmaDephasing
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PragmaDepolarising
impl TryFrom<SingleQubitOperation> for PragmaDepolarising
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PragmaGeneralNoise
impl TryFrom<SingleQubitOperation> for PragmaGeneralNoise
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for PragmaRandomNoise
impl TryFrom<SingleQubitOperation> for PragmaRandomNoise
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for QuantumRabi
impl TryFrom<SingleQubitOperation> for QuantumRabi
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for RotateAroundSphericalAxis
impl TryFrom<SingleQubitOperation> for RotateAroundSphericalAxis
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for RotateX
impl TryFrom<SingleQubitOperation> for RotateX
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for RotateXY
impl TryFrom<SingleQubitOperation> for RotateXY
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for RotateY
impl TryFrom<SingleQubitOperation> for RotateY
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for RotateZ
impl TryFrom<SingleQubitOperation> for RotateZ
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for SGate
impl TryFrom<SingleQubitOperation> for SGate
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for SingleExcitationLoad
impl TryFrom<SingleQubitOperation> for SingleExcitationLoad
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for SingleExcitationStore
impl TryFrom<SingleQubitOperation> for SingleExcitationStore
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for SingleQubitGate
impl TryFrom<SingleQubitOperation> for SingleQubitGate
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for SqrtPauliX
impl TryFrom<SingleQubitOperation> for SqrtPauliX
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleQubitOperation> for TGate
impl TryFrom<SingleQubitOperation> for TGate
Implements the core::convert::TryFrom trait into this Operation.
impl StructuralPartialEq for SingleQubitOperation
Auto Trait Implementations§
impl Freeze for SingleQubitOperation
impl RefUnwindSafe for SingleQubitOperation
impl Send for SingleQubitOperation
impl Sync for SingleQubitOperation
impl Unpin for SingleQubitOperation
impl UnwindSafe for SingleQubitOperation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.