braket.aws.queue_information module
- class braket.aws.queue_information.QueueType(value)[source]
Bases:
str
,Enum
Enumerates the possible priorities for the queue.
- Values:
NORMAL: Represents normal queue for the device. PRIORITY: Represents priority queue for the device.
- NORMAL = 'Normal'
- PRIORITY = 'Priority'
- class braket.aws.queue_information.QueueDepthInfo(quantum_tasks: dict[QueueType, str], jobs: str)[source]
Bases:
object
Represents quantum tasks and hybrid jobs queue depth information.
- quantum_tasks
number of quantum tasks waiting to run on a device. This includes both ‘Normal’ and ‘Priority’ tasks. For Example, {‘quantum_tasks’: {QueueType.NORMAL: ‘7’, QueueType.PRIORITY: ‘3’}}
- Type:
dict[QueueType, str]
- jobs
number of hybrid jobs waiting to run on a device. Additionally, for QPUs if hybrid jobs queue depth is 0, we display information about priority and count of the running hybrid jobs. Example, ‘jobs’: ‘0 (1 prioritized job(s) running)’
- Type:
str
- jobs: str
- class braket.aws.queue_information.QuantumTaskQueueInfo(queue_type: QueueType, queue_position: str | None = None, message: str | None = None)[source]
Bases:
object
Represents quantum tasks queue information.
- queue_position
current position of your quantum task within a respective device queue. This value can be None based on the state of the task. Default: None.
- Type:
Optional[str]
- message
Additional message information. This key is present only if ‘queue_position’ is None. Default: None.
- Type:
Optional[str]
- queue_position: str | None = None
- message: str | None = None
- class braket.aws.queue_information.HybridJobQueueInfo(queue_position: str | None = None, message: str | None = None)[source]
Bases:
object
Represents hybrid job queue information.
- queue_position
current position of your hybrid job within a respective device queue. If the queue position of the hybrid job is greater than 15, we return ‘>15’ as the queue_position return value. The queue_position is only returned when hybrid job is not in RUNNING/CANCELLING/TERMINAL states, else queue_position is returned as None.
- Type:
Optional[str]
- message
Additional message information. This key is present only if ‘queue_position’ is None. Default: None.
- Type:
Optional[str]
- queue_position: str | None = None
- message: str | None = None