![]() |
Determine whether the given terms trivially commute.
openfermion.utils.trivially_commutes_dual_basis(
term_a, term_b
)
Assumes the terms are single-term FermionOperators from the plane-wave dual basis Hamiltonian.
Args | |
---|---|
term_a, term_b (FermionOperator): Single-term FermionOperators. |
Returns | |
---|---|
Whether or not the commutator is trivially zero. |