qiskit.quantum_info.PauliList.commutes¶
- PauliList.commutes(other, qargs=None)[código fonte]¶
Return True for each Pauli that commutes with other.
- Parâmetros
other (PauliList) – another PauliList operator.
qargs (list) – qubits to apply dot product on (default:
None
).
- Retorno
True
if Paulis commute,False
if they anti-commute.- Tipo de retorno
bool