Skip to content

Commit

Permalink
update reno
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 committed Dec 4, 2023
1 parent 26ec4f9 commit d9a04dc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions releasenotes/notes/backend-instance-filter-20d69b3951437f19.yaml
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

0 comments on commit d9a04dc

Please sign in to comment.