[][src]Struct qip::iterators::FunctionOpIterator

pub struct FunctionOpIterator<P: Precision> { /* fields omitted */ }

Iterator which provides the indices of nonzero columns for a given function.

Methods

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

Important traits for FunctionOpIterator<P>
pub fn new<F: Fn(u64) -> (u64, f64)>(
    row: u64,
    input_n: u64,
    output_n: u64,
    f: F
) -> FunctionOpIterator<P>
[src]

Build a new iterator using the row index, the number of qubits in the input register, the number in the output register, and a function which maps rows to a column and a phase.

Trait Implementations

impl<P: Precision> Iterator for FunctionOpIterator<P>[src]

type Item = (u64, Complex<P>)

The type of the elements being iterated over.

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

Auto Trait Implementations

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

impl<P> Sync for FunctionOpIterator<P>

impl<P> Send for FunctionOpIterator<P>

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

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

Blanket Implementations

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

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, 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]