Public API
Quantum Lab exposes a small HTTP API on https://quantum.exocriador.dev. It needs no key. A second simulation while one is running gets status 429, and the circuit endpoints are limited per address.
Bell and GHZ states#
POST /run/bell?shots=1024
POST /run/ghz?qubits=3&shots=1024
shots is 1 to 10000. qubits is 2 to 24. The answer lists the counts:
{ "circuit": "bell", "shots": 100, "counts": { "00": 51, "11": 49 } }
Your own circuit with a chip's noise#
GET /api/lab/devices
POST /api/lab/run
GET /api/lab/devices lists the chips the lab can imitate and the limits. POST /api/lab/run takes a JSON body:
| Field | Meaning |
|---|---|
qasm | The circuit as OpenQASM 2, up to 8,000 characters. Only the standard qelib1.inc library may be included. |
device | A chip name from /api/lab/devices. |
shots | 1 to 10000. Default 1024. |
seed | Optional, for a repeatable run. |
layout | Optional list: the chip qubit for each circuit qubit. |
The answer holds the ideal and noisy counts, the compiled depth and the chip qubits used. Limits: 10 qubits, 300 gates, 10,000 shots.
Research results#
GET /api/results
GET /api/results/{run_id}
The first lists the experiment runs, newest first. The second returns one run with its full history.
Chip calibration#
GET /api/observatory/devices
GET /api/observatory/devices/{name}
The first lists chips with their latest calibration. The second returns one chip. Its /summary, /history and /chain?n= sub-paths give the summary, the drift and the best chain of n qubits.