Enum roqoqo::operations::TwoQubitGateOperation [−][src]
pub enum TwoQubitGateOperation {
Show 21 variants
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),
}
Expand description
Enum of all Operations implementing OperateTwoQubitGate
Variants
CNOT(CNOT)
Variant for CNOT
Tuple Fields of CNOT
0: CNOT
SWAP(SWAP)
Variant for SWAP
Tuple Fields of SWAP
0: SWAP
ISwap(ISwap)
Variant for ISwap
Tuple Fields of ISwap
0: ISwap
FSwap(FSwap)
Variant for FSwap
Tuple Fields of FSwap
0: FSwap
SqrtISwap(SqrtISwap)
Variant for SqrtISwap
Tuple Fields of SqrtISwap
0: SqrtISwap
InvSqrtISwap(InvSqrtISwap)
Variant for InvSqrtISwap
Tuple Fields of InvSqrtISwap
0: InvSqrtISwap
XY(XY)
Variant for XY
Tuple Fields of XY
0: XY
ControlledPhaseShift(ControlledPhaseShift)
Variant for ControlledPhaseShift
Tuple Fields of ControlledPhaseShift
ControlledPauliY(ControlledPauliY)
Variant for ControlledPauliY
Tuple Fields of ControlledPauliY
ControlledPauliZ(ControlledPauliZ)
Variant for ControlledPauliZ
Tuple Fields of ControlledPauliZ
MolmerSorensenXX(MolmerSorensenXX)
Variant for MolmerSorensenXX
Tuple Fields of MolmerSorensenXX
VariableMSXX(VariableMSXX)
Variant for VariableMSXX
Tuple Fields of VariableMSXX
0: VariableMSXX
GivensRotation(GivensRotation)
Variant for GivensRotation
Tuple Fields of GivensRotation
GivensRotationLittleEndian(GivensRotationLittleEndian)
Variant for GivensRotationLittleEndian
Tuple Fields of GivensRotationLittleEndian
Qsim(Qsim)
Variant for Qsim
Tuple Fields of Qsim
0: Qsim
Fsim(Fsim)
Variant for Fsim
Tuple Fields of Fsim
0: Fsim
SpinInteraction(SpinInteraction)
Variant for SpinInteraction
Tuple Fields of SpinInteraction
Bogoliubov(Bogoliubov)
Variant for Bogoliubov
Tuple Fields of Bogoliubov
0: Bogoliubov
PMInteraction(PMInteraction)
Variant for PMInteraction
Tuple Fields of PMInteraction
ComplexPMInteraction(ComplexPMInteraction)
Variant for ComplexPMInteraction
Tuple Fields of ComplexPMInteraction
PhaseShiftedControlledZ(PhaseShiftedControlledZ)
Variant for PhaseShiftedControlledZ
Tuple Fields of PhaseShiftedControlledZ
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Implements the From trait $\textit{from}$ this Operation.
Performs the conversion.
Implements the From trait $\textit{from}$ this Operation.
Implements InvolveQubits trait for the qubits involved in this Operation.
Returns a list of all involved qubits.
Implements the universal basic trait Operate for this Operation.
Returns unitary matrix of the gate.
Trait for Operations acting on exactly two qubits.
Returns KakDecomposition of two qubit gate.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Implements Substitute trait allowing to replace symbolic parameters and to perform qubit mappings.
Substitutes symbolic parameters in clone of the operation.
Remaps the qubits in clone of the operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Implements the core::convert::TryFrom trait $\textit{into}$ this Operation.
Auto Trait Implementations
impl RefUnwindSafe for TwoQubitGateOperation
impl Send for TwoQubitGateOperation
impl Sync for TwoQubitGateOperation
impl Unpin for TwoQubitGateOperation
impl UnwindSafe for TwoQubitGateOperation
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.