SparsePauliOp.label_iter

SparsePauliOp.label_iter()[source]

Return a label representation iterator.

This is a lazy iterator that converts each term in the SparsePauliOp into a tuple (label, coeff). To convert the entire table to labels use the to_labels() method.

Returns

label iterator object for the PauliTable.

Return type

LabelIterator