View source on GitHub |
Search through a FermionOperator string and return the largest even
fqe.openfermion_utils.largest_operator_index(
ops: "FermionOperator"
) -> Tuple[int, int]
value and the largest odd value to find the total dimension of the matrix and the size of the spin blocks
Args | |
---|---|
ops (OpenFermion operators) - a string of operators comprising a Hamiltonian |
Returns | |
---|---|
int, int - the largest even integer and the largest odd integer of the indexes passed to the subroutine. |