qiskit.quantum_info.SparsePauliOp.equiv¶
- SparsePauliOp.equiv(other, atol=None)[source]¶
Check if two SparsePauliOp operators are equivalent.
- Parameters
other (SparsePauliOp) – an operator object.
atol (
Optional
[float
]) – Absolute numerical tolerance for checking equivalence.
- Returns
True if the operator is equivalent to
self
.- Return type
bool