We're celebrating World Quantum Day 2022! Join us

openfermion.transforms.opconversions.edit_hamiltonian_for_spin

Removes the Z terms acting on the orbital from the Hamiltonian.