Quantum ToolkitTypesPauliTermMethodsweightOn this pageweight Method of PauliTerm. weight() -> integer Returns the weight, the number of non-identity operators, of the PauliTerm