About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
qiskit.providers.ibmq.least_busy
least_busy(backends, reservation_lookahead=60)
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
[Backend
]) – The backends to choose from. - reservation_lookahead (
Optional
[int
]) – A backend is considered unavailable if it has reservations in the nextn
minutes, wheren
is the value ofreservation_lookahead
. IfNone
, reservations are not taken into consideration.
Return type
Returns
The backend with the fewest number of pending jobs.
Raises
IBMQError – If the backends list is empty, or if none of the backends is available, 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.