View source on GitHub |
Convert an openfermion FermionOperator object into a bitstring
fqe.openfermion_utils.fermion_operator_to_bitstring(
term: "FermionOperator"
) -> Tuple[int, int]
representation.
Args | |
---|---|
cluster (FermionOperator) - A product of FermionOperators with a coefficient |
Returns | |
---|---|
(bitstring, bitstring) - a pair of bitstrings representing the alpha and beta occupation in the orbitals. |