fqe.hamiltonians.hamiltonian_utils.gather_nbody_spin_sectors

Given an nbody FermionOperator string, split it into alpha

and beta spin sectors. This routine assumes that there are equal numbers of creation and annihilation operators and that they are passed in {creation}{annihilation} order.

operators Operators in the FermionOperator format.