PauliBasisChange.get_diagonalizing_clifford¶
- PauliBasisChange.get_diagonalizing_clifford(pauli)[source]¶
Construct a
CircuitOp
with only single-qubit gates which takes the eigenvectors ofpauli
to eigenvectors composed only of |0⟩ and |1⟩ tensor products. Equivalently, finds the basis-change circuit to takepauli
to a diagonalPauliOp
composed only of Z and I tensor products.Note, underlying Pauli bits are in Qiskit endianness, so we need to reverse before we begin composing with Operator flow.