-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
BlockCollapser fails for ClassicalRegister conditions #10496
Comments
Thanks for the report, and yeah, that does appear to be the direct reason. |
I would like to take a crack at this one, if someone can assign it to me. |
cjh1
added a commit
to cjh1/qiskit-terra
that referenced
this issue
Jul 26, 2023
This adds a test case that adds multiple conditions on the same register. The test case is fixed by using a set to collect the classical registers in collapse_to_operation.
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 31, 2023
* Collect classical registers using a set (#10496) This adds a test case that adds multiple conditions on the same register. The test case is fixed by using a set to collect the classical registers in collapse_to_operation. * Add release note --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
mergify bot
pushed a commit
that referenced
this issue
Oct 31, 2023
* Collect classical registers using a set (#10496) This adds a test case that adds multiple conditions on the same register. The test case is fixed by using a set to collect the classical registers in collapse_to_operation. * Add release note --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit b47c28b)
github-merge-queue bot
pushed a commit
that referenced
this issue
Nov 1, 2023
* Collect classical registers using a set (#10496) This adds a test case that adds multiple conditions on the same register. The test case is fixed by using a set to collect the classical registers in collapse_to_operation. * Add release note --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com> (cherry picked from commit b47c28b) Co-authored-by: Chris Harris <cjh@lbl.gov>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
What is happening?
The
BlockCollapser
class fails for blocks containing multiple nodes with fullClassicalRegister
conditions on the same registers.How can we reproduce the issue?
Minimal example
What should happen?
No error.
Any suggestions?
The
collapse_to_operation
method is incorrectly collecting the full classical register from all conditional nodes in a block as alist
, when it should be aset
to avoid duplication.The text was updated successfully, but these errors were encountered: