View source on GitHub |
Given an nbody FermionOperator string, split it into alpha
fqe.hamiltonians.hamiltonian_utils.gather_nbody_spin_sectors(
operators: "FermionOperator"
) -> fqe.hamiltonians.hamiltonian_utils.Newop
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.
Args | |
---|---|
operators
|
Operators in the FermionOperator format. |