Device calibration
This page shows how to read the calibration data the router stores for IBM Quantum devices and Amazon Braket QPUs.
HTTP only. Call GET /v1/devices/{device_id}/calibration with your API key.
Request
The device ID goes into the path with its slash, for example
/v1/devices/braket/aqt_ibex_q1/calibration or /v1/devices/ibm/ibm_fez/calibration. The call
needs your API key and no EO-Protocol-Version header.
Code
Without a query parameter you get the newest snapshot. With at you get the newest snapshot the
vendor published at or before that instant. at is an RFC 3339 time with an offset: Z, or
+hh:mm with the + written as %2B.
Code
Which devices have calibration
- Amazon Braket QPUs: any valid API key can read them.
- IBM Quantum devices: you need your own IBM Quantum account connected, as for a job on the device
(see Connect your IBM Quantum account). Without one the call answers
403 ibm_account_not_connected; with a connection that stopped working,403 ibm_connection_invalid. - The Amazon Braket simulators,
braket/sv1andbraket/dm1, have none:422 unknown_device. - The Quandela Cloud devices (
quandela/...) publish none either:422 unknown_device.
Response
Code
This example is trimmed: a real calibration object has many more keys.
| Field | Meaning |
|---|---|
device_id | The device ID, for example ibm/ibm_fez or braket/aqt_ibex_q1. |
vendor | ibm or braket. |
vendor_updated_at | When the vendor published this calibration: IBM's last_update_date, or Amazon Braket's service.updatedAt. |
captured_at | When the router stored the snapshot. |
calibration | The vendor's calibration as published, with every time as an RFC 3339 string and a missing number (NaN) as null. |
The router does not interpret calibration; read the keys you know:
- IBM: IBM's backend properties, with
backend_name,backend_version,last_update_date,qubits,gates,generaland any other key IBM sends. Each entry ofqubitslists that qubit's measured values, such asT1,T2,frequencyandreadout_error, each withdate,unitandvalue. - Amazon Braket: the device capabilities object, with
braketSchemaHeader,service,action,deviceParameters,paradigm,provider,standardized, andpulseon some devices. It is the object the Braket SDK exposes as the device's properties.
How snapshots are stored
The router checks every 5 minutes and stores a snapshot only when the calibration changed:
- For an IBM device, when IBM published a new calibration (a new
last_update_date). - For a Braket QPU, when the capabilities other than
serviceandpulsediffer from the newest snapshot. Braket republishes those two keys without a new calibration, sovendor_updated_atis Braket'sservice.updatedAtfrom when the router first stored that content.
Snapshots are kept for the same retention period as job results (90 days today), except that each
device's newest snapshot is always kept. Answers carry Cache-Control: private, max-age=60.
Errors
| Code | When |
|---|---|
401 unauthenticated | The API key is missing or not valid. |
403 user_blocked | The EigenOrbit account is blocked. |
403 ibm_account_not_connected, 403 ibm_connection_invalid | IBM devices only: see above. |
404 not_found | No snapshot of the device, or none at or before at; also a path that is not a device ID. |
422 unknown_device | The device is unknown, disabled, a simulator or a photonic device. details is empty. |
422 validation_error | at is not a time or has no offset. |
451 region_blocked | The router is not available in your region, or IBM Quantum is not, for an IBM device. |