Module iterators

Module iterators 

Source
Expand description

Iterators over nonzero elements of tensor-product matrices.

Structs§

ControlledOpIterator
Iterator which provides the indices of nonzero columns for a given row of a COp
FunctionOpIterator
Iterator which provides the indices of nonzero columns for a given function.
MatrixOpIterator
Iterator which provides the indices of nonzero columns for a given row of a matrix
MultiOpIterator
Iterator which provides the indices of nonzero columns for a given row for a collection of ops.
SparseMatrixOpIterator
Iterator which provides the indices of nonzero columns for a given row of a sparse matrix
SwapOpIterator
Iterator which provides the indices of nonzero columns for a given row of a SwapOp

Enums§

MatrixOp
Ops which can be applied to quantum states.

Functions§

act_on_iterator
Apply function f to the iterator for op, return result.
fold_for_op_cols
Fold across rows hitting nonzero columns.
sum_for_ops_cols
Like sum_for_op_cols but takes multiple ops at once. TODO: Clean up, remove fold_for_op_cols