Enum roqoqo::operations::GateOperation [−][src]
pub enum GateOperation {
Show 37 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),
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),
MultiQubitMS(MultiQubitMS),
}
Expand description
Enum of all Operations implementing OperateGate
Variants
SingleQubitGate(SingleQubitGate)
Variant for SingleQubitGate
Tuple Fields of SingleQubitGate
RotateZ(RotateZ)
Variant for RotateZ
Tuple Fields of RotateZ
0: RotateZ
RotateX(RotateX)
Variant for RotateX
Tuple Fields of RotateX
0: RotateX
RotateY(RotateY)
Variant for RotateY
Tuple Fields of RotateY
0: RotateY
PauliX(PauliX)
Variant for PauliX
Tuple Fields of PauliX
0: PauliX
PauliY(PauliY)
Variant for PauliY
Tuple Fields of PauliY
0: PauliY
PauliZ(PauliZ)
Variant for PauliZ
Tuple Fields of PauliZ
0: PauliZ
SqrtPauliX(SqrtPauliX)
Variant for SqrtPauliX
Tuple Fields of SqrtPauliX
0: SqrtPauliX
InvSqrtPauliX(InvSqrtPauliX)
Variant for InvSqrtPauliX
Tuple Fields of InvSqrtPauliX
Hadamard(Hadamard)
Variant for Hadamard
Tuple Fields of Hadamard
0: Hadamard
SGate(SGate)
Variant for SGate
Tuple Fields of SGate
0: SGate
TGate(TGate)
Variant for TGate
Tuple Fields of TGate
0: TGate
PhaseShiftState1(PhaseShiftState1)
Variant for PhaseShiftState1
Tuple Fields of PhaseShiftState1
PhaseShiftState0(PhaseShiftState0)
Variant for PhaseShiftState0
Tuple Fields of PhaseShiftState0
RotateAroundSphericalAxis(RotateAroundSphericalAxis)
Variant for RotateAroundSphericalAxis
Tuple Fields of RotateAroundSphericalAxis
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
MultiQubitMS(MultiQubitMS)
Variant for MultiQubitMS
Tuple Fields of MultiQubitMS
0: MultiQubitMS
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.
Performs the conversion.
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.
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.
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.
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.
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 GateOperation
impl Send for GateOperation
impl Sync for GateOperation
impl Unpin for GateOperation
impl UnwindSafe for GateOperation
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.