qiskit.quantum_info.Operator.equiv¶
-
Operator.
equiv
(other, rtol=None, atol=None)[source]¶ Return True if operators are equivalent up to global phase.
- Parameters
other (Operator) – an operator object.
rtol (float) – relative tolerance value for comparison.
atol (float) – absolute tolerance value for comparison.
- Returns
True if operators are equivalent up to global phase.
- Return type
bool