-
Notifications
You must be signed in to change notification settings - Fork 33
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
Use batch mode correctly in the tutorials #616
Conversation
Pull Request Test Coverage Report for Build 9326577472Details
💛 - Coveralls |
I tested with |
Did you mean Qiskit Runtime will use job mode instead of batch mode when this is the case? This was what I was running into. |
I did. I fixed it in the top comment. |
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.
I think this looks good, thanks! I'm guessing we will change to
with Batch(backend=backend) as batch:
sampler = SamplerV2(mode=batch)
after runtime makes that change and backport that?
It probably won't be a candidate for backporting, as I expect it to require us to bump the minimum required version of |
* Use batch mode correctly in the tutorials * Work around a qiskit-ibm-runtime bug Qiskit/qiskit-ibm-runtime#1723 (cherry picked from commit 3162cfd)
* Use batch mode correctly in the tutorials * Work around a qiskit-ibm-runtime bug Qiskit/qiskit-ibm-runtime#1723 (cherry picked from commit 3162cfd) Co-authored-by: Jim Garrison <[email protected]>
Apparently, if you use
sampler = SamplerV2(backend=backend)
, even within theBatch
context manager, Qiskit Runtime will use job mode instead of batch mode, without any warning. This fixes our example usage so batch mode will work properly.