[][src]Struct qip::iterators::MatrixOpIterator

pub struct MatrixOpIterator<'a, P: Precision> { /* fields omitted */ }

Iterator which provides the indices of nonzero columns for a given row of a matrix

Methods

impl<'a, P: Precision> MatrixOpIterator<'a, P>[src]

Important traits for MatrixOpIterator<'a, P>
pub fn new(row: u64, n: u64, data: &'a [Complex<P>]) -> MatrixOpIterator<P>[src]

Build a new iterator using the row index, the number of qubits in the matrix, and the complex values of the matrix.

Trait Implementations

impl<'a, P: Precision> Iterator for MatrixOpIterator<'a, P>[src]

type Item = (u64, Complex<P>)

The type of the elements being iterated over.

impl<'a, P: Debug + Precision> Debug for MatrixOpIterator<'a, P>[src]

Auto Trait Implementations

impl<'a, P> Unpin for MatrixOpIterator<'a, P>

impl<'a, P> Sync for MatrixOpIterator<'a, P>

impl<'a, P> Send for MatrixOpIterator<'a, P>

impl<'a, P> UnwindSafe for MatrixOpIterator<'a, P> where
    P: RefUnwindSafe

impl<'a, P> RefUnwindSafe for MatrixOpIterator<'a, P> where
    P: RefUnwindSafe

Blanket Implementations

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> From<T> for 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]

impl<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

impl<I> IteratorRandom for I where
    I: Iterator
[src]