-
Notifications
You must be signed in to change notification settings - Fork 34
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 Qiskit Runtime SamplerV2
in local mode instead of BackendSamplerV2
in test
#513
Conversation
BackendSampler
SamplerV2
in local mode instead of BackendSamplerV2
I'm going to add this to the 0.7.0 milestone because it'd be really nice to knock these items off and move to using fake backends and qiskit runtime local mode in the docs as soon as possible. Even if we were to merge this minimal PR before our next release, we could backport the other changes because ckt would already depend on the requisite qiskit-ibm-runtime version. To enable this, though, we'll need a qiskit-ibm-runtime release, either 0.22.1 from the current stable branch or 0.23.0. |
There will be no 0.22.1 release, it seems, but 0.23.0 is out now so we can use it instead.
Pull Request Test Coverage Report for Build 8712251243Details
💛 - Coveralls |
SamplerV2
in local mode instead of BackendSamplerV2
SamplerV2
in local mode instead of BackendSamplerV2
in test
It appears there is no 0.14.0 release on pypi
Could you please remind me why we need to wait for another release of EDIT: I see you've opened #552 |
We need to bump the version of qiskit-ibm-runtime even for this PR to work because it is the first version that includes Qiskit/qiskit-ibm-runtime#1558. I bumped the version of Aer here, too, so that we can backport #552 (if it doesn't land in time for the release) without needing to further bump any versions on the stable branch. Aer 0.14 is required there because that is when EstimatorV2 was introduced. |
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 looks great, thanks!
Line 51 in the test uses GenericBackendV2
. Should we make a test explicitly testing against that backend and use AerSimulator
everywhere by default? The only places we would need to switch would be here and Tutorial 2, cutting for depth.
Actually, in #552 I am transitioning to using Qiskit Runtime in local mode with fake backends in all the tutorials, so I think that, the test you mention, plus We can always continue this conversation at #552, too. |
This is a draft of something we could do once the next
qiskit-ibm-runtime
release comes out (we must wait until then because we need Qiskit/qiskit-ibm-runtime#1558). Once that happens, I willlikely further iterate on thisopen another pull request that builds on this to fix some or (ideally) all of the following issues:.result()
to obtain them #509Batch
mode instead ofSession
mode in cutting tutorials #535More info on this migration is at https://docs.quantum.ibm.com/api/migration-guides/local-simulators.