[][src]Struct qip::iterators::MultiOpIterator

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

Iterator which provides the indices of nonzero columns for a given row for a collection of ops.

Methods

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

Important traits for MultiOpIterator<'a, P>
pub fn new(
    iter_ns: &'a [u64],
    iter_outputs: &'a [&'a [(u64, Complex<P>)]]
) -> MultiOpIterator<'a, P>
[src]

Build a new iterator using the number of qubits in each sub iterator, and the outputs of said iterators on a given row.

Trait Implementations

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

type Item = (u64, Complex<P>)

The type of the elements being iterated over.

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

Auto Trait Implementations

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

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

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

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

impl<'a, P> RefUnwindSafe for MultiOpIterator<'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]