#[non_exhaustive]pub enum SingleModeGateOperation {
Squeezing(Squeezing),
PhaseShift(PhaseShift),
PhaseDisplacement(PhaseDisplacement),
QuantumRabi(QuantumRabi),
LongitudinalCoupling(LongitudinalCoupling),
JaynesCummings(JaynesCummings),
SingleExcitationStore(SingleExcitationStore),
SingleExcitationLoad(SingleExcitationLoad),
CZQubitResonator(CZQubitResonator),
}
Expand description
Enum of all Operations implementing OperateSingleModeGate
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Squeezing(Squeezing)
Variant for Squeezing
PhaseShift(PhaseShift)
Variant for PhaseShift
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 SingleModeGateOperation
impl Clone for SingleModeGateOperation
source§fn clone(&self) -> SingleModeGateOperation
fn clone(&self) -> SingleModeGateOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SingleModeGateOperation
impl Debug for SingleModeGateOperation
source§impl<'de> Deserialize<'de> for SingleModeGateOperation
impl<'de> Deserialize<'de> for SingleModeGateOperation
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 SingleModeGateOperation
impl From<CZQubitResonator> for SingleModeGateOperation
Implements the From trait from this Operation.
source§fn from(v: CZQubitResonator) -> Self
fn from(v: CZQubitResonator) -> Self
Performs the conversion.
source§impl From<JaynesCummings> for SingleModeGateOperation
impl From<JaynesCummings> for SingleModeGateOperation
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 SingleModeGateOperation
impl From<LongitudinalCoupling> for SingleModeGateOperation
Implements the From trait from this Operation.
source§fn from(v: LongitudinalCoupling) -> Self
fn from(v: LongitudinalCoupling) -> Self
Performs the conversion.
source§impl From<PhaseDisplacement> for SingleModeGateOperation
impl From<PhaseDisplacement> for SingleModeGateOperation
Implements the From trait from this Operation.
source§fn from(v: PhaseDisplacement) -> Self
fn from(v: PhaseDisplacement) -> Self
Performs the conversion.
source§impl From<PhaseShift> for SingleModeGateOperation
impl From<PhaseShift> for SingleModeGateOperation
Implements the From trait from this Operation.
source§fn from(v: PhaseShift) -> Self
fn from(v: PhaseShift) -> Self
Performs the conversion.
source§impl From<QuantumRabi> for SingleModeGateOperation
impl From<QuantumRabi> for SingleModeGateOperation
Implements the From trait from this Operation.
source§fn from(v: QuantumRabi) -> Self
fn from(v: QuantumRabi) -> Self
Performs the conversion.
source§impl From<SingleExcitationLoad> for SingleModeGateOperation
impl From<SingleExcitationLoad> for SingleModeGateOperation
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 SingleModeGateOperation
impl From<SingleExcitationStore> for SingleModeGateOperation
Implements the From trait from this Operation.
source§fn from(v: SingleExcitationStore) -> Self
fn from(v: SingleExcitationStore) -> Self
Performs the conversion.
source§impl From<SingleModeGateOperation> for Operation
impl From<SingleModeGateOperation> for Operation
source§fn from(op: SingleModeGateOperation) -> Self
fn from(op: SingleModeGateOperation) -> Self
source§impl From<Squeezing> for SingleModeGateOperation
impl From<Squeezing> for SingleModeGateOperation
Implements the From trait from this Operation.
source§impl InvolveModes for SingleModeGateOperation
impl InvolveModes for SingleModeGateOperation
Implements InvolveModes trait for the modes involved in this Operation.
source§fn involved_modes(&self) -> InvolvedModes
fn involved_modes(&self) -> InvolvedModes
source§impl InvolveQubits for SingleModeGateOperation
impl InvolveQubits for SingleModeGateOperation
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 SingleModeGateOperation
impl Operate for SingleModeGateOperation
Implements the universal basic trait Operate for this Operation.
source§impl OperateSingleMode for SingleModeGateOperation
impl OperateSingleMode for SingleModeGateOperation
Implements OperateSingleMode trait for this Operation acting on exactly one bosonic mode.
source§impl PartialEq for SingleModeGateOperation
impl PartialEq for SingleModeGateOperation
source§fn eq(&self, other: &SingleModeGateOperation) -> bool
fn eq(&self, other: &SingleModeGateOperation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SingleModeGateOperation
impl Serialize for SingleModeGateOperation
source§impl Substitute for SingleModeGateOperation
impl Substitute for SingleModeGateOperation
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 SubstituteModes for SingleModeGateOperation
impl SubstituteModes for SingleModeGateOperation
Implements SubstituteModes trait allowing to perform bosonic mode mappings.
source§fn remap_modes(
&self,
mapping: &HashMap<usize, usize>
) -> Result<Self, RoqoqoError>
fn remap_modes( &self, mapping: &HashMap<usize, usize> ) -> Result<Self, RoqoqoError>
Remaps the bosonic modes in clone of the operation.
source§impl TryFrom<&Operation> for SingleModeGateOperation
impl TryFrom<&Operation> for SingleModeGateOperation
source§impl TryFrom<Operation> for SingleModeGateOperation
impl TryFrom<Operation> for SingleModeGateOperation
source§impl TryFrom<SingleModeGateOperation> for CZQubitResonator
impl TryFrom<SingleModeGateOperation> for CZQubitResonator
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleModeGateOperation> for JaynesCummings
impl TryFrom<SingleModeGateOperation> for JaynesCummings
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleModeGateOperation> for LongitudinalCoupling
impl TryFrom<SingleModeGateOperation> for LongitudinalCoupling
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleModeGateOperation> for PhaseDisplacement
impl TryFrom<SingleModeGateOperation> for PhaseDisplacement
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleModeGateOperation> for PhaseShift
impl TryFrom<SingleModeGateOperation> for PhaseShift
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleModeGateOperation> for QuantumRabi
impl TryFrom<SingleModeGateOperation> for QuantumRabi
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleModeGateOperation> for SingleExcitationLoad
impl TryFrom<SingleModeGateOperation> for SingleExcitationLoad
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleModeGateOperation> for SingleExcitationStore
impl TryFrom<SingleModeGateOperation> for SingleExcitationStore
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<SingleModeGateOperation> for Squeezing
impl TryFrom<SingleModeGateOperation> for Squeezing
Implements the core::convert::TryFrom trait into this Operation.
impl OperateModeGate for SingleModeGateOperation
impl OperateSingleModeGate for SingleModeGateOperation
impl StructuralPartialEq for SingleModeGateOperation
Auto Trait Implementations§
impl Freeze for SingleModeGateOperation
impl RefUnwindSafe for SingleModeGateOperation
impl Send for SingleModeGateOperation
impl Sync for SingleModeGateOperation
impl Unpin for SingleModeGateOperation
impl UnwindSafe for SingleModeGateOperation
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.