API Reference:
qbraid.runtime.aws
Installation & Setup
To interface with Amazon Braket supported devices, install thebraket extra:
Basic Usage
Submit a Quantum Task to an AWS device using theBraketProvider:
.run method:
job which is of type BraketQuantumTask, which inherits from QuantumJob. To see the results,
we can do the following:
Runtime Options
TheBraketDevice.run() method accepts additional keyword arguments that are passed through
to the underlying Amazon Braket SDK’s AwsDevice.run(). These options let you control
device-specific behavior such as qubit rewiring, error mitigation, experimental capabilities, and more.
Disable Qubit Rewiring
By default, Braket may remap the logical qubits in your circuit to physical qubits on the device. To force the use of the exact qubits specified in your circuit, disable qubit rewiring:Error Mitigation (IonQ)
IonQ devices on Braket support error mitigation through debiasing, which creates variations of your circuit to reduce the effects of hardware noise:Experimental Capabilities
Some devices offer experimental features that must be explicitly enabled. For example, QuEra Aquila supports tight atom geometries and local detuning, and IQM devices support dynamic circuits with mid-circuit measurement:Parametric Circuits
For OpenQASM programs with input parameters, pass values at runtime:Reservation ARN
If you have a Braket Direct reservation for exclusive device access, provide the reservation ARN:Tags
Attach metadata tags to your quantum tasks for tracking and organization:Options Reference
| Parameter | Type | Description |
|---|---|---|
disable_qubit_rewiring | bool | Force use of exact qubits without remapping |
device_parameters | dict | Device-specific config (e.g. error mitigation) |
experimental_capabilities | str | Set to "ALL" to enable experimental features |
inputs | dict[str, float] | Parameter values for parametric circuits |
reservation_arn | str | Braket Direct reservation ARN |
tags | dict[str, str] | Metadata tags for the quantum task |
Via qBraid Runtime API
When submitting jobs through the QbraidProvider, these same options can be passed via theruntimeOptions field. The runtime API forwards them as keyword
arguments to the Braket device.run() call:
