English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

Warning

The package qiskit-ibmq-provider is being deprecated and its repo is going to be archived soon. Please transition to the new packages. More information in https://ibm.biz/provider_migration_guide

IBMQBackendService

class IBMQBackendService(provider)[source]

Bases: object

Backend namespace for an IBM Quantum Experience account provider.

Represent a namespace that provides backend related services for the IBM Quantum Experience backends available to this provider. An instance of this class is used as a callable attribute to the AccountProvider class. This allows a convenient way to query for all backends or to access a specific backend:

backends = provider.backends()  # Invoke backends() to get the backends.
sim_backend = provider.backend.ibmq_qasm_simulator  # Get a specific backend instance.

Also, you are able to retrieve jobs from a provider without specifying the backend name. For example, to retrieve the ten most recent jobs you have submitted, regardless of the backend they were submitted to, you could do:

most_recent_jobs = provider.backend.jobs(limit=10)

It is also possible to retrieve a single job without specifying the backend name:

job = provider.backend.retrieve_job(<JOB_ID>)

IBMQBackendService constructor.

Parameters

provider (AccountProvider) – IBM Quantum Experience account provider.

Methods

backends

Return all backends accessible via this provider, subject to optional filtering.

job_ids

Return a list of job IDs, subject to optional filtering.

jobs

Return a list of jobs, subject to optional filtering.

my_reservations

Return your upcoming reservations.

retrieve_job

Return a single job.