Parameter assignment of QuantumCircuit
does not update the data attribute when inplace=True
#13478
Labels
bug
Something isn't working
Environment
What is happening?
When writing the following:
we get:
Meaning that instructions still store the reference to the original Parameters, which should have been replaced by the values.
This behavior does not appear when doing
where in this case the binding is clearly visible on the instructions
How can we reproduce the issue?
What should happen?
Instructions should be binded with the numeric values in both cases. One should therefore take care of the
inplace=True
case to match the other case.Any suggestions?
No response
The text was updated successfully, but these errors were encountered: