Enum QuantumOp
pub enum QuantumOp {
Show 21 variants
H(usize),
X(usize),
Y(usize),
Z(usize),
S(usize),
SDG(usize),
T(usize),
TDG(usize),
CX(usize, usize),
CZ(usize, usize),
SWAP(usize, usize),
CCX(usize, usize, usize),
GlobalPhase(Angle),
P(usize, Angle),
RX(usize, Angle),
RY(usize, Angle),
RZ(usize, Angle),
U1(usize, Angle),
U2(usize, Angle, Angle),
U3(usize, Angle, Angle, Angle),
U(usize, Angle, Angle, Angle),
}Expand description
Intermediate Representation (IR) for quantum operations. Pure data structure containing operation definitions.
Variants§
H(usize)
X(usize)
Y(usize)
Z(usize)
S(usize)
SDG(usize)
T(usize)
TDG(usize)
CX(usize, usize)
CZ(usize, usize)
SWAP(usize, usize)
CCX(usize, usize, usize)
GlobalPhase(Angle)
P(usize, Angle)
RX(usize, Angle)
RY(usize, Angle)
RZ(usize, Angle)
U1(usize, Angle)
U2(usize, Angle, Angle)
U3(usize, Angle, Angle, Angle)
U(usize, Angle, Angle, Angle)
Implementations§
Trait Implementations§
impl Eq for QuantumOp
§impl Ord for QuantumOp
impl Ord for QuantumOp
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
§impl PartialOrd for QuantumOp
impl PartialOrd for QuantumOp
impl StructuralPartialEq for QuantumOp
Auto Trait Implementations§
impl Freeze for QuantumOp
impl RefUnwindSafe for QuantumOp
impl Send for QuantumOp
impl Sync for QuantumOp
impl Unpin for QuantumOp
impl UnsafeUnpin for QuantumOp
impl UnwindSafe for QuantumOp
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
Mutably borrows from an owned value. Read more