#[repr(u8)]
pub enum Pauli {
I,
X,
Y,
Z,
}
Expand description
An element of the single-qubit Pauli group.
Variants
I
The identity operator.
X
The Pauli $X$ operator.
Y
The Pauli $Y$ operator.
Z
The Pauli $Z$ operator.
Trait Implementations
Returns a representation as a unitary matrix.
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
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Pauli
impl UnwindSafe for Pauli
Blanket Implementations
Mutably borrows from an owned value. Read more