qiskit.quantum_info.PauliTable.commutes¶
- PauliTable.commutes(pauli)[source]¶
Return list of commutation properties for each row with a Pauli.
The returned vector is the same length as the size of the table and contains True for rows that commute with the Pauli, and False for the rows that anti-commute.
- প্যারামিটার
pauli (PauliTable) -- a single Pauli row.
- রিটার্নস
The boolean vector of which rows commute or anti-commute.
- রিটার্ন টাইপ
array
- রেইজেস
QiskitError -- if input is not a single Pauli row.