Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

least_busy

least_busy(backends)

GitHub(opens in a new tab)

Return the least busy backend from a list.

Return the least busy available backend for those that have a pending_jobs in their status. Note that local backends may not have this attribute.

Parameters

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

Return type

BaseBackend

Returns

The backend with the fewest number of pending jobs.

Raises

IBMQError – If the backends list is empty or if a backend in the list does not have the pending_jobs attribute in its status.

Was this page helpful?
Report a bug or request content on GitHub.