We're celebrating World Quantum Day 2022! Join us


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