View source on GitHub |
Convert an openfermion FermionOperator object into the corresponding
fqe.openfermion_utils.fermion_opstring_to_bitstring(
ops
) -> List[List[Any]]
bitstring representation with the appropriate coefficient.
Args | |
---|---|
ops (FermionOperator) - A product of FermionOperators with a coefficient |
Returns | |
---|---|
list(list(int, int, coeff)) - a pair of integers representing a bitstring of alpha and beta occupation in the orbitals. |