cleanup_operations
replaces CZ with CZ**-1
#6428
Labels
kind/bug-report
Something doesn't seem to work.
triage/discuss
Needs decision / discussion, bring these up during Cirq Cynque
Description of the issue
cleanup_operations
replaced CZ with CZ**-1 where that was unneccassry. in this case the result is still correct since CZ==CZ**-1. but it's worth invisigating whether this a side effec of CZ==CZ**-1 or a symptom of a bug.Digging deeper into the method the change happens when it calls
cirq.transformers.eject_phased_paulis
How to reproduce the issue
The input (a CNOT written in CZ gateset)
result
related to #6422
The text was updated successfully, but these errors were encountered: