qiskit.quantum_info.PauliList.commutes¶
- PauliList.commutes(other, qargs=None)[Quellcode]¶
Return True for each Pauli that commutes with other.
- Parameter
other (PauliList) – another PauliList operator.
qargs (list) – qubits to apply dot product on (default:
None
).
- Rückgabe
True
if Paulis commute,False
if they anti-commute.- Rückgabetyp
bool