-
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
Fix broadcasting of QuantumCircuit.delay
#11447
Conversation
The object is supposed to "broadcast" like a gate; one instruction per qubit. This silently did the wrong thing when given a `set` as its argument, previously.
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 7280573724
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM and seems straightforward enough. I do wonder if it's worth moving the gate broadcasting method to something more publicly reusable, but there also may not be a reason too because reusing the broadcasting logic outside of Gate
might be sufficiently uncommon. Either way as a fix for backport this is good and minimal.
I've harped on about it before, but I think a fair amount of the "broadcasting" is quite broken and really ought to be removed, or localised to |
The object is supposed to "broadcast" like a gate; one instruction per qubit. This silently did the wrong thing when given a `set` as its argument, previously. (cherry picked from commit 4c6eed9) # Conflicts: # qiskit/circuit/quantumcircuit.py
The object is supposed to "broadcast" like a gate; one instruction per qubit. This silently did the wrong thing when given a `set` as its argument, previously. (cherry picked from commit 4c6eed9)
The object is supposed to "broadcast" like a gate; one instruction per qubit. This silently did the wrong thing when given a `set` as its argument, previously. (cherry picked from commit 4c6eed9) Co-authored-by: Jake Lishman <[email protected]>
The object is supposed to "broadcast" like a gate; one instruction per qubit. This silently did the wrong thing when given a `set` as its argument, previously.
Summary
The object is supposed to "broadcast" like a gate; one instruction per qubit. This silently did the wrong thing when given a
set
as its argument, previously.Details and comments
Fix #11446.