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
We exclude parameterized gates from 1-qubit gate optimizations, since handling the symbolic expressions that could emerge can become a bottleneck. In your particular case the expression is simple, but that can change in larger circuits. Instead it would likely be faster to re-compile the circuit, once all values are fully assigned.
Yes that's correct, though binding to dummy parameters should be fast if you're interested in the circuit properties before sending it off to the hardware.
As side note, if you run the full transpile function it should be able to merge the 2 non-parameterized RZ gates into one, since the commutation analysis knows how to handle parameterized gates.
Environment
What is happening?
The qiskit transpiler is failing to simplify/combine like gates where one of them is symbolic.
How can we reproduce the issue?
What should happen?
I expected the three gates to be combined into a single$R_z$ gate.
Any suggestions?
cc @willzeng
The text was updated successfully, but these errors were encountered: