fqe.fqe_decorators.fermionops_tomatrix

Convert FermionOperators to matrix

ops (FermionOperator) - input FermionOperator from OpenFermion

norb (int) - the number of orbitals in the system

(numpy.ndarray) - resulting matrix