View source on GitHub |
Convert an occupation bitstring representation for a single spin case
fqe.openfermion_utils.bit_to_fermion_creation(
string: int,
spin: Optional[str] = None
) -> Union[None, 'FermionOperator']
into openfermion operators
Args | |
---|---|
string (bitstring) - a string occupation representation
spin (string) - a flag to indicate if the indexes of the occupation should be converted to alpha, beta or spinless |
Returns | |
---|---|
ops (Openfermion operators) - a FermionOperator string |