# Device calibration

This page shows how to read the calibration data the router stores for IBM Quantum devices and
Amazon Braket QPUs.

:::info

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.

```bash
curl https://router.eigenorbit.com/v1/devices/braket/aqt_ibex_q1/calibration \
  --header "Authorization: Bearer $EIGENORBIT_ROUTER_API_KEY"
```

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`.

```bash
URL=https://router.eigenorbit.com/v1/devices/braket/aqt_ibex_q1/calibration

curl "$URL?at=2026-11-04T14:00:00Z" \
  --header "Authorization: Bearer $EIGENORBIT_ROUTER_API_KEY"

curl "$URL?at=2026-11-04T15:00:00%2B01:00" \
  --header "Authorization: Bearer $EIGENORBIT_ROUTER_API_KEY"
```

## 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](/docs/ibm-quantum)). 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/sv1` and `braket/dm1`, have none: `422 unknown_device`.
- The Quandela Cloud devices (`quandela/...`) publish none either: `422 unknown_device`.

## Response

```json
{
  "device_id": "braket/aqt_ibex_q1",
  "vendor": "braket",
  "vendor_updated_at": "2026-11-04T13:49:18Z",
  "captured_at": "2026-11-04T13:51:15.402117Z",
  "calibration": {
    "braketSchemaHeader": {
      "name": "braket.device_schema.aqt.aqt_device_capabilities",
      "version": "1"
    },
    "service": {
      "shotsRange": [1, 2000],
      "deviceLocation": "Innsbruck, Austria",
      "updatedAt": "2026-11-04T13:49:18+00:00"
    }
  }
}
```

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`, `general` and any other key IBM sends. Each entry of `qubits` lists that
  qubit's measured values, such as `T1`, `T2`, `frequency` and `readout_error`, each with `date`,
  `unit` and `value`.
- Amazon Braket: the device capabilities object, with `braketSchemaHeader`, `service`, `action`,
  `deviceParameters`, `paradigm`, `provider`, `standardized`, and `pulse` on 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 `service` and `pulse` differ from the newest
  snapshot. Braket republishes those two keys without a new calibration, so `vendor_updated_at` is
  Braket's `service.updatedAt` from 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. |

## Reference

- [Get device calibration](/docs/api/devices#get-device-calibration)
- [List devices](/docs/api/devices#list-devices)
