English
Languages
English
Japanese
Spanish

QiskitRuntimeService.least_busy

QiskitRuntimeService.least_busy(min_num_qubits=None, instance=None, filters=None, **kwargs)[source]

Return the least busy available backend.

Parameters:
  • min_num_qubits (Optional[int]) – Minimum number of qubits the backend has to have.

  • instance (Optional[str]) – This is only supported for ibm_quantum runtime and is in the hub/group/project format.

  • filters (Optional[Callable[[List[IBMBackend]], bool]]) –

    Filters can be defined as for the backends() method. An example to get the operational backends with 5 qubits:

    QiskitRuntimeService.least_busy(n_qubits=5, operational=True)
    

Return type:

IBMBackend

Returns:

The backend with the fewest number of pending jobs.

Raises:

QiskitBackendNotFoundError – If no backend matches the criteria.