[][src]Struct qip::iterators::SwapOpIterator

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

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

Methods

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

Important traits for SwapOpIterator<P>
pub fn new(row: u64, n_qubits: u64) -> SwapOpIterator<P>[src]

Build a new iterator using the row index, and the total number of qubits being swapped (should be a multiple of 2).

Trait Implementations

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

type Item = (u64, Complex<P>)

The type of the elements being iterated over.

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

Auto Trait Implementations

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

impl<P> Sync for SwapOpIterator<P>

impl<P> Send for SwapOpIterator<P>

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

impl<P> RefUnwindSafe for SwapOpIterator<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]