-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 11 additions & 2 deletions
13
releasenotes/notes/backend-instance-filter-20d69b3951437f19.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
--- | ||
fixes: | ||
- | | ||
If an instance is passed in at initialization, and a backend that is not in that instance | ||
but a different instance the user has access to is retrieved, an error is raised. | ||
When a single backend is retrieved with the ``instance`` parameter, | ||
.. code-block:: | ||
service.backend('ibm_torino', instance='ibm-q/open/main') | ||
if the backend is not in the instance but in a different one the user has access to, an error | ||
will be raised. The same error will now be raised if an instance is passed in at initialization | ||
and then a backend not in that instance is retrieved. | ||
.. code-block:: | ||
service = QiskitRuntimeService(channel="ibm_quantum", instance="ibm-q/open/main") | ||
service.backend('ibm_torino') # raises error if torino is not in ibm-q/open/main |