Loading docs
API & Evidence
Understand how workflow records preserve visual design, generated source, route context, run history, and evidence pointers.
A workflow record is the durable unit of quantum work. It owns the visual design, generated source, route context, run history, comments, and evidence references.
Use this reference when an integration needs to import, duplicate, clone, or review a workflow without confusing private workspace state with public evidence.
The workflows API is about durable records, not disposable canvases.
Section 01
Use Deploy workflow in the existing Studio top bar. Save first, then open App inputs to choose numeric gate slots, labels and bounds. Search by gate, wire or section even in a large circuit. These are independent inputs in the published copy; exposing one slot does not rewrite every use of an original shared formal parameter.
The app renders the same typed inputs and validates finite values and bounds. Use & manage provides cURL, JavaScript and Python requests with the exact application version and defaults. Copy the current example after every publish/update. A stale version returns409; refresh the app or example before deliberately retrying. Token rotation changes access credentials while keeping the package version.
POST /api/deployments/{slug}/run accepts inputs, expectedApplicationSha256, shots, noiseModel and an optional31-bit seed. It uses the publisher's existing permissions and simulation quota. An optional sweep:{inputId,values} runs up to64 independent zero-state kernels with complete range/work/shot preflight. Each actual kernel still checks permission, version, token and quota. No request can choose arbitrary source, credentials, providers or hardware.
Published program, module copies, compiler/runtime and execution policy are pinned. A later source/catalog change does not mutate that package. If current dependencies no longer match, republish deliberately. Reproducing counts requires the same package, input, backend, noise and seed; equal seeds do not guarantee cross-backend equality.
Open Execution history & frozen source under Use & manage to inspect recent simulations. Section selection focuses the frozen circuit and qualified QASM excerpt, not the current editor. Actual counts and reference trajectories are different evidence. Copy AI question to ask about that exact historical run; current publisher/workflow access is checked again. Failed or uncertain execution is never presented as a successful hardware result.
Section 02
Workflow endpoints are session-authenticated and operate on the caller's own records. They serve the signed-in product UI and scripts that reuse a browser session.
GET /api/workflows?search={q}&limit={n} List your workflowsPOST /api/workflows Create a workflow recordGET /api/workflows/{id} Fetch one workflow recordPUT /api/workflows/{id} Update the record (only provided fields change)PATCH /api/workflows/{id} Alias of PUT (same partial update)DELETE /api/workflows/{id} Delete a workflowPOST /api/workflows/{id}/duplicate Duplicate into a new owner-scoped record
Section 03
A workflow record includes name, owner, workspace, visual operations, layout, qubit and classical-bit counts, revision, share and template flags, tags, and timestamps. Generated source is derived from the operations on demand.
Generated source can change when the visual circuit changes. Treat source snapshots used for a run as evidence artifacts rather than mutable draft text.
{"name": "Bell state baseline","qubits": 2,"classicalBits": 2,"operations": [{ "id": "op-1", "gate": "H", "targets": [0] },{ "id": "op-2", "gate": "CNOT", "targets": [1], "controls": [0] },{ "id": "op-3", "gate": "MEASURE", "targets": [0, 1], "classicalTargets": [0, 1] }],"tags": ["tutorial"]}
{"workflow": {"id": "cmbw1f2k80001abcd1234efgh","userId": "cmbvzx9aa0000abcd9012mnop","workspaceId": null,"name": "Bell state baseline","description": null,"qubits": 2,"classicalBits": 2,"revision": 1,"operations": [{ "id": "op-1", "gate": "H", "targets": [0] },{ "id": "op-2", "gate": "CNOT", "targets": [1], "controls": [0] },{ "id": "op-3", "gate": "MEASURE", "targets": [0, 1], "classicalTargets": [0, 1] }],"layout": {},"isPublic": false,"isTemplate": false,"isFavorite": false,"shareToken": null,"tags": ["tutorial"],"createdAt": "2026-06-12T09:28:00.000Z","updatedAt": "2026-06-12T09:28:00.000Z"}}
Section 04
Cloning public shares or templates creates a new owner-scoped record (POST /api/workflows/{id}/duplicate). It must not carry private provider credentials, billing state, admin notes, or original user secrets.
Imports validate circuit operations before a run can be routed; generated source is re-derived from those operations rather than imported as text.
Something unclear or out of date? Tell us.