Allow for multiple clients in cloud service#8
Merged
kt474 merged 14 commits intokt474:iqp-instance-account-optionsfrom May 27, 2025
Merged
Allow for multiple clients in cloud service#8kt474 merged 14 commits intokt474:iqp-instance-account-optionsfrom
kt474 merged 14 commits intokt474:iqp-instance-account-optionsfrom
Conversation
* remove defaults check in target() * add reno
* Update links pointing to IQP Classic * fix long lines
* Confirm they work for job and session retrieval * Update docstrings to include all channels and clarify when methods are used * Update deprecation messages to fit docstrings * Fix unit tests * Update mocks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR allows to keep track of all instantiated clients in the runtime service instead of overwriting a single client in the "ibm_cloud" path. The mechanism is quite naive (just storing a dictionary of instantiated clients accessible by CRN), I think that this logic should be handled by the
RuntimeClientclass instead of theQiskitRuntimeService, but as a first approximation at least this implementation unlocks the following functionality:On top of this, the PR clearly establishes a difference between the
ibm_cloudchannel and theibm_quantum_platformchannel.Details and comments
Fixes #