We're celebrating World Quantum Day 2022! Join us

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