#[repr(u8)]pub enum Pauli {
X = 0,
Y = 1,
Z = 2,
I = 3,
}Expand description
A single-qubit Pauli operator.
Variants§
X = 0
The $X$ Pauli operator.
Y = 1
The $Y$ Pauli operator.
Z = 2
The $Z$ Pauli operator.
I = 3
The identity operator.
Trait Implementations§
impl Copy for Pauli
impl Eq for Pauli
Source§impl Ord for Pauli
impl Ord for Pauli
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
Source§impl PartialOrd for Pauli
impl PartialOrd for Pauli
impl StructuralPartialEq for Pauli
Auto Trait Implementations§
impl Freeze for Pauli
impl RefUnwindSafe for Pauli
impl Send for Pauli
impl Sync for Pauli
impl Unpin for Pauli
impl UnsafeUnpin for Pauli
impl UnwindSafe for Pauli
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