pub enum PauliAxis {
X,
Y,
Z,
}Expand description
One of the three single-qubit Pauli axes: the axis a ProductBasis qubit is an eigenstate of.
Variants§
X
X, with eigenstates |+⟩ (+1) and |-⟩ (-1).
Y
Y, with eigenstates |+i⟩ (+1) and |-i⟩ (-1).
Z
Z, with eigenstates |0⟩ (+1) and |1⟩ (-1).
Trait Implementations§
impl Copy for PauliAxis
impl Eq for PauliAxis
impl StructuralPartialEq for PauliAxis
Auto Trait Implementations§
impl Freeze for PauliAxis
impl RefUnwindSafe for PauliAxis
impl Send for PauliAxis
impl Sync for PauliAxis
impl Unpin for PauliAxis
impl UnwindSafe for PauliAxis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more