You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: 0.7.3
Before optimization:
┌───┐┌───┐┌───┐┌───┐┌───┐
q: ┤ T ├┤ T ├┤ T ├┤ T ├┤ T ├
└───┘└───┘└───┘└───┘└───┘
After optimization:
┌───┐
q: ┤ T ├
└───┘
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
That is definitely a bug in basic_optimization. The problem is that it is combining the phases into a single gate, but not updating the name. The one 'T' gate that is in the circuit optimized actually has a phase parameter of 5pi/4, but it didn't change the name of the phase gate. If you were to call zx.draw(optimized) you would see that it is still holds the correct phase.
Thanks for reporting, I'm surprised such a basic bug was in this thing.
Optimizing a simple Qiskit circuit seems to yield a circuit implementing a different unitary.
Here is a minimal example:
Here is the output:
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: