qiskit.providers.ibmq

least_busy(backends)[source]

Return the least busy backend from a list.

Return the least busy available backend for those that have a pending_jobs in their status. Backends such as local backends that do not have this are not considered.

Parameters

backends (List[BaseBackend]) – backends to choose from

Return type

BaseBackend

Returns

the least busy backend

Raises

QiskitError – if passing a list of backend names that is either empty or none have attribute pending_jobs

Base Objects (qiskit.providers)

Base Objects

BaseProvider(*args, **kwargs)

Base class for a Backend Provider.

BaseBackend(configuration[, provider])

Base class for backends.

BaseJob(backend, job_id)

Class to handle asynchronous jobs

Job Status

JobStatus

Class for job status enumerated type.

Exceptions

QiskitBackendNotFoundError(*message)

Base class for errors raised while looking for a backend.

BackendPropertyError(*message)

Base class for errors raised while looking for a backend property.

JobError(*message)

Base class for errors raised by Jobs.

JobTimeoutError(*message)

Base class for timeout errors raised by jobs.

Classes

BackendConfigurationError(*message)

Base class for errors raised by the BackendConfiguration.

BackendPropertyError(*message)

Base class for errors raised while looking for a backend property.

BaseBackend(configuration[, provider])

Base class for backends.

BaseJob(backend, job_id)

Class to handle asynchronous jobs

BaseProvider(*args, **kwargs)

Base class for a Backend Provider.

JobError(*message)

Base class for errors raised by Jobs.

JobStatus

Class for job status enumerated type.

JobTimeoutError(*message)

Base class for timeout errors raised by jobs.

QiskitBackendNotFoundError(*message)

Base class for errors raised while looking for a backend.