[][src]Enum dqcsim::bindings::dqcs_basis_t

#[repr(C)]pub enum dqcs_basis_t {
    DQCS_BASIS_INVALID,
    DQCS_BASIS_X,
    DQCS_BASIS_Y,
    DQCS_BASIS_Z,
}

Enumeration of Pauli bases.

Variants

DQCS_BASIS_INVALID

Invalid basis. Used as an error return value.

DQCS_BASIS_X

The X basis.

\f[ \psi_X = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & -1 \ 1 & 1 \end{bmatrix} \f]

DQCS_BASIS_Y

The Y basis.

\f[ \psi_Y = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 & i \ i & 1 \end{bmatrix} \f]

DQCS_BASIS_Z

The Z basis.

\f[ \psi_Z = \begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix} \f]

Trait Implementations

impl Clone for dqcs_basis_t[src]

impl Copy for dqcs_basis_t[src]

impl Debug for dqcs_basis_t[src]

impl PartialEq<dqcs_basis_t> for dqcs_basis_t[src]

impl StructuralPartialEq for dqcs_basis_t[src]

impl TryFrom<dqcs_basis_t> for Basis[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for dqcs_basis_t

impl Send for dqcs_basis_t

impl Sync for dqcs_basis_t

impl Unpin for dqcs_basis_t

impl UnwindSafe for dqcs_basis_t

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,