braket.devices.device module¶
-
class
braket.devices.device.
Device
(name: str, status: str, status_reason: str)[source]¶ Bases:
abc.ABC
An abstraction over quantum devices that includes quantum computers and simulators.
- Parameters
name – Name of quantum device
status – Status of quantum device
status_reason – Status reason of quantum device
-
abstract
run
(task_specification: Union[braket.circuits.circuit.Circuit, braket.annealing.problem.Problem], location, shots: Optional[int], *args, **kwargs) → braket.tasks.quantum_task.QuantumTask[source]¶ Run a quantum task specification on this quantum device. A task can be a circuit or an annealing problem.
- Parameters
- Returns
QuantumTask – The QuantumTask tracking task execution on this device
-
property
name
¶ Return the name of this Device.
- Returns
str – The name of this Device
-
property
status
¶ Return the status of this Device.
- Returns
str – The status of this Device
-
property
status_reason
¶ Return the status reason of this Device.
- Returns
str – The reason that the device is in the current status