Supported QDMI interface¶
The Amazon Braket implementation exposes the standard QDMI lifecycle, session,
site, operation, job, and result interfaces. Standard values not listed on this
page return QDMI_ERROR_NOTSUPPORTED.
Device status¶
The current UTC time must be inside a public execution window for an online
device to be reported as idle. When the session has
AMAZON_BRAKET_QDMI_DEVICE_SESSION_PARAMETER_RESERVATION_ARN set, public
execution windows are ignored because the session targets a reserved window.
Amazon Braket status |
QDMI status |
Meaning |
|---|---|---|
|
|
Device is available for submission |
|
|
Device accepts queued work but is not idle |
|
|
Reserved access is treated as available |
|
|
Device is temporarily unavailable |
|
|
Device is permanently unavailable; submission is blocked |
QDMI_Device_Status status;
AMAZON_BRAKET_QDMI_device_session_query_device_property(
session, QDMI_DEVICE_PROPERTY_STATUS, sizeof(status), &status, nullptr);
Device properties¶
Property |
Meaning |
|---|---|
|
Amazon Braket device name |
|
Device-library version |
|
Current mapped device status |
|
QDMI version |
|
Number of qubits |
|
Current queued-task count |
|
Qubit handles |
|
Native gate handles |
|
Flat source-target site pairs |
Fully connected devices return mqt.compiler-target.v1:all-to-all-homogeneous
in device CUSTOM2. They return QDMI_ERROR_NOTSUPPORTED for the coupling map
and operation site tuples; the compiler represents their operations globally.
Site properties¶
Property |
Meaning |
|---|---|
|
Site index |
|
Site name |
|
Relaxation time, when reported by Amazon Braket |
|
Dephasing time, when reported by Amazon Braket |
Operation properties¶
AMAZON_BRAKET_QDMI_OPERATION_PROPERTY_MQT_PARAMETERS (CUSTOM2) returns a
NUL-terminated JSON string using the temporary mqt.operation-parameters.v1
contract. Rigetti RX advertises four alternatives, each with a one-element
fixed array containing an allowed angle in radians (±π or ±π/2). IonQ ZZ
advertises the interval [0, π/2]. Other operations return
QDMI_ERROR_NOTSUPPORTED. MQT Core consumes this property for both compiler
targets and Qiskit targets; it is not a standardized QDMI property.
Property |
Meaning |
|---|---|
|
Operation accepted by the device’s OpenQASM action |
|
Fixed gate arity, when known |
|
Number of scalar OpenQASM arguments, when representable |
|
All sites, connectivity edges, or ordered three-site tuples |
|
Site-dependent gate fidelity, when reported |
An individual property returns QDMI_ERROR_NOTSUPPORTED when Amazon Braket
advertises an operation with a variable or otherwise unrepresentable signature.
The zero-qubit gphase operation has no site tuples. Fixed three-qubit gates
are applicable to all ordered tuples of distinct sites, independent of two-qubit
connectivity.
Job properties¶
QPU programs must be compiled to the device’s native gates and physical site
indices before submission. The device wraps flat OpenQASM 3 gate statements in
#pragma braket verbatim and leaves terminal measurements outside the box. This
applies to individual programs and ProgramSets. Before sending any program, the
device removes include "stdgates.inc";: Braket supplies its native gates but
rejects this standard declaration. Stored source is unchanged. Existing verbatim
and simulator programs are otherwise forwarded unchanged.
Automatic wrapping accepts an OpenQASM 3 header, one optional bit array with an optional binary-string initializer, native gate calls on physical qubits, and terminal measurement assignments. Register names, whitespace, and comments do not affect recognition. Barriers remain in the gate sequence. Bare global phases are omitted because they do not affect sampled results. Programs with other includes, gate definitions, virtual qubits, or control flow are forwarded without automatic wrapping.
For simulators without physical-qubit support, the same flat programs use dense virtual indices and measure all addressed qubits when required by device metadata. Result decoding uses the returned source, including each ProgramSet source document, so reopened tasks need no local submission state. See Job results for output ordering. The device does not compile or route circuits.
Property |
Meaning |
|---|---|
|
QuantumTask ARN after submission |
|
Current program format |
|
Number of programs in input order |
|
Current shot count |
|
Jobs ahead while the task is queued |
|
Resolved S3 result directory |
AMAZON_BRAKET_QDMI_device_job_get_program_status queries a ProgramSet outcome
by input index.
Querying QDMI_DEVICE_JOB_PROPERTY_QUEUEPOSITION performs a fresh
GetQuantumTask request with the QueueInfo additional attribute. The query
returns QDMI_ERROR_BADSTATE unless the refreshed task status is QUEUED, and
QDMI_ERROR_NOTSUPPORTED if AWS does not provide a trustworthy position.
Querying AMAZON_BRAKET_QDMI_DEVICE_JOB_PROPERTY_OUTPUTS3URI refreshes the task
metadata and lets external tooling find its recorded s3://bucket/directory,
including for the automatic standard regional bucket. It returns
QDMI_ERROR_BADSTATE until Amazon Braket provides the result location.
An existing QuantumTask can be opened from its ARN. The opened handle exposes the ARN and shot count, can be checked, waited for, canceled, and used to retrieve results, but cannot be reconfigured or submitted again.
Job status¶
Event or Amazon Braket status |
QDMI job status |
|---|---|
Local configurable job |
|
Local submission pending or AWS |
|
AWS |
|
AWS |
|
AWS |
|
AWS |
|
Local cancellation or AWS |
|
The job becomes SUBMITTED when its request is queued locally, before AWS
acceptance. Reconfiguration and repeated submission return
QDMI_ERROR_BADSTATE. See
Concurrent submission for cancellation and
job-lifetime behavior.
Job results¶
Result |
Representation |
|---|---|
|
Comma-separated shot bitstrings |
|
Comma-separated histogram keys |
|
|
Shot strings and histogram keys place the highest classical bit index first.
Static readout supports one bit register, an optional binary-string initializer,
and indexed terminal assignments from physical qubits or one virtual register.
Unused bits retain their initial value, which defaults to zero. A program
without classical outputs returns empty bitstrings; Braket’s implicit qubit
measurements do not add outputs. Each shot must contain one binary measurement
outcome for every qubit in Braket’s measuredQubits list, including qubits
absent from the classical output.
Source forms outside this static subset, such as control flow or multiple registers, retain legacy descending measured-qubit order, with the lowest site ID on the right. The same fallback applies when source metadata is unavailable; it cannot recover classical outputs. The Qiskit backend retains MQT Core’s result layout to restore the requested output positions from the compiler’s compact classical register.
Lifecycle functions¶
Function |
AWS SDK counterpart |
Purpose |
|---|---|---|
|
|
Initialize the library once |
|
|
Release library resources once |
Session functions¶
Function |
AWS SDK counterpart |
Purpose |
|---|---|---|
|
Internal allocation |
Allocate a session |
|
Store session configuration |
Set ARN, Region, and reservation |
|
AWS client construction |
Initialize the session |
|
Client destruction |
Release session resources |
|
Lazy |
Fetch and query device properties |
|
Cached |
Query site properties |
|
Cached |
Query operation properties |
Job functions¶
Function |
AWS SDK counterpart |
Purpose |
|---|---|---|
|
Internal allocation |
Create a new QDMI job |
|
|
Open an existing task by ARN |
|
Store job configuration |
Set shots and Braket options |
|
Stored values or refreshed task |
Query job properties |
|
Local configuration |
Set an ordered list of program payloads |
|
Stored values |
Read one program payload by input index |
|
|
Submit a QuantumTask |
|
|
Refresh task status |
|
Poll |
Wait for completion |
|
|
Retrieve results from S3 |
|
|
Cancel a task |
|
Internal cleanup |
Release job resources |