API Reference
Man Pages
PauliTerm.
operations_as_set
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.
id()