German
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Operator.equiv

Operator.equiv(other, rtol=None, atol=None)[Quellcode]

Return True if operators are equivalent up to global phase.

Parameter
  • other (Operator) – an operator object.

  • rtol (float) – relative tolerance value for comparison.

  • atol (float) – absolute tolerance value for comparison.

Rückgabe

True if operators are equivalent up to global phase.

Rückgabetyp

bool