Struct roqoqo::operations::spin_boson_operations::JaynesCummings
source · pub struct JaynesCummings {
qubit: usize,
mode: usize,
theta: CalculatorFloat,
}
Expand description
The Jaynes-Cummings gate exp(-i * θ * (σ^- * b^† + σ^+ * b))
Fields§
§qubit: usize
The qubit involved.
mode: usize
The bosonic mode involved.
theta: CalculatorFloat
The parameter θ of the interaction
Implementations§
source§impl JaynesCummings
impl JaynesCummings
sourcepub fn theta(&self) -> &CalculatorFloat
pub fn theta(&self) -> &CalculatorFloat
Returns the value of the field theta
.
sourcepub fn new(qubit: usize, mode: usize, theta: CalculatorFloat) -> Self
pub fn new(qubit: usize, mode: usize, theta: CalculatorFloat) -> Self
Creates a new instance of JaynesCummings
.
Trait Implementations§
source§impl Clone for JaynesCummings
impl Clone for JaynesCummings
source§fn clone(&self) -> JaynesCummings
fn clone(&self) -> JaynesCummings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JaynesCummings
impl Debug for JaynesCummings
source§impl<'de> Deserialize<'de> for JaynesCummings
impl<'de> Deserialize<'de> for JaynesCummings
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<JaynesCummings> for ModeGateOperation
impl From<JaynesCummings> for ModeGateOperation
Implements the From trait from this Operation.
source§fn from(v: JaynesCummings) -> Self
fn from(v: JaynesCummings) -> Self
Performs the conversion.
source§impl From<JaynesCummings> for Operation
impl From<JaynesCummings> for Operation
Implements the From trait from this Operation.
source§fn from(v: JaynesCummings) -> Self
fn from(v: JaynesCummings) -> 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<JaynesCummings> for SingleModeOperation
impl From<JaynesCummings> for SingleModeOperation
Implements the From trait from this Operation.
source§fn from(v: JaynesCummings) -> Self
fn from(v: JaynesCummings) -> 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 InvolveModes for JaynesCummings
impl InvolveModes for JaynesCummings
Implements InvolveModes trait for the bosonic modes involved in this Operation.
source§fn involved_modes(&self) -> InvolvedModes
fn involved_modes(&self) -> InvolvedModes
Returns a list of all involved bosonic modes.
source§impl InvolveQubits for JaynesCummings
impl InvolveQubits for JaynesCummings
Implements InvolveQubits trait for the qubits involved in this Operation.
source§fn involved_qubits(&self) -> InvolvedQubits
fn involved_qubits(&self) -> InvolvedQubits
Returns a list of all involved qubits.
source§fn involved_classical(&self) -> InvolvedClassical
fn involved_classical(&self) -> InvolvedClassical
source§impl Operate for JaynesCummings
impl Operate for JaynesCummings
Implements the universal basic trait Operate for this Operation.
source§impl OperateSingleMode for JaynesCummings
impl OperateSingleMode for JaynesCummings
Implements OperateSingleMode trait for this Operation acting on exactly one bosonic mode.
source§impl OperateSingleQubit for JaynesCummings
impl OperateSingleQubit for JaynesCummings
Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.
source§impl PartialEq for JaynesCummings
impl PartialEq for JaynesCummings
source§fn eq(&self, other: &JaynesCummings) -> bool
fn eq(&self, other: &JaynesCummings) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for JaynesCummings
impl Serialize for JaynesCummings
source§impl Substitute for JaynesCummings
impl Substitute for JaynesCummings
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 JaynesCummings
impl SubstituteModes for JaynesCummings
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 modes in clone of the operation.
source§impl SupportedVersion for JaynesCummings
impl SupportedVersion for JaynesCummings
source§impl TryFrom<ModeGateOperation> for JaynesCummings
impl TryFrom<ModeGateOperation> for JaynesCummings
Implements the core::convert::TryFrom trait into this Operation.
source§impl TryFrom<Operation> for JaynesCummings
impl TryFrom<Operation> for JaynesCummings
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<SingleModeOperation> for JaynesCummings
impl TryFrom<SingleModeOperation> for JaynesCummings
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.
impl ImplementedIn1point11 for JaynesCummings
impl OperateModeGate for JaynesCummings
impl OperateSingleModeGate for JaynesCummings
impl StructuralPartialEq for JaynesCummings
Auto Trait Implementations§
impl Freeze for JaynesCummings
impl RefUnwindSafe for JaynesCummings
impl Send for JaynesCummings
impl Sync for JaynesCummings
impl Unpin for JaynesCummings
impl UnwindSafe for JaynesCummings
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.