-
Notifications
You must be signed in to change notification settings - Fork 13
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 QiskitRuntimeService instead of IBMProvider #330
Conversation
2e87c53
to
a91c1c1
Compare
ee6726a
to
8324352
Compare
else: | ||
provider = IBMProvider() | ||
service = QiskitRuntimeService(channel="ibm_quantum") |
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.
Do we always want to use this channel, or should this be a parameter?
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.
It could be a parameter. However:
- I'm not sure anyone here has used, or has credentials for, the other possibility which is "ibm_cloud", so it would be difficult to test and I don't know if it would work.
- If someone does want to use it they can pass an already-initialized
QiskitRuntimeService
as theservice
parameter.
@@ -96,7 +94,7 @@ | |||
from .config import QiskitConfig | |||
|
|||
if TYPE_CHECKING: | |||
from qiskit_ibm_provider.ibm_backend import IBMBackend as _QiskIBMBackend # type: ignore | |||
from qiskit.providers.backend import BackendV1 # type: ignore |
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.
Have you taken a look on the difference of V1 and V2? Do we want to upgrade to V2?
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.
Yes, I will do this as part of #19 .
Description
All the functionality from
IBMProvider
is now provided byQiskitRuntimeService
.Related issues
Closes #325 .
Checklist