Skip to content

Add support for viewing backends available on IBM Cloud#56

Merged
jyu00 merged 8 commits intoQiskit:mainfrom
rathishcholarajan:rt-service-backends
Dec 14, 2021
Merged

Add support for viewing backends available on IBM Cloud#56
jyu00 merged 8 commits intoQiskit:mainfrom
rathishcholarajan:rt-service-backends

Conversation

@rathishcholarajan
Copy link
Copy Markdown
Member

Summary

This PR builds upon #55 (will rebase this once #55 is merged) to make the following functionality available to IBM Cloud users. (Currently works only with staging env)

  • backends()
  • get_backend()
  • backend.status()
  • backend.properties()
  • backend.defaults()
  • backend.configuration()

Example:

from qiskit_ibm_runtime import IBMRuntimeService
service = IBMRuntimeService(auth="cloud", token="<staging_api_key>", locator="<staging_locator>")

# List backends
service.backends()

# Get a backend by name
simulator = service.get_backend("ibmq_qasm_simulator")

# Get a backend's status
simulator.status()

# Get a backend's properties
simulator.properties()

# Get a backend's configuration
simulator.configuration()

# Get a backend's pulse defaults
simulator.defaults()

Details and comments

Fixes #

Comment thread qiskit_ibm_runtime/ibm_backend.py Outdated
Comment thread qiskit_ibm_runtime/ibm_runtime_service.py
The new API just returns the string of backends and not all the configuration at once, so we don't need to provide user with the option to specify a custom timeout since the get backends call won't take too long for IBM Cloud
@jyu00 jyu00 merged commit 174a303 into Qiskit:main Dec 14, 2021
blakejohnson pushed a commit to blakejohnson/qiskit-ibm-runtime that referenced this pull request May 26, 2023
* add qka test

* fix relative import

* fix hgp

* move numpy
ihincks pushed a commit to ihincks/qiskit-ibm-runtime that referenced this pull request Oct 29, 2025
A `Session` object doesn't have a `run` method but rather a `_run`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants