[][src]Enum qip::pipeline::InitialState

pub enum InitialState<P: Precision> {
    FullState(Vec<Complex<P>>),
    Index(u64),
}

An initial state supplier for building quantum states.

Variants

FullState(Vec<Complex<P>>)

A fully qualified state, each |x> has an amplitude

Index(u64)

A single index with the whole weight.

Trait Implementations

impl<P: Debug + Precision> Debug for InitialState<P>[src]

Auto Trait Implementations

impl<P> Unpin for InitialState<P> where
    P: Unpin

impl<P> Send for InitialState<P>

impl<P> Sync for InitialState<P>

impl<P> RefUnwindSafe for InitialState<P> where
    P: RefUnwindSafe

impl<P> UnwindSafe for InitialState<P> where
    P: UnwindSafe

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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