Expand description
Iterators over nonzero elements of tensor-product matrices.
Structs§
- Controlled
OpIterator - Iterator which provides the indices of nonzero columns for a given row of a COp
- Function
OpIterator - Iterator which provides the indices of nonzero columns for a given function.
- Matrix
OpIterator - Iterator which provides the indices of nonzero columns for a given row of a matrix
- Multi
OpIterator - Iterator which provides the indices of nonzero columns for a given row for a collection of ops.
- Sparse
Matrix OpIterator - Iterator which provides the indices of nonzero columns for a given row of a sparse matrix
- Swap
OpIterator - Iterator which provides the indices of nonzero columns for a given row of a SwapOp
Enums§
- Matrix
Op - 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_colsbut takes multiple ops at once. TODO: Clean up, remove fold_for_op_cols