Skip to content

Commit

Permalink
fix docs again
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 committed Dec 4, 2023
1 parent 85c2ddc commit abf5466
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ fixes:
.. code-block::
service.backend('ibm_torino', instance='ibm-q/open/main')
# raises error if torino is not in ibm-q/open/main but in a different instance
# the user has access to
service = QiskitRuntimeService(channel="ibm_quantum", instance="ibm-q/open/main")
service.backend('ibm_torino') # raises the same error
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 abf5466

Please sign in to comment.