Skip to main content
API Reference: qbraid.runtime.aws

Installation & Setup

To interface with Amazon Braket supported devices, install the braket extra:
Then, follow instructions to configure your AWS credentials.

Basic Usage

Submit a Quantum Task to an AWS device using the BraketProvider:
Now that we’ve instantiated our device, in this case the AWS SV1 simulator, we can construct a quantum circuit and submit a task using the .run method:
We now have job which is of type BraketQuantumTask, which inherits from QuantumJob. To see the results, we can do the following:
See how to visualize these results in the Visualization section.

Runtime Options

The BraketDevice.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:
This is required when using verbatim compilation or pulse-level gate definitions.

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:
See Experimental Capabilities for a full list of available features per device.

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

Via qBraid Runtime API

When submitting jobs through the QbraidProvider, these same options can be passed via the runtimeOptions field. The runtime API forwards them as keyword arguments to the Braket device.run() call: