German
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.SparsePauliOp.is_unitary

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

Return True if operator is a unitary matrix.

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

True if the operator is unitary, False otherwise.

Rückgabetyp

bool