German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.SparsePauliOp.simplify

SparsePauliOp.simplify(atol=None, rtol=None)[Quellcode]

Simplify PauliList by combining duplicates and removing zeros.

Parameter
  • atol (float) – Optional. Absolute tolerance for checking if coefficients are zero (Default: 1e-8).

  • rtol (float) – Optional. relative tolerance for checking if coefficients are zero (Default: 1e-5).

Rückgabe

the simplified SparsePauliOp operator.

Rückgabetyp

SparsePauliOp