Enum roqoqo::operations::SingleQubitGateOperation [−][src]
pub enum SingleQubitGateOperation {
Show 15 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),
}
Expand description
Enum of all Operations implementing OperateSingleQubitGate
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
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.
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.
Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.
Returns alpha_r parameter of operation. Read more
Returns alpha_i parameter of operation. Read more
Returns beta_r parameter of operation. Read more
Returns beta_i parameter of operation. Read more
Returns global_phase parameter of operation. Read more
fn mul<T>(&self, other: &T) -> Result<SingleQubitGate, RoqoqoError> where
T: OperateSingleQubitGate,
fn mul<T>(&self, other: &T) -> Result<SingleQubitGate, RoqoqoError> where
T: OperateSingleQubitGate,
Multiplies two compatible operations implementing OperateSingleQubitGate. Read more
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.
Auto Trait Implementations
impl RefUnwindSafe for SingleQubitGateOperation
impl Send for SingleQubitGateOperation
impl Sync for SingleQubitGateOperation
impl Unpin for SingleQubitGateOperation
impl UnwindSafe for SingleQubitGateOperation
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.