fqe.openfermion_utils.largest_operator_index

Search through a FermionOperator string and return the largest even

value and the largest odd value to find the total dimension of the matrix and the size of the spin blocks

ops (OpenFermion operators) - a string of operators comprising a Hamiltonian

int, int - the largest even integer and the largest odd integer of the indexes passed to the subroutine.