openfermion.utils.count_qubits

Compute the minimum number of qubits on which operator acts.

Used in the notebooks

Used in the tutorials

operator FermionOperator, QubitOperator, DiagonalCoulombHamiltonian, or PolynomialTensor.

num_qubits int

The minimum number of qubits on which operator acts.

TypeError Operator of invalid type.