[][src]Struct qip::pipeline::LocalQuantumState

pub struct LocalQuantumState<P: Precision> {
    pub n: u64,
    // some fields omitted
}

A basic representation of a quantum state, given by a vector of complex numbers stored locally on the machine (plus an arena of equal size to work in).

Fields

n: u64

Methods

impl<P: Precision> LocalQuantumState<P>[src]

pub fn clone_state(&mut self, natural_order: bool) -> Vec<Complex<P>>[src]

Clone the state in either the natural_order or the internal order.

pub fn set_multithreading(&mut self, multithread: bool)[src]

Trait Implementations

impl<P: Precision> QuantumState<P> for LocalQuantumState<P>[src]

fn new(n: u64) -> LocalQuantumState<P>[src]

Build a new LocalQuantumState

fn new_from_initial_states(
    n: u64,
    states: &[QubitInitialState<P>]
) -> LocalQuantumState<P>
[src]

Build a local state using a set of initial states for subsets of the qubits. These initial states are made from the qubit handles.

fn apply_op(&mut self, op: &QubitOp)[src]

Function to mutate self into the state with op applied.

impl<P: Precision> Clone for LocalQuantumState<P>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<P> Send for LocalQuantumState<P>

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

impl<P> Sync for LocalQuantumState<P>

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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]