PauliTerm.operations_as_set

PauliTerm.operations_as_set()[source]

Return a frozenset of operations in this term.

Use this in place of id() if the order of operations in the term does not matter.

Returns:frozenset of (op_str, coefficient) representing Pauli operations