-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 BackendSamplerV2
when used with an empty classical register
#12055
Conversation
Pull Request Test Coverage Report for Build 8383041257Details
💛 - Coveralls |
One or more of the the following people are requested to review this:
|
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.
Thanks for catching and fixing! LGTM.
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.
Thank you for finding and fixing this issue. LGTM
This is a port of Qiskit/qiskit#12055 to this repository, since this repository has its own fork of `BackendSamplerV2` until Qiskit 1.1 is released (Qiskit#1523).
) This is a port of Qiskit/qiskit#12055 to this repository, since this repository has its own fork of `BackendSamplerV2` until Qiskit 1.1 is released (#1523).
) This is a port of Qiskit/qiskit#12055 to this repository, since this repository has its own fork of `BackendSamplerV2` until Qiskit 1.1 is released (#1523).
Summary
Fixes #12043
Details and comments
Remaining action items:
fixThis is a problem withget_counts
(currently throws an error inreshape
because an array dimension is zero)BitArray
, notBackendSamplerV2
, so I opened an issue instead:BitArray.get_counts()
fails given an empty classical register #12062