qiskit.quantum_info.SparsePauliOp.equiv¶
- SparsePauliOp.equiv(other)[source]¶
Check if two SparsePauliOp operators are equivalent.
- Parameters
other (SparsePauliOp) -- an operator object.
- Returns
True if the operator is equivalent to
self
.- Return type
bool