qbench.limits module#

Implementation of various utilities for obtaining backend limits.

class qbench.limits.Limits(max_circuits, max_shots)#
Parameters:
  • max_circuits (Optional[int]) –

  • max_shots (Optional[int]) –

max_circuits: Optional[int]#

Alias for field number 0

max_shots: Optional[int]#

Alias for field number 1

qbench.limits.get_limits(_backend)#
qbench.limits.get_limits(backend)
qbench.limits.get_limits(backend)
qbench.limits.get_limits(backend)
qbench.limits.get_limits(backend)

Obtain limit on maximum number of circuits and shots (per circuit) in a single job.

Parameters:

_backend – backend to obtain limit for.

Returns:

namedtuple with max_circuits and max_shots, both optional integers. If any of the limits is set to None, it should be treated as lack of limit.