Pauli.evolve()
should recognize common rotations by (n*pi/2) as Clifford gates
#12085
Labels
bug
Something isn't working
mod: quantum info
Related to the Quantum Info module (States & Operators)
Environment
What is happening?
The above call to
evolve()
raises an error even thoughqc
contains only Clifford gates.For comparison, qiskit_aer's AerSimulator with method='stabilizer' does not have this problem. Transpiling for this backend leaves the circuit invariant (does not turn the
rz
into az
), so I can't use that as a quick workaround.How can we reproduce the issue?
What should happen?
Common 1- and 2-qubit rotations (rx, ry, rz, rxx, ...) should be recognized as Clifford gates when their gate angles are multiples of pi/2, and the Pauli should evolve successfully. (
if not gate_angle%(np.pi/2): ...
)Related: #12086
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: