We're celebrating World Quantum Day 2022! Join us

fqe.openfermion_utils.bit_to_fermion_creation

Convert an occupation bitstring representation for a single spin case

into openfermion operators

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

ops (Openfermion operators) - a FermionOperator string