Enum roqoqo::operations::TwoModeGateOperation
source · #[non_exhaustive]pub enum TwoModeGateOperation {
BeamSplitter(BeamSplitter),
}
Expand description
Enum of all Operations implementing OperateTwoModeGate
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BeamSplitter(BeamSplitter)
Variant for BeamSplitter
Trait Implementations§
source§impl Clone for TwoModeGateOperation
impl Clone for TwoModeGateOperation
source§fn clone(&self) -> TwoModeGateOperation
fn clone(&self) -> TwoModeGateOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TwoModeGateOperation
impl Debug for TwoModeGateOperation
source§impl<'de> Deserialize<'de> for TwoModeGateOperation
impl<'de> Deserialize<'de> for TwoModeGateOperation
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<BeamSplitter> for TwoModeGateOperation
impl From<BeamSplitter> for TwoModeGateOperation
Implements the From trait from this Operation.
source§fn from(v: BeamSplitter) -> Self
fn from(v: BeamSplitter) -> Self
Performs the conversion.
source§impl From<TwoModeGateOperation> for Operation
impl From<TwoModeGateOperation> for Operation
source§fn from(op: TwoModeGateOperation) -> Self
fn from(op: TwoModeGateOperation) -> Self
source§impl InvolveModes for TwoModeGateOperation
impl InvolveModes for TwoModeGateOperation
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 TwoModeGateOperation
impl InvolveQubits for TwoModeGateOperation
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 TwoModeGateOperation
impl Operate for TwoModeGateOperation
Implements the universal basic trait Operate for this Operation.
source§impl OperateTwoMode for TwoModeGateOperation
impl OperateTwoMode for TwoModeGateOperation
Trait for Operations acting on exactly two bosonic modes.
source§impl PartialEq for TwoModeGateOperation
impl PartialEq for TwoModeGateOperation
source§fn eq(&self, other: &TwoModeGateOperation) -> bool
fn eq(&self, other: &TwoModeGateOperation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TwoModeGateOperation
impl Serialize for TwoModeGateOperation
source§impl Substitute for TwoModeGateOperation
impl Substitute for TwoModeGateOperation
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 TwoModeGateOperation
impl SubstituteModes for TwoModeGateOperation
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 TwoModeGateOperation
impl TryFrom<&Operation> for TwoModeGateOperation
source§impl TryFrom<Operation> for TwoModeGateOperation
impl TryFrom<Operation> for TwoModeGateOperation
source§impl TryFrom<TwoModeGateOperation> for BeamSplitter
impl TryFrom<TwoModeGateOperation> for BeamSplitter
Implements the core::convert::TryFrom trait into this Operation.
impl OperateModeGate for TwoModeGateOperation
impl OperateTwoModeGate for TwoModeGateOperation
impl StructuralPartialEq for TwoModeGateOperation
Auto Trait Implementations§
impl Freeze for TwoModeGateOperation
impl RefUnwindSafe for TwoModeGateOperation
impl Send for TwoModeGateOperation
impl Sync for TwoModeGateOperation
impl Unpin for TwoModeGateOperation
impl UnwindSafe for TwoModeGateOperation
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.