-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assign_parameters
method is not working for controlled-U gate
#9763
Comments
assign_parameters
method is not working for controlled-U gateassign_parameters
method is not working for controlled-U gate
Thanks for the report - this is a known issue (#7326), so I'll just close this as duplicate. There's a potential fix available (#9118) that I need to review properly. The root cause is mostly that |
Duplicate of #7326 |
Yes, there is the extra |
No worries - it's really our fault that the issue's been open for so long. |
Environment
What is happening?
The
QuantumCircuit.assign_parameters()
method does not work properly with the parametric controlled-U gate. The values passed to be assigned to the parameters seem just to be ignored (in both cases withinplace=False
orinplace=True
).How can we reproduce the issue?
What should happen?
Each parameter of the controlled-U gate should be correctly bounded to the corresponding value passed to
assign_parameters()
, as it happens for any other parametric gate (Rx in the example above).The text was updated successfully, but these errors were encountered: