COMMON HEADERS
Authorization: Bearer <token> X-Correlation-Id: <uuid> Idempotency-Key: <uuid> X-Request-Timestamp: <RFC3339> Content-Type: application/json
REFERENCE API CONTRACT
JavaScript reference API and circuit-file schema published.
RESOURCE MODEL
| Method | Endpoint | Purpose |
|---|---|---|
JS | loadCircuit(source) | Parse the documented circuit syntax |
JS | runCircuit(options) | Execute within the browser limit |
JS | getStateVector() | Return amplitudes and probabilities |
JS | exportResult(format) | Export JSON or teaching report |
COMMON HEADERS
Authorization: Bearer <token> X-Correlation-Id: <uuid> Idempotency-Key: <uuid> X-Request-Timestamp: <RFC3339> Content-Type: application/json
REQUEST ENVELOPE
{
"profileId": "QS-CS-2026.07",
"requestId": "5fda47cb-55c8-45a8-81a6-2dd1d1938b47",
"mode": "controlled-evaluation",
"evidenceRequired": true
}ERROR MODEL
400 — Invalid schema or unsupported profile401/403 — Authentication or policy denial409 — Idempotency or state conflict422 — Evidence or compatibility requirement not met503 — Protected dependency unavailable; fail-closed unless approved otherwiseVERSIONING
IMPLEMENTATION PATH
Validate the API contract together with the test corpus and readiness passport.