Method of PauliTerm.
commutes_with(const PauliTerm other) -> bool
Checks if the PauliTerm term commutes with another PauliTerm other, i.e. [term,other] .
Parameters
- other: PauliTerm on the right hand side of the commutator
Returns
boolean indicating if the PauliTerms commute