changedOutput schema / anyOf
Previous value: -[
- {
- "anyOf": [
- {
- "description": "A job as a host returns it: its status, the method its plan chose and why, the request as submitted, and, once it is done, the result with its receipt: a job's result, or for a set (a request with programs or a sweep, its method set) the set's result. The command line's run --json, the local MCP server's run_quantum_circuit and a run on the person's own provider give a finished job; the job service also gives its id and times, and a job still queued or running, or failed with its error. A job's receipt verifies from this document alone: request and result.",
- "properties": {
- "digests": {
- "description": "The job service: the BLAKE3 digests its store keeps the job's objects under (the request, each program, the result and the receipt).",
- "properties": {
- "algorithm": {
- "const": "blake3"
- },
- "programs": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "receipt": {
- "type": "string"
- },
- "request": {
- "type": [
- "string",
- "null"
- ]
- },
- "result": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "error": {
- "description": "Why a job failed, or why it was interrupted.",
- "type": "string"
- },
- "estimate": {
- "description": "What the plan admitted the job with.",
- "properties": {
- "memory_bytes": {
- "minimum": 0,
- "type": "integer"
- },
- "work": {
- "description": "In the method's own unit.",
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "memory_bytes",
- "work"
- ],
- "type": "object"
- },
- "finished_ms": {
- "type": "integer"
- },
- "id": {
- "description": "The job service's id for the job.",
- "type": "string"
- },
- "interruptions": {
- "description": "The job service: each time it stopped while the job ran, in milliseconds since 1970. A job that was running when the service stopped is queued again, once, to run from its stored request.",
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "method": {
- "description": "The method the plan chose; set for a set.",
- "type": "string"
- },
- "peak_rss_bytes": {
- "description": "The job service: the most memory the job's process held.",
- "type": "integer"
- },
- "request": {
- "anyOf": [
- {
- "required": [
- "qasm"
- ]
- },
- {
- "required": [
- "programs"
- ]
- },
- {
- "required": [
- "source"
- ]
- }
- ],
- "description": "A job as a client submits it: a program and what is asked of it, or a set: many programs (programs), or one over a grid of its inputs (sweep), run as one job. The command line, both MCP servers, the job service, the desktop app and the Studio read it alike, and a receipt seals it as it was given. A member the engine does not read is ignored, and sealed with the rest.",
- "properties": {
- "amplitudes": {
- "description": "Basis states whose amplitudes to return: one 0 or 1 per qubit, qubit n-1 first.",
- "items": {
- "type": "string"
- },
- "maxItems": 64,
- "type": "array"
- },
- "compile": {
- "description": "What a compile is asked for, each optional: the most the output may differ from the program (epsilon, in the operator norm up to a global phase), the level (0 lowers and approximates; 1 also rewrites and folds phases; 2 also resynthesises), the basis, the gate set it writes the program in (clifford_t: every rotation off the multiples of π/4 a Clifford+T word; standard: nothing approximated), whether to give the circuit after each pass (stages), and the twirl and dd passes, last (twirl, with its seed; dd, with its sequence).",
- "properties": {
- "basis": {
- "enum": [
- "clifford_t",
- "standard"
- ]
- },
- "dd": {
- "anyOf": [
- {
- "enum": [
- "xx",
- "xy4"
- ]
- },
- {
- "type": "boolean"
- },
- {
- "properties": {
- "sequence": {
- "enum": [
- "xx",
- "xy4"
- ]
- }
- },
- "type": "object"
- }
- ],
- "description": "Dynamical decoupling in each window where a qubit idles long enough: xx or xy4 (or {\"sequence\": …}), checked to change nothing without noise."
- },
- "epsilon": {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "level": {
- "maximum": 2,
- "minimum": 0,
- "type": "integer"
- },
- "stages": {
- "type": "boolean"
- },
- "twirl": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "properties": {
- "seed": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "seed"
- ],
- "type": "object"
- }
- ],
- "description": "Twirl each two-qubit Clifford gate with Paulis drawn from a seeded stream: true (seed 1), or {\"seed\": N}. One seed is one instance, checked to be the same circuit."
- }
- },
- "type": "object"
- },
- "contract": {
- "additionalProperties": false,
- "description": "What the job wants of an answer (wai/extensions/quantum-providers.md section 8.7). Every route the host can see is priced with what is really known, those that cannot meet this are rejected, the cheapest of the rest runs, and the reasoning is sealed in the result as `planner`. Nothing falls back in silence, and a job no route can meet is refused (J071). A job without it plans as it always has, byte for byte. Refused on a set (J073).",
- "properties": {
- "deadline_seconds": {
- "description": "When it must be done by, in seconds from when it starts. A route whose time is not known does not meet it. A host that can stop a run stops it there (J074); otherwise the result says whether it was kept.",
- "exclusiveMinimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "exactness": {
- "description": "The class wanted. Without it, the job keeps the class auto would give: auto's pick stands while it meets the rest of the contract, and only a route at least as exact may take its place. A device's counts are in no classical class: measured wants a processor's, simulated a provider's simulator's that its provider does not state is approximate, and any takes every route.",
- "enum": [
- "bit-exact",
- "exact",
- "single",
- "bounded",
- "estimate",
- "heuristic",
- "measured",
- "simulated",
- "any",
- null
- ]
- },
- "max_cost": {
- "additionalProperties": false,
- "description": "The most a provider's estimate of the run may come to, before it runs: it bounds the estimate, not the charge, which is stated after the run beside it (kept.cost). A route with an unknown cost, an estimate that is only the least it can come to, or a price in another currency does not meet it: nothing is converted.",
- "properties": {
- "amount": {
- "description": "An amount in decimals: digits, and optionally a point and digits, at most 64 characters.",
- "maxLength": 64,
- "type": "string"
- },
- "currency": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": [
- "object",
- "null"
- ]
- },
- "max_joules": {
- "description": "The most energy it may take, held by a live reading while it runs: at the ceiling the run is stopped, gives no answer, and its receipt says so. A route nothing here can read and stop does not meet it, so on a host that reads none every route is rejected. An estimate can refuse a job clearly past it, and promises nothing.",
- "exclusiveMinimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "providers": {
- "description": "Whether a route may be one of the person's providers. never is the default, given or not: a job that names a provider under a contract that does not allow one is refused (J070), and a host asks no provider anything under it. A host that reaches none (the job service) lists none. A provider that costs money is chosen only under max_cost, or when the job names it, and still runs only on the person's word for that route and its estimate.",
- "enum": [
- "never",
- "allowed",
- null
- ]
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "dry_run": {
- "description": "With true: what the host would do with the job or set, running nothing.",
- "type": "boolean"
- },
- "fabric": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "items": {
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 64,
- "minItems": 2,
- "type": "array"
- }
- ],
- "description": "Where the statevector method's state runs: auto (the default: on a member only where the committed measurements show it faster than this host's CPU for the job's size and fusion width, otherwise on the CPU), cpu, accelerator (the first accelerator member certified bit-exact here that holds the state, falling back to the next if it fails during the run), a member's id or key (wai-quantum fabric lists them), or a list of members, a power of two of them, the state split by its top qubits into one partition on each (cpu is a member, and a member may be named more than once). A member certified bit-exact gives the CPU's bits. A placement this host cannot honour is refused (J013), never made elsewhere."
- },
- "history": {
- "description": "The program's history's account of the version the job runs: its digest, and the gates and lines in each hand. The receipt binds it; a history recomputes and checks it.",
- "type": "object"
- },
- "intent": {
- "anyOf": [
- {
- "description": "One of distribution, equivalent, prepares or sampled, with its options.",
- "properties": {
- "alpha": {
- "exclusiveMaximum": 1,
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "type": "object"
- },
- "equivalent": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "prepares": {
- "type": "string"
- },
- "require": {
- "const": "proof"
- },
- "sampled": {
- "additionalProperties": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "type": "object"
- },
- "seed": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 1,
- "type": "integer"
- },
- "test": {
- "enum": [
- "chi_squared",
- "g_test"
- ]
- },
- "tolerance": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "type": "object"
- },
- {
- "items": {
- "description": "One of distribution, equivalent, prepares or sampled, with its options.",
- "properties": {
- "alpha": {
- "exclusiveMaximum": 1,
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "type": "object"
- },
- "equivalent": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "prepares": {
- "type": "string"
- },
- "require": {
- "const": "proof"
- },
- "sampled": {
- "additionalProperties": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "type": "object"
- },
- "seed": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 1,
- "type": "integer"
- },
- "test": {
- "enum": [
- "chi_squared",
- "g_test"
- ]
- },
- "tolerance": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "type": "object"
- },
- "minItems": 1,
- "type": "array"
- }
- ],
- "description": "What the program must do, checked with the run: one intent or a list. The result's verdict says how far it was checked."
- },
- "method": {
- "description": "auto (the default: the strongest method the program admits), or a method by its name as the methods list names it; pulse runs a pulse program (OpenPulse calibrations) under the pulse options.",
- "type": "string"
- },
- "mitigate": {
- "anyOf": [
- {
- "enum": [
- "zne",
- "pea",
- "pec",
- "cdr",
- "vd",
- "readout"
- ]
- },
- {
- "required": [
- "method"
- ],
- "type": "object"
- }
- ],
- "description": "Mitigate the job's expectation values (or, for readout, its counts) under its noise (engine::mitigate): zne, pea, pec, cdr, vd or readout, or {\"method\", …} with its options. The result's mitigation gives each value raw and mitigated."
- },
- "noise": {
- "additionalProperties": false,
- "description": "A noise model, each channel a probability. A channel not listed here is refused.",
- "properties": {
- "amplitude_damping": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "dephasing": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "depolarizing_1q": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "depolarizing_2q": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "readout": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "type": "object"
- },
- "observables": {
- "description": "Pauli observables to take the expectation values of.",
- "items": {
- "anyOf": [
- {
- "description": "A Pauli string, as \"Z0 Z1\"; qubits count from 0.",
- "type": "string"
- },
- {
- "properties": {
- "coeff": {
- "description": "Its coefficient (1 when not given).",
- "type": "number"
- },
- "pauli": {
- "description": "A Pauli string, as \"X3\".",
- "type": "string"
- }
- },
- "required": [
- "pauli"
- ],
- "type": "object"
- }
- ]
- },
- "maxItems": 256,
- "type": "array"
- },
- "options": {
- "additionalProperties": true,
- "description": "Options of the method that runs the job, as the methods list names them (max_bond, cutoff, fusion, trajectories, threshold, max_weight, ladder, max_terms, path_restarts, controls), and memory_gb.",
- "properties": {
- "controls": {
- "description": "A gate whose standard gates would double (x, y, z or h under three or more controls; s, sdg, t, tdg, p, rx, ry, rz, u, sx or sxdg under two or more) runs as one on statevector and in standard gates on exact. \"standard\" runs standard gates on statevector too, which reproduces a result made that way bit for bit. \"whole\" holds the gate whole on exact too, which gives other bits than its default, and is refused (J003) on a job that runs standard gates: another method named, a compile, noise, mitigation, a device target or a named place on the fabric. Any other value is refused.",
- "enum": [
- "whole",
- "standard"
- ]
- }
- },
- "type": "object"
- },
- "params": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "A value for each of the program's parameters (`input float theta;`, `input angle phi;`), bound exactly before the program is read: it runs as if each were written as a `const` at that double. A parameter left without a value is refused (Q114, J050). In a sweep, the parameters it fixes, each bound at every point.",
- "type": "object"
- },
- "programs": {
- "description": "A set (engine::sets): the programs to run as one job, each a program's text or a job of its own; the request's other fields apply to every item that does not set them itself.",
- "items": {
- "anyOf": [
- {
- "description": "A program's text.",
- "type": "string"
- },
- {
- "description": "A job of its own, read as a job request is (no programs or sweep in it); each item of the set's result holds its request in full.",
- "required": [
- "qasm"
- ],
- "type": "object"
- }
- ]
- },
- "minItems": 1,
- "type": "array"
- },
- "provider": {
- "description": "The person's own provider to run on, by the name their registry gives it. Only a host that holds their credentials runs such a job; every other host refuses it.",
- "type": "string"
- },
- "pulse": {
- "additionalProperties": false,
- "description": "A pulse run's options (method \"pulse\"): the sample period, the levels kept, the tolerance on the stated error, the steps a sample is divided into, each qubit's parameters, static couplings, and ports beyond the names d0, m0, a0.",
- "properties": {
- "couplings": {
- "description": "Static ZZ couplings.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "qubits": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "maxItems": 2,
- "minItems": 2,
- "type": "array"
- },
- "zz_khz": {
- "description": "The coupling's rate, kHz.",
- "type": "number"
- }
- },
- "required": [
- "qubits",
- "zz_khz"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "dt_ns": {
- "description": "The sample period, ns (default 0.5).",
- "exclusiveMinimum": 0,
- "maximum": 1000,
- "type": "number"
- },
- "levels": {
- "description": "Levels kept per qubit (default 2; 3 shows leakage).",
- "enum": [
- 2,
- 3
- ],
- "type": "integer"
- },
- "ports": {
- "additionalProperties": {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "enum": [
- "drive",
- "measure",
- "acquire"
- ]
- },
- "qubit": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "qubit"
- ],
- "type": "object"
- },
- "description": "Ports by name: what each is for and the qubit it reaches.",
- "type": "object"
- },
- "qubits": {
- "additionalProperties": {
- "additionalProperties": false,
- "properties": {
- "anharmonicity_mhz": {
- "description": "Its anharmonicity, MHz.",
- "type": "number"
- },
- "frequency_ghz": {
- "description": "Its frequency, GHz.",
- "type": "number"
- },
- "rabi_mhz": {
- "description": "Its Rabi frequency at full amplitude, MHz.",
- "type": "number"
- },
- "t1_us": {
- "description": "Its relaxation time, µs.",
- "type": "number"
- },
- "t2_us": {
- "description": "Its coherence time, µs (at most 2·T1).",
- "type": "number"
- }
- },
- "type": "object"
- },
- "description": "Each qubit's parameters by its index, over the target's and the defaults.",
- "type": "object"
- },
- "substeps": {
- "description": "Steps per sample (default: chosen so each step times the generator's norm is at most 0.5).",
- "maximum": 4096,
- "minimum": 1,
- "type": "integer"
- },
- "tolerance": {
- "description": "The most the stated error may be (default 1e-6): a run whose bound and rounding estimate pass it is refused, naming the steps that would meet it.",
- "exclusiveMaximum": 1,
- "exclusiveMinimum": 0,
- "type": "number"
- }
- },
- "type": "object"
- },
- "qasm": {
- "description": "The program, in OpenQASM 3 or the OpenQASM 2 forms in common use.",
- "type": "string"
- },
- "repair": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "properties": {
- "dyadic_bits": {
- "maximum": 32,
- "minimum": 1,
- "type": "integer"
- },
- "max_iterations": {
- "minimum": 1,
- "type": "integer"
- },
- "sizes": {
- "additionalProperties": {
- "minimum": 1,
- "type": "integer"
- },
- "type": "object"
- }
- },
- "type": "object"
- }
- ],
- "description": "Repair the program first on its flagged lines: true, or the choices."
- },
- "seed": {
- "description": "The sampling seed (1 when not given): the same job and seed give the same counts.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "description": "Measurement shots; 1024 when no observables or amplitudes are asked for, otherwise 0.",
- "maximum": 1000000,
- "minimum": 0,
- "type": "integer"
- },
- "source": {
- "description": "The program in another format, in place of qasm (engine::formats::expand): read to the job's qasm before the job is read, the request keeping its source.",
- "properties": {
- "format": {
- "enum": [
- "qasm",
- "qir",
- "jeff"
- ]
- },
- "program": {
- "description": "The program's text (OpenQASM, QIR).",
- "type": "string"
- },
- "program_base64": {
- "description": "The program's bytes as base64 (jeff).",
- "type": "string"
- }
- },
- "required": [
- "format"
- ],
- "type": "object"
- },
- "sweep": {
- "additionalProperties": {
- "items": {
- "type": "number"
- },
- "minItems": 1,
- "type": "array"
- },
- "description": "A set over the request's own qasm: values for each of the program's inputs (integer, float or angle), every combination run, the names in sorted order and the first varying slowest.",
- "type": "object"
- },
- "target": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "A device target: its qubits, the pairs it couples, its native gates with their errors and durations, and the calibration snapshot they come from. A value not known is left out, never written as zero. Every field but format, name, source, qubits, gates and coupling is optional, and a field the format does not name is refused, so a misspelt one never reads as absent. Its canonical text is its RFC 8785 form, and the BLAKE3 of that text, the target's hash, names the snapshot in a receipt.",
- "properties": {
- "calibration": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "description": "The calibration snapshot's id, as the source names it, or a content id of the snapshot read.",
- "maxLength": 400,
- "type": "string"
- },
- "timestamp": {
- "description": "When the snapshot was taken, as the source writes it.",
- "maxLength": 400,
- "type": "string"
- }
- },
- "type": "object"
- },
- "coupling": {
- "description": "The pairs a two-qubit gate may act on, each once, the lower qubit first, sorted.",
- "items": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "maxItems": 2,
- "minItems": 2,
- "type": "array"
- },
- "type": "array"
- },
- "format": {
- "const": "wai.quantum.target/1"
- },
- "gates": {
- "description": "Each native gate where the device runs it, sorted by gate then qubits.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "duration_ns": {
- "description": "Nanoseconds.",
- "minimum": 0,
- "type": "number"
- },
- "error": {
- "description": "The average gate infidelity.",
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "gate": {
- "pattern": "^[a-z0-9_]{1,40}$",
- "type": "string"
- },
- "qubits": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "maxItems": 2,
- "minItems": 1,
- "type": "array"
- }
- },
- "required": [
- "gate",
- "qubits"
- ],
- "type": "object"
- },
- "maxItems": 262144,
- "type": "array"
- },
- "name": {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- "qubits": {
- "description": "Every qubit, in order.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "frequency_ghz": {
- "description": "Its frequency, gigahertz.",
- "minimum": 0,
- "type": "number"
- },
- "label": {
- "description": "The source's own name for it, when that is not its index.",
- "type": "string"
- },
- "measure_ns": {
- "description": "The measurement's duration, nanoseconds.",
- "minimum": 0,
- "type": "number"
- },
- "qubit": {
- "description": "Its index: its place in the list.",
- "minimum": 0,
- "type": "integer"
- },
- "readout": {
- "additionalProperties": false,
- "properties": {
- "p01": {
- "description": "P(reads 1 | holds 0).",
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "p10": {
- "description": "P(reads 0 | holds 1).",
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "p01",
- "p10"
- ],
- "type": "object"
- },
- "resonator": {
- "const": true,
- "description": "A computational resonator, not a qubit: a qubit's state is moved into it (move, listed on the qubit and the resonator) so that a cz on it acts on that state, and moved back out. It takes no one-qubit gate, is never measured and is never paired with another resonator. Written only when true."
- },
- "t1_us": {
- "description": "T1, microseconds.",
- "minimum": 0,
- "type": "number"
- },
- "t2_us": {
- "description": "T2 (the echo or Ramsey time the source reports), microseconds.",
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "qubit"
- ],
- "type": "object"
- },
- "maxItems": 2048,
- "minItems": 1,
- "type": "array"
- },
- "source": {
- "additionalProperties": false,
- "properties": {
- "format": {
- "description": "The format the target was read from (wai-quantum targets import --help lists them).",
- "type": "string"
- },
- "note": {
- "maxLength": 400,
- "type": "string"
- }
- },
- "required": [
- "format"
- ],
- "type": "object"
- }
- },
- "required": [
- "format",
- "name",
- "source",
- "qubits",
- "gates",
- "coupling"
- ],
- "title": "wai.quantum.target/1",
- "type": "object"
- }
- ],
- "description": "A device target: a built-in target's name, or a target document. The program is compiled to it, placed and simulated under its noise; noise may not be given beside it."
- },
- "verdict": {
- "description": "true: the result carries a verdict even with no intent.",
- "type": "boolean"
- }
- },
- "title": "wai.quantum.job-request/1",
- "type": "object"
- },
- "result": {
- "anyOf": [
- {
- "description": "A job's result as the engine gives it, on every host: what was asked of the program, computed by the method its plan chose, with that method's accuracy class. The receipt seals the result without its receipt member, beside the request. A result names the engine that made it and this schema (engine and schema); results made before results carried them have neither and follow this schema all the same.",
- "properties": {
- "accuracy": {
- "description": "What the method promises of the numbers it gave.",
- "properties": {
- "approximate": {
- "const": true,
- "description": "A simulated result whose provider states its simulator is approximate."
- },
- "batch": {
- "type": "integer"
- },
- "below_table": {
- "description": "The bit-exact method: phase gates of its lowering that are not zero and ran as no phase, within the reader's tolerance (1e-14 of a turn) of a whole turn. `angles` counts those gates: one angle written may be several, and another count in another form of the same program.",
- "properties": {
- "angles": {
- "minimum": 1,
- "type": "integer"
- },
- "largest_radians": {
- "type": "number"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "angles",
- "largest_radians",
- "note"
- ],
- "type": "object"
- },
- "bound": {
- "description": "The bound this result is held to, by method: a pulse run (class bounded): every probability within this of the exact solution of the model's master equation, the truncation bound and the rounding estimate together; stabilizer_rank's sampled mode (class estimate): the bound on the distance of the estimated state from the state, holding with the probability confidence states.",
- "minimum": 0,
- "type": "number"
- },
- "class": {
- "description": "bit-exact: the same bits on every machine; exact: no approximation beyond double-precision rounding; single: single-precision arithmetic; bounded: a rigorous bound beside each value; estimate: a statistical estimate with its standard error; heuristic: an approximation with an estimate of its error, not a bound; measured: counts a processor returned through the person's provider, not reproducible by recomputation; simulated: counts a provider's simulator or emulator returned, measured on no device. Results sealed before simulated existed label a provider's simulator measured, and are read by its provenance. none: the run was stopped at its contract's energy ceiling and gave no answer.",
- "enum": [
- "bit-exact",
- "exact",
- "single",
- "bounded",
- "estimate",
- "heuristic",
- "measured",
- "simulated",
- "none"
- ]
- },
- "confidence": {
- "description": "The probability a stated bound holds.",
- "type": "number"
- },
- "device": {
- "type": "string"
- },
- "discarded_weight": {
- "type": "number"
- },
- "fidelity_estimate": {
- "type": "number"
- },
- "fusion": {
- "type": "integer"
- },
- "gate_applications": {
- "type": "integer"
- },
- "global_phase": {
- "description": "The bit-exact method: method statevector's state of the program that ran is e^(i radians) times the amplitudes given, since this method's lowering drops the phase of rz, rx, ry, rxx, ryy, rzz and u. Absent when that is 1. The language's own state can differ from both: its U is e^(i theta / 2) times the matrix both methods take as u, the reader drops an uncontrolled gphase (Q206), and a compiled job's program is the compile's, right up to a global phase.",
- "properties": {
- "note": {
- "type": "string"
- },
- "radians": {
- "description": "The same in radians, in (-pi, pi].",
- "type": "number"
- },
- "turns_over_2_33": {
- "description": "The phase exactly, in 2^33rds of a turn.",
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "turns_over_2_33",
- "radians",
- "note"
- ],
- "type": "object"
- },
- "histories": {
- "type": "integer"
- },
- "max_bond": {
- "type": "integer"
- },
- "max_bond_used": {
- "type": "integer"
- },
- "max_cut": {
- "type": "integer"
- },
- "max_weight": {
- "type": [
- "integer",
- "null"
- ]
- },
- "moved_angles": {
- "description": "The bit-exact method: phase gates of its lowering within the reader's tolerance (1e-14 of a turn) of a dyadic angle, by more than a double's rounding of it, that ran as it. `angles` counts those gates.",
- "properties": {
- "angles": {
- "minimum": 1,
- "type": "integer"
- },
- "largest_radians": {
- "type": "number"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "angles",
- "largest_radians",
- "note"
- ],
- "type": "object"
- },
- "norm": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "order_work": {
- "type": "number"
- },
- "rounding_estimate": {
- "description": "A pulse run: an estimate of floating-point rounding beside the bound, not a proof.",
- "type": "number"
- },
- "shots": {
- "type": "integer"
- },
- "t_count": {
- "description": "stabilizer_rank: the T and T† gates the program lowers to.",
- "minimum": 0,
- "type": "integer"
- },
- "terms": {
- "description": "stabilizer_rank: the stabilizer branches summed (2^t exactly), or drawn.",
- "minimum": 1,
- "type": "integer"
- },
- "threshold": {
- "type": "number"
- },
- "tolerance": {
- "type": "number"
- },
- "trajectories": {
- "type": "integer"
- },
- "truncation_bound": {
- "description": "A pulse run: the proved bound, in the trace norm, on what the integrator's series leaves out.",
- "type": "number"
- },
- "truncations": {
- "type": "integer"
- }
- },
- "required": [
- "class"
- ],
- "type": "object"
- },
- "amplitudes": {
- "items": {
- "properties": {
- "bits": {
- "description": "One 0 or 1 per qubit, qubit n-1 first.",
- "type": "string"
- },
- "bound": {
- "description": "A bound on |exact − value| of the amplitude, holding with the probability confidence states (stabilizer_rank's sampled mode).",
- "minimum": 0,
- "type": "number"
- },
- "confidence": {
- "description": "The probability the bound holds.",
- "type": "number"
- },
- "im": {
- "type": "number"
- },
- "re": {
- "type": "number"
- }
- },
- "required": [
- "bits",
- "re",
- "im"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "calibration": {
- "description": "A provider job: the calibration snapshot it ran under.",
- "type": [
- "string",
- "null"
- ]
- },
- "compiled": {
- "anyOf": [
- {
- "description": "A provider job: the program sent, compiled exactly to the device's own gates: its basis (the device's gate set), its OpenQASM 3 text (qasm3) and that text's BLAKE3 (program), its counts of gates and swaps, its layouts, and the check it passed before it was sent. Results sealed before qasm3 carry the hash alone.",
- "properties": {
- "basis": {
- "type": "string"
- },
- "checked": {
- "type": "string"
- },
- "final_layout": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "hash": {
- "type": "string"
- },
- "layout": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "native_gates": {
- "type": "integer"
- },
- "placement": {
- "description": "Where the program was placed on the device's qubits, and why.",
- "type": "object"
- },
- "program": {
- "type": "string"
- },
- "qasm3": {
- "description": "The program sent, as OpenQASM 3, $i being index i of the coupling map the provider described; program is the BLAKE3 of its UTF-8 bytes.",
- "type": "string"
- },
- "qubit_names": {
- "additionalProperties": {
- "minLength": 1,
- "type": "string"
- },
- "description": "The device's own name for each index the program uses, as it was when the job was sent, where a client sends it under those names.",
- "type": "object"
- },
- "swaps": {
- "type": "integer"
- },
- "two_qubit_gates": {
- "type": "integer"
- }
- },
- "required": [
- "basis",
- "program"
- ],
- "type": "object"
- },
- {
- "description": "A job asked to compile its program first: what ran is the compiled circuit, within distance of the program in the operator norm up to a global phase.",
- "properties": {
- "basis": {
- "description": "The gate set the program was compiled to.",
- "enum": [
- "clifford_t",
- "standard"
- ]
- },
- "certificate": {
- "description": "The BLAKE3 of the compile certificate's RFC 8785 text, in hex.",
- "type": [
- "string",
- "null"
- ]
- },
- "distance": {
- "description": "The bound the passes' distances add to.",
- "type": [
- "number",
- "null"
- ]
- },
- "epsilon": {
- "description": "The budget asked for.",
- "type": "number"
- },
- "level": {
- "minimum": 0,
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "output": {
- "description": "A circuit's counts, as the compiler counts them.",
- "properties": {
- "cnots": {
- "minimum": 0,
- "type": "integer"
- },
- "depth": {
- "minimum": 0,
- "type": "integer"
- },
- "gates": {
- "minimum": 0,
- "type": "integer"
- },
- "one_qubit": {
- "minimum": 0,
- "type": "integer"
- },
- "rotations": {
- "minimum": 0,
- "type": "integer"
- },
- "t_count": {
- "minimum": 0,
- "type": "integer"
- },
- "three_qubit": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "source": {
- "description": "A circuit's counts, as the compiler counts them.",
- "properties": {
- "cnots": {
- "minimum": 0,
- "type": "integer"
- },
- "depth": {
- "minimum": 0,
- "type": "integer"
- },
- "gates": {
- "minimum": 0,
- "type": "integer"
- },
- "one_qubit": {
- "minimum": 0,
- "type": "integer"
- },
- "rotations": {
- "minimum": 0,
- "type": "integer"
- },
- "t_count": {
- "minimum": 0,
- "type": "integer"
- },
- "three_qubit": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "verdict": {
- "type": "string"
- }
- },
- "required": [
- "basis",
- "verdict"
- ],
- "type": "object"
- }
- ],
- "description": "How the program was compiled before it ran: on the person's own provider, to the device's gates; or, asked with compile, to a basis within a budget. Either way, basis is the gate set it was compiled to."
- },
- "components": {
- "description": "The identity of every component that made the result, when a registered one took part (engine::registry): its program's format, the passes its compile ran, the noise channels it names, its method; each registered one marked so. Sealed by the receipt with the rest.",
- "items": {
- "description": "One component that made the result (engine::registry): its kind, name and version, the BLAKE3 digest of its descriptor, and whether it is built in. A result carries these only when a registered component took part; one made by built-ins alone names them as it always has (its method, its compile's passes, its noise's channels and the engine's version), the digests of that version listed by the components list.",
- "properties": {
- "certified": {
- "const": false,
- "description": "Beside a registered component: the engine does not certify it."
- },
- "digest": {
- "description": "BLAKE3 of the component's descriptor in its canonical JSON (engine::registry::digest_of).",
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "kind": {
- "enum": [
- "method",
- "pass",
- "channel",
- "front_end"
- ]
- },
- "name": {
- "type": "string"
- },
- "origin": {
- "description": "built-in: the engine's own; registered: a host's own, added in its process, not part of the engine.",
- "enum": [
- "built-in",
- "registered"
- ]
- },
- "version": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "name",
- "version",
- "digest",
- "origin"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "contraction_flops": {
- "description": "The tensor network's contraction cost.",
- "type": "number"
- },
- "cost": {
- "description": "A provider job: the estimate shown before it was sent, what the provider says it charged, and whether the person confirmed a run that was not free.",
- "type": "object"
- },
- "counts": {
- "additionalProperties": {
- "minimum": 0,
- "type": "integer"
- },
- "description": "Outcomes and their counts, keyed by the program's classical bits, the highest bit first. At most 65536 outcomes are listed; omitted_shots holds the rest.",
- "type": "object"
- },
- "counts_source": {
- "description": "A provider job: where its counts come from (wai/extensions/quantum-providers.md section 8.3): tallied from one record a shot (shots), the provider's own counts (vendor_counts), or rebuilt from the probabilities it returned by largest remainders, derived and not shot records (probabilities). Results sealed before it carry neither it nor execution.",
- "enum": [
- "shots",
- "vendor_counts",
- "probabilities"
- ]
- },
- "diagnostics": {
- "description": "The reader's warnings and notes on the program, each with its code.",
- "items": {
- "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "lowered",
- "carried",
- "preserved",
- "warned"
- ]
- }
- },
- "required": [
- "code",
- "outcome",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "distinct_outcomes": {
- "minimum": 0,
- "type": "integer"
- },
- "dynamic": {
- "description": "A program that measures in the middle, resets or branches on a measured bit: how it ran.",
- "properties": {
- "branches_run": {
- "minimum": 0,
- "type": "integer"
- },
- "branches_weighed": {
- "minimum": 0,
- "type": "integer"
- },
- "measurements_and_resets": {
- "minimum": 0,
- "type": "integer"
- },
- "states_at_once": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "elapsed_ms": {
- "description": "Wall time of the run, where the host has a clock (not in a browser tab).",
- "minimum": 0,
- "type": "integer"
- },
- "energy": {
- "anyOf": [
- {
- "properties": {
- "service_kwh": {
- "description": "A provider job: the provider's own figure.",
- "type": "number"
- },
- "service_kwh_is": {
- "type": "string"
- },
- "unmetered": {
- "type": "string"
- }
- },
- "required": [
- "unmetered"
- ],
- "type": "object"
- },
- {
- "properties": {
- "attribution": {
- "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
- "enum": [
- "process",
- "none"
- ]
- },
- "concurrent_jobs": {
- "description": "Other jobs that ran on the host during the window.",
- "minimum": 0,
- "type": "integer"
- },
- "counter": {
- "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
- "properties": {
- "step_uj": {
- "minimum": 0,
- "type": "integer"
- },
- "update_us": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "coverage": {
- "enum": [
- "whole",
- "partial"
- ]
- },
- "covers": {
- "type": "string"
- },
- "cpu_ms": {
- "type": "integer"
- },
- "declared": {
- "description": "What the stated uncertainty covers, and what it does not.",
- "type": "string"
- },
- "energy_counter_filtering": {
- "type": "string"
- },
- "energy_provenance": {
- "type": "string"
- },
- "energy_uncertainty": {
- "properties": {
- "relative_ppm": {
- "type": "integer"
- },
- "window_us": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "excludes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "joules_micro": {
- "minimum": 1,
- "type": "integer"
- },
- "packages": {
- "description": "The processor packages read.",
- "minimum": 1,
- "type": "integer"
- },
- "source": {
- "type": "string"
- }
- },
- "required": [
- "joules_micro",
- "energy_provenance",
- "coverage"
- ],
- "type": "object"
- }
- ],
- "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
- },
- "engine": {
- "description": "The engine that made the result: the wai-quantum crate's name and version.",
- "properties": {
- "name": {
- "const": "wai-quantum"
- },
- "version": {
- "description": "Its semantic version, as MAJOR.MINOR.PATCH.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "version"
- ],
- "type": "object"
- },
- "execution": {
- "additionalProperties": false,
- "description": "A provider job: how the device was asked to run the program (section 8.3): who states it (stated_by: client, provider or nobody); what the client sent (sent: the request's members and the settings among them); each of mitigation, twirling, decoupling, remapping and optimisation (off, on, default when the request sets nothing for it, none when the device has no such step, unknown when nobody states it); whether the gates were to run as written (verbatim); and a note.",
- "properties": {
- "decoupling": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "mitigation": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "note": {
- "type": "string"
- },
- "optimisation": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "remapping": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "sent": {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "settings": {
- "type": "object"
- }
- },
- "required": [
- "fields",
- "settings"
- ],
- "type": "object"
- },
- "stated_by": {
- "enum": [
- "client",
- "provider",
- "nobody"
- ]
- },
- "twirling": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "verbatim": {
- "type": [
- "boolean",
- "null"
- ]
- }
- },
- "required": [
- "stated_by",
- "mitigation",
- "twirling",
- "decoupling",
- "remapping",
- "optimisation",
- "verbatim"
- ],
- "type": "object"
- },
- "expectations": {
- "items": {
- "properties": {
- "bound": {
- "description": "A bound on |exact − value|: rigorous for the bounded class; with confidence beside it, holding with that probability.",
- "type": "number"
- },
- "coeff": {
- "type": "number"
- },
- "confidence": {
- "description": "The probability the bound holds, for a bound that holds with a stated probability (stabilizer_rank's sampled mode).",
- "type": "number"
- },
- "ladder": {
- "description": "The value at thresholds a decade apart, the asked one last.",
- "items": {
- "properties": {
- "bound": {
- "type": "number"
- },
- "peak_terms": {
- "type": "integer"
- },
- "threshold": {
- "type": "number"
- },
- "threshold_reached": {
- "type": "number"
- },
- "value": {
- "type": "number"
- }
- },
- "required": [
- "threshold",
- "value",
- "bound"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "max_terms": {
- "type": "integer"
- },
- "observable": {
- "type": "string"
- },
- "peak_terms": {
- "type": "integer"
- },
- "stderr": {
- "description": "The standard error, for an estimate.",
- "type": "number"
- },
- "threshold_reached": {
- "type": "number"
- },
- "value": {
- "description": "The coefficient times the expectation value.",
- "type": "number"
- }
- },
- "required": [
- "observable",
- "coeff",
- "value"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "fabric": {
- "description": "Where the state vector, or the pauli method's sum of terms, ran: the kernel, the placement the job asked for, the member that ran it (or each partition's), each with its certificate, and the energy. Present when the job asked for a placement, or when auto placed the state on a member by measurement (`auto`); a job auto leaves on the CPU names nothing; the receipt seals it with the rest of the result. Every member placed is certified bit-exact, so the answers are the CPU's, byte for byte.",
- "properties": {
- "asked": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- ],
- "description": "The placement the job asked for, as it gave it."
- },
- "auto": {
- "description": "Why auto placed the state where it ran: the rule (a member is placed only where the committed measurements show it faster than this host's CPU for the job's size and fusion width) and the measured row it rests on, with the host, the day and the load it was measured under. Present only when auto placed a state on a member.",
- "properties": {
- "about": {
- "type": "string"
- },
- "basis": {
- "description": "The measured row the job is judged by: the largest measured size at or below its own, the launches of its plan, the runs of each, and the spread of the CPU's and the member's times in milliseconds.",
- "properties": {
- "cpu_ms": {
- "description": "The least, the median and the most of a measured row's runs, in milliseconds.",
- "properties": {
- "max": {
- "type": "number"
- },
- "median": {
- "type": "number"
- },
- "min": {
- "type": "number"
- }
- },
- "required": [
- "min",
- "median",
- "max"
- ],
- "type": "object"
- },
- "launches": {
- "minimum": 0,
- "type": "integer"
- },
- "member_ms": {
- "description": "The least, the median and the most of a measured row's runs, in milliseconds.",
- "properties": {
- "max": {
- "type": "number"
- },
- "median": {
- "type": "number"
- },
- "min": {
- "type": "number"
- }
- },
- "required": [
- "min",
- "median",
- "max"
- ],
- "type": "object"
- },
- "qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "runs": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "qubits",
- "launches",
- "runs",
- "cpu_ms",
- "member_ms"
- ],
- "type": "object"
- },
- "discovery_ms": {
- "description": "What discovering and certifying the host's members took, once per process, as measured.",
- "type": "number"
- },
- "from_qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "fusion": {
- "minimum": 1,
- "type": "integer"
- },
- "host": {
- "description": "The host's processor as the measurements name it (cpu-<architecture>-<hash>).",
- "type": "string"
- },
- "load": {
- "type": "string"
- },
- "measured": {
- "description": "The day the host was measured (UTC).",
- "type": "string"
- },
- "min_launches": {
- "minimum": 0,
- "type": "integer"
- },
- "rule": {
- "type": "string"
- },
- "to_qubits": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "rule",
- "host",
- "fusion",
- "from_qubits",
- "to_qubits"
- ],
- "type": "object"
- },
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "class": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "energy": {
- "anyOf": [
- {
- "properties": {
- "service_kwh": {
- "description": "A provider job: the provider's own figure.",
- "type": "number"
- },
- "service_kwh_is": {
- "type": "string"
- },
- "unmetered": {
- "type": "string"
- }
- },
- "required": [
- "unmetered"
- ],
- "type": "object"
- },
- {
- "properties": {
- "attribution": {
- "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
- "enum": [
- "process",
- "none"
- ]
- },
- "concurrent_jobs": {
- "description": "Other jobs that ran on the host during the window.",
- "minimum": 0,
- "type": "integer"
- },
- "counter": {
- "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
- "properties": {
- "step_uj": {
- "minimum": 0,
- "type": "integer"
- },
- "update_us": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "coverage": {
- "enum": [
- "whole",
- "partial"
- ]
- },
- "covers": {
- "type": "string"
- },
- "cpu_ms": {
- "type": "integer"
- },
- "declared": {
- "description": "What the stated uncertainty covers, and what it does not.",
- "type": "string"
- },
- "energy_counter_filtering": {
- "type": "string"
- },
- "energy_provenance": {
- "type": "string"
- },
- "energy_uncertainty": {
- "properties": {
- "relative_ppm": {
- "type": "integer"
- },
- "window_us": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "excludes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "joules_micro": {
- "minimum": 1,
- "type": "integer"
- },
- "packages": {
- "description": "The processor packages read.",
- "minimum": 1,
- "type": "integer"
- },
- "source": {
- "type": "string"
- }
- },
- "required": [
- "joules_micro",
- "energy_provenance",
- "coverage"
- ],
- "type": "object"
- }
- ],
- "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
- },
- "exchanges": {
- "description": "Partition qubits exchanged with local ones through the host's copy of the state.",
- "minimum": 0,
- "type": "integer"
- },
- "fell_back_from": {
- "description": "An accelerator request whose member failed during the run: each member that failed, in turn, with how; the member named above ran the job.",
- "items": {
- "description": "A member of the fabric and its certificate for the kernel: its id (which binds the device), its key, its class, the implementation, the parity tier, the certificate's digest (BLAKE3, hex), and the corpus it was earned on (its digest, generator and cases; the CPU reference's own standing has none).",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "class": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "key": {
- "type": "string"
- },
- "member": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "description": "For a member the job fell back from: how it failed.",
- "type": "string"
- },
- "wide": {
- "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "kernel": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "parity"
- ],
- "type": "object"
- }
- },
- "required": [
- "member",
- "implementation",
- "parity",
- "certificate"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "generator": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "kernel": {
- "type": "string"
- },
- "key": {
- "type": "string"
- },
- "local_qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "member": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "partition_qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "partitions": {
- "description": "Each partition's member, by the value of the state's top qubits: partition i holds the amplitudes whose top bits read i.",
- "items": {
- "description": "A member of the fabric and its certificate for the kernel: its id (which binds the device), its key, its class, the implementation, the parity tier, the certificate's digest (BLAKE3, hex), and the corpus it was earned on (its digest, generator and cases; the CPU reference's own standing has none).",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "class": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "key": {
- "type": "string"
- },
- "member": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "description": "For a member the job fell back from: how it failed.",
- "type": "string"
- },
- "wide": {
- "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "kernel": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "parity"
- ],
- "type": "object"
- }
- },
- "required": [
- "member",
- "implementation",
- "parity",
- "certificate"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "segments": {
- "description": "Runs of gates the partitions took in turn, between exchanges.",
- "minimum": 0,
- "type": "integer"
- },
- "why": {
- "type": "string"
- },
- "wide": {
- "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "kernel": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "parity"
- ],
- "type": "object"
- }
- },
- "required": [
- "kernel",
- "asked",
- "parity",
- "energy"
- ],
- "type": "object"
- },
- "gates": {
- "description": "The program's gates, in standard gates (at most 2^53 - 1), however the method ran them.",
- "minimum": 0,
- "type": "integer"
- },
- "global_phase": {
- "description": "Why the amplitudes' global phase is not fixed, when it is not.",
- "type": "string"
- },
- "ideal": {
- "anyOf": [
- {
- "properties": {
- "computed": {
- "const": true
- },
- "hellinger_fidelity": {
- "type": "number"
- },
- "ideal_outcomes": {
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "sampling_tvd_expected": {
- "type": "number"
- },
- "total_variation_distance": {
- "type": "number"
- }
- },
- "required": [
- "computed",
- "total_variation_distance",
- "hellinger_fidelity"
- ],
- "type": "object"
- },
- {
- "properties": {
- "computed": {
- "const": false
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "computed",
- "why"
- ],
- "type": "object"
- }
- ],
- "description": "A provider job: the circuit's exact distribution set beside the measured counts."
- },
- "job": {
- "description": "A provider job: the provider's job id and its status checks.",
- "type": "object"
- },
- "method": {
- "description": "The method that ran the job (provider for a run on the person's own provider).",
- "type": "string"
- },
- "mitigation": {
- "description": "A job's mitigation (its request's mitigate, engine::mitigate), in its result: the method and the options it ran with, its bias and variance assumptions, each observable raw and mitigated with a standard error each and the ideal value (or, for readout, the counts inverted as a quasi-distribution), the method's own details and what it spent. docs/qec.md describes each method.",
- "properties": {
- "assumptions": {
- "properties": {
- "bias": {
- "type": "string"
- },
- "variance": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "cost": {
- "description": "The circuits and shots it spent beyond the job's own.",
- "properties": {
- "circuits": {
- "minimum": 0,
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "details": {
- "additionalProperties": true,
- "description": "The method's own: the folded scales and the folding check (zne), the learned model and the amplified values (pea), the quasi-probability and the value it converges to (pec), the training fits (cdr), the purity (vd), the flip and its amplification (readout).",
- "type": "object"
- },
- "distribution": {
- "description": "readout: each outcome's raw share and its mitigated quasi-probability, with its standard error.",
- "items": {
- "properties": {
- "bits": {
- "type": "string"
- },
- "mitigated": {
- "type": "number"
- },
- "raw": {
- "type": "number"
- },
- "stderr": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "method": {
- "enum": [
- "zne",
- "pea",
- "pec",
- "cdr",
- "vd",
- "readout"
- ]
- },
- "noise": {
- "description": "How the job's noise model is read for the method.",
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "observables": {
- "items": {
- "description": "One observable: its raw value and the mitigated one, each with its standard error, and the ideal value a simulation knows.",
- "properties": {
- "coeff": {
- "type": "number"
- },
- "ideal": {
- "type": "number"
- },
- "mitigated": {
- "type": "number"
- },
- "observable": {
- "type": "string"
- },
- "raw": {
- "type": "number"
- },
- "raw_stderr": {
- "type": "number"
- },
- "stderr": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "options": {
- "description": "The options it ran with, the defaults filled in.",
- "properties": {
- "extrapolation": {
- "enum": [
- "richardson",
- "linear",
- "exponential"
- ]
- },
- "factors": {
- "items": {
- "type": "number"
- },
- "type": "array"
- },
- "keep": {
- "type": "integer"
- },
- "learn_shots": {
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "samples": {
- "type": "integer"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "training": {
- "type": "integer"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "method",
- "options",
- "assumptions"
- ],
- "title": "wai.quantum.mitigation/1",
- "type": "object"
- },
- "omitted_shots": {
- "minimum": 0,
- "type": "integer"
- },
- "operations": {
- "description": "When the method held a gate under many controls as one (statevector, and exact asked for it): the operations it ran.",
- "minimum": 0,
- "type": "integer"
- },
- "outcome_dimension": {
- "description": "The stabilizer method: the dimension of the measured outcomes' affine space.",
- "minimum": 0,
- "type": "integer"
- },
- "outputs": {
- "description": "The program's output declarations: each its name and type, and its value, or the places of its bits in each outcome.",
- "items": {
- "properties": {
- "bits": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "description": "A number, a boolean, a bit string, a duration's text, {\"re\", \"im\"}, or an array of them."
- }
- },
- "required": [
- "name",
- "type"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "planner": {
- "description": "Why this route ran (wai.quantum.planner/1): every route the host could see, each one's price or reason for rejection, and the choice. Sealed by the receipt; a verifier recomputes each route's outcome and the choice from what it states (wai/extensions/quantum-providers.md section 8.7). A plan carries it too, with the refusal in place of the choice when no route meets the contract.",
- "properties": {
- "auto": {
- "description": "The route auto picks, when the job leaves the method to it.",
- "type": [
- "string",
- "null"
- ]
- },
- "choice": {
- "type": [
- "string",
- "null"
- ]
- },
- "format": {
- "const": "wai.quantum.planner/1"
- },
- "host": {
- "properties": {
- "job_bytes": {
- "minimum": 0,
- "type": "number"
- },
- "providers": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "job_bytes",
- "providers"
- ],
- "type": "object"
- },
- "kept": {
- "description": "What the contract asked, against what happened; each kept is null when it cannot be said. A result that missed one is sealed and says so.",
- "properties": {
- "cost": {
- "properties": {
- "charged": {
- "properties": {
- "amount": {
- "type": "string"
- },
- "currency": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "kept": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "max_cost": {
- "properties": {
- "amount": {
- "type": "string"
- },
- "currency": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "max_cost",
- "charged",
- "kept"
- ],
- "type": "object"
- },
- "deadline": {
- "properties": {
- "elapsed_ms": {
- "minimum": 0,
- "type": [
- "integer",
- "null"
- ]
- },
- "kept": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "seconds": {
- "type": "number"
- }
- },
- "required": [
- "seconds",
- "elapsed_ms",
- "kept"
- ],
- "type": "object"
- },
- "energy": {
- "properties": {
- "joules": {
- "type": [
- "number",
- "null"
- ]
- },
- "kept": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "max_joules": {
- "type": "number"
- }
- },
- "required": [
- "max_joules",
- "joules",
- "kept"
- ],
- "type": "object"
- }
- },
- "type": "object"
- },
- "named": {
- "description": "The route the job names: the provider or the method its request names, or the one method a device target's job runs on; null when it names none.",
- "type": [
- "string",
- "null"
- ]
- },
- "question": {
- "description": "The question the job asks, read from its request, which orders the methods auto tries (section 8.7).",
- "enum": [
- "noise",
- "counts",
- "expectations",
- "amplitudes"
- ]
- },
- "refusal": {
- "description": "When no route meets the contract, in a plan: the refusal as data.",
- "type": "object"
- },
- "routes": {
- "items": {
- "description": "One route the planner could see: its class, its price or why it has none, and what came of it.",
- "properties": {
- "approximate": {
- "const": true
- },
- "auto_rank": {
- "description": "On a local route: its rank in auto's order for the job's question, or null where auto does not try it; a built-in method's is section 8.7's table.",
- "minimum": 0,
- "type": [
- "integer",
- "null"
- ]
- },
- "class": {
- "description": "The accuracy class its result has at worst: a matrix product state's is heuristic, though its result may say exact.",
- "type": "string"
- },
- "device": {
- "type": "string"
- },
- "host_dependent": {
- "description": "Whether it depends on the host: a provider's, a method on a GPU, or a registered method.",
- "type": "boolean"
- },
- "kind": {
- "enum": [
- "local",
- "provider"
- ]
- },
- "method": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "chosen",
- "met",
- "rejected"
- ]
- },
- "price": {
- "anyOf": [
- {
- "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
- "properties": {
- "energy": {
- "properties": {
- "basis": {
- "type": "string"
- },
- "joules": {
- "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "unwatched": {
- "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
- "type": "string"
- },
- "watch": {
- "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "joules"
- ],
- "type": "object"
- },
- "leaves_out": {
- "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
- "items": {
- "enum": [
- "time",
- "amount",
- "energy",
- "mitigation",
- "decoder",
- "charged",
- "cancel"
- ]
- },
- "type": "array"
- },
- "memory_bytes": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "money": {
- "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
- "properties": {
- "amount": {
- "type": "string"
- },
- "at_least": {
- "const": true,
- "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
- },
- "currency": {
- "type": "string"
- },
- "free": {
- "type": "boolean"
- },
- "unit": {
- "type": "string"
- },
- "unknown": {
- "type": "string"
- }
- },
- "required": [
- "free"
- ],
- "type": "object"
- },
- "program": {
- "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
- "properties": {
- "expected_success": {
- "type": "number"
- },
- "native_gates": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "swaps": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit_gates": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "time": {
- "properties": {
- "basis": {
- "enum": [
- "nominal",
- "provider"
- ]
- },
- "seconds": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "seconds"
- ],
- "type": "object"
- },
- "work": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "money",
- "time",
- "memory_bytes",
- "work",
- "energy",
- "leaves_out"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "provenance": {
- "type": "string"
- },
- "provider": {
- "type": "string"
- },
- "rejected": {
- "properties": {
- "code": {
- "enum": [
- "not_named",
- "fabric",
- "class",
- "cannot",
- "memory",
- "providers",
- "deadline",
- "deadline_unknown",
- "cost",
- "cost_currency",
- "cost_unknown",
- "cost_at_least",
- "cost_no_ceiling",
- "energy",
- "energy_unwatched"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "why"
- ],
- "type": "object"
- },
- "route": {
- "description": "method:<name> or provider:<name>.",
- "type": "string"
- }
- },
- "required": [
- "route",
- "kind",
- "class",
- "host_dependent",
- "price",
- "outcome"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "shadow": {
- "description": "The classical method that would shadow a provider's answer within the contract, or why none can.",
- "properties": {
- "budget_seconds": {
- "minimum": 0,
- "type": "number"
- },
- "class": {
- "type": "string"
- },
- "code": {
- "enum": [
- "budget",
- "memory",
- "none"
- ]
- },
- "price": {
- "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
- "properties": {
- "energy": {
- "properties": {
- "basis": {
- "type": "string"
- },
- "joules": {
- "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "unwatched": {
- "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
- "type": "string"
- },
- "watch": {
- "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "joules"
- ],
- "type": "object"
- },
- "leaves_out": {
- "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
- "items": {
- "enum": [
- "time",
- "amount",
- "energy",
- "mitigation",
- "decoder",
- "charged",
- "cancel"
- ]
- },
- "type": "array"
- },
- "memory_bytes": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "money": {
- "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
- "properties": {
- "amount": {
- "type": "string"
- },
- "at_least": {
- "const": true,
- "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
- },
- "currency": {
- "type": "string"
- },
- "free": {
- "type": "boolean"
- },
- "unit": {
- "type": "string"
- },
- "unknown": {
- "type": "string"
- }
- },
- "required": [
- "free"
- ],
- "type": "object"
- },
- "program": {
- "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
- "properties": {
- "expected_success": {
- "type": "number"
- },
- "native_gates": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "swaps": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit_gates": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "time": {
- "properties": {
- "basis": {
- "enum": [
- "nominal",
- "provider"
- ]
- },
- "seconds": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "seconds"
- ],
- "type": "object"
- },
- "work": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "money",
- "time",
- "memory_bytes",
- "work",
- "energy",
- "leaves_out"
- ],
- "type": "object"
- },
- "request": {
- "type": "object"
- },
- "route": {
- "type": [
- "string",
- "null"
- ]
- },
- "tried": {
- "items": {
- "properties": {
- "code": {
- "type": "string"
- },
- "route": {
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "route"
- ],
- "type": "object"
- },
- "stable": {
- "properties": {
- "choice": {
- "type": "boolean"
- },
- "digest": {
- "type": "string"
- },
- "routes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "scope": {
- "type": "string"
- }
- },
- "required": [
- "scope",
- "routes",
- "digest",
- "choice"
- ],
- "type": "object"
- },
- "wanted": {
- "description": "The class wanted: the contract's, else that of the route the job names or auto's pick.",
- "type": [
- "string",
- "null"
- ]
- },
- "wanted_from": {
- "enum": [
- "contract",
- "named",
- "auto",
- null
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "format",
- "wanted",
- "wanted_from",
- "auto",
- "host",
- "routes",
- "choice",
- "why",
- "stable",
- "named",
- "question"
- ],
- "type": "object"
- },
- "provenance": {
- "description": "What a result came from, under the five categories cross-platform provenance surveys use: the circuit, the computer, the compilation, the execution and the software. A host adds it to the results it seals (the job service does, and each item of a set); a result without it reads as it always did. wai-quantum-service/docs/provenance.md maps every field to where it is and whether the receipt seals it.",
- "properties": {
- "circuit": {
- "description": "The program: the BLAKE3 digest of its text as given, its qubits and its gates.",
- "properties": {
- "gates": {
- "type": [
- "integer",
- "null"
- ]
- },
- "program": {
- "description": "BLAKE3 of the program's text, in hex.",
- "type": "string"
- },
- "qubits": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "program"
- ],
- "type": "object"
- },
- "compilation": {
- "description": "Whether the job asked to be compiled; if it did, each pass in order with its check's verdict, the certificate's digest, the gate set compiled to (its basis), the level, the ε budget and the distance the result carries, and that no pass draws a random number.",
- "properties": {
- "asked": {
- "type": "boolean"
- },
- "basis": {
- "description": "The gate set compiled to: clifford_t or standard.",
- "type": [
- "string",
- "null"
- ]
- },
- "certificate": {
- "type": [
- "string",
- "null"
- ]
- },
- "device": {
- "description": "A job on a device target, compiled exactly to its gates: where its layout and routes are.",
- "type": "string"
- },
- "distance": {
- "type": [
- "number",
- "null"
- ]
- },
- "epsilon": {
- "type": [
- "number",
- "null"
- ]
- },
- "level": {
- "type": [
- "integer",
- "null"
- ]
- },
- "passes": {
- "items": {
- "properties": {
- "pass": {
- "type": "string"
- },
- "verdict": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "seeded": {
- "const": false
- },
- "status": {
- "const": "not-applicable"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "asked"
- ],
- "type": "object"
- },
- "computer": {
- "description": "What ran it: a classical simulator, the method and its accuracy class, a device target's hash when the job named one, and the fabric's members when the result names where its state ran.",
- "properties": {
- "accuracy": {
- "type": [
- "string",
- "null"
- ]
- },
- "fabric": {
- "description": "The kernel and the member that ran the state, or each partition's, as the result's fabric names them.",
- "properties": {
- "kernel": {
- "type": "string"
- },
- "members": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "kind": {
- "const": "simulator"
- },
- "method": {
- "type": "string"
- },
- "target": {
- "description": "The device target's hash; its layout, routes and noise are in the result's own target.",
- "type": "string"
- }
- },
- "required": [
- "kind",
- "method"
- ],
- "type": "object"
- },
- "execution": {
- "description": "The shots, the seed and the plan the job ran under; its identifier and times are the host's, outside the result.",
- "properties": {
- "plan": {
- "properties": {
- "memory_bytes": {
- "minimum": 0,
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "why": {
- "type": "string"
- },
- "work": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "seed": {
- "type": [
- "integer",
- "null"
- ]
- },
- "shots": {
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "required": [
- "plan"
- ],
- "type": "object"
- },
- "schema": {
- "const": "wai.quantum.provenance/1"
- },
- "software": {
- "description": "The engine's name and version, and the host's.",
- "properties": {
- "engine": {
- "type": "string"
- },
- "host": {
- "type": "string"
- }
- },
- "required": [
- "engine",
- "host"
- ],
- "type": "object"
- }
- },
- "required": [
- "schema",
- "circuit",
- "computer",
- "compilation",
- "execution",
- "software"
- ],
- "title": "wai.quantum.provenance/1",
- "type": "object"
- },
- "provider": {
- "description": "A provider job: the provider's name, kind and protocol, the device, its provenance, and the hash of its description.",
- "type": "object"
- },
- "pulse": {
- "description": "A pulse run (method pulse, engine::pulse): what was read and its distribution, the final populations, each capture's reading, the final density matrix's digest, the schedule's length, the integrator and its step, the device and where each parameter came from, and what the receipt binds (calibration).",
- "properties": {
- "calibration": {
- "description": "What the receipt binds: the program's, its calibrations', the schedule's and the device's digests, and the target snapshot.",
- "properties": {
- "calibrations": {
- "type": "string"
- },
- "device": {
- "type": "string"
- },
- "program": {
- "type": "string"
- },
- "schedule": {
- "type": "string"
- },
- "target": {
- "properties": {
- "calibration": {
- "type": "object"
- },
- "hash": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "type": "object"
- },
- "captures": {
- "items": {
- "properties": {
- "bit": {
- "type": [
- "string",
- "null"
- ]
- },
- "frame": {
- "type": "string"
- },
- "p1": {
- "type": "number"
- },
- "p2": {
- "type": "number"
- },
- "qubit": {
- "type": "integer"
- },
- "start": {
- "type": "integer"
- },
- "start_ns": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "density_hash": {
- "description": "The BLAKE3 of the final density matrix's bits: the same on every platform.",
- "type": "string"
- },
- "device": {
- "properties": {
- "couplings": {
- "type": "array"
- },
- "dt_ns": {
- "type": "number"
- },
- "levels": {
- "type": "integer"
- },
- "model": {
- "type": "string"
- },
- "qubits": {
- "items": {
- "properties": {
- "anharmonicity_hz": {
- "type": "number"
- },
- "frequency_hz": {
- "type": "number"
- },
- "from": {
- "additionalProperties": {
- "enum": [
- "pulse",
- "target",
- "default",
- "none"
- ]
- },
- "type": "object"
- },
- "qubit": {
- "type": "integer"
- },
- "rabi_hz": {
- "type": "number"
- },
- "t1_ns": {
- "type": "number"
- },
- "t2_ns": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "distribution": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The probability of each outcome, which the counts sample; null when the captures start at different samples.",
- "type": [
- "object",
- "null"
- ]
- },
- "duration": {
- "type": "integer"
- },
- "duration_ns": {
- "type": "number"
- },
- "integrator": {
- "properties": {
- "dt_ns": {
- "type": "number"
- },
- "frame": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "norm_max": {
- "type": "number"
- },
- "order": {
- "type": "integer"
- },
- "step_ns": {
- "type": "number"
- },
- "steps": {
- "type": "integer"
- },
- "substeps": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "leakage": {
- "description": "With three levels: each qubit's final probability of level 2.",
- "items": {
- "properties": {
- "p2": {
- "type": "number"
- },
- "qubit": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "not_modelled": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "outcome_bits": {
- "description": "What each character of an outcome is, left to right: a program bit (c[0]) or a qubit ($0).",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "populations": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The final state read on every simulated qubit, the highest qubit first, a level above 0 read as 1.",
- "type": "object"
- },
- "read": {
- "description": "What the distribution reads: the captures together (into the program's bits when each writes one), or the final state.",
- "type": "string"
- },
- "simulated_qubits": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "trace": {
- "type": "number"
- }
- },
- "required": [
- "read",
- "outcome_bits",
- "populations",
- "simulated_qubits",
- "density_hash",
- "integrator",
- "device",
- "calibration"
- ],
- "type": "object"
- },
- "qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "receipt": {
- "anyOf": [
- {
- "description": "A result's receipt: an Ed25519 signature, by the key it names, over digest = BLAKE3(\"wai:quantum-service-receipt\\x02\" ‖ len ‖ request ‖ len ‖ result), each of request and result in its RFC 8785 canonical text (the result without its receipt member), each length 8 bytes big-endian. Whatever members the request and the result hold are sealed, the result's engine and schema among them. The first receipts (no canon member, $defs/first) sealed their writer's compact text under the domain ending \\x01; they still verify. wai/extensions/quantum-providers.md section 8.2 states the seal in full, and section 8.4 what a verifier checks.",
- "properties": {
- "alg": {
- "const": "ed25519"
- },
- "canon": {
- "const": "rfc8785",
- "description": "The canonical form the digest is taken over."
- },
- "digest": {
- "description": "The digest signed, 32 bytes in lower-case hex.",
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "key": {
- "description": "The signing key, 32 bytes in lower-case hex.",
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "signature": {
- "description": "The signature, 64 bytes in lower-case hex.",
- "maxLength": 128,
- "minLength": 128,
- "pattern": "^[0-9a-f]{128}$",
- "type": "string"
- }
- },
- "required": [
- "alg",
- "canon",
- "key",
- "digest",
- "signature"
- ],
- "title": "wai.quantum.receipt/2",
- "type": "object"
- },
- {
- "description": "The first form, before canon: the digest is over the compact text its writer wrote of each, members in the document's order (section 8.2 of wai/extensions/quantum-providers.md), under the domain ending \\x01. Never written now; still verified.",
- "properties": {
- "alg": {
- "const": "ed25519"
- },
- "digest": {
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "key": {
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "signature": {
- "maxLength": 128,
- "minLength": 128,
- "pattern": "^[0-9a-f]{128}$",
- "type": "string"
- }
- },
- "required": [
- "alg",
- "key",
- "digest",
- "signature"
- ],
- "type": "object"
- }
- ]
- },
- "repaired": {
- "description": "A job asked to repair its program first: the program that ran, each repair, and what needs a person.",
- "properties": {
- "needs_person": {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "qasm": {
- "type": "string"
- },
- "repairs": {
- "items": {
- "properties": {
- "by": {
- "enum": [
- "engine",
- "proposal"
- ]
- },
- "code": {
- "type": "string"
- },
- "edits": {
- "items": {
- "properties": {
- "after": {
- "type": [
- "string",
- "null"
- ]
- },
- "before": {
- "type": [
- "string",
- "null"
- ]
- },
- "line": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "flagged": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "rule": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "by",
- "edits"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "schema": {
- "const": "wai.quantum.job-result/1",
- "description": "The schema the result follows."
- },
- "shadow": {
- "description": "A classical method's answer beside a provider's, and their distance, for a contract job a provider answered; or why there is none. Its request can be run again by anyone, to the same counts.",
- "properties": {
- "accuracy": {
- "description": "What the method promises of the numbers it gave.",
- "properties": {
- "approximate": {
- "const": true,
- "description": "A simulated result whose provider states its simulator is approximate."
- },
- "batch": {
- "type": "integer"
- },
- "below_table": {
- "description": "The bit-exact method: phase gates of its lowering that are not zero and ran as no phase, within the reader's tolerance (1e-14 of a turn) of a whole turn. `angles` counts those gates: one angle written may be several, and another count in another form of the same program.",
- "properties": {
- "angles": {
- "minimum": 1,
- "type": "integer"
- },
- "largest_radians": {
- "type": "number"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "angles",
- "largest_radians",
- "note"
- ],
- "type": "object"
- },
- "bound": {
- "description": "The bound this result is held to, by method: a pulse run (class bounded): every probability within this of the exact solution of the model's master equation, the truncation bound and the rounding estimate together; stabilizer_rank's sampled mode (class estimate): the bound on the distance of the estimated state from the state, holding with the probability confidence states.",
- "minimum": 0,
- "type": "number"
- },
- "class": {
- "description": "bit-exact: the same bits on every machine; exact: no approximation beyond double-precision rounding; single: single-precision arithmetic; bounded: a rigorous bound beside each value; estimate: a statistical estimate with its standard error; heuristic: an approximation with an estimate of its error, not a bound; measured: counts a processor returned through the person's provider, not reproducible by recomputation; simulated: counts a provider's simulator or emulator returned, measured on no device. Results sealed before simulated existed label a provider's simulator measured, and are read by its provenance. none: the run was stopped at its contract's energy ceiling and gave no answer.",
- "enum": [
- "bit-exact",
- "exact",
- "single",
- "bounded",
- "estimate",
- "heuristic",
- "measured",
- "simulated",
- "none"
- ]
- },
- "confidence": {
- "description": "The probability a stated bound holds.",
- "type": "number"
- },
- "device": {
- "type": "string"
- },
- "discarded_weight": {
- "type": "number"
- },
- "fidelity_estimate": {
- "type": "number"
- },
- "fusion": {
- "type": "integer"
- },
- "gate_applications": {
- "type": "integer"
- },
- "global_phase": {
- "description": "The bit-exact method: method statevector's state of the program that ran is e^(i radians) times the amplitudes given, since this method's lowering drops the phase of rz, rx, ry, rxx, ryy, rzz and u. Absent when that is 1. The language's own state can differ from both: its U is e^(i theta / 2) times the matrix both methods take as u, the reader drops an uncontrolled gphase (Q206), and a compiled job's program is the compile's, right up to a global phase.",
- "properties": {
- "note": {
- "type": "string"
- },
- "radians": {
- "description": "The same in radians, in (-pi, pi].",
- "type": "number"
- },
- "turns_over_2_33": {
- "description": "The phase exactly, in 2^33rds of a turn.",
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "turns_over_2_33",
- "radians",
- "note"
- ],
- "type": "object"
- },
- "histories": {
- "type": "integer"
- },
- "max_bond": {
- "type": "integer"
- },
- "max_bond_used": {
- "type": "integer"
- },
- "max_cut": {
- "type": "integer"
- },
- "max_weight": {
- "type": [
- "integer",
- "null"
- ]
- },
- "moved_angles": {
- "description": "The bit-exact method: phase gates of its lowering within the reader's tolerance (1e-14 of a turn) of a dyadic angle, by more than a double's rounding of it, that ran as it. `angles` counts those gates.",
- "properties": {
- "angles": {
- "minimum": 1,
- "type": "integer"
- },
- "largest_radians": {
- "type": "number"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "angles",
- "largest_radians",
- "note"
- ],
- "type": "object"
- },
- "norm": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "order_work": {
- "type": "number"
- },
- "rounding_estimate": {
- "description": "A pulse run: an estimate of floating-point rounding beside the bound, not a proof.",
- "type": "number"
- },
- "shots": {
- "type": "integer"
- },
- "t_count": {
- "description": "stabilizer_rank: the T and T† gates the program lowers to.",
- "minimum": 0,
- "type": "integer"
- },
- "terms": {
- "description": "stabilizer_rank: the stabilizer branches summed (2^t exactly), or drawn.",
- "minimum": 1,
- "type": "integer"
- },
- "threshold": {
- "type": "number"
- },
- "tolerance": {
- "type": "number"
- },
- "trajectories": {
- "type": "integer"
- },
- "truncation_bound": {
- "description": "A pulse run: the proved bound, in the trace norm, on what the integrator's series leaves out.",
- "type": "number"
- },
- "truncations": {
- "type": "integer"
- }
- },
- "required": [
- "class"
- ],
- "type": "object"
- },
- "code": {
- "type": "string"
- },
- "counts": {
- "additionalProperties": {
- "minimum": 1,
- "type": "integer"
- },
- "type": "object"
- },
- "distance": {
- "properties": {
- "computed": {
- "type": "boolean"
- },
- "denominator": {
- "minimum": 1,
- "type": "integer"
- },
- "hellinger_fidelity": {
- "type": "number"
- },
- "numerator": {
- "minimum": 0,
- "type": "integer"
- },
- "sampling_tvd_bound": {
- "description": "A bound on the total variation the shots alone leave between two samples of one distribution, on average (section 8.7): each outcome's pooled count split as a fair coin splits it.",
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "total_variation": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "computed"
- ],
- "type": "object"
- },
- "distinct_outcomes": {
- "minimum": 0,
- "type": "integer"
- },
- "elapsed_ms": {
- "minimum": 0,
- "type": "integer"
- },
- "omitted_shots": {
- "minimum": 0,
- "type": "integer"
- },
- "ran": {
- "type": "boolean"
- },
- "request": {
- "properties": {
- "method": {
- "type": "string"
- },
- "qasm": {
- "type": "string"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "route": {
- "type": "string"
- },
- "shots": {
- "minimum": 1,
- "type": "integer"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "ran"
- ],
- "type": "object"
- },
- "shots": {
- "description": "The shots, where the method names them in the result (trajectories, provider).",
- "minimum": 0,
- "type": "integer"
- },
- "state_hash": {
- "description": "The bit-exact method's statevector hash (BLAKE3, hex): the same on every machine.",
- "type": "string"
- },
- "stopped": {
- "description": "A run stopped at its contract's max_joules by a live reading: it gave no answer, and accuracy.class is none (wai/extensions/quantum-providers.md section 8.7).",
- "properties": {
- "at": {
- "const": "max_joules"
- },
- "elapsed_ms": {
- "minimum": 0,
- "type": "integer"
- },
- "joules": {
- "description": "What the reading had come to, at or past the ceiling.",
- "type": "number"
- },
- "max_joules": {
- "type": "number"
- },
- "read": {
- "description": "What read the run, and what that covers.",
- "type": "string"
- }
- },
- "required": [
- "at",
- "joules",
- "max_joules",
- "elapsed_ms",
- "read"
- ],
- "type": "object"
- },
- "target": {
- "description": "A run on a device target: which target (its hash, as its receipt binds it), its calibration snapshot, where the program was placed and why, and the noise derived from the target.",
- "properties": {
- "calibration": {
- "properties": {
- "id": {
- "type": "string"
- },
- "timestamp": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "hash": {
- "type": "string"
- },
- "hash_is": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "noise": {
- "description": "The noise model derived from the target's calibration: its channels, durations and idling, and each qubit's readout.",
- "type": "object"
- },
- "placement": {
- "description": "The native gate set, the layout and routes chosen, the swaps, the expected success beside the fewest-swaps layout's, and the check of the compiled program.",
- "type": "object"
- },
- "source": {
- "properties": {
- "format": {
- "type": "string"
- },
- "note": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "name",
- "hash"
- ],
- "type": "object"
- },
- "timing": {
- "description": "A program that states durations (delay, box, stretch) the method does not apply: said so, with the reader's code.",
- "properties": {
- "applied": {
- "type": "boolean"
- },
- "code": {
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "applied",
- "why"
- ],
- "type": "object"
- },
- "verdict": {
- "description": "How far the engine checked an answer about a program, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided). A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
- "properties": {
- "critique": {
- "description": "The program's smells, each with its lines.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "executed": {
- "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
- "properties": {
- "accuracy": {
- "type": [
- "string",
- "null"
- ]
- },
- "compiled_distance": {
- "type": [
- "number",
- "null"
- ]
- },
- "method": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "holds": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "intent": {
- "items": {
- "description": "One intent's check: what it asked, whether it held, how strong the check was and how it was made.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "counts": {
- "additionalProperties": {
- "type": "integer"
- },
- "type": "object"
- },
- "distance": {
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The program's distribution, when its outcomes are few enough to list.",
- "type": "object"
- },
- "fit": {
- "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "dof": {
- "type": "integer"
- },
- "impossible": {
- "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
- "type": [
- "integer",
- "array",
- "boolean"
- ]
- },
- "impossible_outcomes": {
- "description": "How many outcomes sampled the stated distribution gives probability 0.",
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "p_value": {
- "type": "number"
- },
- "rejected": {
- "type": "boolean"
- },
- "shots": {
- "type": "integer"
- },
- "smallest_expected": {
- "type": [
- "number",
- "null"
- ]
- },
- "statistic": {
- "type": "number"
- },
- "test": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "global_phase": {
- "type": [
- "number",
- "null"
- ]
- },
- "how": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "distribution",
- "equivalent",
- "prepares",
- "sampled",
- "compiled"
- ]
- },
- "largest_gaps": {
- "items": {
- "properties": {
- "intent": {
- "type": "number"
- },
- "outcome": {
- "type": "string"
- },
- "program": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "method": {
- "description": "A sampled intent: the method the samples were run by.",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "holds",
- "fails",
- "unchecked"
- ]
- },
- "outcomes": {
- "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
- "type": "integer"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "strength": {
- "enum": [
- "proof",
- "evidence",
- "none"
- ]
- },
- "tolerance": {
- "type": "number"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "outcome",
- "strength",
- "how"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "level": {
- "enum": [
- "refused",
- "parsed",
- "executed",
- "evidence",
- "proof"
- ]
- },
- "parsed": {
- "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "diagnostics": {
- "items": {
- "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "lowered",
- "carried",
- "preserved",
- "warned"
- ]
- }
- },
- "required": [
- "code",
- "outcome",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "ok": {
- "type": "boolean"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- },
- "text": {
- "description": "The refusal as the reader wrote it, with its line and code.",
- "type": "string"
- }
- },
- "required": [
- "ok"
- ],
- "type": "object"
- },
- "rank": {
- "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
- "maximum": 4,
- "minimum": 0,
- "type": "integer"
- },
- "refusal": {
- "description": "For a refused job: its message and its codes.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- }
- },
- "type": "object"
- },
- "repairs": {
- "description": "Each edit a repair made, with the code it answered and the lines it changed.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "schema": {
- "const": "wai.quantum.verdict/1"
- },
- "sealed": {
- "type": "boolean"
- },
- "statement": {
- "description": "The level in one plain line.",
- "type": "string"
- }
- },
- "required": [
- "schema",
- "level",
- "rank",
- "holds",
- "statement",
- "parsed",
- "executed",
- "intent",
- "critique",
- "repairs"
- ],
- "title": "wai.quantum.verdict/1",
- "type": "object"
- },
- "warning": {
- "type": "string"
- }
- },
- "required": [
- "method",
- "qubits",
- "gates",
- "accuracy"
- ],
- "title": "wai.quantum.job-result/1",
- "type": "object"
- },
- {
- "description": "A set's result: many programs, or one program over a grid of its inputs, run as one job (engine::sets). Its head holds the count, how many items finished and failed, the Merkle root over the items' leaves, the set's energy and time; the set's receipt seals the set's request and its head. Each item is a plain job with its own receipt, its index, its point in a sweep, and its path to the root, so it is shown sealed by the set alone. A result names the engine that made it and this schema (engine and schema).",
- "properties": {
- "count": {
- "minimum": 1,
- "type": "integer"
- },
- "done": {
- "minimum": 0,
- "type": "integer"
- },
- "elapsed_ms": {
- "minimum": 0,
- "type": "integer"
- },
- "energy": {
- "anyOf": [
- {
- "properties": {
- "service_kwh": {
- "description": "A provider job: the provider's own figure.",
- "type": "number"
- },
- "service_kwh_is": {
- "type": "string"
- },
- "unmetered": {
- "type": "string"
- }
- },
- "required": [
- "unmetered"
- ],
- "type": "object"
- },
- {
- "properties": {
- "attribution": {
- "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
- "enum": [
- "process",
- "none"
- ]
- },
- "concurrent_jobs": {
- "description": "Other jobs that ran on the host during the window.",
- "minimum": 0,
- "type": "integer"
- },
- "counter": {
- "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
- "properties": {
- "step_uj": {
- "minimum": 0,
- "type": "integer"
- },
- "update_us": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "coverage": {
- "enum": [
- "whole",
- "partial"
- ]
- },
- "covers": {
- "type": "string"
- },
- "cpu_ms": {
- "type": "integer"
- },
- "declared": {
- "description": "What the stated uncertainty covers, and what it does not.",
- "type": "string"
- },
- "energy_counter_filtering": {
- "type": "string"
- },
- "energy_provenance": {
- "type": "string"
- },
- "energy_uncertainty": {
- "properties": {
- "relative_ppm": {
- "type": "integer"
- },
- "window_us": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "excludes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "joules_micro": {
- "minimum": 1,
- "type": "integer"
- },
- "packages": {
- "description": "The processor packages read.",
- "minimum": 1,
- "type": "integer"
- },
- "source": {
- "type": "string"
- }
- },
- "required": [
- "joules_micro",
- "energy_provenance",
- "coverage"
- ],
- "type": "object"
- }
- ],
- "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
- },
- "engine": {
- "description": "The engine that made the result: the wai-quantum crate's name and version.",
- "properties": {
- "name": {
- "const": "wai-quantum"
- },
- "version": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "version"
- ],
- "type": "object"
- },
- "failed": {
- "minimum": 0,
- "type": "integer"
- },
- "format": {
- "const": "wai.quantum.set/1"
- },
- "items": {
- "items": {
- "description": "One item: its index, its point in a sweep, its request (a plain job, complete in itself), and its result with its own receipt, or why it failed; and its path to the set's root.",
- "properties": {
- "code": {
- "description": "A failed item's refusal code (engine::refusal).",
- "type": "string"
- },
- "error": {
- "type": "string"
- },
- "index": {
- "minimum": 0,
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "path": {
- "description": "The item's leaf's sibling digests up to the root, in hex.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "point": {
- "description": "A sweep's item: the value of each input it was run at.",
- "type": "object"
- },
- "request": {
- "anyOf": [
- {
- "required": [
- "qasm"
- ]
- },
- {
- "required": [
- "programs"
- ]
- },
- {
- "required": [
- "source"
- ]
- }
- ],
- "description": "A job as a client submits it: a program and what is asked of it, or a set: many programs (programs), or one over a grid of its inputs (sweep), run as one job. The command line, both MCP servers, the job service, the desktop app and the Studio read it alike, and a receipt seals it as it was given. A member the engine does not read is ignored, and sealed with the rest.",
- "properties": {
- "amplitudes": {
- "description": "Basis states whose amplitudes to return: one 0 or 1 per qubit, qubit n-1 first.",
- "items": {
- "type": "string"
- },
- "maxItems": 64,
- "type": "array"
- },
- "compile": {
- "description": "What a compile is asked for, each optional: the most the output may differ from the program (epsilon, in the operator norm up to a global phase), the level (0 lowers and approximates; 1 also rewrites and folds phases; 2 also resynthesises), the basis, the gate set it writes the program in (clifford_t: every rotation off the multiples of π/4 a Clifford+T word; standard: nothing approximated), whether to give the circuit after each pass (stages), and the twirl and dd passes, last (twirl, with its seed; dd, with its sequence).",
- "properties": {
- "basis": {
- "enum": [
- "clifford_t",
- "standard"
- ]
- },
- "dd": {
- "anyOf": [
- {
- "enum": [
- "xx",
- "xy4"
- ]
- },
- {
- "type": "boolean"
- },
- {
- "properties": {
- "sequence": {
- "enum": [
- "xx",
- "xy4"
- ]
- }
- },
- "type": "object"
- }
- ],
- "description": "Dynamical decoupling in each window where a qubit idles long enough: xx or xy4 (or {\"sequence\": …}), checked to change nothing without noise."
- },
- "epsilon": {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "level": {
- "maximum": 2,
- "minimum": 0,
- "type": "integer"
- },
- "stages": {
- "type": "boolean"
- },
- "twirl": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "properties": {
- "seed": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "seed"
- ],
- "type": "object"
- }
- ],
- "description": "Twirl each two-qubit Clifford gate with Paulis drawn from a seeded stream: true (seed 1), or {\"seed\": N}. One seed is one instance, checked to be the same circuit."
- }
- },
- "type": "object"
- },
- "contract": {
- "additionalProperties": false,
- "description": "What the job wants of an answer (wai/extensions/quantum-providers.md section 8.7). Every route the host can see is priced with what is really known, those that cannot meet this are rejected, the cheapest of the rest runs, and the reasoning is sealed in the result as `planner`. Nothing falls back in silence, and a job no route can meet is refused (J071). A job without it plans as it always has, byte for byte. Refused on a set (J073).",
- "properties": {
- "deadline_seconds": {
- "description": "When it must be done by, in seconds from when it starts. A route whose time is not known does not meet it. A host that can stop a run stops it there (J074); otherwise the result says whether it was kept.",
- "exclusiveMinimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "exactness": {
- "description": "The class wanted. Without it, the job keeps the class auto would give: auto's pick stands while it meets the rest of the contract, and only a route at least as exact may take its place. A device's counts are in no classical class: measured wants a processor's, simulated a provider's simulator's that its provider does not state is approximate, and any takes every route.",
- "enum": [
- "bit-exact",
- "exact",
- "single",
- "bounded",
- "estimate",
- "heuristic",
- "measured",
- "simulated",
- "any",
- null
- ]
- },
- "max_cost": {
- "additionalProperties": false,
- "description": "The most a provider's estimate of the run may come to, before it runs: it bounds the estimate, not the charge, which is stated after the run beside it (kept.cost). A route with an unknown cost, an estimate that is only the least it can come to, or a price in another currency does not meet it: nothing is converted.",
- "properties": {
- "amount": {
- "description": "An amount in decimals: digits, and optionally a point and digits, at most 64 characters.",
- "maxLength": 64,
- "type": "string"
- },
- "currency": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": [
- "object",
- "null"
- ]
- },
- "max_joules": {
- "description": "The most energy it may take, held by a live reading while it runs: at the ceiling the run is stopped, gives no answer, and its receipt says so. A route nothing here can read and stop does not meet it, so on a host that reads none every route is rejected. An estimate can refuse a job clearly past it, and promises nothing.",
- "exclusiveMinimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "providers": {
- "description": "Whether a route may be one of the person's providers. never is the default, given or not: a job that names a provider under a contract that does not allow one is refused (J070), and a host asks no provider anything under it. A host that reaches none (the job service) lists none. A provider that costs money is chosen only under max_cost, or when the job names it, and still runs only on the person's word for that route and its estimate.",
- "enum": [
- "never",
- "allowed",
- null
- ]
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "dry_run": {
- "description": "With true: what the host would do with the job or set, running nothing.",
- "type": "boolean"
- },
- "fabric": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "items": {
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 64,
- "minItems": 2,
- "type": "array"
- }
- ],
- "description": "Where the statevector method's state runs: auto (the default: on a member only where the committed measurements show it faster than this host's CPU for the job's size and fusion width, otherwise on the CPU), cpu, accelerator (the first accelerator member certified bit-exact here that holds the state, falling back to the next if it fails during the run), a member's id or key (wai-quantum fabric lists them), or a list of members, a power of two of them, the state split by its top qubits into one partition on each (cpu is a member, and a member may be named more than once). A member certified bit-exact gives the CPU's bits. A placement this host cannot honour is refused (J013), never made elsewhere."
- },
- "history": {
- "description": "The program's history's account of the version the job runs: its digest, and the gates and lines in each hand. The receipt binds it; a history recomputes and checks it.",
- "type": "object"
- },
- "intent": {
- "anyOf": [
- {
- "description": "One of distribution, equivalent, prepares or sampled, with its options.",
- "properties": {
- "alpha": {
- "exclusiveMaximum": 1,
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "type": "object"
- },
- "equivalent": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "prepares": {
- "type": "string"
- },
- "require": {
- "const": "proof"
- },
- "sampled": {
- "additionalProperties": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "type": "object"
- },
- "seed": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 1,
- "type": "integer"
- },
- "test": {
- "enum": [
- "chi_squared",
- "g_test"
- ]
- },
- "tolerance": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "type": "object"
- },
- {
- "items": {
- "description": "One of distribution, equivalent, prepares or sampled, with its options.",
- "properties": {
- "alpha": {
- "exclusiveMaximum": 1,
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "type": "object"
- },
- "equivalent": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "prepares": {
- "type": "string"
- },
- "require": {
- "const": "proof"
- },
- "sampled": {
- "additionalProperties": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "type": "object"
- },
- "seed": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 1,
- "type": "integer"
- },
- "test": {
- "enum": [
- "chi_squared",
- "g_test"
- ]
- },
- "tolerance": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "type": "object"
- },
- "minItems": 1,
- "type": "array"
- }
- ],
- "description": "What the program must do, checked with the run: one intent or a list. The result's verdict says how far it was checked."
- },
- "method": {
- "description": "auto (the default: the strongest method the program admits), or a method by its name as the methods list names it; pulse runs a pulse program (OpenPulse calibrations) under the pulse options.",
- "type": "string"
- },
- "mitigate": {
- "anyOf": [
- {
- "enum": [
- "zne",
- "pea",
- "pec",
- "cdr",
- "vd",
- "readout"
- ]
- },
- {
- "required": [
- "method"
- ],
- "type": "object"
- }
- ],
- "description": "Mitigate the job's expectation values (or, for readout, its counts) under its noise (engine::mitigate): zne, pea, pec, cdr, vd or readout, or {\"method\", …} with its options. The result's mitigation gives each value raw and mitigated."
- },
- "noise": {
- "additionalProperties": false,
- "description": "A noise model, each channel a probability. A channel not listed here is refused.",
- "properties": {
- "amplitude_damping": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "dephasing": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "depolarizing_1q": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "depolarizing_2q": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "readout": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "type": "object"
- },
- "observables": {
- "description": "Pauli observables to take the expectation values of.",
- "items": {
- "anyOf": [
- {
- "description": "A Pauli string, as \"Z0 Z1\"; qubits count from 0.",
- "type": "string"
- },
- {
- "properties": {
- "coeff": {
- "description": "Its coefficient (1 when not given).",
- "type": "number"
- },
- "pauli": {
- "description": "A Pauli string, as \"X3\".",
- "type": "string"
- }
- },
- "required": [
- "pauli"
- ],
- "type": "object"
- }
- ]
- },
- "maxItems": 256,
- "type": "array"
- },
- "options": {
- "additionalProperties": true,
- "description": "Options of the method that runs the job, as the methods list names them (max_bond, cutoff, fusion, trajectories, threshold, max_weight, ladder, max_terms, path_restarts, controls), and memory_gb.",
- "properties": {
- "controls": {
- "description": "A gate whose standard gates would double (x, y, z or h under three or more controls; s, sdg, t, tdg, p, rx, ry, rz, u, sx or sxdg under two or more) runs as one on statevector and in standard gates on exact. \"standard\" runs standard gates on statevector too, which reproduces a result made that way bit for bit. \"whole\" holds the gate whole on exact too, which gives other bits than its default, and is refused (J003) on a job that runs standard gates: another method named, a compile, noise, mitigation, a device target or a named place on the fabric. Any other value is refused.",
- "enum": [
- "whole",
- "standard"
- ]
- }
- },
- "type": "object"
- },
- "params": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "A value for each of the program's parameters (`input float theta;`, `input angle phi;`), bound exactly before the program is read: it runs as if each were written as a `const` at that double. A parameter left without a value is refused (Q114, J050). In a sweep, the parameters it fixes, each bound at every point.",
- "type": "object"
- },
- "programs": {
- "description": "A set (engine::sets): the programs to run as one job, each a program's text or a job of its own; the request's other fields apply to every item that does not set them itself.",
- "items": {
- "anyOf": [
- {
- "description": "A program's text.",
- "type": "string"
- },
- {
- "description": "A job of its own, read as a job request is (no programs or sweep in it); each item of the set's result holds its request in full.",
- "required": [
- "qasm"
- ],
- "type": "object"
- }
- ]
- },
- "minItems": 1,
- "type": "array"
- },
- "provider": {
- "description": "The person's own provider to run on, by the name their registry gives it. Only a host that holds their credentials runs such a job; every other host refuses it.",
- "type": "string"
- },
- "pulse": {
- "additionalProperties": false,
- "description": "A pulse run's options (method \"pulse\"): the sample period, the levels kept, the tolerance on the stated error, the steps a sample is divided into, each qubit's parameters, static couplings, and ports beyond the names d0, m0, a0.",
- "properties": {
- "couplings": {
- "description": "Static ZZ couplings.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "qubits": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "maxItems": 2,
- "minItems": 2,
- "type": "array"
- },
- "zz_khz": {
- "description": "The coupling's rate, kHz.",
- "type": "number"
- }
- },
- "required": [
- "qubits",
- "zz_khz"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "dt_ns": {
- "description": "The sample period, ns (default 0.5).",
- "exclusiveMinimum": 0,
- "maximum": 1000,
- "type": "number"
- },
- "levels": {
- "description": "Levels kept per qubit (default 2; 3 shows leakage).",
- "enum": [
- 2,
- 3
- ],
- "type": "integer"
- },
- "ports": {
- "additionalProperties": {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "enum": [
- "drive",
- "measure",
- "acquire"
- ]
- },
- "qubit": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "qubit"
- ],
- "type": "object"
- },
- "description": "Ports by name: what each is for and the qubit it reaches.",
- "type": "object"
- },
- "qubits": {
- "additionalProperties": {
- "additionalProperties": false,
- "properties": {
- "anharmonicity_mhz": {
- "description": "Its anharmonicity, MHz.",
- "type": "number"
- },
- "frequency_ghz": {
- "description": "Its frequency, GHz.",
- "type": "number"
- },
- "rabi_mhz": {
- "description": "Its Rabi frequency at full amplitude, MHz.",
- "type": "number"
- },
- "t1_us": {
- "description": "Its relaxation time, µs.",
- "type": "number"
- },
- "t2_us": {
- "description": "Its coherence time, µs (at most 2·T1).",
- "type": "number"
- }
- },
- "type": "object"
- },
- "description": "Each qubit's parameters by its index, over the target's and the defaults.",
- "type": "object"
- },
- "substeps": {
- "description": "Steps per sample (default: chosen so each step times the generator's norm is at most 0.5).",
- "maximum": 4096,
- "minimum": 1,
- "type": "integer"
- },
- "tolerance": {
- "description": "The most the stated error may be (default 1e-6): a run whose bound and rounding estimate pass it is refused, naming the steps that would meet it.",
- "exclusiveMaximum": 1,
- "exclusiveMinimum": 0,
- "type": "number"
- }
- },
- "type": "object"
- },
- "qasm": {
- "description": "The program, in OpenQASM 3 or the OpenQASM 2 forms in common use.",
- "type": "string"
- },
- "repair": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "properties": {
- "dyadic_bits": {
- "maximum": 32,
- "minimum": 1,
- "type": "integer"
- },
- "max_iterations": {
- "minimum": 1,
- "type": "integer"
- },
- "sizes": {
- "additionalProperties": {
- "minimum": 1,
- "type": "integer"
- },
- "type": "object"
- }
- },
- "type": "object"
- }
- ],
- "description": "Repair the program first on its flagged lines: true, or the choices."
- },
- "seed": {
- "description": "The sampling seed (1 when not given): the same job and seed give the same counts.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "description": "Measurement shots; 1024 when no observables or amplitudes are asked for, otherwise 0.",
- "maximum": 1000000,
- "minimum": 0,
- "type": "integer"
- },
- "source": {
- "description": "The program in another format, in place of qasm (engine::formats::expand): read to the job's qasm before the job is read, the request keeping its source.",
- "properties": {
- "format": {
- "enum": [
- "qasm",
- "qir",
- "jeff"
- ]
- },
- "program": {
- "description": "The program's text (OpenQASM, QIR).",
- "type": "string"
- },
- "program_base64": {
- "description": "The program's bytes as base64 (jeff).",
- "type": "string"
- }
- },
- "required": [
- "format"
- ],
- "type": "object"
- },
- "sweep": {
- "additionalProperties": {
- "items": {
- "type": "number"
- },
- "minItems": 1,
- "type": "array"
- },
- "description": "A set over the request's own qasm: values for each of the program's inputs (integer, float or angle), every combination run, the names in sorted order and the first varying slowest.",
- "type": "object"
- },
- "target": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "additionalProperties": false,
- "description": "A device target: its qubits, the pairs it couples, its native gates with their errors and durations, and the calibration snapshot they come from. A value not known is left out, never written as zero. Every field but format, name, source, qubits, gates and coupling is optional, and a field the format does not name is refused, so a misspelt one never reads as absent. Its canonical text is its RFC 8785 form, and the BLAKE3 of that text, the target's hash, names the snapshot in a receipt.",
- "properties": {
- "calibration": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "description": "The calibration snapshot's id, as the source names it, or a content id of the snapshot read.",
- "maxLength": 400,
- "type": "string"
- },
- "timestamp": {
- "description": "When the snapshot was taken, as the source writes it.",
- "maxLength": 400,
- "type": "string"
- }
- },
- "type": "object"
- },
- "coupling": {
- "description": "The pairs a two-qubit gate may act on, each once, the lower qubit first, sorted.",
- "items": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "maxItems": 2,
- "minItems": 2,
- "type": "array"
- },
- "type": "array"
- },
- "format": {
- "const": "wai.quantum.target/1"
- },
- "gates": {
- "description": "Each native gate where the device runs it, sorted by gate then qubits.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "duration_ns": {
- "description": "Nanoseconds.",
- "minimum": 0,
- "type": "number"
- },
- "error": {
- "description": "The average gate infidelity.",
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "gate": {
- "pattern": "^[a-z0-9_]{1,40}$",
- "type": "string"
- },
- "qubits": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "maxItems": 2,
- "minItems": 1,
- "type": "array"
- }
- },
- "required": [
- "gate",
- "qubits"
- ],
- "type": "object"
- },
- "maxItems": 262144,
- "type": "array"
- },
- "name": {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- "qubits": {
- "description": "Every qubit, in order.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "frequency_ghz": {
- "description": "Its frequency, gigahertz.",
- "minimum": 0,
- "type": "number"
- },
- "label": {
- "description": "The source's own name for it, when that is not its index.",
- "type": "string"
- },
- "measure_ns": {
- "description": "The measurement's duration, nanoseconds.",
- "minimum": 0,
- "type": "number"
- },
- "qubit": {
- "description": "Its index: its place in the list.",
- "minimum": 0,
- "type": "integer"
- },
- "readout": {
- "additionalProperties": false,
- "properties": {
- "p01": {
- "description": "P(reads 1 | holds 0).",
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "p10": {
- "description": "P(reads 0 | holds 1).",
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "p01",
- "p10"
- ],
- "type": "object"
- },
- "resonator": {
- "const": true,
- "description": "A computational resonator, not a qubit: a qubit's state is moved into it (move, listed on the qubit and the resonator) so that a cz on it acts on that state, and moved back out. It takes no one-qubit gate, is never measured and is never paired with another resonator. Written only when true."
- },
- "t1_us": {
- "description": "T1, microseconds.",
- "minimum": 0,
- "type": "number"
- },
- "t2_us": {
- "description": "T2 (the echo or Ramsey time the source reports), microseconds.",
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "qubit"
- ],
- "type": "object"
- },
- "maxItems": 2048,
- "minItems": 1,
- "type": "array"
- },
- "source": {
- "additionalProperties": false,
- "properties": {
- "format": {
- "description": "The format the target was read from (wai-quantum targets import --help lists them).",
- "type": "string"
- },
- "note": {
- "maxLength": 400,
- "type": "string"
- }
- },
- "required": [
- "format"
- ],
- "type": "object"
- }
- },
- "required": [
- "format",
- "name",
- "source",
- "qubits",
- "gates",
- "coupling"
- ],
- "title": "wai.quantum.target/1",
- "type": "object"
- }
- ],
- "description": "A device target: a built-in target's name, or a target document. The program is compiled to it, placed and simulated under its noise; noise may not be given beside it."
- },
- "verdict": {
- "description": "true: the result carries a verdict even with no intent.",
- "type": "boolean"
- }
- },
- "title": "wai.quantum.job-request/1",
- "type": "object"
- },
- "result": {
- "description": "A job's result as the engine gives it, on every host: what was asked of the program, computed by the method its plan chose, with that method's accuracy class. The receipt seals the result without its receipt member, beside the request. A result names the engine that made it and this schema (engine and schema); results made before results carried them have neither and follow this schema all the same.",
- "properties": {
- "accuracy": {
- "description": "What the method promises of the numbers it gave.",
- "properties": {
- "approximate": {
- "const": true,
- "description": "A simulated result whose provider states its simulator is approximate."
- },
- "batch": {
- "type": "integer"
- },
- "below_table": {
- "description": "The bit-exact method: phase gates of its lowering that are not zero and ran as no phase, within the reader's tolerance (1e-14 of a turn) of a whole turn. `angles` counts those gates: one angle written may be several, and another count in another form of the same program.",
- "properties": {
- "angles": {
- "minimum": 1,
- "type": "integer"
- },
- "largest_radians": {
- "type": "number"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "angles",
- "largest_radians",
- "note"
- ],
- "type": "object"
- },
- "bound": {
- "description": "The bound this result is held to, by method: a pulse run (class bounded): every probability within this of the exact solution of the model's master equation, the truncation bound and the rounding estimate together; stabilizer_rank's sampled mode (class estimate): the bound on the distance of the estimated state from the state, holding with the probability confidence states.",
- "minimum": 0,
- "type": "number"
- },
- "class": {
- "description": "bit-exact: the same bits on every machine; exact: no approximation beyond double-precision rounding; single: single-precision arithmetic; bounded: a rigorous bound beside each value; estimate: a statistical estimate with its standard error; heuristic: an approximation with an estimate of its error, not a bound; measured: counts a processor returned through the person's provider, not reproducible by recomputation; simulated: counts a provider's simulator or emulator returned, measured on no device. Results sealed before simulated existed label a provider's simulator measured, and are read by its provenance. none: the run was stopped at its contract's energy ceiling and gave no answer.",
- "enum": [
- "bit-exact",
- "exact",
- "single",
- "bounded",
- "estimate",
- "heuristic",
- "measured",
- "simulated",
- "none"
- ]
- },
- "confidence": {
- "description": "The probability a stated bound holds.",
- "type": "number"
- },
- "device": {
- "type": "string"
- },
- "discarded_weight": {
- "type": "number"
- },
- "fidelity_estimate": {
- "type": "number"
- },
- "fusion": {
- "type": "integer"
- },
- "gate_applications": {
- "type": "integer"
- },
- "global_phase": {
- "description": "The bit-exact method: method statevector's state of the program that ran is e^(i radians) times the amplitudes given, since this method's lowering drops the phase of rz, rx, ry, rxx, ryy, rzz and u. Absent when that is 1. The language's own state can differ from both: its U is e^(i theta / 2) times the matrix both methods take as u, the reader drops an uncontrolled gphase (Q206), and a compiled job's program is the compile's, right up to a global phase.",
- "properties": {
- "note": {
- "type": "string"
- },
- "radians": {
- "description": "The same in radians, in (-pi, pi].",
- "type": "number"
- },
- "turns_over_2_33": {
- "description": "The phase exactly, in 2^33rds of a turn.",
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "turns_over_2_33",
- "radians",
- "note"
- ],
- "type": "object"
- },
- "histories": {
- "type": "integer"
- },
- "max_bond": {
- "type": "integer"
- },
- "max_bond_used": {
- "type": "integer"
- },
- "max_cut": {
- "type": "integer"
- },
- "max_weight": {
- "type": [
- "integer",
- "null"
- ]
- },
- "moved_angles": {
- "description": "The bit-exact method: phase gates of its lowering within the reader's tolerance (1e-14 of a turn) of a dyadic angle, by more than a double's rounding of it, that ran as it. `angles` counts those gates.",
- "properties": {
- "angles": {
- "minimum": 1,
- "type": "integer"
- },
- "largest_radians": {
- "type": "number"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "angles",
- "largest_radians",
- "note"
- ],
- "type": "object"
- },
- "norm": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "order_work": {
- "type": "number"
- },
- "rounding_estimate": {
- "description": "A pulse run: an estimate of floating-point rounding beside the bound, not a proof.",
- "type": "number"
- },
- "shots": {
- "type": "integer"
- },
- "t_count": {
- "description": "stabilizer_rank: the T and T† gates the program lowers to.",
- "minimum": 0,
- "type": "integer"
- },
- "terms": {
- "description": "stabilizer_rank: the stabilizer branches summed (2^t exactly), or drawn.",
- "minimum": 1,
- "type": "integer"
- },
- "threshold": {
- "type": "number"
- },
- "tolerance": {
- "type": "number"
- },
- "trajectories": {
- "type": "integer"
- },
- "truncation_bound": {
- "description": "A pulse run: the proved bound, in the trace norm, on what the integrator's series leaves out.",
- "type": "number"
- },
- "truncations": {
- "type": "integer"
- }
- },
- "required": [
- "class"
- ],
- "type": "object"
- },
- "amplitudes": {
- "items": {
- "properties": {
- "bits": {
- "description": "One 0 or 1 per qubit, qubit n-1 first.",
- "type": "string"
- },
- "bound": {
- "description": "A bound on |exact − value| of the amplitude, holding with the probability confidence states (stabilizer_rank's sampled mode).",
- "minimum": 0,
- "type": "number"
- },
- "confidence": {
- "description": "The probability the bound holds.",
- "type": "number"
- },
- "im": {
- "type": "number"
- },
- "re": {
- "type": "number"
- }
- },
- "required": [
- "bits",
- "re",
- "im"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "calibration": {
- "description": "A provider job: the calibration snapshot it ran under.",
- "type": [
- "string",
- "null"
- ]
- },
- "compiled": {
- "anyOf": [
- {
- "description": "A provider job: the program sent, compiled exactly to the device's own gates: its basis (the device's gate set), its OpenQASM 3 text (qasm3) and that text's BLAKE3 (program), its counts of gates and swaps, its layouts, and the check it passed before it was sent. Results sealed before qasm3 carry the hash alone.",
- "properties": {
- "basis": {
- "type": "string"
- },
- "checked": {
- "type": "string"
- },
- "final_layout": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "hash": {
- "type": "string"
- },
- "layout": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "native_gates": {
- "type": "integer"
- },
- "placement": {
- "description": "Where the program was placed on the device's qubits, and why.",
- "type": "object"
- },
- "program": {
- "type": "string"
- },
- "qasm3": {
- "description": "The program sent, as OpenQASM 3, $i being index i of the coupling map the provider described; program is the BLAKE3 of its UTF-8 bytes.",
- "type": "string"
- },
- "qubit_names": {
- "additionalProperties": {
- "minLength": 1,
- "type": "string"
- },
- "description": "The device's own name for each index the program uses, as it was when the job was sent, where a client sends it under those names.",
- "type": "object"
- },
- "swaps": {
- "type": "integer"
- },
- "two_qubit_gates": {
- "type": "integer"
- }
- },
- "required": [
- "basis",
- "program"
- ],
- "type": "object"
- },
- {
- "description": "A job asked to compile its program first: what ran is the compiled circuit, within distance of the program in the operator norm up to a global phase.",
- "properties": {
- "basis": {
- "description": "The gate set the program was compiled to.",
- "enum": [
- "clifford_t",
- "standard"
- ]
- },
- "certificate": {
- "description": "The BLAKE3 of the compile certificate's RFC 8785 text, in hex.",
- "type": [
- "string",
- "null"
- ]
- },
- "distance": {
- "description": "The bound the passes' distances add to.",
- "type": [
- "number",
- "null"
- ]
- },
- "epsilon": {
- "description": "The budget asked for.",
- "type": "number"
- },
- "level": {
- "minimum": 0,
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "output": {
- "description": "A circuit's counts, as the compiler counts them.",
- "properties": {
- "cnots": {
- "minimum": 0,
- "type": "integer"
- },
- "depth": {
- "minimum": 0,
- "type": "integer"
- },
- "gates": {
- "minimum": 0,
- "type": "integer"
- },
- "one_qubit": {
- "minimum": 0,
- "type": "integer"
- },
- "rotations": {
- "minimum": 0,
- "type": "integer"
- },
- "t_count": {
- "minimum": 0,
- "type": "integer"
- },
- "three_qubit": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "source": {
- "description": "A circuit's counts, as the compiler counts them.",
- "properties": {
- "cnots": {
- "minimum": 0,
- "type": "integer"
- },
- "depth": {
- "minimum": 0,
- "type": "integer"
- },
- "gates": {
- "minimum": 0,
- "type": "integer"
- },
- "one_qubit": {
- "minimum": 0,
- "type": "integer"
- },
- "rotations": {
- "minimum": 0,
- "type": "integer"
- },
- "t_count": {
- "minimum": 0,
- "type": "integer"
- },
- "three_qubit": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "verdict": {
- "type": "string"
- }
- },
- "required": [
- "basis",
- "verdict"
- ],
- "type": "object"
- }
- ],
- "description": "How the program was compiled before it ran: on the person's own provider, to the device's gates; or, asked with compile, to a basis within a budget. Either way, basis is the gate set it was compiled to."
- },
- "components": {
- "description": "The identity of every component that made the result, when a registered one took part (engine::registry): its program's format, the passes its compile ran, the noise channels it names, its method; each registered one marked so. Sealed by the receipt with the rest.",
- "items": {
- "description": "One component that made the result (engine::registry): its kind, name and version, the BLAKE3 digest of its descriptor, and whether it is built in. A result carries these only when a registered component took part; one made by built-ins alone names them as it always has (its method, its compile's passes, its noise's channels and the engine's version), the digests of that version listed by the components list.",
- "properties": {
- "certified": {
- "const": false,
- "description": "Beside a registered component: the engine does not certify it."
- },
- "digest": {
- "description": "BLAKE3 of the component's descriptor in its canonical JSON (engine::registry::digest_of).",
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "kind": {
- "enum": [
- "method",
- "pass",
- "channel",
- "front_end"
- ]
- },
- "name": {
- "type": "string"
- },
- "origin": {
- "description": "built-in: the engine's own; registered: a host's own, added in its process, not part of the engine.",
- "enum": [
- "built-in",
- "registered"
- ]
- },
- "version": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "name",
- "version",
- "digest",
- "origin"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "contraction_flops": {
- "description": "The tensor network's contraction cost.",
- "type": "number"
- },
- "cost": {
- "description": "A provider job: the estimate shown before it was sent, what the provider says it charged, and whether the person confirmed a run that was not free.",
- "type": "object"
- },
- "counts": {
- "additionalProperties": {
- "minimum": 0,
- "type": "integer"
- },
- "description": "Outcomes and their counts, keyed by the program's classical bits, the highest bit first. At most 65536 outcomes are listed; omitted_shots holds the rest.",
- "type": "object"
- },
- "counts_source": {
- "description": "A provider job: where its counts come from (wai/extensions/quantum-providers.md section 8.3): tallied from one record a shot (shots), the provider's own counts (vendor_counts), or rebuilt from the probabilities it returned by largest remainders, derived and not shot records (probabilities). Results sealed before it carry neither it nor execution.",
- "enum": [
- "shots",
- "vendor_counts",
- "probabilities"
- ]
- },
- "diagnostics": {
- "description": "The reader's warnings and notes on the program, each with its code.",
- "items": {
- "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "lowered",
- "carried",
- "preserved",
- "warned"
- ]
- }
- },
- "required": [
- "code",
- "outcome",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "distinct_outcomes": {
- "minimum": 0,
- "type": "integer"
- },
- "dynamic": {
- "description": "A program that measures in the middle, resets or branches on a measured bit: how it ran.",
- "properties": {
- "branches_run": {
- "minimum": 0,
- "type": "integer"
- },
- "branches_weighed": {
- "minimum": 0,
- "type": "integer"
- },
- "measurements_and_resets": {
- "minimum": 0,
- "type": "integer"
- },
- "states_at_once": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "elapsed_ms": {
- "description": "Wall time of the run, where the host has a clock (not in a browser tab).",
- "minimum": 0,
- "type": "integer"
- },
- "energy": {
- "anyOf": [
- {
- "properties": {
- "service_kwh": {
- "description": "A provider job: the provider's own figure.",
- "type": "number"
- },
- "service_kwh_is": {
- "type": "string"
- },
- "unmetered": {
- "type": "string"
- }
- },
- "required": [
- "unmetered"
- ],
- "type": "object"
- },
- {
- "properties": {
- "attribution": {
- "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
- "enum": [
- "process",
- "none"
- ]
- },
- "concurrent_jobs": {
- "description": "Other jobs that ran on the host during the window.",
- "minimum": 0,
- "type": "integer"
- },
- "counter": {
- "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
- "properties": {
- "step_uj": {
- "minimum": 0,
- "type": "integer"
- },
- "update_us": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "coverage": {
- "enum": [
- "whole",
- "partial"
- ]
- },
- "covers": {
- "type": "string"
- },
- "cpu_ms": {
- "type": "integer"
- },
- "declared": {
- "description": "What the stated uncertainty covers, and what it does not.",
- "type": "string"
- },
- "energy_counter_filtering": {
- "type": "string"
- },
- "energy_provenance": {
- "type": "string"
- },
- "energy_uncertainty": {
- "properties": {
- "relative_ppm": {
- "type": "integer"
- },
- "window_us": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "excludes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "joules_micro": {
- "minimum": 1,
- "type": "integer"
- },
- "packages": {
- "description": "The processor packages read.",
- "minimum": 1,
- "type": "integer"
- },
- "source": {
- "type": "string"
- }
- },
- "required": [
- "joules_micro",
- "energy_provenance",
- "coverage"
- ],
- "type": "object"
- }
- ],
- "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
- },
- "engine": {
- "description": "The engine that made the result: the wai-quantum crate's name and version.",
- "properties": {
- "name": {
- "const": "wai-quantum"
- },
- "version": {
- "description": "Its semantic version, as MAJOR.MINOR.PATCH.",
- "type": "string"
- }
- },
- "required": [
- "name",
- "version"
- ],
- "type": "object"
- },
- "execution": {
- "additionalProperties": false,
- "description": "A provider job: how the device was asked to run the program (section 8.3): who states it (stated_by: client, provider or nobody); what the client sent (sent: the request's members and the settings among them); each of mitigation, twirling, decoupling, remapping and optimisation (off, on, default when the request sets nothing for it, none when the device has no such step, unknown when nobody states it); whether the gates were to run as written (verbatim); and a note.",
- "properties": {
- "decoupling": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "mitigation": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "note": {
- "type": "string"
- },
- "optimisation": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "remapping": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "sent": {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "settings": {
- "type": "object"
- }
- },
- "required": [
- "fields",
- "settings"
- ],
- "type": "object"
- },
- "stated_by": {
- "enum": [
- "client",
- "provider",
- "nobody"
- ]
- },
- "twirling": {
- "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
- "enum": [
- "off",
- "on",
- "default",
- "none",
- "unknown"
- ]
- },
- "verbatim": {
- "type": [
- "boolean",
- "null"
- ]
- }
- },
- "required": [
- "stated_by",
- "mitigation",
- "twirling",
- "decoupling",
- "remapping",
- "optimisation",
- "verbatim"
- ],
- "type": "object"
- },
- "expectations": {
- "items": {
- "properties": {
- "bound": {
- "description": "A bound on |exact − value|: rigorous for the bounded class; with confidence beside it, holding with that probability.",
- "type": "number"
- },
- "coeff": {
- "type": "number"
- },
- "confidence": {
- "description": "The probability the bound holds, for a bound that holds with a stated probability (stabilizer_rank's sampled mode).",
- "type": "number"
- },
- "ladder": {
- "description": "The value at thresholds a decade apart, the asked one last.",
- "items": {
- "properties": {
- "bound": {
- "type": "number"
- },
- "peak_terms": {
- "type": "integer"
- },
- "threshold": {
- "type": "number"
- },
- "threshold_reached": {
- "type": "number"
- },
- "value": {
- "type": "number"
- }
- },
- "required": [
- "threshold",
- "value",
- "bound"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "max_terms": {
- "type": "integer"
- },
- "observable": {
- "type": "string"
- },
- "peak_terms": {
- "type": "integer"
- },
- "stderr": {
- "description": "The standard error, for an estimate.",
- "type": "number"
- },
- "threshold_reached": {
- "type": "number"
- },
- "value": {
- "description": "The coefficient times the expectation value.",
- "type": "number"
- }
- },
- "required": [
- "observable",
- "coeff",
- "value"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "fabric": {
- "description": "Where the state vector, or the pauli method's sum of terms, ran: the kernel, the placement the job asked for, the member that ran it (or each partition's), each with its certificate, and the energy. Present when the job asked for a placement, or when auto placed the state on a member by measurement (`auto`); a job auto leaves on the CPU names nothing; the receipt seals it with the rest of the result. Every member placed is certified bit-exact, so the answers are the CPU's, byte for byte.",
- "properties": {
- "asked": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- ],
- "description": "The placement the job asked for, as it gave it."
- },
- "auto": {
- "description": "Why auto placed the state where it ran: the rule (a member is placed only where the committed measurements show it faster than this host's CPU for the job's size and fusion width) and the measured row it rests on, with the host, the day and the load it was measured under. Present only when auto placed a state on a member.",
- "properties": {
- "about": {
- "type": "string"
- },
- "basis": {
- "description": "The measured row the job is judged by: the largest measured size at or below its own, the launches of its plan, the runs of each, and the spread of the CPU's and the member's times in milliseconds.",
- "properties": {
- "cpu_ms": {
- "description": "The least, the median and the most of a measured row's runs, in milliseconds.",
- "properties": {
- "max": {
- "type": "number"
- },
- "median": {
- "type": "number"
- },
- "min": {
- "type": "number"
- }
- },
- "required": [
- "min",
- "median",
- "max"
- ],
- "type": "object"
- },
- "launches": {
- "minimum": 0,
- "type": "integer"
- },
- "member_ms": {
- "description": "The least, the median and the most of a measured row's runs, in milliseconds.",
- "properties": {
- "max": {
- "type": "number"
- },
- "median": {
- "type": "number"
- },
- "min": {
- "type": "number"
- }
- },
- "required": [
- "min",
- "median",
- "max"
- ],
- "type": "object"
- },
- "qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "runs": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "qubits",
- "launches",
- "runs",
- "cpu_ms",
- "member_ms"
- ],
- "type": "object"
- },
- "discovery_ms": {
- "description": "What discovering and certifying the host's members took, once per process, as measured.",
- "type": "number"
- },
- "from_qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "fusion": {
- "minimum": 1,
- "type": "integer"
- },
- "host": {
- "description": "The host's processor as the measurements name it (cpu-<architecture>-<hash>).",
- "type": "string"
- },
- "load": {
- "type": "string"
- },
- "measured": {
- "description": "The day the host was measured (UTC).",
- "type": "string"
- },
- "min_launches": {
- "minimum": 0,
- "type": "integer"
- },
- "rule": {
- "type": "string"
- },
- "to_qubits": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "rule",
- "host",
- "fusion",
- "from_qubits",
- "to_qubits"
- ],
- "type": "object"
- },
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "class": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "energy": {
- "anyOf": [
- {
- "properties": {
- "service_kwh": {
- "description": "A provider job: the provider's own figure.",
- "type": "number"
- },
- "service_kwh_is": {
- "type": "string"
- },
- "unmetered": {
- "type": "string"
- }
- },
- "required": [
- "unmetered"
- ],
- "type": "object"
- },
- {
- "properties": {
- "attribution": {
- "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
- "enum": [
- "process",
- "none"
- ]
- },
- "concurrent_jobs": {
- "description": "Other jobs that ran on the host during the window.",
- "minimum": 0,
- "type": "integer"
- },
- "counter": {
- "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
- "properties": {
- "step_uj": {
- "minimum": 0,
- "type": "integer"
- },
- "update_us": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "coverage": {
- "enum": [
- "whole",
- "partial"
- ]
- },
- "covers": {
- "type": "string"
- },
- "cpu_ms": {
- "type": "integer"
- },
- "declared": {
- "description": "What the stated uncertainty covers, and what it does not.",
- "type": "string"
- },
- "energy_counter_filtering": {
- "type": "string"
- },
- "energy_provenance": {
- "type": "string"
- },
- "energy_uncertainty": {
- "properties": {
- "relative_ppm": {
- "type": "integer"
- },
- "window_us": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "excludes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "joules_micro": {
- "minimum": 1,
- "type": "integer"
- },
- "packages": {
- "description": "The processor packages read.",
- "minimum": 1,
- "type": "integer"
- },
- "source": {
- "type": "string"
- }
- },
- "required": [
- "joules_micro",
- "energy_provenance",
- "coverage"
- ],
- "type": "object"
- }
- ],
- "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
- },
- "exchanges": {
- "description": "Partition qubits exchanged with local ones through the host's copy of the state.",
- "minimum": 0,
- "type": "integer"
- },
- "fell_back_from": {
- "description": "An accelerator request whose member failed during the run: each member that failed, in turn, with how; the member named above ran the job.",
- "items": {
- "description": "A member of the fabric and its certificate for the kernel: its id (which binds the device), its key, its class, the implementation, the parity tier, the certificate's digest (BLAKE3, hex), and the corpus it was earned on (its digest, generator and cases; the CPU reference's own standing has none).",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "class": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "key": {
- "type": "string"
- },
- "member": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "description": "For a member the job fell back from: how it failed.",
- "type": "string"
- },
- "wide": {
- "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "kernel": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "parity"
- ],
- "type": "object"
- }
- },
- "required": [
- "member",
- "implementation",
- "parity",
- "certificate"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "generator": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "kernel": {
- "type": "string"
- },
- "key": {
- "type": "string"
- },
- "local_qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "member": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "partition_qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "partitions": {
- "description": "Each partition's member, by the value of the state's top qubits: partition i holds the amplitudes whose top bits read i.",
- "items": {
- "description": "A member of the fabric and its certificate for the kernel: its id (which binds the device), its key, its class, the implementation, the parity tier, the certificate's digest (BLAKE3, hex), and the corpus it was earned on (its digest, generator and cases; the CPU reference's own standing has none).",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "class": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "implementation": {
- "type": "string"
- },
- "key": {
- "type": "string"
- },
- "member": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "description": "For a member the job fell back from: how it failed.",
- "type": "string"
- },
- "wide": {
- "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "kernel": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "parity"
- ],
- "type": "object"
- }
- },
- "required": [
- "member",
- "implementation",
- "parity",
- "certificate"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "segments": {
- "description": "Runs of gates the partitions took in turn, between exchanges.",
- "minimum": 0,
- "type": "integer"
- },
- "why": {
- "type": "string"
- },
- "wide": {
- "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
- "properties": {
- "cases": {
- "minimum": 0,
- "type": "integer"
- },
- "certificate": {
- "type": "string"
- },
- "corpus": {
- "type": "string"
- },
- "generator": {
- "type": "string"
- },
- "kernel": {
- "type": "string"
- },
- "parity": {
- "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
- "properties": {
- "fidelity": {
- "type": "number"
- },
- "max_abs": {
- "type": "number"
- },
- "max_ulp": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "tier": {
- "enum": [
- "bit-exact",
- "within",
- "statistical",
- "uncertified"
- ]
- }
- },
- "required": [
- "tier"
- ],
- "type": "object"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "parity"
- ],
- "type": "object"
- }
- },
- "required": [
- "kernel",
- "asked",
- "parity",
- "energy"
- ],
- "type": "object"
- },
- "gates": {
- "description": "The program's gates, in standard gates (at most 2^53 - 1), however the method ran them.",
- "minimum": 0,
- "type": "integer"
- },
- "global_phase": {
- "description": "Why the amplitudes' global phase is not fixed, when it is not.",
- "type": "string"
- },
- "ideal": {
- "anyOf": [
- {
- "properties": {
- "computed": {
- "const": true
- },
- "hellinger_fidelity": {
- "type": "number"
- },
- "ideal_outcomes": {
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "sampling_tvd_expected": {
- "type": "number"
- },
- "total_variation_distance": {
- "type": "number"
- }
- },
- "required": [
- "computed",
- "total_variation_distance",
- "hellinger_fidelity"
- ],
- "type": "object"
- },
- {
- "properties": {
- "computed": {
- "const": false
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "computed",
- "why"
- ],
- "type": "object"
- }
- ],
- "description": "A provider job: the circuit's exact distribution set beside the measured counts."
- },
- "job": {
- "description": "A provider job: the provider's job id and its status checks.",
- "type": "object"
- },
- "method": {
- "description": "The method that ran the job (provider for a run on the person's own provider).",
- "type": "string"
- },
- "mitigation": {
- "description": "A job's mitigation (its request's mitigate, engine::mitigate), in its result: the method and the options it ran with, its bias and variance assumptions, each observable raw and mitigated with a standard error each and the ideal value (or, for readout, the counts inverted as a quasi-distribution), the method's own details and what it spent. docs/qec.md describes each method.",
- "properties": {
- "assumptions": {
- "properties": {
- "bias": {
- "type": "string"
- },
- "variance": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "cost": {
- "description": "The circuits and shots it spent beyond the job's own.",
- "properties": {
- "circuits": {
- "minimum": 0,
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "details": {
- "additionalProperties": true,
- "description": "The method's own: the folded scales and the folding check (zne), the learned model and the amplified values (pea), the quasi-probability and the value it converges to (pec), the training fits (cdr), the purity (vd), the flip and its amplification (readout).",
- "type": "object"
- },
- "distribution": {
- "description": "readout: each outcome's raw share and its mitigated quasi-probability, with its standard error.",
- "items": {
- "properties": {
- "bits": {
- "type": "string"
- },
- "mitigated": {
- "type": "number"
- },
- "raw": {
- "type": "number"
- },
- "stderr": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "method": {
- "enum": [
- "zne",
- "pea",
- "pec",
- "cdr",
- "vd",
- "readout"
- ]
- },
- "noise": {
- "description": "How the job's noise model is read for the method.",
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "observables": {
- "items": {
- "description": "One observable: its raw value and the mitigated one, each with its standard error, and the ideal value a simulation knows.",
- "properties": {
- "coeff": {
- "type": "number"
- },
- "ideal": {
- "type": "number"
- },
- "mitigated": {
- "type": "number"
- },
- "observable": {
- "type": "string"
- },
- "raw": {
- "type": "number"
- },
- "raw_stderr": {
- "type": "number"
- },
- "stderr": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "options": {
- "description": "The options it ran with, the defaults filled in.",
- "properties": {
- "extrapolation": {
- "enum": [
- "richardson",
- "linear",
- "exponential"
- ]
- },
- "factors": {
- "items": {
- "type": "number"
- },
- "type": "array"
- },
- "keep": {
- "type": "integer"
- },
- "learn_shots": {
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "samples": {
- "type": "integer"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "training": {
- "type": "integer"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "method",
- "options",
- "assumptions"
- ],
- "title": "wai.quantum.mitigation/1",
- "type": "object"
- },
- "omitted_shots": {
- "minimum": 0,
- "type": "integer"
- },
- "operations": {
- "description": "When the method held a gate under many controls as one (statevector, and exact asked for it): the operations it ran.",
- "minimum": 0,
- "type": "integer"
- },
- "outcome_dimension": {
- "description": "The stabilizer method: the dimension of the measured outcomes' affine space.",
- "minimum": 0,
- "type": "integer"
- },
- "outputs": {
- "description": "The program's output declarations: each its name and type, and its value, or the places of its bits in each outcome.",
- "items": {
- "properties": {
- "bits": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "description": "A number, a boolean, a bit string, a duration's text, {\"re\", \"im\"}, or an array of them."
- }
- },
- "required": [
- "name",
- "type"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "planner": {
- "description": "Why this route ran (wai.quantum.planner/1): every route the host could see, each one's price or reason for rejection, and the choice. Sealed by the receipt; a verifier recomputes each route's outcome and the choice from what it states (wai/extensions/quantum-providers.md section 8.7). A plan carries it too, with the refusal in place of the choice when no route meets the contract.",
- "properties": {
- "auto": {
- "description": "The route auto picks, when the job leaves the method to it.",
- "type": [
- "string",
- "null"
- ]
- },
- "choice": {
- "type": [
- "string",
- "null"
- ]
- },
- "format": {
- "const": "wai.quantum.planner/1"
- },
- "host": {
- "properties": {
- "job_bytes": {
- "minimum": 0,
- "type": "number"
- },
- "providers": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "job_bytes",
- "providers"
- ],
- "type": "object"
- },
- "kept": {
- "description": "What the contract asked, against what happened; each kept is null when it cannot be said. A result that missed one is sealed and says so.",
- "properties": {
- "cost": {
- "properties": {
- "charged": {
- "properties": {
- "amount": {
- "type": "string"
- },
- "currency": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "kept": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "max_cost": {
- "properties": {
- "amount": {
- "type": "string"
- },
- "currency": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "max_cost",
- "charged",
- "kept"
- ],
- "type": "object"
- },
- "deadline": {
- "properties": {
- "elapsed_ms": {
- "minimum": 0,
- "type": [
- "integer",
- "null"
- ]
- },
- "kept": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "seconds": {
- "type": "number"
- }
- },
- "required": [
- "seconds",
- "elapsed_ms",
- "kept"
- ],
- "type": "object"
- },
- "energy": {
- "properties": {
- "joules": {
- "type": [
- "number",
- "null"
- ]
- },
- "kept": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "max_joules": {
- "type": "number"
- }
- },
- "required": [
- "max_joules",
- "joules",
- "kept"
- ],
- "type": "object"
- }
- },
- "type": "object"
- },
- "named": {
- "description": "The route the job names: the provider or the method its request names, or the one method a device target's job runs on; null when it names none.",
- "type": [
- "string",
- "null"
- ]
- },
- "question": {
- "description": "The question the job asks, read from its request, which orders the methods auto tries (section 8.7).",
- "enum": [
- "noise",
- "counts",
- "expectations",
- "amplitudes"
- ]
- },
- "refusal": {
- "description": "When no route meets the contract, in a plan: the refusal as data.",
- "type": "object"
- },
- "routes": {
- "items": {
- "description": "One route the planner could see: its class, its price or why it has none, and what came of it.",
- "properties": {
- "approximate": {
- "const": true
- },
- "auto_rank": {
- "description": "On a local route: its rank in auto's order for the job's question, or null where auto does not try it; a built-in method's is section 8.7's table.",
- "minimum": 0,
- "type": [
- "integer",
- "null"
- ]
- },
- "class": {
- "description": "The accuracy class its result has at worst: a matrix product state's is heuristic, though its result may say exact.",
- "type": "string"
- },
- "device": {
- "type": "string"
- },
- "host_dependent": {
- "description": "Whether it depends on the host: a provider's, a method on a GPU, or a registered method.",
- "type": "boolean"
- },
- "kind": {
- "enum": [
- "local",
- "provider"
- ]
- },
- "method": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "chosen",
- "met",
- "rejected"
- ]
- },
- "price": {
- "anyOf": [
- {
- "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
- "properties": {
- "energy": {
- "properties": {
- "basis": {
- "type": "string"
- },
- "joules": {
- "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "unwatched": {
- "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
- "type": "string"
- },
- "watch": {
- "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "joules"
- ],
- "type": "object"
- },
- "leaves_out": {
- "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
- "items": {
- "enum": [
- "time",
- "amount",
- "energy",
- "mitigation",
- "decoder",
- "charged",
- "cancel"
- ]
- },
- "type": "array"
- },
- "memory_bytes": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "money": {
- "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
- "properties": {
- "amount": {
- "type": "string"
- },
- "at_least": {
- "const": true,
- "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
- },
- "currency": {
- "type": "string"
- },
- "free": {
- "type": "boolean"
- },
- "unit": {
- "type": "string"
- },
- "unknown": {
- "type": "string"
- }
- },
- "required": [
- "free"
- ],
- "type": "object"
- },
- "program": {
- "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
- "properties": {
- "expected_success": {
- "type": "number"
- },
- "native_gates": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "swaps": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit_gates": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "time": {
- "properties": {
- "basis": {
- "enum": [
- "nominal",
- "provider"
- ]
- },
- "seconds": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "seconds"
- ],
- "type": "object"
- },
- "work": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "money",
- "time",
- "memory_bytes",
- "work",
- "energy",
- "leaves_out"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "provenance": {
- "type": "string"
- },
- "provider": {
- "type": "string"
- },
- "rejected": {
- "properties": {
- "code": {
- "enum": [
- "not_named",
- "fabric",
- "class",
- "cannot",
- "memory",
- "providers",
- "deadline",
- "deadline_unknown",
- "cost",
- "cost_currency",
- "cost_unknown",
- "cost_at_least",
- "cost_no_ceiling",
- "energy",
- "energy_unwatched"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "why"
- ],
- "type": "object"
- },
- "route": {
- "description": "method:<name> or provider:<name>.",
- "type": "string"
- }
- },
- "required": [
- "route",
- "kind",
- "class",
- "host_dependent",
- "price",
- "outcome"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "shadow": {
- "description": "The classical method that would shadow a provider's answer within the contract, or why none can.",
- "properties": {
- "budget_seconds": {
- "minimum": 0,
- "type": "number"
- },
- "class": {
- "type": "string"
- },
- "code": {
- "enum": [
- "budget",
- "memory",
- "none"
- ]
- },
- "price": {
- "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
- "properties": {
- "energy": {
- "properties": {
- "basis": {
- "type": "string"
- },
- "joules": {
- "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "unwatched": {
- "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
- "type": "string"
- },
- "watch": {
- "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "joules"
- ],
- "type": "object"
- },
- "leaves_out": {
- "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
- "items": {
- "enum": [
- "time",
- "amount",
- "energy",
- "mitigation",
- "decoder",
- "charged",
- "cancel"
- ]
- },
- "type": "array"
- },
- "memory_bytes": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "money": {
- "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
- "properties": {
- "amount": {
- "type": "string"
- },
- "at_least": {
- "const": true,
- "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
- },
- "currency": {
- "type": "string"
- },
- "free": {
- "type": "boolean"
- },
- "unit": {
- "type": "string"
- },
- "unknown": {
- "type": "string"
- }
- },
- "required": [
- "free"
- ],
- "type": "object"
- },
- "program": {
- "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
- "properties": {
- "expected_success": {
- "type": "number"
- },
- "native_gates": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "swaps": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit_gates": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "time": {
- "properties": {
- "basis": {
- "enum": [
- "nominal",
- "provider"
- ]
- },
- "seconds": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "seconds"
- ],
- "type": "object"
- },
- "work": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "money",
- "time",
- "memory_bytes",
- "work",
- "energy",
- "leaves_out"
- ],
- "type": "object"
- },
- "request": {
- "type": "object"
- },
- "route": {
- "type": [
- "string",
- "null"
- ]
- },
- "tried": {
- "items": {
- "properties": {
- "code": {
- "type": "string"
- },
- "route": {
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "route"
- ],
- "type": "object"
- },
- "stable": {
- "properties": {
- "choice": {
- "type": "boolean"
- },
- "digest": {
- "type": "string"
- },
- "routes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "scope": {
- "type": "string"
- }
- },
- "required": [
- "scope",
- "routes",
- "digest",
- "choice"
- ],
- "type": "object"
- },
- "wanted": {
- "description": "The class wanted: the contract's, else that of the route the job names or auto's pick.",
- "type": [
- "string",
- "null"
- ]
- },
- "wanted_from": {
- "enum": [
- "contract",
- "named",
- "auto",
- null
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "format",
- "wanted",
- "wanted_from",
- "auto",
- "host",
- "routes",
- "choice",
- "why",
- "stable",
- "named",
- "question"
- ],
- "type": "object"
- },
- "provenance": {
- "description": "What a result came from, under the five categories cross-platform provenance surveys use: the circuit, the computer, the compilation, the execution and the software. A host adds it to the results it seals (the job service does, and each item of a set); a result without it reads as it always did. wai-quantum-service/docs/provenance.md maps every field to where it is and whether the receipt seals it.",
- "properties": {
- "circuit": {
- "description": "The program: the BLAKE3 digest of its text as given, its qubits and its gates.",
- "properties": {
- "gates": {
- "type": [
- "integer",
- "null"
- ]
- },
- "program": {
- "description": "BLAKE3 of the program's text, in hex.",
- "type": "string"
- },
- "qubits": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "program"
- ],
- "type": "object"
- },
- "compilation": {
- "description": "Whether the job asked to be compiled; if it did, each pass in order with its check's verdict, the certificate's digest, the gate set compiled to (its basis), the level, the ε budget and the distance the result carries, and that no pass draws a random number.",
- "properties": {
- "asked": {
- "type": "boolean"
- },
- "basis": {
- "description": "The gate set compiled to: clifford_t or standard.",
- "type": [
- "string",
- "null"
- ]
- },
- "certificate": {
- "type": [
- "string",
- "null"
- ]
- },
- "device": {
- "description": "A job on a device target, compiled exactly to its gates: where its layout and routes are.",
- "type": "string"
- },
- "distance": {
- "type": [
- "number",
- "null"
- ]
- },
- "epsilon": {
- "type": [
- "number",
- "null"
- ]
- },
- "level": {
- "type": [
- "integer",
- "null"
- ]
- },
- "passes": {
- "items": {
- "properties": {
- "pass": {
- "type": "string"
- },
- "verdict": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "type": [
- "array",
- "null"
- ]
- },
- "seeded": {
- "const": false
- },
- "status": {
- "const": "not-applicable"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "asked"
- ],
- "type": "object"
- },
- "computer": {
- "description": "What ran it: a classical simulator, the method and its accuracy class, a device target's hash when the job named one, and the fabric's members when the result names where its state ran.",
- "properties": {
- "accuracy": {
- "type": [
- "string",
- "null"
- ]
- },
- "fabric": {
- "description": "The kernel and the member that ran the state, or each partition's, as the result's fabric names them.",
- "properties": {
- "kernel": {
- "type": "string"
- },
- "members": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "kind": {
- "const": "simulator"
- },
- "method": {
- "type": "string"
- },
- "target": {
- "description": "The device target's hash; its layout, routes and noise are in the result's own target.",
- "type": "string"
- }
- },
- "required": [
- "kind",
- "method"
- ],
- "type": "object"
- },
- "execution": {
- "description": "The shots, the seed and the plan the job ran under; its identifier and times are the host's, outside the result.",
- "properties": {
- "plan": {
- "properties": {
- "memory_bytes": {
- "minimum": 0,
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "why": {
- "type": "string"
- },
- "work": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "seed": {
- "type": [
- "integer",
- "null"
- ]
- },
- "shots": {
- "type": [
- "integer",
- "null"
- ]
- }
- },
- "required": [
- "plan"
- ],
- "type": "object"
- },
- "schema": {
- "const": "wai.quantum.provenance/1"
- },
- "software": {
- "description": "The engine's name and version, and the host's.",
- "properties": {
- "engine": {
- "type": "string"
- },
- "host": {
- "type": "string"
- }
- },
- "required": [
- "engine",
- "host"
- ],
- "type": "object"
- }
- },
- "required": [
- "schema",
- "circuit",
- "computer",
- "compilation",
- "execution",
- "software"
- ],
- "title": "wai.quantum.provenance/1",
- "type": "object"
- },
- "provider": {
- "description": "A provider job: the provider's name, kind and protocol, the device, its provenance, and the hash of its description.",
- "type": "object"
- },
- "pulse": {
- "description": "A pulse run (method pulse, engine::pulse): what was read and its distribution, the final populations, each capture's reading, the final density matrix's digest, the schedule's length, the integrator and its step, the device and where each parameter came from, and what the receipt binds (calibration).",
- "properties": {
- "calibration": {
- "description": "What the receipt binds: the program's, its calibrations', the schedule's and the device's digests, and the target snapshot.",
- "properties": {
- "calibrations": {
- "type": "string"
- },
- "device": {
- "type": "string"
- },
- "program": {
- "type": "string"
- },
- "schedule": {
- "type": "string"
- },
- "target": {
- "properties": {
- "calibration": {
- "type": "object"
- },
- "hash": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "type": "object"
- },
- "captures": {
- "items": {
- "properties": {
- "bit": {
- "type": [
- "string",
- "null"
- ]
- },
- "frame": {
- "type": "string"
- },
- "p1": {
- "type": "number"
- },
- "p2": {
- "type": "number"
- },
- "qubit": {
- "type": "integer"
- },
- "start": {
- "type": "integer"
- },
- "start_ns": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "density_hash": {
- "description": "The BLAKE3 of the final density matrix's bits: the same on every platform.",
- "type": "string"
- },
- "device": {
- "properties": {
- "couplings": {
- "type": "array"
- },
- "dt_ns": {
- "type": "number"
- },
- "levels": {
- "type": "integer"
- },
- "model": {
- "type": "string"
- },
- "qubits": {
- "items": {
- "properties": {
- "anharmonicity_hz": {
- "type": "number"
- },
- "frequency_hz": {
- "type": "number"
- },
- "from": {
- "additionalProperties": {
- "enum": [
- "pulse",
- "target",
- "default",
- "none"
- ]
- },
- "type": "object"
- },
- "qubit": {
- "type": "integer"
- },
- "rabi_hz": {
- "type": "number"
- },
- "t1_ns": {
- "type": "number"
- },
- "t2_ns": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "distribution": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The probability of each outcome, which the counts sample; null when the captures start at different samples.",
- "type": [
- "object",
- "null"
- ]
- },
- "duration": {
- "type": "integer"
- },
- "duration_ns": {
- "type": "number"
- },
- "integrator": {
- "properties": {
- "dt_ns": {
- "type": "number"
- },
- "frame": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "norm_max": {
- "type": "number"
- },
- "order": {
- "type": "integer"
- },
- "step_ns": {
- "type": "number"
- },
- "steps": {
- "type": "integer"
- },
- "substeps": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "leakage": {
- "description": "With three levels: each qubit's final probability of level 2.",
- "items": {
- "properties": {
- "p2": {
- "type": "number"
- },
- "qubit": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "not_modelled": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "outcome_bits": {
- "description": "What each character of an outcome is, left to right: a program bit (c[0]) or a qubit ($0).",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "populations": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The final state read on every simulated qubit, the highest qubit first, a level above 0 read as 1.",
- "type": "object"
- },
- "read": {
- "description": "What the distribution reads: the captures together (into the program's bits when each writes one), or the final state.",
- "type": "string"
- },
- "simulated_qubits": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "trace": {
- "type": "number"
- }
- },
- "required": [
- "read",
- "outcome_bits",
- "populations",
- "simulated_qubits",
- "density_hash",
- "integrator",
- "device",
- "calibration"
- ],
- "type": "object"
- },
- "qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "receipt": {
- "anyOf": [
- {
- "description": "A result's receipt: an Ed25519 signature, by the key it names, over digest = BLAKE3(\"wai:quantum-service-receipt\\x02\" ‖ len ‖ request ‖ len ‖ result), each of request and result in its RFC 8785 canonical text (the result without its receipt member), each length 8 bytes big-endian. Whatever members the request and the result hold are sealed, the result's engine and schema among them. The first receipts (no canon member, $defs/first) sealed their writer's compact text under the domain ending \\x01; they still verify. wai/extensions/quantum-providers.md section 8.2 states the seal in full, and section 8.4 what a verifier checks.",
- "properties": {
- "alg": {
- "const": "ed25519"
- },
- "canon": {
- "const": "rfc8785",
- "description": "The canonical form the digest is taken over."
- },
- "digest": {
- "description": "The digest signed, 32 bytes in lower-case hex.",
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "key": {
- "description": "The signing key, 32 bytes in lower-case hex.",
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "signature": {
- "description": "The signature, 64 bytes in lower-case hex.",
- "maxLength": 128,
- "minLength": 128,
- "pattern": "^[0-9a-f]{128}$",
- "type": "string"
- }
- },
- "required": [
- "alg",
- "canon",
- "key",
- "digest",
- "signature"
- ],
- "title": "wai.quantum.receipt/2",
- "type": "object"
- },
- {
- "description": "The first form, before canon: the digest is over the compact text its writer wrote of each, members in the document's order (section 8.2 of wai/extensions/quantum-providers.md), under the domain ending \\x01. Never written now; still verified.",
- "properties": {
- "alg": {
- "const": "ed25519"
- },
- "digest": {
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "key": {
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "signature": {
- "maxLength": 128,
- "minLength": 128,
- "pattern": "^[0-9a-f]{128}$",
- "type": "string"
- }
- },
- "required": [
- "alg",
- "key",
- "digest",
- "signature"
- ],
- "type": "object"
- }
- ]
- },
- "repaired": {
- "description": "A job asked to repair its program first: the program that ran, each repair, and what needs a person.",
- "properties": {
- "needs_person": {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "qasm": {
- "type": "string"
- },
- "repairs": {
- "items": {
- "properties": {
- "by": {
- "enum": [
- "engine",
- "proposal"
- ]
- },
- "code": {
- "type": "string"
- },
- "edits": {
- "items": {
- "properties": {
- "after": {
- "type": [
- "string",
- "null"
- ]
- },
- "before": {
- "type": [
- "string",
- "null"
- ]
- },
- "line": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "flagged": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "rule": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "by",
- "edits"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "schema": {
- "const": "wai.quantum.job-result/1",
- "description": "The schema the result follows."
- },
- "shadow": {
- "description": "A classical method's answer beside a provider's, and their distance, for a contract job a provider answered; or why there is none. Its request can be run again by anyone, to the same counts.",
- "properties": {
- "accuracy": {
- "description": "What the method promises of the numbers it gave.",
- "properties": {
- "approximate": {
- "const": true,
- "description": "A simulated result whose provider states its simulator is approximate."
- },
- "batch": {
- "type": "integer"
- },
- "below_table": {
- "description": "The bit-exact method: phase gates of its lowering that are not zero and ran as no phase, within the reader's tolerance (1e-14 of a turn) of a whole turn. `angles` counts those gates: one angle written may be several, and another count in another form of the same program.",
- "properties": {
- "angles": {
- "minimum": 1,
- "type": "integer"
- },
- "largest_radians": {
- "type": "number"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "angles",
- "largest_radians",
- "note"
- ],
- "type": "object"
- },
- "bound": {
- "description": "The bound this result is held to, by method: a pulse run (class bounded): every probability within this of the exact solution of the model's master equation, the truncation bound and the rounding estimate together; stabilizer_rank's sampled mode (class estimate): the bound on the distance of the estimated state from the state, holding with the probability confidence states.",
- "minimum": 0,
- "type": "number"
- },
- "class": {
- "description": "bit-exact: the same bits on every machine; exact: no approximation beyond double-precision rounding; single: single-precision arithmetic; bounded: a rigorous bound beside each value; estimate: a statistical estimate with its standard error; heuristic: an approximation with an estimate of its error, not a bound; measured: counts a processor returned through the person's provider, not reproducible by recomputation; simulated: counts a provider's simulator or emulator returned, measured on no device. Results sealed before simulated existed label a provider's simulator measured, and are read by its provenance. none: the run was stopped at its contract's energy ceiling and gave no answer.",
- "enum": [
- "bit-exact",
- "exact",
- "single",
- "bounded",
- "estimate",
- "heuristic",
- "measured",
- "simulated",
- "none"
- ]
- },
- "confidence": {
- "description": "The probability a stated bound holds.",
- "type": "number"
- },
- "device": {
- "type": "string"
- },
- "discarded_weight": {
- "type": "number"
- },
- "fidelity_estimate": {
- "type": "number"
- },
- "fusion": {
- "type": "integer"
- },
- "gate_applications": {
- "type": "integer"
- },
- "global_phase": {
- "description": "The bit-exact method: method statevector's state of the program that ran is e^(i radians) times the amplitudes given, since this method's lowering drops the phase of rz, rx, ry, rxx, ryy, rzz and u. Absent when that is 1. The language's own state can differ from both: its U is e^(i theta / 2) times the matrix both methods take as u, the reader drops an uncontrolled gphase (Q206), and a compiled job's program is the compile's, right up to a global phase.",
- "properties": {
- "note": {
- "type": "string"
- },
- "radians": {
- "description": "The same in radians, in (-pi, pi].",
- "type": "number"
- },
- "turns_over_2_33": {
- "description": "The phase exactly, in 2^33rds of a turn.",
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "turns_over_2_33",
- "radians",
- "note"
- ],
- "type": "object"
- },
- "histories": {
- "type": "integer"
- },
- "max_bond": {
- "type": "integer"
- },
- "max_bond_used": {
- "type": "integer"
- },
- "max_cut": {
- "type": "integer"
- },
- "max_weight": {
- "type": [
- "integer",
- "null"
- ]
- },
- "moved_angles": {
- "description": "The bit-exact method: phase gates of its lowering within the reader's tolerance (1e-14 of a turn) of a dyadic angle, by more than a double's rounding of it, that ran as it. `angles` counts those gates.",
- "properties": {
- "angles": {
- "minimum": 1,
- "type": "integer"
- },
- "largest_radians": {
- "type": "number"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "angles",
- "largest_radians",
- "note"
- ],
- "type": "object"
- },
- "norm": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "order_work": {
- "type": "number"
- },
- "rounding_estimate": {
- "description": "A pulse run: an estimate of floating-point rounding beside the bound, not a proof.",
- "type": "number"
- },
- "shots": {
- "type": "integer"
- },
- "t_count": {
- "description": "stabilizer_rank: the T and T† gates the program lowers to.",
- "minimum": 0,
- "type": "integer"
- },
- "terms": {
- "description": "stabilizer_rank: the stabilizer branches summed (2^t exactly), or drawn.",
- "minimum": 1,
- "type": "integer"
- },
- "threshold": {
- "type": "number"
- },
- "tolerance": {
- "type": "number"
- },
- "trajectories": {
- "type": "integer"
- },
- "truncation_bound": {
- "description": "A pulse run: the proved bound, in the trace norm, on what the integrator's series leaves out.",
- "type": "number"
- },
- "truncations": {
- "type": "integer"
- }
- },
- "required": [
- "class"
- ],
- "type": "object"
- },
- "code": {
- "type": "string"
- },
- "counts": {
- "additionalProperties": {
- "minimum": 1,
- "type": "integer"
- },
- "type": "object"
- },
- "distance": {
- "properties": {
- "computed": {
- "type": "boolean"
- },
- "denominator": {
- "minimum": 1,
- "type": "integer"
- },
- "hellinger_fidelity": {
- "type": "number"
- },
- "numerator": {
- "minimum": 0,
- "type": "integer"
- },
- "sampling_tvd_bound": {
- "description": "A bound on the total variation the shots alone leave between two samples of one distribution, on average (section 8.7): each outcome's pooled count split as a fair coin splits it.",
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "total_variation": {
- "maximum": 1,
- "minimum": 0,
- "type": "number"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "computed"
- ],
- "type": "object"
- },
- "distinct_outcomes": {
- "minimum": 0,
- "type": "integer"
- },
- "elapsed_ms": {
- "minimum": 0,
- "type": "integer"
- },
- "omitted_shots": {
- "minimum": 0,
- "type": "integer"
- },
- "ran": {
- "type": "boolean"
- },
- "request": {
- "properties": {
- "method": {
- "type": "string"
- },
- "qasm": {
- "type": "string"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "route": {
- "type": "string"
- },
- "shots": {
- "minimum": 1,
- "type": "integer"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "ran"
- ],
- "type": "object"
- },
- "shots": {
- "description": "The shots, where the method names them in the result (trajectories, provider).",
- "minimum": 0,
- "type": "integer"
- },
- "state_hash": {
- "description": "The bit-exact method's statevector hash (BLAKE3, hex): the same on every machine.",
- "type": "string"
- },
- "stopped": {
- "description": "A run stopped at its contract's max_joules by a live reading: it gave no answer, and accuracy.class is none (wai/extensions/quantum-providers.md section 8.7).",
- "properties": {
- "at": {
- "const": "max_joules"
- },
- "elapsed_ms": {
- "minimum": 0,
- "type": "integer"
- },
- "joules": {
- "description": "What the reading had come to, at or past the ceiling.",
- "type": "number"
- },
- "max_joules": {
- "type": "number"
- },
- "read": {
- "description": "What read the run, and what that covers.",
- "type": "string"
- }
- },
- "required": [
- "at",
- "joules",
- "max_joules",
- "elapsed_ms",
- "read"
- ],
- "type": "object"
- },
- "target": {
- "description": "A run on a device target: which target (its hash, as its receipt binds it), its calibration snapshot, where the program was placed and why, and the noise derived from the target.",
- "properties": {
- "calibration": {
- "properties": {
- "id": {
- "type": "string"
- },
- "timestamp": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "hash": {
- "type": "string"
- },
- "hash_is": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "noise": {
- "description": "The noise model derived from the target's calibration: its channels, durations and idling, and each qubit's readout.",
- "type": "object"
- },
- "placement": {
- "description": "The native gate set, the layout and routes chosen, the swaps, the expected success beside the fewest-swaps layout's, and the check of the compiled program.",
- "type": "object"
- },
- "source": {
- "properties": {
- "format": {
- "type": "string"
- },
- "note": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "name",
- "hash"
- ],
- "type": "object"
- },
- "timing": {
- "description": "A program that states durations (delay, box, stretch) the method does not apply: said so, with the reader's code.",
- "properties": {
- "applied": {
- "type": "boolean"
- },
- "code": {
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "applied",
- "why"
- ],
- "type": "object"
- },
- "verdict": {
- "description": "How far the engine checked an answer about a program, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided). A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
- "properties": {
- "critique": {
- "description": "The program's smells, each with its lines.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "executed": {
- "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
- "properties": {
- "accuracy": {
- "type": [
- "string",
- "null"
- ]
- },
- "compiled_distance": {
- "type": [
- "number",
- "null"
- ]
- },
- "method": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "holds": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "intent": {
- "items": {
- "description": "One intent's check: what it asked, whether it held, how strong the check was and how it was made.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "counts": {
- "additionalProperties": {
- "type": "integer"
- },
- "type": "object"
- },
- "distance": {
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The program's distribution, when its outcomes are few enough to list.",
- "type": "object"
- },
- "fit": {
- "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "dof": {
- "type": "integer"
- },
- "impossible": {
- "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
- "type": [
- "integer",
- "array",
- "boolean"
- ]
- },
- "impossible_outcomes": {
- "description": "How many outcomes sampled the stated distribution gives probability 0.",
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "p_value": {
- "type": "number"
- },
- "rejected": {
- "type": "boolean"
- },
- "shots": {
- "type": "integer"
- },
- "smallest_expected": {
- "type": [
- "number",
- "null"
- ]
- },
- "statistic": {
- "type": "number"
- },
- "test": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "global_phase": {
- "type": [
- "number",
- "null"
- ]
- },
- "how": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "distribution",
- "equivalent",
- "prepares",
- "sampled",
- "compiled"
- ]
- },
- "largest_gaps": {
- "items": {
- "properties": {
- "intent": {
- "type": "number"
- },
- "outcome": {
- "type": "string"
- },
- "program": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "method": {
- "description": "A sampled intent: the method the samples were run by.",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "holds",
- "fails",
- "unchecked"
- ]
- },
- "outcomes": {
- "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
- "type": "integer"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "strength": {
- "enum": [
- "proof",
- "evidence",
- "none"
- ]
- },
- "tolerance": {
- "type": "number"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "outcome",
- "strength",
- "how"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "level": {
- "enum": [
- "refused",
- "parsed",
- "executed",
- "evidence",
- "proof"
- ]
- },
- "parsed": {
- "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "diagnostics": {
- "items": {
- "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "lowered",
- "carried",
- "preserved",
- "warned"
- ]
- }
- },
- "required": [
- "code",
- "outcome",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "ok": {
- "type": "boolean"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- },
- "text": {
- "description": "The refusal as the reader wrote it, with its line and code.",
- "type": "string"
- }
- },
- "required": [
- "ok"
- ],
- "type": "object"
- },
- "rank": {
- "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
- "maximum": 4,
- "minimum": 0,
- "type": "integer"
- },
- "refusal": {
- "description": "For a refused job: its message and its codes.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- }
- },
- "type": "object"
- },
- "repairs": {
- "description": "Each edit a repair made, with the code it answered and the lines it changed.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "schema": {
- "const": "wai.quantum.verdict/1"
- },
- "sealed": {
- "type": "boolean"
- },
- "statement": {
- "description": "The level in one plain line.",
- "type": "string"
- }
- },
- "required": [
- "schema",
- "level",
- "rank",
- "holds",
- "statement",
- "parsed",
- "executed",
- "intent",
- "critique",
- "repairs"
- ],
- "title": "wai.quantum.verdict/1",
- "type": "object"
- },
- "warning": {
- "type": "string"
- }
- },
- "required": [
- "method",
- "qubits",
- "gates",
- "accuracy"
- ],
- "title": "wai.quantum.job-result/1",
- "type": "object"
- },
- "status": {
- "enum": [
- "done",
- "failed"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "index",
- "request",
- "status",
- "path"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "receipt": {
- "description": "A result's receipt: an Ed25519 signature, by the key it names, over digest = BLAKE3(\"wai:quantum-service-receipt\\x02\" ‖ len ‖ request ‖ len ‖ result), each of request and result in its RFC 8785 canonical text (the result without its receipt member), each length 8 bytes big-endian. Whatever members the request and the result hold are sealed, the result's engine and schema among them. The first receipts (no canon member, $defs/first) sealed their writer's compact text under the domain ending \\x01; they still verify. wai/extensions/quantum-providers.md section 8.2 states the seal in full, and section 8.4 what a verifier checks.",
- "properties": {
- "alg": {
- "const": "ed25519"
- },
- "canon": {
- "const": "rfc8785",
- "description": "The canonical form the digest is taken over."
- },
- "digest": {
- "description": "The digest signed, 32 bytes in lower-case hex.",
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "key": {
- "description": "The signing key, 32 bytes in lower-case hex.",
- "maxLength": 64,
- "minLength": 64,
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "signature": {
- "description": "The signature, 64 bytes in lower-case hex.",
- "maxLength": 128,
- "minLength": 128,
- "pattern": "^[0-9a-f]{128}$",
- "type": "string"
- }
- },
- "required": [
- "alg",
- "canon",
- "key",
- "digest",
- "signature"
- ],
- "title": "wai.quantum.receipt/2",
- "type": "object"
- },
- "root": {
- "description": "The Merkle root of the items' leaves, in hex (domains moq-jwp:merkle-leaf and moq-jwp:merkle-node, version 1).",
- "type": "string"
- },
- "schema": {
- "const": "wai.quantum.set/1"
- }
- },
- "required": [
- "format",
- "count",
- "done",
- "failed",
- "root",
- "items"
- ],
- "title": "wai.quantum.set/1",
- "type": "object"
- }
- ]
- },
- "started_ms": {
- "type": "integer"
- },
- "status": {
- "description": "interrupted: the job service stopped while the job ran, after it had run it again once from its request, so it has no result; error says so.",
- "enum": [
- "queued",
- "running",
- "done",
- "failed",
- "cancelled",
- "interrupted"
- ]
- },
- "submitted_ms": {
- "description": "The job service: when it was submitted, in milliseconds since 1970.",
- "type": "integer"
- },
- "verdict": {
- "description": "How far the engine checked an answer about a program, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided). A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
- "properties": {
- "critique": {
- "description": "The program's smells, each with its lines.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "executed": {
- "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
- "properties": {
- "accuracy": {
- "type": [
- "string",
- "null"
- ]
- },
- "compiled_distance": {
- "type": [
- "number",
- "null"
- ]
- },
- "method": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "holds": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "intent": {
- "items": {
- "description": "One intent's check: what it asked, whether it held, how strong the check was and how it was made.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "counts": {
- "additionalProperties": {
- "type": "integer"
- },
- "type": "object"
- },
- "distance": {
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The program's distribution, when its outcomes are few enough to list.",
- "type": "object"
- },
- "fit": {
- "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "dof": {
- "type": "integer"
- },
- "impossible": {
- "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
- "type": [
- "integer",
- "array",
- "boolean"
- ]
- },
- "impossible_outcomes": {
- "description": "How many outcomes sampled the stated distribution gives probability 0.",
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "p_value": {
- "type": "number"
- },
- "rejected": {
- "type": "boolean"
- },
- "shots": {
- "type": "integer"
- },
- "smallest_expected": {
- "type": [
- "number",
- "null"
- ]
- },
- "statistic": {
- "type": "number"
- },
- "test": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "global_phase": {
- "type": [
- "number",
- "null"
- ]
- },
- "how": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "distribution",
- "equivalent",
- "prepares",
- "sampled",
- "compiled"
- ]
- },
- "largest_gaps": {
- "items": {
- "properties": {
- "intent": {
- "type": "number"
- },
- "outcome": {
- "type": "string"
- },
- "program": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "method": {
- "description": "A sampled intent: the method the samples were run by.",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "holds",
- "fails",
- "unchecked"
- ]
- },
- "outcomes": {
- "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
- "type": "integer"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "strength": {
- "enum": [
- "proof",
- "evidence",
- "none"
- ]
- },
- "tolerance": {
- "type": "number"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "outcome",
- "strength",
- "how"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "level": {
- "enum": [
- "refused",
- "parsed",
- "executed",
- "evidence",
- "proof"
- ]
- },
- "parsed": {
- "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "diagnostics": {
- "items": {
- "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "lowered",
- "carried",
- "preserved",
- "warned"
- ]
- }
- },
- "required": [
- "code",
- "outcome",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "ok": {
- "type": "boolean"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- },
- "text": {
- "description": "The refusal as the reader wrote it, with its line and code.",
- "type": "string"
- }
- },
- "required": [
- "ok"
- ],
- "type": "object"
- },
- "rank": {
- "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
- "maximum": 4,
- "minimum": 0,
- "type": "integer"
- },
- "refusal": {
- "description": "For a refused job: its message and its codes.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- }
- },
- "type": "object"
- },
- "repairs": {
- "description": "Each edit a repair made, with the code it answered and the lines it changed.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "schema": {
- "const": "wai.quantum.verdict/1"
- },
- "sealed": {
- "type": "boolean"
- },
- "statement": {
- "description": "The level in one plain line.",
- "type": "string"
- }
- },
- "required": [
- "schema",
- "level",
- "rank",
- "holds",
- "statement",
- "parsed",
- "executed",
- "intent",
- "critique",
- "repairs"
- ],
- "title": "wai.quantum.verdict/1",
- "type": "object"
- },
- "why": {
- "description": "Why the plan chose the method.",
- "type": "string"
- }
- },
- "required": [
- "status",
- "request"
- ],
- "title": "wai.quantum.job/1",
- "type": "object"
- },
- {
- "description": "What the service would do with a job or a set, running nothing: the plan's method and why, its qubits, memory and work, the estimated time and energy (each with its basis, or why there is none), the bounds that apply, where the client stands against its limits, each item of a set, and whether the service would take it now, or the refusal it would give.",
- "properties": {
- "accepted": {
- "description": "Whether the service would take it now, by every limit, its reading held to what the submission's would take; the MCP tools plan it as their runs run it, its verdict asked.",
- "type": "boolean"
- },
- "bounds": {
- "additionalProperties": true,
- "description": "The bounds that apply here: memory, time, queue, items of a set, and result_bytes, the most a job's or a set's result may take as served.",
- "type": "object"
- },
- "client": {
- "description": "Where the client stands: its active jobs, the memory they hold, the submissions left in its window and when the window resets.",
- "properties": {
- "active_jobs": {
- "type": "integer"
- },
- "memory_held_bytes": {
- "type": "integer"
- },
- "submissions_left": {
- "type": "integer"
- },
- "window_resets_in_seconds": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "dry_run": {
- "const": true
- },
- "energy": {
- "additionalProperties": true,
- "description": "The estimated energy, never a reading of this job: microjoules, its provenance and basis, or why there is none.",
- "properties": {
- "basis": {
- "type": "string"
- },
- "energy_provenance": {
- "type": "string"
- },
- "joules_micro_estimate": {
- "minimum": 0,
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "unestimated": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "items": {
- "description": "A set: each item's plan and estimates.",
- "items": {
- "properties": {
- "energy": {
- "additionalProperties": true,
- "type": "object"
- },
- "index": {
- "type": "integer"
- },
- "memory_bytes": {
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "point": {
- "type": "object"
- },
- "qubits": {
- "type": "integer"
- },
- "time": {
- "additionalProperties": true,
- "type": "object"
- },
- "why": {
- "type": "string"
- },
- "work": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "memory_bytes": {
- "minimum": 0,
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "planner": {
- "description": "Why this route ran (wai.quantum.planner/1): every route the host could see, each one's price or reason for rejection, and the choice. Sealed by the receipt; a verifier recomputes each route's outcome and the choice from what it states (wai/extensions/quantum-providers.md section 8.7). A plan carries it too, with the refusal in place of the choice when no route meets the contract.",
- "properties": {
- "auto": {
- "description": "The route auto picks, when the job leaves the method to it.",
- "type": [
- "string",
- "null"
- ]
- },
- "choice": {
- "type": [
- "string",
- "null"
- ]
- },
- "format": {
- "const": "wai.quantum.planner/1"
- },
- "host": {
- "properties": {
- "job_bytes": {
- "minimum": 0,
- "type": "number"
- },
- "providers": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "job_bytes",
- "providers"
- ],
- "type": "object"
- },
- "kept": {
- "description": "What the contract asked, against what happened; each kept is null when it cannot be said. A result that missed one is sealed and says so.",
- "properties": {
- "cost": {
- "properties": {
- "charged": {
- "properties": {
- "amount": {
- "type": "string"
- },
- "currency": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "kept": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "max_cost": {
- "properties": {
- "amount": {
- "type": "string"
- },
- "currency": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "max_cost",
- "charged",
- "kept"
- ],
- "type": "object"
- },
- "deadline": {
- "properties": {
- "elapsed_ms": {
- "minimum": 0,
- "type": [
- "integer",
- "null"
- ]
- },
- "kept": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "seconds": {
- "type": "number"
- }
- },
- "required": [
- "seconds",
- "elapsed_ms",
- "kept"
- ],
- "type": "object"
- },
- "energy": {
- "properties": {
- "joules": {
- "type": [
- "number",
- "null"
- ]
- },
- "kept": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "max_joules": {
- "type": "number"
- }
- },
- "required": [
- "max_joules",
- "joules",
- "kept"
- ],
- "type": "object"
- }
- },
- "type": "object"
- },
- "named": {
- "description": "The route the job names: the provider or the method its request names, or the one method a device target's job runs on; null when it names none.",
- "type": [
- "string",
- "null"
- ]
- },
- "question": {
- "description": "The question the job asks, read from its request, which orders the methods auto tries (section 8.7).",
- "enum": [
- "noise",
- "counts",
- "expectations",
- "amplitudes"
- ]
- },
- "refusal": {
- "description": "When no route meets the contract, in a plan: the refusal as data.",
- "type": "object"
- },
- "routes": {
- "items": {
- "description": "One route the planner could see: its class, its price or why it has none, and what came of it.",
- "properties": {
- "approximate": {
- "const": true
- },
- "auto_rank": {
- "description": "On a local route: its rank in auto's order for the job's question, or null where auto does not try it; a built-in method's is section 8.7's table.",
- "minimum": 0,
- "type": [
- "integer",
- "null"
- ]
- },
- "class": {
- "description": "The accuracy class its result has at worst: a matrix product state's is heuristic, though its result may say exact.",
- "type": "string"
- },
- "device": {
- "type": "string"
- },
- "host_dependent": {
- "description": "Whether it depends on the host: a provider's, a method on a GPU, or a registered method.",
- "type": "boolean"
- },
- "kind": {
- "enum": [
- "local",
- "provider"
- ]
- },
- "method": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "chosen",
- "met",
- "rejected"
- ]
- },
- "price": {
- "anyOf": [
- {
- "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
- "properties": {
- "energy": {
- "properties": {
- "basis": {
- "type": "string"
- },
- "joules": {
- "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "unwatched": {
- "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
- "type": "string"
- },
- "watch": {
- "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "joules"
- ],
- "type": "object"
- },
- "leaves_out": {
- "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
- "items": {
- "enum": [
- "time",
- "amount",
- "energy",
- "mitigation",
- "decoder",
- "charged",
- "cancel"
- ]
- },
- "type": "array"
- },
- "memory_bytes": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "money": {
- "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
- "properties": {
- "amount": {
- "type": "string"
- },
- "at_least": {
- "const": true,
- "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
- },
- "currency": {
- "type": "string"
- },
- "free": {
- "type": "boolean"
- },
- "unit": {
- "type": "string"
- },
- "unknown": {
- "type": "string"
- }
- },
- "required": [
- "free"
- ],
- "type": "object"
- },
- "program": {
- "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
- "properties": {
- "expected_success": {
- "type": "number"
- },
- "native_gates": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "swaps": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit_gates": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "time": {
- "properties": {
- "basis": {
- "enum": [
- "nominal",
- "provider"
- ]
- },
- "seconds": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "seconds"
- ],
- "type": "object"
- },
- "work": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "money",
- "time",
- "memory_bytes",
- "work",
- "energy",
- "leaves_out"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "provenance": {
- "type": "string"
- },
- "provider": {
- "type": "string"
- },
- "rejected": {
- "properties": {
- "code": {
- "enum": [
- "not_named",
- "fabric",
- "class",
- "cannot",
- "memory",
- "providers",
- "deadline",
- "deadline_unknown",
- "cost",
- "cost_currency",
- "cost_unknown",
- "cost_at_least",
- "cost_no_ceiling",
- "energy",
- "energy_unwatched"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "why"
- ],
- "type": "object"
- },
- "route": {
- "description": "method:<name> or provider:<name>.",
- "type": "string"
- }
- },
- "required": [
- "route",
- "kind",
- "class",
- "host_dependent",
- "price",
- "outcome"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "shadow": {
- "description": "The classical method that would shadow a provider's answer within the contract, or why none can.",
- "properties": {
- "budget_seconds": {
- "minimum": 0,
- "type": "number"
- },
- "class": {
- "type": "string"
- },
- "code": {
- "enum": [
- "budget",
- "memory",
- "none"
- ]
- },
- "price": {
- "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
- "properties": {
- "energy": {
- "properties": {
- "basis": {
- "type": "string"
- },
- "joules": {
- "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "unwatched": {
- "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
- "type": "string"
- },
- "watch": {
- "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "joules"
- ],
- "type": "object"
- },
- "leaves_out": {
- "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
- "items": {
- "enum": [
- "time",
- "amount",
- "energy",
- "mitigation",
- "decoder",
- "charged",
- "cancel"
- ]
- },
- "type": "array"
- },
- "memory_bytes": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "money": {
- "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
- "properties": {
- "amount": {
- "type": "string"
- },
- "at_least": {
- "const": true,
- "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
- },
- "currency": {
- "type": "string"
- },
- "free": {
- "type": "boolean"
- },
- "unit": {
- "type": "string"
- },
- "unknown": {
- "type": "string"
- }
- },
- "required": [
- "free"
- ],
- "type": "object"
- },
- "program": {
- "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
- "properties": {
- "expected_success": {
- "type": "number"
- },
- "native_gates": {
- "minimum": 0,
- "type": "integer"
- },
- "shots": {
- "minimum": 0,
- "type": "integer"
- },
- "swaps": {
- "minimum": 0,
- "type": "integer"
- },
- "two_qubit_gates": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- },
- "time": {
- "properties": {
- "basis": {
- "enum": [
- "nominal",
- "provider"
- ]
- },
- "seconds": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "seconds"
- ],
- "type": "object"
- },
- "work": {
- "minimum": 0,
- "type": [
- "number",
- "null"
- ]
- }
- },
- "required": [
- "money",
- "time",
- "memory_bytes",
- "work",
- "energy",
- "leaves_out"
- ],
- "type": "object"
- },
- "request": {
- "type": "object"
- },
- "route": {
- "type": [
- "string",
- "null"
- ]
- },
- "tried": {
- "items": {
- "properties": {
- "code": {
- "type": "string"
- },
- "route": {
- "type": "string"
- },
- "why": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "route"
- ],
- "type": "object"
- },
- "stable": {
- "properties": {
- "choice": {
- "type": "boolean"
- },
- "digest": {
- "type": "string"
- },
- "routes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "scope": {
- "type": "string"
- }
- },
- "required": [
- "scope",
- "routes",
- "digest",
- "choice"
- ],
- "type": "object"
- },
- "wanted": {
- "description": "The class wanted: the contract's, else that of the route the job names or auto's pick.",
- "type": [
- "string",
- "null"
- ]
- },
- "wanted_from": {
- "enum": [
- "contract",
- "named",
- "auto",
- null
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "format",
- "wanted",
- "wanted_from",
- "auto",
- "host",
- "routes",
- "choice",
- "why",
- "stable",
- "named",
- "question"
- ],
- "type": "object"
- },
- "qubits": {
- "minimum": 0,
- "type": "integer"
- },
- "ran": {
- "const": false
- },
- "refusal": {
- "description": "For a refused job: its message and its codes.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- }
- },
- "type": "object"
- },
- "result_bytes": {
- "description": "The most its result takes as served, bytes, bounded before it runs: past bounds.result_bytes the job is refused (422, J031). A pulse run is bounded from its schedule. For a method that gives no bound before it runs (no built-in is such): {\"bytes\": null, \"why\"}, and it is counted at bounds.result_bytes.",
- "oneOf": [
- {
- "minimum": 0,
- "type": "integer"
- },
- {
- "additionalProperties": false,
- "properties": {
- "bytes": {
- "type": "null"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "bytes",
- "why"
- ],
- "type": "object"
- }
- ]
- },
- "status": {
- "description": "The HTTP status a refusal would carry.",
- "type": "integer"
- },
- "target": {
- "description": "A job on a device target: the target the plan placed it on.",
- "type": "object"
- },
- "time": {
- "additionalProperties": true,
- "description": "The estimated time: seconds and its basis, or null and why, with the most the job may take.",
- "properties": {
- "at_most": {
- "type": "integer"
- },
- "basis": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "rate": {
- "type": "object"
- },
- "seconds": {
- "type": [
- "number",
- "null"
- ]
- },
- "why": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "verdict": {
- "description": "How far the engine checked an answer about a program, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided). A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
- "properties": {
- "critique": {
- "description": "The program's smells, each with its lines.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "executed": {
- "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
- "properties": {
- "accuracy": {
- "type": [
- "string",
- "null"
- ]
- },
- "compiled_distance": {
- "type": [
- "number",
- "null"
- ]
- },
- "method": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "holds": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "intent": {
- "items": {
- "description": "One intent's check: what it asked, whether it held, how strong the check was and how it was made.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "counts": {
- "additionalProperties": {
- "type": "integer"
- },
- "type": "object"
- },
- "distance": {
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The program's distribution, when its outcomes are few enough to list.",
- "type": "object"
- },
- "fit": {
- "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "dof": {
- "type": "integer"
- },
- "impossible": {
- "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
- "type": [
- "integer",
- "array",
- "boolean"
- ]
- },
- "impossible_outcomes": {
- "description": "How many outcomes sampled the stated distribution gives probability 0.",
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "p_value": {
- "type": "number"
- },
- "rejected": {
- "type": "boolean"
- },
- "shots": {
- "type": "integer"
- },
- "smallest_expected": {
- "type": [
- "number",
- "null"
- ]
- },
- "statistic": {
- "type": "number"
- },
- "test": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "global_phase": {
- "type": [
- "number",
- "null"
- ]
- },
- "how": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "distribution",
- "equivalent",
- "prepares",
- "sampled",
- "compiled"
- ]
- },
- "largest_gaps": {
- "items": {
- "properties": {
- "intent": {
- "type": "number"
- },
- "outcome": {
- "type": "string"
- },
- "program": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "method": {
- "description": "A sampled intent: the method the samples were run by.",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "holds",
- "fails",
- "unchecked"
- ]
- },
- "outcomes": {
- "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
- "type": "integer"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "strength": {
- "enum": [
- "proof",
- "evidence",
- "none"
- ]
- },
- "tolerance": {
- "type": "number"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "outcome",
- "strength",
- "how"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "level": {
- "enum": [
- "refused",
- "parsed",
- "executed",
- "evidence",
- "proof"
- ]
- },
- "parsed": {
- "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "diagnostics": {
- "items": {
- "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "lowered",
- "carried",
- "preserved",
- "warned"
- ]
- }
- },
- "required": [
- "code",
- "outcome",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "ok": {
- "type": "boolean"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- },
- "text": {
- "description": "The refusal as the reader wrote it, with its line and code.",
- "type": "string"
- }
- },
- "required": [
- "ok"
- ],
- "type": "object"
- },
- "rank": {
- "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
- "maximum": 4,
- "minimum": 0,
- "type": "integer"
- },
- "refusal": {
- "description": "For a refused job: its message and its codes.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- }
- },
- "type": "object"
- },
- "repairs": {
- "description": "Each edit a repair made, with the code it answered and the lines it changed.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "schema": {
- "const": "wai.quantum.verdict/1"
- },
- "sealed": {
- "type": "boolean"
- },
- "statement": {
- "description": "The level in one plain line.",
- "type": "string"
- }
- },
- "required": [
- "schema",
- "level",
- "rank",
- "holds",
- "statement",
- "parsed",
- "executed",
- "intent",
- "critique",
- "repairs"
- ],
- "title": "wai.quantum.verdict/1",
- "type": "object"
- },
- "why": {
- "type": "string"
- },
- "within_time_limit": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "work": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "dry_run",
- "ran",
- "accepted",
- "bounds",
- "client"
- ],
- "type": "object"
- },
- {
- "description": "A refusal as data: the message, every code in it (the last is the code), its outcome and meaning as the code's table gives them. A host that refuses for its own reasons gives the error alone.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "error": {
- "type": "string"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- },
- "verdict": {
- "description": "How far the engine checked an answer about a program, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided). A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
- "properties": {
- "critique": {
- "description": "The program's smells, each with its lines.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "executed": {
- "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
- "properties": {
- "accuracy": {
- "type": [
- "string",
- "null"
- ]
- },
- "compiled_distance": {
- "type": [
- "number",
- "null"
- ]
- },
- "method": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "holds": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "intent": {
- "items": {
- "description": "One intent's check: what it asked, whether it held, how strong the check was and how it was made.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "counts": {
- "additionalProperties": {
- "type": "integer"
- },
- "type": "object"
- },
- "distance": {
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The program's distribution, when its outcomes are few enough to list.",
- "type": "object"
- },
- "fit": {
- "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "dof": {
- "type": "integer"
- },
- "impossible": {
- "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
- "type": [
- "integer",
- "array",
- "boolean"
- ]
- },
- "impossible_outcomes": {
- "description": "How many outcomes sampled the stated distribution gives probability 0.",
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "p_value": {
- "type": "number"
- },
- "rejected": {
- "type": "boolean"
- },
- "shots": {
- "type": "integer"
- },
- "smallest_expected": {
- "type": [
- "number",
- "null"
- ]
- },
- "statistic": {
- "type": "number"
- },
- "test": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "global_phase": {
- "type": [
- "number",
- "null"
- ]
- },
- "how": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "distribution",
- "equivalent",
- "prepares",
- "sampled",
- "compiled"
- ]
- },
- "largest_gaps": {
- "items": {
- "properties": {
- "intent": {
- "type": "number"
- },
- "outcome": {
- "type": "string"
- },
- "program": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "method": {
- "description": "A sampled intent: the method the samples were run by.",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "holds",
- "fails",
- "unchecked"
- ]
- },
- "outcomes": {
- "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
- "type": "integer"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "strength": {
- "enum": [
- "proof",
- "evidence",
- "none"
- ]
- },
- "tolerance": {
- "type": "number"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "outcome",
- "strength",
- "how"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "level": {
- "enum": [
- "refused",
- "parsed",
- "executed",
- "evidence",
- "proof"
- ]
- },
- "parsed": {
- "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "diagnostics": {
- "items": {
- "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "lowered",
- "carried",
- "preserved",
- "warned"
- ]
- }
- },
- "required": [
- "code",
- "outcome",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "ok": {
- "type": "boolean"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- },
- "text": {
- "description": "The refusal as the reader wrote it, with its line and code.",
- "type": "string"
- }
- },
- "required": [
- "ok"
- ],
- "type": "object"
- },
- "rank": {
- "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
- "maximum": 4,
- "minimum": 0,
- "type": "integer"
- },
- "refusal": {
- "description": "For a refused job: its message and its codes.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- }
- },
- "type": "object"
- },
- "repairs": {
- "description": "Each edit a repair made, with the code it answered and the lines it changed.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "schema": {
- "const": "wai.quantum.verdict/1"
- },
- "sealed": {
- "type": "boolean"
- },
- "statement": {
- "description": "The level in one plain line.",
- "type": "string"
- }
- },
- "required": [
- "schema",
- "level",
- "rank",
- "holds",
- "statement",
- "parsed",
- "executed",
- "intent",
- "critique",
- "repairs"
- ],
- "title": "wai.quantum.verdict/1",
- "type": "object"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- },
- {
- "description": "A job the service no longer holds, known only by its id.",
- "properties": {
- "id": {
- "type": "string"
- },
- "verdict": {
- "description": "How far the engine checked an answer about a program, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided). A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
- "properties": {
- "critique": {
- "description": "The program's smells, each with its lines.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "executed": {
- "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
- "properties": {
- "accuracy": {
- "type": [
- "string",
- "null"
- ]
- },
- "compiled_distance": {
- "type": [
- "number",
- "null"
- ]
- },
- "method": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "holds": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "intent": {
- "items": {
- "description": "One intent's check: what it asked, whether it held, how strong the check was and how it was made.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "counts": {
- "additionalProperties": {
- "type": "integer"
- },
- "type": "object"
- },
- "distance": {
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The program's distribution, when its outcomes are few enough to list.",
- "type": "object"
- },
- "fit": {
- "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "dof": {
- "type": "integer"
- },
- "impossible": {
- "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
- "type": [
- "integer",
- "array",
- "boolean"
- ]
- },
- "impossible_outcomes": {
- "description": "How many outcomes sampled the stated distribution gives probability 0.",
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "p_value": {
- "type": "number"
- },
- "rejected": {
- "type": "boolean"
- },
- "shots": {
- "type": "integer"
- },
- "smallest_expected": {
- "type": [
- "number",
- "null"
- ]
- },
- "statistic": {
- "type": "number"
- },
- "test": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "global_phase": {
- "type": [
- "number",
- "null"
- ]
- },
- "how": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "distribution",
- "equivalent",
- "prepares",
- "sampled",
- "compiled"
- ]
- },
- "largest_gaps": {
- "items": {
- "properties": {
- "intent": {
- "type": "number"
- },
- "outcome": {
- "type": "string"
- },
- "program": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "method": {
- "description": "A sampled intent: the method the samples were run by.",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "holds",
- "fails",
- "unchecked"
- ]
- },
- "outcomes": {
- "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
- "type": "integer"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "strength": {
- "enum": [
- "proof",
- "evidence",
- "none"
- ]
- },
- "tolerance": {
- "type": "number"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "outcome",
- "strength",
- "how"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "level": {
- "enum": [
- "refused",
- "parsed",
- "executed",
- "evidence",
- "proof"
- ]
- },
- "parsed": {
- "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "diagnostics": {
- "items": {
- "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "lowered",
- "carried",
- "preserved",
- "warned"
- ]
- }
- },
- "required": [
- "code",
- "outcome",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "ok": {
- "type": "boolean"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- },
- "text": {
- "description": "The refusal as the reader wrote it, with its line and code.",
- "type": "string"
- }
- },
- "required": [
- "ok"
- ],
- "type": "object"
- },
- "rank": {
- "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
- "maximum": 4,
- "minimum": 0,
- "type": "integer"
- },
- "refusal": {
- "description": "For a refused job: its message and its codes.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- }
- },
- "type": "object"
- },
- "repairs": {
- "description": "Each edit a repair made, with the code it answered and the lines it changed.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "schema": {
- "const": "wai.quantum.verdict/1"
- },
- "sealed": {
- "type": "boolean"
- },
- "statement": {
- "description": "The level in one plain line.",
- "type": "string"
- }
- },
- "required": [
- "schema",
- "level",
- "rank",
- "holds",
- "statement",
- "parsed",
- "executed",
- "intent",
- "critique",
- "repairs"
- ],
- "title": "wai.quantum.verdict/1",
- "type": "object"
- }
- },
- "required": [
- "id"
- ],
- "type": "object"
- }
- ],
- "description": "A job: queued, running, done with its result and receipt, or failed with its error; a set's job holds the set's result; with dry_run true, what the service would do with it, running nothing."
- },
- {
- "description": "A refusal as data: the message, every code in it (the last is the code), its outcome and meaning as the code's table gives them. A host that refuses for its own reasons gives the error alone.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "error": {
- "type": "string"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- },
- "verdict": {
- "description": "How far the engine checked an answer about a program, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided). A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
- "properties": {
- "critique": {
- "description": "The program's smells, each with its lines.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "executed": {
- "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
- "properties": {
- "accuracy": {
- "type": [
- "string",
- "null"
- ]
- },
- "compiled_distance": {
- "type": [
- "number",
- "null"
- ]
- },
- "method": {
- "type": "string"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "holds": {
- "type": [
- "boolean",
- "null"
- ]
- },
- "intent": {
- "items": {
- "description": "One intent's check: what it asked, whether it held, how strong the check was and how it was made.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "counts": {
- "additionalProperties": {
- "type": "integer"
- },
- "type": "object"
- },
- "distance": {
- "type": "number"
- },
- "distribution": {
- "additionalProperties": {
- "type": "number"
- },
- "description": "The program's distribution, when its outcomes are few enough to list.",
- "type": "object"
- },
- "fit": {
- "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
- "properties": {
- "alpha": {
- "type": "number"
- },
- "dof": {
- "type": "integer"
- },
- "impossible": {
- "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
- "type": [
- "integer",
- "array",
- "boolean"
- ]
- },
- "impossible_outcomes": {
- "description": "How many outcomes sampled the stated distribution gives probability 0.",
- "type": "integer"
- },
- "note": {
- "type": "string"
- },
- "p_value": {
- "type": "number"
- },
- "rejected": {
- "type": "boolean"
- },
- "shots": {
- "type": "integer"
- },
- "smallest_expected": {
- "type": [
- "number",
- "null"
- ]
- },
- "statistic": {
- "type": "number"
- },
- "test": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "global_phase": {
- "type": [
- "number",
- "null"
- ]
- },
- "how": {
- "type": "string"
- },
- "kind": {
- "enum": [
- "distribution",
- "equivalent",
- "prepares",
- "sampled",
- "compiled"
- ]
- },
- "largest_gaps": {
- "items": {
- "properties": {
- "intent": {
- "type": "number"
- },
- "outcome": {
- "type": "string"
- },
- "program": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "method": {
- "description": "A sampled intent: the method the samples were run by.",
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "note": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "holds",
- "fails",
- "unchecked"
- ]
- },
- "outcomes": {
- "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
- "type": "integer"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "strength": {
- "enum": [
- "proof",
- "evidence",
- "none"
- ]
- },
- "tolerance": {
- "type": "number"
- },
- "why": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "outcome",
- "strength",
- "how"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "level": {
- "enum": [
- "refused",
- "parsed",
- "executed",
- "evidence",
- "proof"
- ]
- },
- "parsed": {
- "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "diagnostics": {
- "items": {
- "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
- "properties": {
- "code": {
- "type": "string"
- },
- "column": {
- "minimum": 1,
- "type": "integer"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "lowered",
- "carried",
- "preserved",
- "warned"
- ]
- }
- },
- "required": [
- "code",
- "outcome",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "length": {
- "minimum": 0,
- "type": "integer"
- },
- "line": {
- "minimum": 1,
- "type": "integer"
- },
- "message": {
- "type": "string"
- },
- "ok": {
- "type": "boolean"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- },
- "text": {
- "description": "The refusal as the reader wrote it, with its line and code.",
- "type": "string"
- }
- },
- "required": [
- "ok"
- ],
- "type": "object"
- },
- "rank": {
- "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
- "maximum": 4,
- "minimum": 0,
- "type": "integer"
- },
- "refusal": {
- "description": "For a refused job: its message and its codes.",
- "properties": {
- "code": {
- "type": [
- "string",
- "null"
- ]
- },
- "codes": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "meaning": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "outcome": {
- "enum": [
- "refused",
- "retry",
- "failed",
- "lowered",
- "carried",
- "preserved",
- "warned",
- "dropped",
- "defaulted"
- ]
- }
- },
- "type": "object"
- },
- "repairs": {
- "description": "Each edit a repair made, with the code it answered and the lines it changed.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "schema": {
- "const": "wai.quantum.verdict/1"
- },
- "sealed": {
- "type": "boolean"
- },
- "statement": {
- "description": "The level in one plain line.",
- "type": "string"
- }
- },
- "required": [
- "schema",
- "level",
- "rank",
- "holds",
- "statement",
- "parsed",
- "executed",
- "intent",
- "critique",
- "repairs"
- ],
- "title": "wai.quantum.verdict/1",
- "type": "object"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "anyOf": [
+ {
+ "description": "A job as a host returns it: its status, the method its plan chose and why, the request as submitted, and, once it is done, the result with its receipt: a job's result, or for a set (a request with programs or a sweep, its method set) the set's result. The command line's run --json, the local MCP server's run_quantum_circuit and a run on the person's own provider give a finished job; the job service also gives its id and times, and a job still queued or running, or failed with its error. A job's receipt verifies from this document alone: request and result.",
+ "properties": {
+ "digests": {
+ "description": "The job service: the BLAKE3 digests its store keeps the job's objects under (the request, each program, the result and the receipt).",
+ "properties": {
+ "algorithm": {
+ "const": "blake3"
+ },
+ "programs": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "receipt": {
+ "type": "string"
+ },
+ "request": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "result": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "error": {
+ "description": "Why a job failed, or why it was interrupted.",
+ "type": "string"
+ },
+ "estimate": {
+ "description": "What the plan admitted the job with.",
+ "properties": {
+ "memory_bytes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "work": {
+ "description": "In the method's own unit.",
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "memory_bytes",
+ "work"
+ ],
+ "type": "object"
+ },
+ "finished_ms": {
+ "type": "integer"
+ },
+ "id": {
+ "description": "The job service's id for the job.",
+ "type": "string"
+ },
+ "interruptions": {
+ "description": "The job service: each time it stopped while the job ran, in milliseconds since 1970. A job that was running when the service stopped is queued again, once, to run from its stored request.",
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "method": {
+ "description": "The method the plan chose; set for a set; on the job service, wasmq for a wasmQ envelope's run and qudit for a qudit job.",
+ "type": "string"
+ },
+ "peak_rss_bytes": {
+ "description": "The job service: the most memory the job's process held.",
+ "type": "integer"
+ },
+ "request": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "required": [
+ "qasm"
+ ]
+ },
+ {
+ "required": [
+ "programs"
+ ]
+ },
+ {
+ "required": [
+ "source"
+ ]
+ }
+ ],
+ "description": "A job as a client submits it: a program and what is asked of it, or a set: many programs (programs), or one over a grid of its inputs (sweep), run as one job. The command line, both MCP servers, the job service, the desktop app and the Studio read it alike, and a receipt seals it as it was given. A member the engine does not read is ignored, and sealed with the rest.",
+ "properties": {
+ "amplitudes": {
+ "description": "Basis states whose amplitudes to return: one 0 or 1 per qubit, qubit n-1 first.",
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 64,
+ "type": "array"
+ },
+ "compile": {
+ "description": "What a compile is asked for, each optional: the most the output may differ from the program (epsilon, in the operator norm up to a global phase), the level (0 lowers and approximates; 1 also rewrites and folds phases; 2 also resynthesises), the basis, the gate set it writes the program in (clifford_t: every rotation off the multiples of π/4 a Clifford+T word; standard: nothing approximated; cz, zz or xx: one-qubit gates around a device basis's own two-qubit gate, cz, rzz or rxx at an angle from 0 to π/2, each pair's block around at most three of it), whether to give the circuit after each pass (stages), and the twirl and dd passes, last (twirl, with its seed; dd, with its sequence).",
+ "properties": {
+ "basis": {
+ "enum": [
+ "clifford_t",
+ "standard",
+ "cz",
+ "zz",
+ "xx"
+ ]
+ },
+ "dd": {
+ "anyOf": [
+ {
+ "enum": [
+ "xx",
+ "xy4"
+ ]
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "properties": {
+ "sequence": {
+ "enum": [
+ "xx",
+ "xy4"
+ ]
+ }
+ },
+ "type": "object"
+ }
+ ],
+ "description": "Dynamical decoupling in each window where a qubit idles long enough: xx or xy4 (or {\"sequence\": …}), checked to change nothing without noise."
+ },
+ "epsilon": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "level": {
+ "maximum": 2,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "stages": {
+ "type": "boolean"
+ },
+ "twirl": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "properties": {
+ "seed": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "seed"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "Twirl each two-qubit Clifford gate with Paulis drawn from a seeded stream: true (seed 1), or {\"seed\": N}. One seed is one instance, checked to be the same circuit."
+ }
+ },
+ "type": "object"
+ },
+ "contract": {
+ "additionalProperties": false,
+ "description": "What the job wants of an answer (wai/extensions/quantum-providers.md section 8.7). Every route the host can see is priced with what is really known, those that cannot meet this are rejected, the cheapest of the rest runs, and the reasoning is sealed in the result as `planner`. Nothing falls back in silence, and a job no route can meet is refused (J071). A job without it plans as it always has, byte for byte. Refused on a set (J073).",
+ "properties": {
+ "deadline_seconds": {
+ "description": "When it must be done by, in seconds from when it starts. A route whose time is not known does not meet it. A host that can stop a run stops it there (J074); otherwise the result says whether it was kept.",
+ "exclusiveMinimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "exactness": {
+ "description": "The class wanted. Without it, the job keeps the class auto would give: auto's pick stands while it meets the rest of the contract, and only a route at least as exact may take its place. A device's counts are in no classical class: measured wants a processor's, simulated a provider's simulator's that its provider does not state is approximate, and any takes every route.",
+ "enum": [
+ "bit-exact",
+ "exact",
+ "single",
+ "bounded",
+ "estimate",
+ "heuristic",
+ "measured",
+ "simulated",
+ "any",
+ null
+ ]
+ },
+ "max_cost": {
+ "additionalProperties": false,
+ "description": "The most a provider's estimate of the run may come to, before it runs: it bounds the estimate, not the charge, which is stated after the run beside it (kept.cost). A route with an unknown cost, an estimate that is only the least it can come to, or a price in another currency does not meet it: nothing is converted.",
+ "properties": {
+ "amount": {
+ "description": "An amount in decimals: digits, and optionally a point and digits, at most 64 characters.",
+ "maxLength": 64,
+ "type": "string"
+ },
+ "currency": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "max_joules": {
+ "description": "The most energy it may take, held by a live reading while it runs: at the ceiling the run is stopped, gives no answer, and its receipt says so. A route nothing here can read and stop does not meet it, so on a host that reads none every route is rejected. An estimate can refuse a job clearly past it, and promises nothing.",
+ "exclusiveMinimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "providers": {
+ "description": "Whether a route may be one of the person's providers. never is the default, given or not: a job that names a provider under a contract that does not allow one is refused (J070), and a host asks no provider anything under it. A host that reaches none (the job service) lists none. A provider that costs money is chosen only under max_cost, or when the job names it, and still runs only on the person's word for that route and its estimate.",
+ "enum": [
+ "never",
+ "allowed",
+ null
+ ]
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "dry_run": {
+ "description": "With true: what the host would do with the job or set, running nothing.",
+ "type": "boolean"
+ },
+ "fabric": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 64,
+ "minItems": 2,
+ "type": "array"
+ }
+ ],
+ "description": "Where the statevector method's state runs: auto (the default: on a member only where the committed measurements show it faster than this host's CPU for the job's size and fusion width, otherwise on the CPU), cpu, accelerator (the first accelerator member certified bit-exact here that holds the state, falling back to the next if it fails during the run), a member's id or key (wai-quantum fabric lists them), or a list of members, a power of two of them, the state split by its top qubits into one partition on each (cpu is a member, and a member may be named more than once). A member certified bit-exact gives the CPU's bits. A placement this host cannot honour is refused (J013), never made elsewhere."
+ },
+ "history": {
+ "description": "The program's history's account of the version the job runs: its digest, and the gates and lines in each hand. The receipt binds it; a history recomputes and checks it.",
+ "type": "object"
+ },
+ "intent": {
+ "anyOf": [
+ {
+ "description": "One of distribution, equivalent, prepares, sampled, expectation, outcomes, conserves, counts or agrees, with its options.",
+ "properties": {
+ "agrees": {
+ "const": "simulation",
+ "description": "The job's own counts held to the exact distribution the engine computes of the program: by test and alpha, or within tolerance in total variation distance."
+ },
+ "alpha": {
+ "exclusiveMaximum": 1,
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "conserves": {
+ "description": "A quantity every outcome keeps: weight, the sum of its digits, or parity, that sum modulo 2 (a qudit job's: modulo its dimension).",
+ "maxProperties": 1,
+ "minProperties": 1,
+ "properties": {
+ "parity": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "weight": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "counts": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "description": "The job's own counts held to this distribution: by test and alpha, or within tolerance in total variation distance.",
+ "type": "object"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "type": "object"
+ },
+ "equivalent": {
+ "type": "string"
+ },
+ "expectation": {
+ "description": "An observable's exact value on the program's state, held to the value within the tolerance.",
+ "properties": {
+ "observable": {
+ "description": "A Pauli string, as \"Z0 Z1\" or {\"pauli\", \"coeff\"}."
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "observable",
+ "value"
+ ],
+ "type": "object"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "outcomes": {
+ "description": "The outcomes the answer may be: by the program's exact distribution where the run is the program's own, otherwise on the counts the job returned.",
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 4096,
+ "minItems": 1,
+ "type": "array"
+ },
+ "prepares": {
+ "type": "string"
+ },
+ "require": {
+ "const": "proof"
+ },
+ "sampled": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "type": "object"
+ },
+ "seed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "test": {
+ "enum": [
+ "chi_squared",
+ "g_test"
+ ]
+ },
+ "tolerance": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "items": {
+ "description": "One of distribution, equivalent, prepares, sampled, expectation, outcomes, conserves, counts or agrees, with its options.",
+ "properties": {
+ "agrees": {
+ "const": "simulation",
+ "description": "The job's own counts held to the exact distribution the engine computes of the program: by test and alpha, or within tolerance in total variation distance."
+ },
+ "alpha": {
+ "exclusiveMaximum": 1,
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "conserves": {
+ "description": "A quantity every outcome keeps: weight, the sum of its digits, or parity, that sum modulo 2 (a qudit job's: modulo its dimension).",
+ "maxProperties": 1,
+ "minProperties": 1,
+ "properties": {
+ "parity": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "weight": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "counts": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "description": "The job's own counts held to this distribution: by test and alpha, or within tolerance in total variation distance.",
+ "type": "object"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "type": "object"
+ },
+ "equivalent": {
+ "type": "string"
+ },
+ "expectation": {
+ "description": "An observable's exact value on the program's state, held to the value within the tolerance.",
+ "properties": {
+ "observable": {
+ "description": "A Pauli string, as \"Z0 Z1\" or {\"pauli\", \"coeff\"}."
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "observable",
+ "value"
+ ],
+ "type": "object"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "outcomes": {
+ "description": "The outcomes the answer may be: by the program's exact distribution where the run is the program's own, otherwise on the counts the job returned.",
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 4096,
+ "minItems": 1,
+ "type": "array"
+ },
+ "prepares": {
+ "type": "string"
+ },
+ "require": {
+ "const": "proof"
+ },
+ "sampled": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "type": "object"
+ },
+ "seed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "test": {
+ "enum": [
+ "chi_squared",
+ "g_test"
+ ]
+ },
+ "tolerance": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ ],
+ "description": "What the program must do, checked with the run: one intent or a list. The result's verdict says how far it was checked."
+ },
+ "method": {
+ "description": "auto (the default: the strongest method the program admits), or a method by its name as the methods list names it; pulse runs a pulse program (OpenPulse calibrations) under the pulse options.",
+ "type": "string"
+ },
+ "mitigate": {
+ "anyOf": [
+ {
+ "enum": [
+ "zne",
+ "pea",
+ "pec",
+ "cdr",
+ "vd",
+ "readout"
+ ]
+ },
+ {
+ "required": [
+ "method"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "Mitigate the job's expectation values (or, for readout, its counts) under its noise (engine::mitigate): zne, pea, pec, cdr, vd or readout, or {\"method\", …} with its options. The result's mitigation gives each value raw and mitigated."
+ },
+ "noise": {
+ "additionalProperties": false,
+ "description": "A noise model, each channel a probability. A channel not listed here is refused.",
+ "properties": {
+ "amplitude_damping": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "dephasing": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "depolarizing_1q": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "depolarizing_2q": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "readout": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "observables": {
+ "description": "Pauli observables to take the expectation values of.",
+ "items": {
+ "anyOf": [
+ {
+ "description": "A Pauli string, as \"Z0 Z1\"; qubits count from 0.",
+ "type": "string"
+ },
+ {
+ "properties": {
+ "coeff": {
+ "description": "Its coefficient (1 when not given).",
+ "type": "number"
+ },
+ "pauli": {
+ "description": "A Pauli string, as \"X3\".",
+ "type": "string"
+ }
+ },
+ "required": [
+ "pauli"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 256,
+ "type": "array"
+ },
+ "options": {
+ "additionalProperties": true,
+ "description": "Options of the method that runs the job, as the methods list names them (max_bond, cutoff, fusion, trajectories, threshold, max_weight, ladder, max_terms, path_restarts, controls), and memory_gb.",
+ "properties": {
+ "controls": {
+ "description": "A gate whose standard gates would double (x, y, z or h under three or more controls; s, sdg, t, tdg, p, rx, ry, rz, u, sx or sxdg under two or more) runs as one on statevector and in standard gates on exact. \"standard\" runs standard gates on statevector too, which reproduces a result made that way bit for bit. \"whole\" holds the gate whole on exact too, which gives other bits than its default, and is refused (J003) on a job that runs standard gates: another method named, a compile, noise, mitigation, a device target or a named place on the fabric. Any other value is refused.",
+ "enum": [
+ "whole",
+ "standard"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "params": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "A value for each of the program's parameters (`input float theta;`, `input angle phi;`), bound exactly before the program is read: it runs as if each were written as a `const` at that double. A parameter left without a value is refused (Q114, J050). In a sweep, the parameters it fixes, each bound at every point.",
+ "type": "object"
+ },
+ "programs": {
+ "description": "A set (engine::sets): the programs to run as one job, each a program's text or a job of its own; the request's other fields apply to every item that does not set them itself.",
+ "items": {
+ "anyOf": [
+ {
+ "description": "A program's text.",
+ "type": "string"
+ },
+ {
+ "description": "A job of its own, read as a job request is (no programs or sweep in it); each item of the set's result holds its request in full.",
+ "required": [
+ "qasm"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "provider": {
+ "description": "The person's own provider to run on, by the name their registry gives it. Only a host that holds their credentials runs such a job; every other host refuses it.",
+ "type": "string"
+ },
+ "pulse": {
+ "additionalProperties": false,
+ "description": "A pulse run's options (method \"pulse\"): the sample period, the levels kept, the tolerance on the stated error, the steps a sample is divided into, each qubit's parameters, static couplings, and ports beyond the names d0, m0, a0.",
+ "properties": {
+ "couplings": {
+ "description": "Static ZZ couplings.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "qubits": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "minItems": 2,
+ "type": "array"
+ },
+ "zz_khz": {
+ "description": "The coupling's rate, kHz.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "qubits",
+ "zz_khz"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "dt_ns": {
+ "description": "The sample period, ns (default 0.5).",
+ "exclusiveMinimum": 0,
+ "maximum": 1000,
+ "type": "number"
+ },
+ "levels": {
+ "description": "Levels kept per qubit (default 2; 3 shows leakage).",
+ "enum": [
+ 2,
+ 3
+ ],
+ "type": "integer"
+ },
+ "ports": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "enum": [
+ "drive",
+ "measure",
+ "acquire"
+ ]
+ },
+ "qubit": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "qubit"
+ ],
+ "type": "object"
+ },
+ "description": "Ports by name: what each is for and the qubit it reaches.",
+ "type": "object"
+ },
+ "qubits": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "anharmonicity_mhz": {
+ "description": "Its anharmonicity, MHz.",
+ "type": "number"
+ },
+ "frequency_ghz": {
+ "description": "Its frequency, GHz.",
+ "type": "number"
+ },
+ "rabi_mhz": {
+ "description": "Its Rabi frequency at full amplitude, MHz.",
+ "type": "number"
+ },
+ "t1_us": {
+ "description": "Its relaxation time, µs.",
+ "type": "number"
+ },
+ "t2_us": {
+ "description": "Its coherence time, µs (at most 2·T1).",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Each qubit's parameters by its index, over the target's and the defaults.",
+ "type": "object"
+ },
+ "substeps": {
+ "description": "Steps per sample (default: chosen so each step times the generator's norm is at most 0.5).",
+ "maximum": 4096,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "tolerance": {
+ "description": "The most the stated error may be (default 1e-6): a run whose bound and rounding estimate pass it is refused, naming the steps that would meet it.",
+ "exclusiveMaximum": 1,
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "qasm": {
+ "description": "The program, in OpenQASM 3 or the OpenQASM 2 forms in common use.",
+ "type": "string"
+ },
+ "repair": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "properties": {
+ "dyadic_bits": {
+ "maximum": 32,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "max_iterations": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "sizes": {
+ "additionalProperties": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ],
+ "description": "Repair the program first on its flagged lines: true, or the choices."
+ },
+ "seed": {
+ "description": "The sampling seed (1 when not given): the same job and seed give the same counts.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "description": "Measurement shots; 1024 when no observables or amplitudes are asked for, otherwise 0.",
+ "maximum": 1000000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "source": {
+ "description": "The program in another format, in place of qasm (engine::formats::expand): read to the job's qasm before the job is read, the request keeping its source.",
+ "properties": {
+ "format": {
+ "enum": [
+ "qasm",
+ "qir",
+ "jeff"
+ ]
+ },
+ "program": {
+ "description": "The program's text (OpenQASM, QIR).",
+ "type": "string"
+ },
+ "program_base64": {
+ "description": "The program's bytes as base64 (jeff).",
+ "type": "string"
+ }
+ },
+ "required": [
+ "format"
+ ],
+ "type": "object"
+ },
+ "sweep": {
+ "additionalProperties": {
+ "items": {
+ "type": "number"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "description": "A set over the request's own qasm: values for each of the program's inputs (integer, float or angle), every combination run, the names in sorted order and the first varying slowest.",
+ "type": "object"
+ },
+ "target": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "description": "A device target: its qubits, the pairs it couples, its native gates with their errors and durations, and the calibration snapshot they come from. A value not known is left out, never written as zero. Every field but format, name, source, qubits, gates and coupling is optional, and a field the format does not name is refused, so a misspelt one never reads as absent. Its canonical text is its RFC 8785 form, and the BLAKE3 of that text, the target's hash, names the snapshot in a receipt.",
+ "properties": {
+ "calibration": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "description": "The calibration snapshot's id, as the source names it, or a content id of the snapshot read.",
+ "maxLength": 400,
+ "type": "string"
+ },
+ "timestamp": {
+ "description": "When the snapshot was taken, as the source writes it.",
+ "maxLength": 400,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "coupling": {
+ "description": "The pairs a two-qubit gate may act on, each once, the lower qubit first, sorted.",
+ "items": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "minItems": 2,
+ "type": "array"
+ },
+ "type": "array"
+ },
+ "crosstalk": {
+ "description": "The static ZZ interaction between pairs of qubits, sorted by pair, each once. Written only when the source states one.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "qubits": {
+ "description": "The pair, the lower qubit first.",
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "minItems": 2,
+ "type": "array"
+ },
+ "zz_khz": {
+ "description": "The shift of one qubit's frequency when the other holds 1 rather than 0, both idle, kilohertz; it may be negative.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "qubits",
+ "zz_khz"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "format": {
+ "const": "wai.quantum.target/1"
+ },
+ "gates": {
+ "description": "Each native gate where the device runs it, sorted by gate then qubits.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "angle_errors": {
+ "description": "Of a zz the device runs at any angle, its error at each angle it was benchmarked at, sorted by angle, each angle once. A gate of an angle between two listed is costed by the straight line between them, one outside them at the nearest; its stated leakage keeps its share of the error.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "angle_rad": {
+ "description": "The angle θ of exp(−iθ/2·Z⊗Z) (OpenQASM's rzz(θ)), radians: π/2 is the fully entangling gate.",
+ "maximum": 1.5707963267948966,
+ "minimum": 0,
+ "type": "number"
+ },
+ "error": {
+ "description": "The average gate infidelity at that angle.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "angle_rad",
+ "error"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "any_angle": {
+ "const": true,
+ "description": "A two-qubit zz the device runs at any angle, so that an angle between two qubits is one gate of that angle rather than two of the fully entangling one. Written only when true."
+ },
+ "coherent": {
+ "additionalProperties": false,
+ "description": "A two-qubit gate's coherent error: the angles by which the gate it runs differs from the one it is meant to be, read as an exchange-and-phase gate.",
+ "properties": {
+ "phi_rad": {
+ "description": "The difference in its conditional phase, radians.",
+ "maximum": 3.141592653589793,
+ "minimum": -3.141592653589793,
+ "type": "number"
+ },
+ "theta_rad": {
+ "description": "The difference in its exchange (swap) angle, radians.",
+ "maximum": 3.141592653589793,
+ "minimum": -3.141592653589793,
+ "type": "number"
+ }
+ },
+ "required": [
+ "theta_rad",
+ "phi_rad"
+ ],
+ "type": "object"
+ },
+ "duration_ns": {
+ "description": "Nanoseconds.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "error": {
+ "description": "The average gate infidelity.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "error_sd": {
+ "description": "One standard deviation of the error, as the source states it.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "gate": {
+ "pattern": "^[a-z0-9_]{1,40}$",
+ "type": "string"
+ },
+ "leakage": {
+ "description": "Of the error, the chance the gate leaves a qubit outside its two levels.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "qubits": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "gate",
+ "qubits"
+ ],
+ "type": "object"
+ },
+ "maxItems": 262144,
+ "type": "array"
+ },
+ "layer_fidelity": {
+ "description": "Layered benchmarks the source measured, sorted by the chain's length, then its qubits. Written only when the source states one.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "fidelity": {
+ "description": "The fidelity of every two-qubit gate along the chain, run in two layers between random one-qubit gates on every qubit: the product of the layers' process fidelities.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "qubits": {
+ "description": "The chain, in its order: each qubit coupled to the next.",
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "minItems": 2,
+ "type": "array"
+ }
+ },
+ "required": [
+ "qubits",
+ "fidelity"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "qubits": {
+ "description": "Every qubit, in order.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "frequency_ghz": {
+ "description": "Its frequency, gigahertz.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "label": {
+ "description": "The source's own name for it, when that is not its index.",
+ "type": "string"
+ },
+ "measure_ns": {
+ "description": "The measurement's duration, nanoseconds.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "memory_error": {
+ "description": "The average infidelity the qubit takes for each two-qubit layer of a program it waits through (the transport, cooling and idling between a device's layers of gates), as the source's memory benchmark measures it: one layer being a two-qubit gate on random pairs of every qubit.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "qubit": {
+ "description": "Its index: its place in the list.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "readout": {
+ "additionalProperties": false,
+ "properties": {
+ "p01": {
+ "description": "P(reads 1 | holds 0).",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "p10": {
+ "description": "P(reads 0 | holds 1).",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "p01",
+ "p10"
+ ],
+ "type": "object"
+ },
+ "resonator": {
+ "const": true,
+ "description": "A computational resonator, not a qubit: a qubit's state is moved into it (move, listed on the qubit and the resonator) so that a cz on it acts on that state, and moved back out. It takes no one-qubit gate, is never measured and is never paired with another resonator. Written only when true."
+ },
+ "t1_us": {
+ "description": "T1, microseconds.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "t2_us": {
+ "description": "T2 (the echo or Ramsey time the source reports), microseconds.",
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "qubit"
+ ],
+ "type": "object"
+ },
+ "maxItems": 2048,
+ "minItems": 1,
+ "type": "array"
+ },
+ "source": {
+ "additionalProperties": false,
+ "properties": {
+ "format": {
+ "description": "The format the target was read from (wai-quantum targets import --help lists them).",
+ "type": "string"
+ },
+ "note": {
+ "maxLength": 400,
+ "type": "string"
+ }
+ },
+ "required": [
+ "format"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "format",
+ "name",
+ "source",
+ "qubits",
+ "gates",
+ "coupling"
+ ],
+ "title": "wai.quantum.target/1",
+ "type": "object"
+ }
+ ],
+ "description": "A device target: a built-in target's name, or a target document. The program is compiled to it, placed and simulated under its noise; noise may not be given beside it."
+ },
+ "verdict": {
+ "description": "true: the result carries a verdict even with no intent.",
+ "type": "boolean"
+ }
+ },
+ "title": "wai.quantum.job-request/1",
+ "type": "object"
+ },
+ {
+ "description": "What the receipt binds: the envelope's contract (section 2.2) and the envelope's BLAKE3.",
+ "properties": {
+ "envelope_blake3": {
+ "description": "A BLAKE3 digest, 64 lower-case hexadecimal digits.",
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "wasmq": {
+ "description": "The contract: its profile, its program's digest, size and inputs, its modules (each with its digest, size and priors), its callouts, and its run (shots, seed, method, state and fuel budgets).",
+ "properties": {
+ "callouts": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "modules": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "profile": {
+ "enum": [
+ "wai.quantum.wasmq/1",
+ "wai.quantum.wasmq/2"
+ ]
+ },
+ "program": {
+ "type": "object"
+ },
+ "run": {
+ "type": "object"
+ }
+ },
+ "required": [
+ "profile",
+ "program",
+ "modules",
+ "callouts",
+ "run"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "wasmq",
+ "envelope_blake3"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A qudit job's request (qudit.v1.json, quantum-sim.md section 9).",
+ "required": [
+ "d",
+ "qudits",
+ "gates"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "The request as submitted; on the job service, a wasmQ envelope's is what its receipt binds (the contract and the envelope's digest), and a qudit job's is its own."
+ },
+ "result": {
+ "anyOf": [
+ {
+ "description": "A job's result as the engine gives it, on every host: what was asked of the program, computed by the method its plan chose, with that method's accuracy class. The receipt seals the result without its receipt member, beside the request. A result names the engine that made it and this schema (engine and schema); results made before results carried them have neither and follow this schema all the same.",
+ "properties": {
+ "accepted_shots": {
+ "description": "A provider job: the shots its counts are of, the counts' sum (wai/extensions/quantum-providers.md section 8.1): the request's shots, or another number when the device kept another, as a post-selected or heralded readout discards shots. Results sealed before it carry none, and their counts are of the shots.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "accuracy": {
+ "description": "What the method promises of the numbers it gave.",
+ "properties": {
+ "approximate": {
+ "const": true,
+ "description": "A simulated result whose provider states its simulator is approximate."
+ },
+ "batch": {
+ "type": "integer"
+ },
+ "below_table": {
+ "description": "The bit-exact method: phase gates of its lowering that are not zero and ran as no phase, within the reader's tolerance (1e-14 of a turn) of a whole turn. `angles` counts those gates: one angle written may be several, and another count in another form of the same program.",
+ "properties": {
+ "angles": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "largest_radians": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "angles",
+ "largest_radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "bound": {
+ "description": "The bound this result is held to, by method: a pulse run (class bounded): every probability within this of the exact solution of the model's master equation, the truncation bound and the rounding estimate together; stabilizer_rank's sampled mode (class estimate): the bound on the distance of the estimated state from the state, holding with the probability confidence states.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "class": {
+ "description": "bit-exact: the same bits on every machine; exact: no approximation beyond double-precision rounding; single: single-precision arithmetic; bounded: a rigorous bound beside each value; estimate: a statistical estimate with its standard error; heuristic: an approximation with an estimate of its error, not a bound; measured: counts a processor returned through the person's provider, not reproducible by recomputation; simulated: counts a provider's simulator or emulator returned, measured on no device. Results sealed before simulated existed label a provider's simulator measured, and are read by its provenance. none: the run was stopped at its contract's energy ceiling and gave no answer.",
+ "enum": [
+ "bit-exact",
+ "exact",
+ "single",
+ "bounded",
+ "estimate",
+ "heuristic",
+ "measured",
+ "simulated",
+ "none"
+ ]
+ },
+ "confidence": {
+ "description": "The probability a stated bound holds.",
+ "type": "number"
+ },
+ "device": {
+ "type": "string"
+ },
+ "discarded_weight": {
+ "type": "number"
+ },
+ "fidelity_estimate": {
+ "type": "number"
+ },
+ "fusion": {
+ "type": "integer"
+ },
+ "gate_applications": {
+ "type": "integer"
+ },
+ "global_phase": {
+ "description": "The bit-exact method: method statevector's state of the program that ran is e^(i radians) times the amplitudes given, since this method's lowering drops the phase of rz, rx, ry, rxx, ryy, rzz and u. Absent when that is 1. The language's own state can differ from both: its U is e^(i theta / 2) times the matrix both methods take as u, the reader drops an uncontrolled gphase (Q206), and a compiled job's program is the compile's, right up to a global phase.",
+ "properties": {
+ "note": {
+ "type": "string"
+ },
+ "radians": {
+ "description": "The same in radians, in (-pi, pi].",
+ "type": "number"
+ },
+ "turns_over_2_33": {
+ "description": "The phase exactly, in 2^33rds of a turn.",
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "turns_over_2_33",
+ "radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "histories": {
+ "type": "integer"
+ },
+ "max_bond": {
+ "type": "integer"
+ },
+ "max_bond_used": {
+ "type": "integer"
+ },
+ "max_cut": {
+ "type": "integer"
+ },
+ "max_weight": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "moved_angles": {
+ "description": "The bit-exact method: phase gates of its lowering within the reader's tolerance (1e-14 of a turn) of a dyadic angle, by more than a double's rounding of it, that ran as it. `angles` counts those gates.",
+ "properties": {
+ "angles": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "largest_radians": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "angles",
+ "largest_radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "norm": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "order_work": {
+ "type": "number"
+ },
+ "rounding_estimate": {
+ "description": "A pulse run: an estimate of floating-point rounding beside the bound, not a proof.",
+ "type": "number"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "t_count": {
+ "description": "stabilizer_rank: the T and T† gates the program lowers to.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "terms": {
+ "description": "stabilizer_rank: the stabilizer branches summed (2^t exactly), or drawn.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "threshold": {
+ "type": "number"
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "trajectories": {
+ "type": "integer"
+ },
+ "truncation_bound": {
+ "description": "A pulse run: the proved bound, in the trace norm, on what the integrator's series leaves out.",
+ "type": "number"
+ },
+ "truncations": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "class"
+ ],
+ "type": "object"
+ },
+ "amplitudes": {
+ "items": {
+ "properties": {
+ "bits": {
+ "description": "One 0 or 1 per qubit, qubit n-1 first.",
+ "type": "string"
+ },
+ "bound": {
+ "description": "A bound on |exact − value| of the amplitude, holding with the probability confidence states (stabilizer_rank's sampled mode).",
+ "minimum": 0,
+ "type": "number"
+ },
+ "confidence": {
+ "description": "The probability the bound holds.",
+ "type": "number"
+ },
+ "im": {
+ "type": "number"
+ },
+ "re": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "bits",
+ "re",
+ "im"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "calibration": {
+ "description": "A provider job: the calibration snapshot it ran under.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled": {
+ "anyOf": [
+ {
+ "description": "A provider job: the program sent, compiled exactly to the device's own gates: its basis (the device's gate set), its OpenQASM 3 text (qasm3) and that text's BLAKE3 (program), its counts of gates and swaps, its layouts, and the check it passed before it was sent. Results sealed before qasm3 carry the hash alone.",
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "checked": {
+ "type": "string"
+ },
+ "equivalence": {
+ "description": "The equivalence checker's verdict on the compiled program against the request's program, decided before it was sent: proved, or undecided within the budget it states (a client sends nothing it refutes), with each route's finding and the residual Z rotations the statement takes in.",
+ "properties": {
+ "arithmetic": {
+ "description": "Of a proof: exact (integers in a cyclotomic field, or exact phases), or doubles within tolerance.",
+ "enum": [
+ "exact",
+ "tolerance"
+ ]
+ },
+ "budget": {
+ "description": "The counts each route might spend (no clock): stimuli, state_vector_qubits, diagram_nodes, diagram_steps, zx_rewrites, exact_bits, seed.",
+ "type": "object"
+ },
+ "counterexample": {
+ "description": "Of a refutation: what shows it (found_by: stimuli, decision_diagram, zx or shape), with an input and the outcomes that differ, entries of the miter's matrix, or wires that cross.",
+ "type": "object"
+ },
+ "final_layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "final_layout_from": {
+ "description": "Where each logical qubit's end was read from, when it was read from the measurements.",
+ "type": "string"
+ },
+ "gates": {
+ "description": "Primitive gates of the source and of the compiled program.",
+ "type": "object"
+ },
+ "global_phase": {
+ "description": "The phase the decision diagram found, as [re, im].",
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "notion": {
+ "description": "unitary: one unitary up to a global phase; measured: up to phases on the computational basis just before the final measurements.",
+ "enum": [
+ "unitary",
+ "measured"
+ ]
+ },
+ "proved_by": {
+ "description": "The routes that proved it: decision_diagram, zx.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "refuted_by": {
+ "description": "The routes that refuted it: stimuli, decision_diagram, zx, shape.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "residual": {
+ "description": "The Z rotations the compiled program leaves unapplied before its measurements, each a physical qubit and m/2^k of a turn, which the statement takes in.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "residual_is": {
+ "type": "string"
+ },
+ "routes": {
+ "description": "Each route's finding: stimuli, decision_diagram, zx, with its outcome and its counts.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "statement": {
+ "description": "The statement decided, in words.",
+ "type": "string"
+ },
+ "tolerance": {
+ "description": "With arithmetic tolerance: within what two doubles were taken equal.",
+ "type": "number"
+ },
+ "verdict": {
+ "enum": [
+ "proved",
+ "refuted",
+ "undecided"
+ ]
+ },
+ "version": {
+ "description": "The verdict's form: 1.",
+ "type": "integer"
+ },
+ "why": {
+ "description": "How it was decided, or why no route decided it.",
+ "type": "string"
+ },
+ "wires": {
+ "description": "The miter's wires: the logical qubits, the physical qubits used, the layout, the ancillas and the closing exchanges.",
+ "type": "object"
+ }
+ },
+ "required": [
+ "verdict",
+ "notion",
+ "statement",
+ "why"
+ ],
+ "type": "object"
+ },
+ "final_layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "hash": {
+ "type": "string"
+ },
+ "layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "native_gates": {
+ "type": "integer"
+ },
+ "placement": {
+ "description": "Where the program was placed on the device's qubits, and why.",
+ "type": "object"
+ },
+ "program": {
+ "type": "string"
+ },
+ "qasm3": {
+ "description": "The program sent, as OpenQASM 3, $i being index i of the coupling map the provider described; program is the BLAKE3 of its UTF-8 bytes.",
+ "type": "string"
+ },
+ "qubit_names": {
+ "additionalProperties": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "description": "The device's own name for each index the program uses, as it was when the job was sent, where a client sends it under those names.",
+ "type": "object"
+ },
+ "swaps": {
+ "type": "integer"
+ },
+ "two_qubit_gates": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "basis",
+ "program"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A job asked to compile its program first: what ran is the compiled circuit, within distance of the program in the operator norm up to a global phase.",
+ "properties": {
+ "basis": {
+ "description": "The gate set the program was compiled to.",
+ "enum": [
+ "clifford_t",
+ "standard",
+ "cz",
+ "zz",
+ "xx"
+ ]
+ },
+ "certificate": {
+ "description": "The BLAKE3 of the compile certificate's RFC 8785 text, in hex.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "chain": {
+ "description": "The certificate's chain of digests (wai/extensions/quantum-compile.md section 6.3): the program's digest, each pass with the digests of the circuit it was given and the circuit it gave, the layer its check stands on and the distance it adds, and the output's digest; with the layer the whole compile stands on and the weakest of its passes'. A verifier holds it to its form and compiles the request's program again. Results sealed before results carried it have none.",
+ "properties": {
+ "layer": {
+ "enum": [
+ "pass_equivalence",
+ "exact_simulation",
+ "exact_arithmetic",
+ "stabilizer",
+ null
+ ]
+ },
+ "output": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "passes": {
+ "items": {
+ "properties": {
+ "bound": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "input": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "layer": {
+ "enum": [
+ "unchecked",
+ "bounded",
+ "exact_simulation",
+ "exact_arithmetic",
+ "stabilizer"
+ ]
+ },
+ "output": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "pass": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "pass",
+ "input",
+ "output",
+ "layer",
+ "bound"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "weakest": {
+ "enum": [
+ "unchecked",
+ "bounded",
+ "exact_simulation",
+ "exact_arithmetic",
+ "stabilizer",
+ null
+ ]
+ }
+ },
+ "required": [
+ "source",
+ "output",
+ "passes"
+ ],
+ "type": "object"
+ },
+ "distance": {
+ "description": "The bound the passes' distances add to.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "epsilon": {
+ "description": "The budget asked for.",
+ "type": "number"
+ },
+ "level": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "output": {
+ "description": "A circuit's counts, as the compiler counts them.",
+ "properties": {
+ "cnots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "depth": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "one_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "rotations": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "t_count": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "three_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "source": {
+ "description": "A circuit's counts, as the compiler counts them.",
+ "properties": {
+ "cnots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "depth": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "one_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "rotations": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "t_count": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "three_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "verdict": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "basis",
+ "verdict"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "How the program was compiled before it ran: on the person's own provider, to the device's gates; or, asked with compile, to a basis within a budget. Either way, basis is the gate set it was compiled to."
+ },
+ "components": {
+ "description": "The identity of every component that made the result, when a registered one took part (engine::registry): its program's format, the passes its compile ran, the noise channels it names, its method; each registered one marked so. Sealed by the receipt with the rest.",
+ "items": {
+ "description": "One component that made the result (engine::registry): its kind, name and version, the BLAKE3 digest of its descriptor, and whether it is built in. A result carries these only when a registered component took part; one made by built-ins alone names them as it always has (its method, its compile's passes, its noise's channels and the engine's version), the digests of that version listed by the components list.",
+ "properties": {
+ "certified": {
+ "const": false,
+ "description": "Beside a registered component: the engine does not certify it."
+ },
+ "digest": {
+ "description": "BLAKE3 of the component's descriptor in its canonical JSON (engine::registry::digest_of).",
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "method",
+ "pass",
+ "channel",
+ "front_end"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "origin": {
+ "description": "built-in: the engine's own; registered: a host's own, added in its process, not part of the engine.",
+ "enum": [
+ "built-in",
+ "registered"
+ ]
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "name",
+ "version",
+ "digest",
+ "origin"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "contraction_flops": {
+ "description": "The tensor network's contraction cost.",
+ "type": "number"
+ },
+ "cost": {
+ "description": "A provider job: the estimate shown before it was sent, what the provider says it charged, and whether the person confirmed a run that was not free.",
+ "type": "object"
+ },
+ "counts": {
+ "additionalProperties": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "description": "Outcomes and their counts, keyed by the program's classical bits, the highest bit first. At most 65536 outcomes are listed; omitted_shots holds the rest.",
+ "type": "object"
+ },
+ "counts_source": {
+ "description": "A provider job: where its counts come from (wai/extensions/quantum-providers.md section 8.3): tallied from one record a shot (shots), the provider's own counts (vendor_counts), or rebuilt from the probabilities it returned by largest remainders, derived and not shot records (probabilities). Results sealed before it carry neither it nor execution.",
+ "enum": [
+ "shots",
+ "vendor_counts",
+ "probabilities"
+ ]
+ },
+ "diagnostics": {
+ "description": "The reader's warnings and notes on the program, each with its code.",
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "distinct_outcomes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "dynamic": {
+ "description": "A program that measures in the middle, resets or branches on a measured bit: how it ran.",
+ "properties": {
+ "branches_run": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "branches_weighed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "measurements_and_resets": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "states_at_once": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "elapsed_ms": {
+ "description": "Wall time of the run, where the host has a clock (not in a browser tab).",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "energy": {
+ "anyOf": [
+ {
+ "properties": {
+ "service_kwh": {
+ "description": "A provider job: the provider's own figure.",
+ "type": "number"
+ },
+ "service_kwh_is": {
+ "type": "string"
+ },
+ "unmetered": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "unmetered"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "attribution": {
+ "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
+ "enum": [
+ "process",
+ "none"
+ ]
+ },
+ "concurrent_jobs": {
+ "description": "Other jobs that ran on the host during the window.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "counter": {
+ "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
+ "properties": {
+ "step_uj": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "update_us": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "coverage": {
+ "enum": [
+ "whole",
+ "partial"
+ ]
+ },
+ "covers": {
+ "type": "string"
+ },
+ "cpu_ms": {
+ "type": "integer"
+ },
+ "declared": {
+ "description": "What the stated uncertainty covers, and what it does not.",
+ "type": "string"
+ },
+ "energy_counter_filtering": {
+ "type": "string"
+ },
+ "energy_provenance": {
+ "type": "string"
+ },
+ "energy_uncertainty": {
+ "properties": {
+ "relative_ppm": {
+ "type": "integer"
+ },
+ "window_us": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "excludes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "joules_micro": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "packages": {
+ "description": "The processor packages read.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "source": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules_micro",
+ "energy_provenance",
+ "coverage"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
+ },
+ "engine": {
+ "description": "The engine that made the result: the wai-quantum crate's name and version.",
+ "properties": {
+ "name": {
+ "const": "wai-quantum"
+ },
+ "version": {
+ "description": "Its semantic version, as MAJOR.MINOR.PATCH.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "version"
+ ],
+ "type": "object"
+ },
+ "execution": {
+ "additionalProperties": false,
+ "description": "A provider job: how the device was asked to run the program (section 8.3): who states it (stated_by: client, provider or nobody); what the client sent (sent: the request's members and the settings among them); each of mitigation, twirling, decoupling, remapping and optimisation (off, on, default when the request sets nothing for it, none when the device has no such step, unknown when nobody states it); whether the gates were to run as written (verbatim); and a note.",
+ "properties": {
+ "decoupling": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "mitigation": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "note": {
+ "type": "string"
+ },
+ "optimisation": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "remapping": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "sent": {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "settings": {
+ "type": "object"
+ }
+ },
+ "required": [
+ "fields",
+ "settings"
+ ],
+ "type": "object"
+ },
+ "stated_by": {
+ "enum": [
+ "client",
+ "provider",
+ "nobody"
+ ]
+ },
+ "twirling": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "verbatim": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "stated_by",
+ "mitigation",
+ "twirling",
+ "decoupling",
+ "remapping",
+ "optimisation",
+ "verbatim"
+ ],
+ "type": "object"
+ },
+ "expectations": {
+ "items": {
+ "properties": {
+ "bound": {
+ "description": "A bound on |exact − value|: rigorous for the bounded class; with confidence beside it, holding with that probability.",
+ "type": "number"
+ },
+ "coeff": {
+ "type": "number"
+ },
+ "confidence": {
+ "description": "The probability the bound holds, for a bound that holds with a stated probability (stabilizer_rank's sampled mode).",
+ "type": "number"
+ },
+ "ladder": {
+ "description": "The value at thresholds a decade apart, the asked one last.",
+ "items": {
+ "properties": {
+ "bound": {
+ "type": "number"
+ },
+ "peak_terms": {
+ "type": "integer"
+ },
+ "threshold": {
+ "type": "number"
+ },
+ "threshold_reached": {
+ "type": "number"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "threshold",
+ "value",
+ "bound"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "max_terms": {
+ "type": "integer"
+ },
+ "observable": {
+ "type": "string"
+ },
+ "peak_terms": {
+ "type": "integer"
+ },
+ "stderr": {
+ "description": "The standard error, for an estimate.",
+ "type": "number"
+ },
+ "threshold_reached": {
+ "type": "number"
+ },
+ "value": {
+ "description": "The coefficient times the expectation value.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "observable",
+ "coeff",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "fabric": {
+ "description": "Where the state vector, or the pauli method's sum of terms, ran: the kernel, the placement the job asked for, the member that ran it (or each partition's), each with its certificate, and the energy. Present when the job asked for a placement, or when auto placed the state on a member by measurement (`auto`); a job auto leaves on the CPU names nothing; the receipt seals it with the rest of the result. Every member placed is certified bit-exact, so the answers are the CPU's, byte for byte.",
+ "properties": {
+ "asked": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ ],
+ "description": "The placement the job asked for, as it gave it."
+ },
+ "auto": {
+ "description": "Why auto placed the state where it ran: the rule (a member is placed only where the committed measurements show it faster than this host's CPU for the job's size and fusion width) and the measured row it rests on, with the host, the day and the load it was measured under. Present only when auto placed a state on a member.",
+ "properties": {
+ "about": {
+ "type": "string"
+ },
+ "basis": {
+ "description": "The measured row the job is judged by: the largest measured size at or below its own, the launches of its plan, the runs of each, and the spread of the CPU's and the member's times in milliseconds.",
+ "properties": {
+ "cpu_ms": {
+ "description": "The least, the median and the most of a measured row's runs, in milliseconds.",
+ "properties": {
+ "max": {
+ "type": "number"
+ },
+ "median": {
+ "type": "number"
+ },
+ "min": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "min",
+ "median",
+ "max"
+ ],
+ "type": "object"
+ },
+ "launches": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "member_ms": {
+ "description": "The least, the median and the most of a measured row's runs, in milliseconds.",
+ "properties": {
+ "max": {
+ "type": "number"
+ },
+ "median": {
+ "type": "number"
+ },
+ "min": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "min",
+ "median",
+ "max"
+ ],
+ "type": "object"
+ },
+ "qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "runs": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "qubits",
+ "launches",
+ "runs",
+ "cpu_ms",
+ "member_ms"
+ ],
+ "type": "object"
+ },
+ "discovery_ms": {
+ "description": "What discovering and certifying the host's members took, once per process, as measured.",
+ "type": "number"
+ },
+ "from_qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "fusion": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "host": {
+ "description": "The host's processor as the measurements name it (cpu-<architecture>-<hash>).",
+ "type": "string"
+ },
+ "load": {
+ "type": "string"
+ },
+ "measured": {
+ "description": "The day the host was measured (UTC).",
+ "type": "string"
+ },
+ "min_launches": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "rule": {
+ "type": "string"
+ },
+ "to_qubits": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "rule",
+ "host",
+ "fusion",
+ "from_qubits",
+ "to_qubits"
+ ],
+ "type": "object"
+ },
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "class": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "energy": {
+ "anyOf": [
+ {
+ "properties": {
+ "service_kwh": {
+ "description": "A provider job: the provider's own figure.",
+ "type": "number"
+ },
+ "service_kwh_is": {
+ "type": "string"
+ },
+ "unmetered": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "unmetered"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "attribution": {
+ "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
+ "enum": [
+ "process",
+ "none"
+ ]
+ },
+ "concurrent_jobs": {
+ "description": "Other jobs that ran on the host during the window.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "counter": {
+ "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
+ "properties": {
+ "step_uj": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "update_us": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "coverage": {
+ "enum": [
+ "whole",
+ "partial"
+ ]
+ },
+ "covers": {
+ "type": "string"
+ },
+ "cpu_ms": {
+ "type": "integer"
+ },
+ "declared": {
+ "description": "What the stated uncertainty covers, and what it does not.",
+ "type": "string"
+ },
+ "energy_counter_filtering": {
+ "type": "string"
+ },
+ "energy_provenance": {
+ "type": "string"
+ },
+ "energy_uncertainty": {
+ "properties": {
+ "relative_ppm": {
+ "type": "integer"
+ },
+ "window_us": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "excludes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "joules_micro": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "packages": {
+ "description": "The processor packages read.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "source": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules_micro",
+ "energy_provenance",
+ "coverage"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
+ },
+ "exchanges": {
+ "description": "Partition qubits exchanged with local ones through the host's copy of the state.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "fell_back_from": {
+ "description": "An accelerator request whose member failed during the run: each member that failed, in turn, with how; the member named above ran the job.",
+ "items": {
+ "description": "A member of the fabric and its certificate for the kernel: its id (which binds the device), its key, its class, the implementation, the parity tier, the certificate's digest (BLAKE3, hex), and the corpus it was earned on (its digest, generator and cases; the CPU reference's own standing has none).",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "class": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "implementation": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ },
+ "member": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "description": "For a member the job fell back from: how it failed.",
+ "type": "string"
+ },
+ "wide": {
+ "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "kernel": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parity"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "member",
+ "implementation",
+ "parity",
+ "certificate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "implementation": {
+ "type": "string"
+ },
+ "kernel": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ },
+ "local_qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "member": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "partition_qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "partitions": {
+ "description": "Each partition's member, by the value of the state's top qubits: partition i holds the amplitudes whose top bits read i.",
+ "items": {
+ "description": "A member of the fabric and its certificate for the kernel: its id (which binds the device), its key, its class, the implementation, the parity tier, the certificate's digest (BLAKE3, hex), and the corpus it was earned on (its digest, generator and cases; the CPU reference's own standing has none).",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "class": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "implementation": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ },
+ "member": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "description": "For a member the job fell back from: how it failed.",
+ "type": "string"
+ },
+ "wide": {
+ "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "kernel": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parity"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "member",
+ "implementation",
+ "parity",
+ "certificate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "segments": {
+ "description": "Runs of gates the partitions took in turn, between exchanges.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "why": {
+ "type": "string"
+ },
+ "wide": {
+ "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "kernel": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parity"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "kernel",
+ "asked",
+ "parity",
+ "energy"
+ ],
+ "type": "object"
+ },
+ "gates": {
+ "description": "The program's gates, in standard gates (at most 2^53 - 1), however the method ran them.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "global_phase": {
+ "description": "Why the amplitudes' global phase is not fixed, when it is not.",
+ "type": "string"
+ },
+ "ideal": {
+ "anyOf": [
+ {
+ "properties": {
+ "computed": {
+ "const": true
+ },
+ "hellinger_fidelity": {
+ "type": "number"
+ },
+ "ideal_outcomes": {
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "sampling_tvd_expected": {
+ "type": "number"
+ },
+ "total_variation_distance": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "computed",
+ "total_variation_distance",
+ "hellinger_fidelity"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "computed": {
+ "const": false
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "computed",
+ "why"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A provider job: the circuit's exact distribution set beside the measured counts."
+ },
+ "job": {
+ "description": "A provider job: the provider's job id and its status checks.",
+ "type": "object"
+ },
+ "method": {
+ "description": "The method that ran the job (provider for a run on the person's own provider).",
+ "type": "string"
+ },
+ "mitigation": {
+ "description": "A job's mitigation (its request's mitigate, engine::mitigate), in its result: the method and the options it ran with, its bias and variance assumptions, each observable raw and mitigated with a standard error each and the ideal value (or, for readout, the counts inverted as a quasi-distribution), the method's own details and what it spent. docs/qec.md describes each method.",
+ "properties": {
+ "assumptions": {
+ "properties": {
+ "bias": {
+ "type": "string"
+ },
+ "variance": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "cost": {
+ "description": "The circuits and shots it spent beyond the job's own.",
+ "properties": {
+ "circuits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "details": {
+ "additionalProperties": true,
+ "description": "The method's own: the folded scales and the folding check (zne), the learned model and the amplified values (pea), the quasi-probability and the value it converges to (pec), the training fits (cdr), the purity (vd), the flip and its amplification (readout).",
+ "type": "object"
+ },
+ "distribution": {
+ "description": "readout: each outcome's raw share and its mitigated quasi-probability, with its standard error.",
+ "items": {
+ "properties": {
+ "bits": {
+ "type": "string"
+ },
+ "mitigated": {
+ "type": "number"
+ },
+ "raw": {
+ "type": "number"
+ },
+ "stderr": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "method": {
+ "enum": [
+ "zne",
+ "pea",
+ "pec",
+ "cdr",
+ "vd",
+ "readout"
+ ]
+ },
+ "noise": {
+ "description": "How the job's noise model is read for the method.",
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observables": {
+ "items": {
+ "description": "One observable: its raw value and the mitigated one, each with its standard error, and the ideal value a simulation knows.",
+ "properties": {
+ "coeff": {
+ "type": "number"
+ },
+ "ideal": {
+ "type": "number"
+ },
+ "mitigated": {
+ "type": "number"
+ },
+ "observable": {
+ "type": "string"
+ },
+ "raw": {
+ "type": "number"
+ },
+ "raw_stderr": {
+ "type": "number"
+ },
+ "stderr": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "options": {
+ "description": "The options it ran with, the defaults filled in.",
+ "properties": {
+ "extrapolation": {
+ "enum": [
+ "richardson",
+ "linear",
+ "exponential"
+ ]
+ },
+ "factors": {
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "keep": {
+ "type": "integer"
+ },
+ "learn_shots": {
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "samples": {
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "training": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "method",
+ "options",
+ "assumptions"
+ ],
+ "title": "wai.quantum.mitigation/1",
+ "type": "object"
+ },
+ "omitted_shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "operations": {
+ "description": "When the method held a gate under many controls as one (statevector, and exact asked for it): the operations it ran.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "outcome_dimension": {
+ "description": "The stabilizer method: the dimension of the measured outcomes' affine space.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "outputs": {
+ "description": "The program's output declarations: each its name and type, and its value, or the places of its bits in each outcome.",
+ "items": {
+ "properties": {
+ "bits": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "value": {
+ "description": "A number, a boolean, a bit string, a duration's text, {\"re\", \"im\"}, or an array of them."
+ }
+ },
+ "required": [
+ "name",
+ "type"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "planner": {
+ "description": "Why this route ran (wai.quantum.planner/1): every route the host could see, each one's price or reason for rejection, and the choice. Sealed by the receipt; a verifier recomputes each route's outcome and the choice from what it states (wai/extensions/quantum-providers.md section 8.7). A plan carries it too, with the refusal in place of the choice when no route meets the contract.",
+ "properties": {
+ "auto": {
+ "description": "The route auto picks, when the job leaves the method to it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "choice": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "format": {
+ "const": "wai.quantum.planner/1"
+ },
+ "host": {
+ "properties": {
+ "job_bytes": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "providers": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "job_bytes",
+ "providers"
+ ],
+ "type": "object"
+ },
+ "kept": {
+ "description": "What the contract asked, against what happened; each kept is null when it cannot be said. A result that missed one is sealed and says so.",
+ "properties": {
+ "cost": {
+ "properties": {
+ "charged": {
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "currency": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "kept": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "max_cost": {
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "currency": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "max_cost",
+ "charged",
+ "kept"
+ ],
+ "type": "object"
+ },
+ "deadline": {
+ "properties": {
+ "elapsed_ms": {
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "kept": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "seconds": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "seconds",
+ "elapsed_ms",
+ "kept"
+ ],
+ "type": "object"
+ },
+ "energy": {
+ "properties": {
+ "joules": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "kept": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "max_joules": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "max_joules",
+ "joules",
+ "kept"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "named": {
+ "description": "The route the job names: the provider or the method its request names, or the one method a device target's job runs on; null when it names none.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "question": {
+ "description": "The question the job asks, read from its request, which orders the methods auto tries (section 8.7).",
+ "enum": [
+ "noise",
+ "counts",
+ "expectations",
+ "amplitudes"
+ ]
+ },
+ "refusal": {
+ "description": "When no route meets the contract, in a plan: the refusal as data.",
+ "type": "object"
+ },
+ "routes": {
+ "items": {
+ "description": "One route the planner could see: its class, its price or why it has none, and what came of it.",
+ "properties": {
+ "approximate": {
+ "const": true
+ },
+ "auto_rank": {
+ "description": "On a local route: its rank in auto's order for the job's question, or null where auto does not try it; a built-in method's is section 8.7's table.",
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "class": {
+ "description": "The accuracy class its result has at worst: a matrix product state's is heuristic, though its result may say exact.",
+ "type": "string"
+ },
+ "device": {
+ "type": "string"
+ },
+ "host_dependent": {
+ "description": "Whether it depends on the host: a provider's, a method on a GPU, or a registered method.",
+ "type": "boolean"
+ },
+ "kind": {
+ "enum": [
+ "local",
+ "provider"
+ ]
+ },
+ "method": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "chosen",
+ "met",
+ "rejected"
+ ]
+ },
+ "price": {
+ "anyOf": [
+ {
+ "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
+ "properties": {
+ "energy": {
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "joules": {
+ "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "unwatched": {
+ "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
+ "type": "string"
+ },
+ "watch": {
+ "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules"
+ ],
+ "type": "object"
+ },
+ "leaves_out": {
+ "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
+ "items": {
+ "enum": [
+ "time",
+ "amount",
+ "energy",
+ "mitigation",
+ "decoder",
+ "charged",
+ "cancel"
+ ]
+ },
+ "type": "array"
+ },
+ "memory_bytes": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "money": {
+ "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "at_least": {
+ "const": true,
+ "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
+ },
+ "currency": {
+ "type": "string"
+ },
+ "free": {
+ "type": "boolean"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "unknown": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "free"
+ ],
+ "type": "object"
+ },
+ "program": {
+ "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
+ "properties": {
+ "expected_success": {
+ "type": "number"
+ },
+ "native_gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "swaps": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit_gates": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "time": {
+ "properties": {
+ "basis": {
+ "enum": [
+ "nominal",
+ "provider"
+ ]
+ },
+ "seconds": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "seconds"
+ ],
+ "type": "object"
+ },
+ "work": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "money",
+ "time",
+ "memory_bytes",
+ "work",
+ "energy",
+ "leaves_out"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "provenance": {
+ "type": "string"
+ },
+ "provider": {
+ "type": "string"
+ },
+ "rejected": {
+ "properties": {
+ "code": {
+ "enum": [
+ "not_named",
+ "fabric",
+ "class",
+ "cannot",
+ "memory",
+ "providers",
+ "deadline",
+ "deadline_unknown",
+ "cost",
+ "cost_currency",
+ "cost_unknown",
+ "cost_at_least",
+ "cost_no_ceiling",
+ "energy",
+ "energy_unwatched"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "why"
+ ],
+ "type": "object"
+ },
+ "route": {
+ "description": "method:<name> or provider:<name>.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "route",
+ "kind",
+ "class",
+ "host_dependent",
+ "price",
+ "outcome"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "shadow": {
+ "description": "The classical method that would shadow a provider's answer within the contract, or why none can.",
+ "properties": {
+ "budget_seconds": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "class": {
+ "type": "string"
+ },
+ "code": {
+ "enum": [
+ "budget",
+ "memory",
+ "none"
+ ]
+ },
+ "price": {
+ "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
+ "properties": {
+ "energy": {
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "joules": {
+ "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "unwatched": {
+ "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
+ "type": "string"
+ },
+ "watch": {
+ "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules"
+ ],
+ "type": "object"
+ },
+ "leaves_out": {
+ "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
+ "items": {
+ "enum": [
+ "time",
+ "amount",
+ "energy",
+ "mitigation",
+ "decoder",
+ "charged",
+ "cancel"
+ ]
+ },
+ "type": "array"
+ },
+ "memory_bytes": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "money": {
+ "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "at_least": {
+ "const": true,
+ "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
+ },
+ "currency": {
+ "type": "string"
+ },
+ "free": {
+ "type": "boolean"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "unknown": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "free"
+ ],
+ "type": "object"
+ },
+ "program": {
+ "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
+ "properties": {
+ "expected_success": {
+ "type": "number"
+ },
+ "native_gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "swaps": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit_gates": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "time": {
+ "properties": {
+ "basis": {
+ "enum": [
+ "nominal",
+ "provider"
+ ]
+ },
+ "seconds": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "seconds"
+ ],
+ "type": "object"
+ },
+ "work": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "money",
+ "time",
+ "memory_bytes",
+ "work",
+ "energy",
+ "leaves_out"
+ ],
+ "type": "object"
+ },
+ "request": {
+ "type": "object"
+ },
+ "route": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "tried": {
+ "items": {
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "route": {
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "route"
+ ],
+ "type": "object"
+ },
+ "stable": {
+ "properties": {
+ "choice": {
+ "type": "boolean"
+ },
+ "digest": {
+ "type": "string"
+ },
+ "routes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "scope": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "scope",
+ "routes",
+ "digest",
+ "choice"
+ ],
+ "type": "object"
+ },
+ "wanted": {
+ "description": "The class wanted: the contract's, else that of the route the job names or auto's pick.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "wanted_from": {
+ "enum": [
+ "contract",
+ "named",
+ "auto",
+ null
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "format",
+ "wanted",
+ "wanted_from",
+ "auto",
+ "host",
+ "routes",
+ "choice",
+ "why",
+ "stable",
+ "named",
+ "question"
+ ],
+ "type": "object"
+ },
+ "provenance": {
+ "description": "What a result came from, under the five categories cross-platform provenance surveys use: the circuit, the computer, the compilation, the execution and the software. A host adds it to the results it seals (the job service does, and each item of a set); a result without it reads as it always did. wai-quantum-service/docs/provenance.md maps every field to where it is and whether the receipt seals it.",
+ "properties": {
+ "circuit": {
+ "description": "The program: the BLAKE3 digest of its text as given, its qubits and its gates.",
+ "properties": {
+ "gates": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "program": {
+ "description": "BLAKE3 of the program's text, in hex.",
+ "type": "string"
+ },
+ "qubits": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "program"
+ ],
+ "type": "object"
+ },
+ "compilation": {
+ "description": "Whether the job asked to be compiled; if it did, each pass in order with its check's verdict, the certificate's digest, the gate set compiled to (its basis), the level, the ε budget and the distance the result carries, and that no pass draws a random number.",
+ "properties": {
+ "asked": {
+ "type": "boolean"
+ },
+ "basis": {
+ "description": "The gate set compiled to: clifford_t or standard.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "certificate": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "device": {
+ "description": "A job on a device target, compiled exactly to its gates: where its layout and routes are.",
+ "type": "string"
+ },
+ "distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "epsilon": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "level": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "passes": {
+ "items": {
+ "properties": {
+ "pass": {
+ "type": "string"
+ },
+ "verdict": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "seeded": {
+ "const": false
+ },
+ "status": {
+ "const": "not-applicable"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "asked"
+ ],
+ "type": "object"
+ },
+ "computer": {
+ "description": "What ran it: a classical simulator, the method and its accuracy class, a device target's hash when the job named one, and the fabric's members when the result names where its state ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fabric": {
+ "description": "The kernel and the member that ran the state, or each partition's, as the result's fabric names them.",
+ "properties": {
+ "kernel": {
+ "type": "string"
+ },
+ "members": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "kind": {
+ "const": "simulator"
+ },
+ "method": {
+ "type": "string"
+ },
+ "target": {
+ "description": "The device target's hash; its layout, routes and noise are in the result's own target.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "method"
+ ],
+ "type": "object"
+ },
+ "execution": {
+ "description": "The shots, the seed and the plan the job ran under; its identifier and times are the host's, outside the result.",
+ "properties": {
+ "plan": {
+ "properties": {
+ "memory_bytes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ },
+ "work": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "seed": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "shots": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "plan"
+ ],
+ "type": "object"
+ },
+ "schema": {
+ "const": "wai.quantum.provenance/1"
+ },
+ "software": {
+ "description": "The engine's name and version, and the host's.",
+ "properties": {
+ "engine": {
+ "type": "string"
+ },
+ "host": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "engine",
+ "host"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "schema",
+ "circuit",
+ "computer",
+ "compilation",
+ "execution",
+ "software"
+ ],
+ "title": "wai.quantum.provenance/1",
+ "type": "object"
+ },
+ "provider": {
+ "description": "A provider job: the provider's name, kind and protocol, the device, its provenance, and the hash of its description.",
+ "type": "object"
+ },
+ "pulse": {
+ "description": "A pulse run (method pulse, engine::pulse): what was read and its distribution, the final populations, each capture's reading, the final density matrix's digest, the schedule's length, the integrator and its step, the device and where each parameter came from, and what the receipt binds (calibration).",
+ "properties": {
+ "calibration": {
+ "description": "What the receipt binds: the program's, its calibrations', the schedule's and the device's digests, and the target snapshot.",
+ "properties": {
+ "calibrations": {
+ "type": "string"
+ },
+ "device": {
+ "type": "string"
+ },
+ "program": {
+ "type": "string"
+ },
+ "schedule": {
+ "type": "string"
+ },
+ "target": {
+ "properties": {
+ "calibration": {
+ "type": "object"
+ },
+ "hash": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "captures": {
+ "items": {
+ "properties": {
+ "bit": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "frame": {
+ "type": "string"
+ },
+ "p1": {
+ "type": "number"
+ },
+ "p2": {
+ "type": "number"
+ },
+ "qubit": {
+ "type": "integer"
+ },
+ "start": {
+ "type": "integer"
+ },
+ "start_ns": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "density_hash": {
+ "description": "The BLAKE3 of the final density matrix's bits: the same on every platform.",
+ "type": "string"
+ },
+ "device": {
+ "properties": {
+ "couplings": {
+ "type": "array"
+ },
+ "dt_ns": {
+ "type": "number"
+ },
+ "levels": {
+ "type": "integer"
+ },
+ "model": {
+ "type": "string"
+ },
+ "qubits": {
+ "items": {
+ "properties": {
+ "anharmonicity_hz": {
+ "type": "number"
+ },
+ "frequency_hz": {
+ "type": "number"
+ },
+ "from": {
+ "additionalProperties": {
+ "enum": [
+ "pulse",
+ "target",
+ "default",
+ "none"
+ ]
+ },
+ "type": "object"
+ },
+ "qubit": {
+ "type": "integer"
+ },
+ "rabi_hz": {
+ "type": "number"
+ },
+ "t1_ns": {
+ "type": "number"
+ },
+ "t2_ns": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The probability of each outcome, which the counts sample; null when the captures start at different samples.",
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "duration": {
+ "type": "integer"
+ },
+ "duration_ns": {
+ "type": "number"
+ },
+ "integrator": {
+ "properties": {
+ "dt_ns": {
+ "type": "number"
+ },
+ "frame": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "norm_max": {
+ "type": "number"
+ },
+ "order": {
+ "type": "integer"
+ },
+ "step_ns": {
+ "type": "number"
+ },
+ "steps": {
+ "type": "integer"
+ },
+ "substeps": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "leakage": {
+ "description": "With three levels: each qubit's final probability of level 2.",
+ "items": {
+ "properties": {
+ "p2": {
+ "type": "number"
+ },
+ "qubit": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "not_modelled": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "outcome_bits": {
+ "description": "What each character of an outcome is, left to right: a program bit (c[0]) or a qubit ($0).",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "populations": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The final state read on every simulated qubit, the highest qubit first, a level above 0 read as 1.",
+ "type": "object"
+ },
+ "read": {
+ "description": "What the distribution reads: the captures together (into the program's bits when each writes one), or the final state.",
+ "type": "string"
+ },
+ "simulated_qubits": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "trace": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "read",
+ "outcome_bits",
+ "populations",
+ "simulated_qubits",
+ "density_hash",
+ "integrator",
+ "device",
+ "calibration"
+ ],
+ "type": "object"
+ },
+ "qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "description": "A result's receipt: an Ed25519 signature, by the key it names, over digest = BLAKE3(\"wai:quantum-service-receipt\\x02\" ‖ len ‖ request ‖ len ‖ result), each of request and result in its RFC 8785 canonical text (the result without its receipt member), each length 8 bytes big-endian. Whatever members the request and the result hold are sealed, the result's engine and schema among them. The first receipts (no canon member, $defs/first) sealed their writer's compact text under the domain ending \\x01; they still verify. wai/extensions/quantum-providers.md section 8.2 states the seal in full, and section 8.4 what a verifier checks.",
+ "properties": {
+ "alg": {
+ "const": "ed25519"
+ },
+ "canon": {
+ "const": "rfc8785",
+ "description": "The canonical form the digest is taken over."
+ },
+ "digest": {
+ "description": "The digest signed, 32 bytes in lower-case hex.",
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "key": {
+ "description": "The signing key, 32 bytes in lower-case hex.",
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "signature": {
+ "description": "The signature, 64 bytes in lower-case hex.",
+ "maxLength": 128,
+ "minLength": 128,
+ "pattern": "^[0-9a-f]{128}$",
+ "type": "string"
+ },
+ "time": {
+ "additionalProperties": false,
+ "description": "When the receipt was issued and, where it states one, until when it is offered, by the signer's clock, in milliseconds since 1970-01-01T00:00:00Z. Absent on a receipt that seals no time (one from a host with no clock, or sealed before receipts stated one). With it, the digest is taken under the domain ending \\x03 and ends with len ‖ the canonical text of this member, so the time cannot be changed or taken off (section 8.2).",
+ "properties": {
+ "issued_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "not_after_ms": {
+ "description": "The first moment the receipt is no longer offered: after issued_ms.",
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "issued_ms"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "alg",
+ "canon",
+ "key",
+ "digest",
+ "signature"
+ ],
+ "title": "wai.quantum.receipt/2",
+ "type": "object"
+ },
+ {
+ "description": "The first form, before canon: the digest is over the compact text its writer wrote of each, members in the document's order (section 8.2 of wai/extensions/quantum-providers.md), under the domain ending \\x01. Never written now; still verified.",
+ "properties": {
+ "alg": {
+ "const": "ed25519"
+ },
+ "digest": {
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "key": {
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "signature": {
+ "maxLength": 128,
+ "minLength": 128,
+ "pattern": "^[0-9a-f]{128}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "alg",
+ "key",
+ "digest",
+ "signature"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "repaired": {
+ "description": "A job asked to repair its program first: the program that ran, each repair, and what needs a person.",
+ "properties": {
+ "needs_person": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "qasm": {
+ "type": "string"
+ },
+ "repairs": {
+ "items": {
+ "properties": {
+ "by": {
+ "enum": [
+ "engine",
+ "proposal"
+ ]
+ },
+ "code": {
+ "type": "string"
+ },
+ "edits": {
+ "items": {
+ "properties": {
+ "after": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "before": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "line": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "flagged": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "rule": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "by",
+ "edits"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "schema": {
+ "const": "wai.quantum.job-result/1",
+ "description": "The schema the result follows."
+ },
+ "shadow": {
+ "description": "A classical method's answer beside a provider's, and their distance, for a contract job a provider answered; or why there is none. Its request can be run again by anyone, to the same counts.",
+ "properties": {
+ "accuracy": {
+ "description": "What the method promises of the numbers it gave.",
+ "properties": {
+ "approximate": {
+ "const": true,
+ "description": "A simulated result whose provider states its simulator is approximate."
+ },
+ "batch": {
+ "type": "integer"
+ },
+ "below_table": {
+ "description": "The bit-exact method: phase gates of its lowering that are not zero and ran as no phase, within the reader's tolerance (1e-14 of a turn) of a whole turn. `angles` counts those gates: one angle written may be several, and another count in another form of the same program.",
+ "properties": {
+ "angles": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "largest_radians": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "angles",
+ "largest_radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "bound": {
+ "description": "The bound this result is held to, by method: a pulse run (class bounded): every probability within this of the exact solution of the model's master equation, the truncation bound and the rounding estimate together; stabilizer_rank's sampled mode (class estimate): the bound on the distance of the estimated state from the state, holding with the probability confidence states.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "class": {
+ "description": "bit-exact: the same bits on every machine; exact: no approximation beyond double-precision rounding; single: single-precision arithmetic; bounded: a rigorous bound beside each value; estimate: a statistical estimate with its standard error; heuristic: an approximation with an estimate of its error, not a bound; measured: counts a processor returned through the person's provider, not reproducible by recomputation; simulated: counts a provider's simulator or emulator returned, measured on no device. Results sealed before simulated existed label a provider's simulator measured, and are read by its provenance. none: the run was stopped at its contract's energy ceiling and gave no answer.",
+ "enum": [
+ "bit-exact",
+ "exact",
+ "single",
+ "bounded",
+ "estimate",
+ "heuristic",
+ "measured",
+ "simulated",
+ "none"
+ ]
+ },
+ "confidence": {
+ "description": "The probability a stated bound holds.",
+ "type": "number"
+ },
+ "device": {
+ "type": "string"
+ },
+ "discarded_weight": {
+ "type": "number"
+ },
+ "fidelity_estimate": {
+ "type": "number"
+ },
+ "fusion": {
+ "type": "integer"
+ },
+ "gate_applications": {
+ "type": "integer"
+ },
+ "global_phase": {
+ "description": "The bit-exact method: method statevector's state of the program that ran is e^(i radians) times the amplitudes given, since this method's lowering drops the phase of rz, rx, ry, rxx, ryy, rzz and u. Absent when that is 1. The language's own state can differ from both: its U is e^(i theta / 2) times the matrix both methods take as u, the reader drops an uncontrolled gphase (Q206), and a compiled job's program is the compile's, right up to a global phase.",
+ "properties": {
+ "note": {
+ "type": "string"
+ },
+ "radians": {
+ "description": "The same in radians, in (-pi, pi].",
+ "type": "number"
+ },
+ "turns_over_2_33": {
+ "description": "The phase exactly, in 2^33rds of a turn.",
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "turns_over_2_33",
+ "radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "histories": {
+ "type": "integer"
+ },
+ "max_bond": {
+ "type": "integer"
+ },
+ "max_bond_used": {
+ "type": "integer"
+ },
+ "max_cut": {
+ "type": "integer"
+ },
+ "max_weight": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "moved_angles": {
+ "description": "The bit-exact method: phase gates of its lowering within the reader's tolerance (1e-14 of a turn) of a dyadic angle, by more than a double's rounding of it, that ran as it. `angles` counts those gates.",
+ "properties": {
+ "angles": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "largest_radians": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "angles",
+ "largest_radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "norm": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "order_work": {
+ "type": "number"
+ },
+ "rounding_estimate": {
+ "description": "A pulse run: an estimate of floating-point rounding beside the bound, not a proof.",
+ "type": "number"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "t_count": {
+ "description": "stabilizer_rank: the T and T† gates the program lowers to.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "terms": {
+ "description": "stabilizer_rank: the stabilizer branches summed (2^t exactly), or drawn.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "threshold": {
+ "type": "number"
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "trajectories": {
+ "type": "integer"
+ },
+ "truncation_bound": {
+ "description": "A pulse run: the proved bound, in the trace norm, on what the integrator's series leaves out.",
+ "type": "number"
+ },
+ "truncations": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "class"
+ ],
+ "type": "object"
+ },
+ "code": {
+ "type": "string"
+ },
+ "counts": {
+ "additionalProperties": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "properties": {
+ "computed": {
+ "type": "boolean"
+ },
+ "denominator": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "hellinger_fidelity": {
+ "type": "number"
+ },
+ "numerator": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "sampling_tvd_bound": {
+ "description": "A bound on the total variation the shots alone leave between two samples of one distribution, on average (section 8.7): each outcome's pooled count split as a fair coin splits it.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "total_variation": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "computed"
+ ],
+ "type": "object"
+ },
+ "distinct_outcomes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "elapsed_ms": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "omitted_shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "ran": {
+ "type": "boolean"
+ },
+ "request": {
+ "properties": {
+ "method": {
+ "type": "string"
+ },
+ "qasm": {
+ "type": "string"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "route": {
+ "type": "string"
+ },
+ "shots": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "ran"
+ ],
+ "type": "object"
+ },
+ "shots": {
+ "description": "The shots, where the method names them in the result (trajectories, provider).",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state_hash": {
+ "description": "The bit-exact method's statevector hash (BLAKE3, hex): the same on every machine.",
+ "type": "string"
+ },
+ "stopped": {
+ "description": "A run stopped at its contract's max_joules by a live reading: it gave no answer, and accuracy.class is none (wai/extensions/quantum-providers.md section 8.7).",
+ "properties": {
+ "at": {
+ "const": "max_joules"
+ },
+ "elapsed_ms": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "joules": {
+ "description": "What the reading had come to, at or past the ceiling.",
+ "type": "number"
+ },
+ "max_joules": {
+ "type": "number"
+ },
+ "read": {
+ "description": "What read the run, and what that covers.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "at",
+ "joules",
+ "max_joules",
+ "elapsed_ms",
+ "read"
+ ],
+ "type": "object"
+ },
+ "target": {
+ "description": "A run on a device target: which target (its hash, as its receipt binds it), its calibration snapshot, where the program was placed and why, and the noise derived from the target.",
+ "properties": {
+ "calibration": {
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "compiled": {
+ "description": "The program as compiled for the target, in the form a provider's result gives its own: its text (OpenQASM 3 on physical qubits $p, logical qubit i measured into c[i] where it ends), its layouts, and the equivalence checker's verdict on it against the request's program, decided before anything ran (a refuted one is not run).",
+ "properties": {
+ "equivalence": {
+ "description": "The equivalence checker's verdict on the compiled program against the request's program, decided before it was sent: proved, or undecided within the budget it states (a client sends nothing it refutes), with each route's finding and the residual Z rotations the statement takes in.",
+ "properties": {
+ "arithmetic": {
+ "description": "Of a proof: exact (integers in a cyclotomic field, or exact phases), or doubles within tolerance.",
+ "enum": [
+ "exact",
+ "tolerance"
+ ]
+ },
+ "budget": {
+ "description": "The counts each route might spend (no clock): stimuli, state_vector_qubits, diagram_nodes, diagram_steps, zx_rewrites, exact_bits, seed.",
+ "type": "object"
+ },
+ "counterexample": {
+ "description": "Of a refutation: what shows it (found_by: stimuli, decision_diagram, zx or shape), with an input and the outcomes that differ, entries of the miter's matrix, or wires that cross.",
+ "type": "object"
+ },
+ "final_layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "final_layout_from": {
+ "description": "Where each logical qubit's end was read from, when it was read from the measurements.",
+ "type": "string"
+ },
+ "gates": {
+ "description": "Primitive gates of the source and of the compiled program.",
+ "type": "object"
+ },
+ "global_phase": {
+ "description": "The phase the decision diagram found, as [re, im].",
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "notion": {
+ "description": "unitary: one unitary up to a global phase; measured: up to phases on the computational basis just before the final measurements.",
+ "enum": [
+ "unitary",
+ "measured"
+ ]
+ },
+ "proved_by": {
+ "description": "The routes that proved it: decision_diagram, zx.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "refuted_by": {
+ "description": "The routes that refuted it: stimuli, decision_diagram, zx, shape.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "residual": {
+ "description": "The Z rotations the compiled program leaves unapplied before its measurements, each a physical qubit and m/2^k of a turn, which the statement takes in.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "residual_is": {
+ "type": "string"
+ },
+ "routes": {
+ "description": "Each route's finding: stimuli, decision_diagram, zx, with its outcome and its counts.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "statement": {
+ "description": "The statement decided, in words.",
+ "type": "string"
+ },
+ "tolerance": {
+ "description": "With arithmetic tolerance: within what two doubles were taken equal.",
+ "type": "number"
+ },
+ "verdict": {
+ "enum": [
+ "proved",
+ "refuted",
+ "undecided"
+ ]
+ },
+ "version": {
+ "description": "The verdict's form: 1.",
+ "type": "integer"
+ },
+ "why": {
+ "description": "How it was decided, or why no route decided it.",
+ "type": "string"
+ },
+ "wires": {
+ "description": "The miter's wires: the logical qubits, the physical qubits used, the layout, the ancillas and the closing exchanges.",
+ "type": "object"
+ }
+ },
+ "required": [
+ "verdict",
+ "notion",
+ "statement",
+ "why"
+ ],
+ "type": "object"
+ },
+ "final_layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "qasm3": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "qasm3",
+ "layout",
+ "final_layout",
+ "equivalence"
+ ],
+ "type": "object"
+ },
+ "hash": {
+ "type": "string"
+ },
+ "hash_is": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "noise": {
+ "description": "The noise model derived from the target's calibration: its channels, durations and idling, and each qubit's readout; where the target states coherent errors, leakage, static ZZ or its errors' standard deviations, applied and ignored say what the model applied of them and what it leaves out.",
+ "type": "object"
+ },
+ "placement": {
+ "description": "The native gate set, the layout and routes chosen, the swaps, the expected success beside the fewest-swaps layout's (and, where the target states its gates' errors' standard deviations, expected_success_interval at one standard deviation each way), and the check of the compiled program.",
+ "type": "object"
+ },
+ "source": {
+ "properties": {
+ "format": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "name",
+ "hash"
+ ],
+ "type": "object"
+ },
+ "timing": {
+ "description": "A program that states durations (delay, box, stretch) the method does not apply: said so, with the reader's code.",
+ "properties": {
+ "applied": {
+ "type": "boolean"
+ },
+ "code": {
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "applied",
+ "why"
+ ],
+ "type": "object"
+ },
+ "verdict": {
+ "description": "How far the engine checked an answer, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof; and the layer that decided it, with that layer's limits. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided), and layer names what decided them: exact simulation, a stabilizer check, checked rewrites, the answer held to its problem's own checks, agreement of the run's samples with a simulation, samples held to a distribution, physical consistency, random states, or unchecked. A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
+ "properties": {
+ "critique": {
+ "description": "The program's smells, each with its lines.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "executed": {
+ "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled_distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "method": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "holds": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "intent": {
+ "items": {
+ "description": "One intent's check: what it asked, whether it held, how strong the check was, how it was made, the layer it stands on and that layer's limits.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "counts": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The program's distribution, when its outcomes are few enough to list.",
+ "type": "object"
+ },
+ "expected": {
+ "description": "An expectation intent: the value the intent states.",
+ "type": "number"
+ },
+ "fit": {
+ "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "dof": {
+ "type": "integer"
+ },
+ "impossible": {
+ "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
+ "type": [
+ "integer",
+ "array",
+ "boolean"
+ ]
+ },
+ "impossible_outcomes": {
+ "description": "How many outcomes sampled the stated distribution gives probability 0.",
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "p_value": {
+ "type": "number"
+ },
+ "rejected": {
+ "type": "boolean"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "smallest_expected": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "statistic": {
+ "type": "number"
+ },
+ "test": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "global_phase": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "how": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "distribution",
+ "equivalent",
+ "prepares",
+ "sampled",
+ "compiled",
+ "expectation",
+ "outcomes",
+ "conserves",
+ "counts",
+ "agrees",
+ "landscape"
+ ]
+ },
+ "largest_gaps": {
+ "items": {
+ "properties": {
+ "intent": {
+ "type": "number"
+ },
+ "outcome": {
+ "type": "string"
+ },
+ "program": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer the check stands on: unchecked when it was not decided.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "method": {
+ "description": "A sampled intent: the method the samples were run by.",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observable": {
+ "description": "An expectation intent: the observable.",
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "holds",
+ "fails",
+ "unchecked"
+ ]
+ },
+ "outcomes": {
+ "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
+ "type": "integer"
+ },
+ "outside": {
+ "description": "An outcomes or a conserves intent: how much lies outside, as probability of the exact distribution or as a fraction of the samples.",
+ "type": "number"
+ },
+ "said": {
+ "description": "An energy-landscape job's own word: solved, missed, failed or unchecked.",
+ "type": "string"
+ },
+ "samples": {
+ "description": "An outcomes or a conserves intent checked on the job's counts: how many samples.",
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "strength": {
+ "enum": [
+ "proof",
+ "evidence",
+ "none"
+ ]
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "value": {
+ "description": "An expectation intent: the observable's exact value on the program's state.",
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "outcome",
+ "strength",
+ "how"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer that decided the intents: the weakest of the checks' layers, and unchecked when an intent was not decided or none was given. Absent from a verdict sealed before layers were named.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "level": {
+ "enum": [
+ "refused",
+ "parsed",
+ "executed",
+ "evidence",
+ "proof"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "parsed": {
+ "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "diagnostics": {
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "ok": {
+ "type": "boolean"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "text": {
+ "description": "The refusal as the reader wrote it, with its line and code.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "rank": {
+ "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
+ "maximum": 4,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "refusal": {
+ "description": "For a refused job: its message and its codes.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "repairs": {
+ "description": "Each edit a repair made, with the code it answered and the lines it changed.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "wai.quantum.verdict/1"
+ },
+ "sealed": {
+ "type": "boolean"
+ },
+ "statement": {
+ "description": "The level in one plain line.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "level",
+ "rank",
+ "holds",
+ "statement",
+ "parsed",
+ "executed",
+ "intent",
+ "critique",
+ "repairs"
+ ],
+ "title": "wai.quantum.verdict/1",
+ "type": "object"
+ },
+ "warning": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "method",
+ "qubits",
+ "gates",
+ "accuracy"
+ ],
+ "title": "wai.quantum.job-result/1",
+ "type": "object"
+ },
+ {
+ "description": "A set's result: many programs, or one program over a grid of its inputs, run as one job (engine::sets). Its head holds the count, how many items finished and failed, the Merkle root over the items' leaves, the set's energy and time; the set's receipt seals the set's request and its head. Each item is a plain job with its own receipt, its index, its point in a sweep, and its path to the root, so it is shown sealed by the set alone. A result names the engine that made it and this schema (engine and schema).",
+ "properties": {
+ "count": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "done": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "elapsed_ms": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "energy": {
+ "anyOf": [
+ {
+ "properties": {
+ "service_kwh": {
+ "description": "A provider job: the provider's own figure.",
+ "type": "number"
+ },
+ "service_kwh_is": {
+ "type": "string"
+ },
+ "unmetered": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "unmetered"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "attribution": {
+ "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
+ "enum": [
+ "process",
+ "none"
+ ]
+ },
+ "concurrent_jobs": {
+ "description": "Other jobs that ran on the host during the window.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "counter": {
+ "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
+ "properties": {
+ "step_uj": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "update_us": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "coverage": {
+ "enum": [
+ "whole",
+ "partial"
+ ]
+ },
+ "covers": {
+ "type": "string"
+ },
+ "cpu_ms": {
+ "type": "integer"
+ },
+ "declared": {
+ "description": "What the stated uncertainty covers, and what it does not.",
+ "type": "string"
+ },
+ "energy_counter_filtering": {
+ "type": "string"
+ },
+ "energy_provenance": {
+ "type": "string"
+ },
+ "energy_uncertainty": {
+ "properties": {
+ "relative_ppm": {
+ "type": "integer"
+ },
+ "window_us": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "excludes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "joules_micro": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "packages": {
+ "description": "The processor packages read.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "source": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules_micro",
+ "energy_provenance",
+ "coverage"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
+ },
+ "engine": {
+ "description": "The engine that made the result: the wai-quantum crate's name and version.",
+ "properties": {
+ "name": {
+ "const": "wai-quantum"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "version"
+ ],
+ "type": "object"
+ },
+ "failed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "format": {
+ "const": "wai.quantum.set/1"
+ },
+ "items": {
+ "items": {
+ "description": "One item: its index, its point in a sweep, its request (a plain job, complete in itself), and its result with its own receipt, or why it failed; and its path to the set's root.",
+ "properties": {
+ "code": {
+ "description": "A failed item's refusal code (engine::refusal).",
+ "type": "string"
+ },
+ "error": {
+ "type": "string"
+ },
+ "index": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "path": {
+ "description": "The item's leaf's sibling digests up to the root, in hex.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "point": {
+ "description": "A sweep's item: the value of each input it was run at.",
+ "type": "object"
+ },
+ "request": {
+ "anyOf": [
+ {
+ "required": [
+ "qasm"
+ ]
+ },
+ {
+ "required": [
+ "programs"
+ ]
+ },
+ {
+ "required": [
+ "source"
+ ]
+ }
+ ],
+ "description": "A job as a client submits it: a program and what is asked of it, or a set: many programs (programs), or one over a grid of its inputs (sweep), run as one job. The command line, both MCP servers, the job service, the desktop app and the Studio read it alike, and a receipt seals it as it was given. A member the engine does not read is ignored, and sealed with the rest.",
+ "properties": {
+ "amplitudes": {
+ "description": "Basis states whose amplitudes to return: one 0 or 1 per qubit, qubit n-1 first.",
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 64,
+ "type": "array"
+ },
+ "compile": {
+ "description": "What a compile is asked for, each optional: the most the output may differ from the program (epsilon, in the operator norm up to a global phase), the level (0 lowers and approximates; 1 also rewrites and folds phases; 2 also resynthesises), the basis, the gate set it writes the program in (clifford_t: every rotation off the multiples of π/4 a Clifford+T word; standard: nothing approximated; cz, zz or xx: one-qubit gates around a device basis's own two-qubit gate, cz, rzz or rxx at an angle from 0 to π/2, each pair's block around at most three of it), whether to give the circuit after each pass (stages), and the twirl and dd passes, last (twirl, with its seed; dd, with its sequence).",
+ "properties": {
+ "basis": {
+ "enum": [
+ "clifford_t",
+ "standard",
+ "cz",
+ "zz",
+ "xx"
+ ]
+ },
+ "dd": {
+ "anyOf": [
+ {
+ "enum": [
+ "xx",
+ "xy4"
+ ]
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "properties": {
+ "sequence": {
+ "enum": [
+ "xx",
+ "xy4"
+ ]
+ }
+ },
+ "type": "object"
+ }
+ ],
+ "description": "Dynamical decoupling in each window where a qubit idles long enough: xx or xy4 (or {\"sequence\": …}), checked to change nothing without noise."
+ },
+ "epsilon": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "level": {
+ "maximum": 2,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "stages": {
+ "type": "boolean"
+ },
+ "twirl": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "properties": {
+ "seed": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "seed"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "Twirl each two-qubit Clifford gate with Paulis drawn from a seeded stream: true (seed 1), or {\"seed\": N}. One seed is one instance, checked to be the same circuit."
+ }
+ },
+ "type": "object"
+ },
+ "contract": {
+ "additionalProperties": false,
+ "description": "What the job wants of an answer (wai/extensions/quantum-providers.md section 8.7). Every route the host can see is priced with what is really known, those that cannot meet this are rejected, the cheapest of the rest runs, and the reasoning is sealed in the result as `planner`. Nothing falls back in silence, and a job no route can meet is refused (J071). A job without it plans as it always has, byte for byte. Refused on a set (J073).",
+ "properties": {
+ "deadline_seconds": {
+ "description": "When it must be done by, in seconds from when it starts. A route whose time is not known does not meet it. A host that can stop a run stops it there (J074); otherwise the result says whether it was kept.",
+ "exclusiveMinimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "exactness": {
+ "description": "The class wanted. Without it, the job keeps the class auto would give: auto's pick stands while it meets the rest of the contract, and only a route at least as exact may take its place. A device's counts are in no classical class: measured wants a processor's, simulated a provider's simulator's that its provider does not state is approximate, and any takes every route.",
+ "enum": [
+ "bit-exact",
+ "exact",
+ "single",
+ "bounded",
+ "estimate",
+ "heuristic",
+ "measured",
+ "simulated",
+ "any",
+ null
+ ]
+ },
+ "max_cost": {
+ "additionalProperties": false,
+ "description": "The most a provider's estimate of the run may come to, before it runs: it bounds the estimate, not the charge, which is stated after the run beside it (kept.cost). A route with an unknown cost, an estimate that is only the least it can come to, or a price in another currency does not meet it: nothing is converted.",
+ "properties": {
+ "amount": {
+ "description": "An amount in decimals: digits, and optionally a point and digits, at most 64 characters.",
+ "maxLength": 64,
+ "type": "string"
+ },
+ "currency": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "max_joules": {
+ "description": "The most energy it may take, held by a live reading while it runs: at the ceiling the run is stopped, gives no answer, and its receipt says so. A route nothing here can read and stop does not meet it, so on a host that reads none every route is rejected. An estimate can refuse a job clearly past it, and promises nothing.",
+ "exclusiveMinimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "providers": {
+ "description": "Whether a route may be one of the person's providers. never is the default, given or not: a job that names a provider under a contract that does not allow one is refused (J070), and a host asks no provider anything under it. A host that reaches none (the job service) lists none. A provider that costs money is chosen only under max_cost, or when the job names it, and still runs only on the person's word for that route and its estimate.",
+ "enum": [
+ "never",
+ "allowed",
+ null
+ ]
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "dry_run": {
+ "description": "With true: what the host would do with the job or set, running nothing.",
+ "type": "boolean"
+ },
+ "fabric": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "items": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 64,
+ "minItems": 2,
+ "type": "array"
+ }
+ ],
+ "description": "Where the statevector method's state runs: auto (the default: on a member only where the committed measurements show it faster than this host's CPU for the job's size and fusion width, otherwise on the CPU), cpu, accelerator (the first accelerator member certified bit-exact here that holds the state, falling back to the next if it fails during the run), a member's id or key (wai-quantum fabric lists them), or a list of members, a power of two of them, the state split by its top qubits into one partition on each (cpu is a member, and a member may be named more than once). A member certified bit-exact gives the CPU's bits. A placement this host cannot honour is refused (J013), never made elsewhere."
+ },
+ "history": {
+ "description": "The program's history's account of the version the job runs: its digest, and the gates and lines in each hand. The receipt binds it; a history recomputes and checks it.",
+ "type": "object"
+ },
+ "intent": {
+ "anyOf": [
+ {
+ "description": "One of distribution, equivalent, prepares, sampled, expectation, outcomes, conserves, counts or agrees, with its options.",
+ "properties": {
+ "agrees": {
+ "const": "simulation",
+ "description": "The job's own counts held to the exact distribution the engine computes of the program: by test and alpha, or within tolerance in total variation distance."
+ },
+ "alpha": {
+ "exclusiveMaximum": 1,
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "conserves": {
+ "description": "A quantity every outcome keeps: weight, the sum of its digits, or parity, that sum modulo 2 (a qudit job's: modulo its dimension).",
+ "maxProperties": 1,
+ "minProperties": 1,
+ "properties": {
+ "parity": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "weight": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "counts": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "description": "The job's own counts held to this distribution: by test and alpha, or within tolerance in total variation distance.",
+ "type": "object"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "type": "object"
+ },
+ "equivalent": {
+ "type": "string"
+ },
+ "expectation": {
+ "description": "An observable's exact value on the program's state, held to the value within the tolerance.",
+ "properties": {
+ "observable": {
+ "description": "A Pauli string, as \"Z0 Z1\" or {\"pauli\", \"coeff\"}."
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "observable",
+ "value"
+ ],
+ "type": "object"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "outcomes": {
+ "description": "The outcomes the answer may be: by the program's exact distribution where the run is the program's own, otherwise on the counts the job returned.",
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 4096,
+ "minItems": 1,
+ "type": "array"
+ },
+ "prepares": {
+ "type": "string"
+ },
+ "require": {
+ "const": "proof"
+ },
+ "sampled": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "type": "object"
+ },
+ "seed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "test": {
+ "enum": [
+ "chi_squared",
+ "g_test"
+ ]
+ },
+ "tolerance": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "items": {
+ "description": "One of distribution, equivalent, prepares, sampled, expectation, outcomes, conserves, counts or agrees, with its options.",
+ "properties": {
+ "agrees": {
+ "const": "simulation",
+ "description": "The job's own counts held to the exact distribution the engine computes of the program: by test and alpha, or within tolerance in total variation distance."
+ },
+ "alpha": {
+ "exclusiveMaximum": 1,
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "conserves": {
+ "description": "A quantity every outcome keeps: weight, the sum of its digits, or parity, that sum modulo 2 (a qudit job's: modulo its dimension).",
+ "maxProperties": 1,
+ "minProperties": 1,
+ "properties": {
+ "parity": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "weight": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "counts": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "description": "The job's own counts held to this distribution: by test and alpha, or within tolerance in total variation distance.",
+ "type": "object"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "type": "object"
+ },
+ "equivalent": {
+ "type": "string"
+ },
+ "expectation": {
+ "description": "An observable's exact value on the program's state, held to the value within the tolerance.",
+ "properties": {
+ "observable": {
+ "description": "A Pauli string, as \"Z0 Z1\" or {\"pauli\", \"coeff\"}."
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "observable",
+ "value"
+ ],
+ "type": "object"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "outcomes": {
+ "description": "The outcomes the answer may be: by the program's exact distribution where the run is the program's own, otherwise on the counts the job returned.",
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 4096,
+ "minItems": 1,
+ "type": "array"
+ },
+ "prepares": {
+ "type": "string"
+ },
+ "require": {
+ "const": "proof"
+ },
+ "sampled": {
+ "additionalProperties": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "type": "object"
+ },
+ "seed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "test": {
+ "enum": [
+ "chi_squared",
+ "g_test"
+ ]
+ },
+ "tolerance": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ ],
+ "description": "What the program must do, checked with the run: one intent or a list. The result's verdict says how far it was checked."
+ },
+ "method": {
+ "description": "auto (the default: the strongest method the program admits), or a method by its name as the methods list names it; pulse runs a pulse program (OpenPulse calibrations) under the pulse options.",
+ "type": "string"
+ },
+ "mitigate": {
+ "anyOf": [
+ {
+ "enum": [
+ "zne",
+ "pea",
+ "pec",
+ "cdr",
+ "vd",
+ "readout"
+ ]
+ },
+ {
+ "required": [
+ "method"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "Mitigate the job's expectation values (or, for readout, its counts) under its noise (engine::mitigate): zne, pea, pec, cdr, vd or readout, or {\"method\", …} with its options. The result's mitigation gives each value raw and mitigated."
+ },
+ "noise": {
+ "additionalProperties": false,
+ "description": "A noise model, each channel a probability. A channel not listed here is refused.",
+ "properties": {
+ "amplitude_damping": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "dephasing": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "depolarizing_1q": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "depolarizing_2q": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "readout": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "observables": {
+ "description": "Pauli observables to take the expectation values of.",
+ "items": {
+ "anyOf": [
+ {
+ "description": "A Pauli string, as \"Z0 Z1\"; qubits count from 0.",
+ "type": "string"
+ },
+ {
+ "properties": {
+ "coeff": {
+ "description": "Its coefficient (1 when not given).",
+ "type": "number"
+ },
+ "pauli": {
+ "description": "A Pauli string, as \"X3\".",
+ "type": "string"
+ }
+ },
+ "required": [
+ "pauli"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "maxItems": 256,
+ "type": "array"
+ },
+ "options": {
+ "additionalProperties": true,
+ "description": "Options of the method that runs the job, as the methods list names them (max_bond, cutoff, fusion, trajectories, threshold, max_weight, ladder, max_terms, path_restarts, controls), and memory_gb.",
+ "properties": {
+ "controls": {
+ "description": "A gate whose standard gates would double (x, y, z or h under three or more controls; s, sdg, t, tdg, p, rx, ry, rz, u, sx or sxdg under two or more) runs as one on statevector and in standard gates on exact. \"standard\" runs standard gates on statevector too, which reproduces a result made that way bit for bit. \"whole\" holds the gate whole on exact too, which gives other bits than its default, and is refused (J003) on a job that runs standard gates: another method named, a compile, noise, mitigation, a device target or a named place on the fabric. Any other value is refused.",
+ "enum": [
+ "whole",
+ "standard"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "params": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "A value for each of the program's parameters (`input float theta;`, `input angle phi;`), bound exactly before the program is read: it runs as if each were written as a `const` at that double. A parameter left without a value is refused (Q114, J050). In a sweep, the parameters it fixes, each bound at every point.",
+ "type": "object"
+ },
+ "programs": {
+ "description": "A set (engine::sets): the programs to run as one job, each a program's text or a job of its own; the request's other fields apply to every item that does not set them itself.",
+ "items": {
+ "anyOf": [
+ {
+ "description": "A program's text.",
+ "type": "string"
+ },
+ {
+ "description": "A job of its own, read as a job request is (no programs or sweep in it); each item of the set's result holds its request in full.",
+ "required": [
+ "qasm"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "provider": {
+ "description": "The person's own provider to run on, by the name their registry gives it. Only a host that holds their credentials runs such a job; every other host refuses it.",
+ "type": "string"
+ },
+ "pulse": {
+ "additionalProperties": false,
+ "description": "A pulse run's options (method \"pulse\"): the sample period, the levels kept, the tolerance on the stated error, the steps a sample is divided into, each qubit's parameters, static couplings, and ports beyond the names d0, m0, a0.",
+ "properties": {
+ "couplings": {
+ "description": "Static ZZ couplings.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "qubits": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "minItems": 2,
+ "type": "array"
+ },
+ "zz_khz": {
+ "description": "The coupling's rate, kHz.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "qubits",
+ "zz_khz"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "dt_ns": {
+ "description": "The sample period, ns (default 0.5).",
+ "exclusiveMinimum": 0,
+ "maximum": 1000,
+ "type": "number"
+ },
+ "levels": {
+ "description": "Levels kept per qubit (default 2; 3 shows leakage).",
+ "enum": [
+ 2,
+ 3
+ ],
+ "type": "integer"
+ },
+ "ports": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "enum": [
+ "drive",
+ "measure",
+ "acquire"
+ ]
+ },
+ "qubit": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "qubit"
+ ],
+ "type": "object"
+ },
+ "description": "Ports by name: what each is for and the qubit it reaches.",
+ "type": "object"
+ },
+ "qubits": {
+ "additionalProperties": {
+ "additionalProperties": false,
+ "properties": {
+ "anharmonicity_mhz": {
+ "description": "Its anharmonicity, MHz.",
+ "type": "number"
+ },
+ "frequency_ghz": {
+ "description": "Its frequency, GHz.",
+ "type": "number"
+ },
+ "rabi_mhz": {
+ "description": "Its Rabi frequency at full amplitude, MHz.",
+ "type": "number"
+ },
+ "t1_us": {
+ "description": "Its relaxation time, µs.",
+ "type": "number"
+ },
+ "t2_us": {
+ "description": "Its coherence time, µs (at most 2·T1).",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Each qubit's parameters by its index, over the target's and the defaults.",
+ "type": "object"
+ },
+ "substeps": {
+ "description": "Steps per sample (default: chosen so each step times the generator's norm is at most 0.5).",
+ "maximum": 4096,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "tolerance": {
+ "description": "The most the stated error may be (default 1e-6): a run whose bound and rounding estimate pass it is refused, naming the steps that would meet it.",
+ "exclusiveMaximum": 1,
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "qasm": {
+ "description": "The program, in OpenQASM 3 or the OpenQASM 2 forms in common use.",
+ "type": "string"
+ },
+ "repair": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "properties": {
+ "dyadic_bits": {
+ "maximum": 32,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "max_iterations": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "sizes": {
+ "additionalProperties": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ }
+ ],
+ "description": "Repair the program first on its flagged lines: true, or the choices."
+ },
+ "seed": {
+ "description": "The sampling seed (1 when not given): the same job and seed give the same counts.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "description": "Measurement shots; 1024 when no observables or amplitudes are asked for, otherwise 0.",
+ "maximum": 1000000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "source": {
+ "description": "The program in another format, in place of qasm (engine::formats::expand): read to the job's qasm before the job is read, the request keeping its source.",
+ "properties": {
+ "format": {
+ "enum": [
+ "qasm",
+ "qir",
+ "jeff"
+ ]
+ },
+ "program": {
+ "description": "The program's text (OpenQASM, QIR).",
+ "type": "string"
+ },
+ "program_base64": {
+ "description": "The program's bytes as base64 (jeff).",
+ "type": "string"
+ }
+ },
+ "required": [
+ "format"
+ ],
+ "type": "object"
+ },
+ "sweep": {
+ "additionalProperties": {
+ "items": {
+ "type": "number"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "description": "A set over the request's own qasm: values for each of the program's inputs (integer, float or angle), every combination run, the names in sorted order and the first varying slowest.",
+ "type": "object"
+ },
+ "target": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "description": "A device target: its qubits, the pairs it couples, its native gates with their errors and durations, and the calibration snapshot they come from. A value not known is left out, never written as zero. Every field but format, name, source, qubits, gates and coupling is optional, and a field the format does not name is refused, so a misspelt one never reads as absent. Its canonical text is its RFC 8785 form, and the BLAKE3 of that text, the target's hash, names the snapshot in a receipt.",
+ "properties": {
+ "calibration": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "description": "The calibration snapshot's id, as the source names it, or a content id of the snapshot read.",
+ "maxLength": 400,
+ "type": "string"
+ },
+ "timestamp": {
+ "description": "When the snapshot was taken, as the source writes it.",
+ "maxLength": 400,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "coupling": {
+ "description": "The pairs a two-qubit gate may act on, each once, the lower qubit first, sorted.",
+ "items": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "minItems": 2,
+ "type": "array"
+ },
+ "type": "array"
+ },
+ "crosstalk": {
+ "description": "The static ZZ interaction between pairs of qubits, sorted by pair, each once. Written only when the source states one.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "qubits": {
+ "description": "The pair, the lower qubit first.",
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "minItems": 2,
+ "type": "array"
+ },
+ "zz_khz": {
+ "description": "The shift of one qubit's frequency when the other holds 1 rather than 0, both idle, kilohertz; it may be negative.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "qubits",
+ "zz_khz"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "format": {
+ "const": "wai.quantum.target/1"
+ },
+ "gates": {
+ "description": "Each native gate where the device runs it, sorted by gate then qubits.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "angle_errors": {
+ "description": "Of a zz the device runs at any angle, its error at each angle it was benchmarked at, sorted by angle, each angle once. A gate of an angle between two listed is costed by the straight line between them, one outside them at the nearest; its stated leakage keeps its share of the error.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "angle_rad": {
+ "description": "The angle θ of exp(−iθ/2·Z⊗Z) (OpenQASM's rzz(θ)), radians: π/2 is the fully entangling gate.",
+ "maximum": 1.5707963267948966,
+ "minimum": 0,
+ "type": "number"
+ },
+ "error": {
+ "description": "The average gate infidelity at that angle.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "angle_rad",
+ "error"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "any_angle": {
+ "const": true,
+ "description": "A two-qubit zz the device runs at any angle, so that an angle between two qubits is one gate of that angle rather than two of the fully entangling one. Written only when true."
+ },
+ "coherent": {
+ "additionalProperties": false,
+ "description": "A two-qubit gate's coherent error: the angles by which the gate it runs differs from the one it is meant to be, read as an exchange-and-phase gate.",
+ "properties": {
+ "phi_rad": {
+ "description": "The difference in its conditional phase, radians.",
+ "maximum": 3.141592653589793,
+ "minimum": -3.141592653589793,
+ "type": "number"
+ },
+ "theta_rad": {
+ "description": "The difference in its exchange (swap) angle, radians.",
+ "maximum": 3.141592653589793,
+ "minimum": -3.141592653589793,
+ "type": "number"
+ }
+ },
+ "required": [
+ "theta_rad",
+ "phi_rad"
+ ],
+ "type": "object"
+ },
+ "duration_ns": {
+ "description": "Nanoseconds.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "error": {
+ "description": "The average gate infidelity.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "error_sd": {
+ "description": "One standard deviation of the error, as the source states it.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "gate": {
+ "pattern": "^[a-z0-9_]{1,40}$",
+ "type": "string"
+ },
+ "leakage": {
+ "description": "Of the error, the chance the gate leaves a qubit outside its two levels.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "qubits": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "maxItems": 2,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "gate",
+ "qubits"
+ ],
+ "type": "object"
+ },
+ "maxItems": 262144,
+ "type": "array"
+ },
+ "layer_fidelity": {
+ "description": "Layered benchmarks the source measured, sorted by the chain's length, then its qubits. Written only when the source states one.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "fidelity": {
+ "description": "The fidelity of every two-qubit gate along the chain, run in two layers between random one-qubit gates on every qubit: the product of the layers' process fidelities.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "qubits": {
+ "description": "The chain, in its order: each qubit coupled to the next.",
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "minItems": 2,
+ "type": "array"
+ }
+ },
+ "required": [
+ "qubits",
+ "fidelity"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "qubits": {
+ "description": "Every qubit, in order.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "frequency_ghz": {
+ "description": "Its frequency, gigahertz.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "label": {
+ "description": "The source's own name for it, when that is not its index.",
+ "type": "string"
+ },
+ "measure_ns": {
+ "description": "The measurement's duration, nanoseconds.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "memory_error": {
+ "description": "The average infidelity the qubit takes for each two-qubit layer of a program it waits through (the transport, cooling and idling between a device's layers of gates), as the source's memory benchmark measures it: one layer being a two-qubit gate on random pairs of every qubit.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "qubit": {
+ "description": "Its index: its place in the list.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "readout": {
+ "additionalProperties": false,
+ "properties": {
+ "p01": {
+ "description": "P(reads 1 | holds 0).",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "p10": {
+ "description": "P(reads 0 | holds 1).",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "p01",
+ "p10"
+ ],
+ "type": "object"
+ },
+ "resonator": {
+ "const": true,
+ "description": "A computational resonator, not a qubit: a qubit's state is moved into it (move, listed on the qubit and the resonator) so that a cz on it acts on that state, and moved back out. It takes no one-qubit gate, is never measured and is never paired with another resonator. Written only when true."
+ },
+ "t1_us": {
+ "description": "T1, microseconds.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "t2_us": {
+ "description": "T2 (the echo or Ramsey time the source reports), microseconds.",
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "qubit"
+ ],
+ "type": "object"
+ },
+ "maxItems": 2048,
+ "minItems": 1,
+ "type": "array"
+ },
+ "source": {
+ "additionalProperties": false,
+ "properties": {
+ "format": {
+ "description": "The format the target was read from (wai-quantum targets import --help lists them).",
+ "type": "string"
+ },
+ "note": {
+ "maxLength": 400,
+ "type": "string"
+ }
+ },
+ "required": [
+ "format"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "format",
+ "name",
+ "source",
+ "qubits",
+ "gates",
+ "coupling"
+ ],
+ "title": "wai.quantum.target/1",
+ "type": "object"
+ }
+ ],
+ "description": "A device target: a built-in target's name, or a target document. The program is compiled to it, placed and simulated under its noise; noise may not be given beside it."
+ },
+ "verdict": {
+ "description": "true: the result carries a verdict even with no intent.",
+ "type": "boolean"
+ }
+ },
+ "title": "wai.quantum.job-request/1",
+ "type": "object"
+ },
+ "result": {
+ "description": "A job's result as the engine gives it, on every host: what was asked of the program, computed by the method its plan chose, with that method's accuracy class. The receipt seals the result without its receipt member, beside the request. A result names the engine that made it and this schema (engine and schema); results made before results carried them have neither and follow this schema all the same.",
+ "properties": {
+ "accepted_shots": {
+ "description": "A provider job: the shots its counts are of, the counts' sum (wai/extensions/quantum-providers.md section 8.1): the request's shots, or another number when the device kept another, as a post-selected or heralded readout discards shots. Results sealed before it carry none, and their counts are of the shots.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "accuracy": {
+ "description": "What the method promises of the numbers it gave.",
+ "properties": {
+ "approximate": {
+ "const": true,
+ "description": "A simulated result whose provider states its simulator is approximate."
+ },
+ "batch": {
+ "type": "integer"
+ },
+ "below_table": {
+ "description": "The bit-exact method: phase gates of its lowering that are not zero and ran as no phase, within the reader's tolerance (1e-14 of a turn) of a whole turn. `angles` counts those gates: one angle written may be several, and another count in another form of the same program.",
+ "properties": {
+ "angles": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "largest_radians": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "angles",
+ "largest_radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "bound": {
+ "description": "The bound this result is held to, by method: a pulse run (class bounded): every probability within this of the exact solution of the model's master equation, the truncation bound and the rounding estimate together; stabilizer_rank's sampled mode (class estimate): the bound on the distance of the estimated state from the state, holding with the probability confidence states.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "class": {
+ "description": "bit-exact: the same bits on every machine; exact: no approximation beyond double-precision rounding; single: single-precision arithmetic; bounded: a rigorous bound beside each value; estimate: a statistical estimate with its standard error; heuristic: an approximation with an estimate of its error, not a bound; measured: counts a processor returned through the person's provider, not reproducible by recomputation; simulated: counts a provider's simulator or emulator returned, measured on no device. Results sealed before simulated existed label a provider's simulator measured, and are read by its provenance. none: the run was stopped at its contract's energy ceiling and gave no answer.",
+ "enum": [
+ "bit-exact",
+ "exact",
+ "single",
+ "bounded",
+ "estimate",
+ "heuristic",
+ "measured",
+ "simulated",
+ "none"
+ ]
+ },
+ "confidence": {
+ "description": "The probability a stated bound holds.",
+ "type": "number"
+ },
+ "device": {
+ "type": "string"
+ },
+ "discarded_weight": {
+ "type": "number"
+ },
+ "fidelity_estimate": {
+ "type": "number"
+ },
+ "fusion": {
+ "type": "integer"
+ },
+ "gate_applications": {
+ "type": "integer"
+ },
+ "global_phase": {
+ "description": "The bit-exact method: method statevector's state of the program that ran is e^(i radians) times the amplitudes given, since this method's lowering drops the phase of rz, rx, ry, rxx, ryy, rzz and u. Absent when that is 1. The language's own state can differ from both: its U is e^(i theta / 2) times the matrix both methods take as u, the reader drops an uncontrolled gphase (Q206), and a compiled job's program is the compile's, right up to a global phase.",
+ "properties": {
+ "note": {
+ "type": "string"
+ },
+ "radians": {
+ "description": "The same in radians, in (-pi, pi].",
+ "type": "number"
+ },
+ "turns_over_2_33": {
+ "description": "The phase exactly, in 2^33rds of a turn.",
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "turns_over_2_33",
+ "radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "histories": {
+ "type": "integer"
+ },
+ "max_bond": {
+ "type": "integer"
+ },
+ "max_bond_used": {
+ "type": "integer"
+ },
+ "max_cut": {
+ "type": "integer"
+ },
+ "max_weight": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "moved_angles": {
+ "description": "The bit-exact method: phase gates of its lowering within the reader's tolerance (1e-14 of a turn) of a dyadic angle, by more than a double's rounding of it, that ran as it. `angles` counts those gates.",
+ "properties": {
+ "angles": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "largest_radians": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "angles",
+ "largest_radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "norm": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "order_work": {
+ "type": "number"
+ },
+ "rounding_estimate": {
+ "description": "A pulse run: an estimate of floating-point rounding beside the bound, not a proof.",
+ "type": "number"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "t_count": {
+ "description": "stabilizer_rank: the T and T† gates the program lowers to.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "terms": {
+ "description": "stabilizer_rank: the stabilizer branches summed (2^t exactly), or drawn.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "threshold": {
+ "type": "number"
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "trajectories": {
+ "type": "integer"
+ },
+ "truncation_bound": {
+ "description": "A pulse run: the proved bound, in the trace norm, on what the integrator's series leaves out.",
+ "type": "number"
+ },
+ "truncations": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "class"
+ ],
+ "type": "object"
+ },
+ "amplitudes": {
+ "items": {
+ "properties": {
+ "bits": {
+ "description": "One 0 or 1 per qubit, qubit n-1 first.",
+ "type": "string"
+ },
+ "bound": {
+ "description": "A bound on |exact − value| of the amplitude, holding with the probability confidence states (stabilizer_rank's sampled mode).",
+ "minimum": 0,
+ "type": "number"
+ },
+ "confidence": {
+ "description": "The probability the bound holds.",
+ "type": "number"
+ },
+ "im": {
+ "type": "number"
+ },
+ "re": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "bits",
+ "re",
+ "im"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "calibration": {
+ "description": "A provider job: the calibration snapshot it ran under.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled": {
+ "anyOf": [
+ {
+ "description": "A provider job: the program sent, compiled exactly to the device's own gates: its basis (the device's gate set), its OpenQASM 3 text (qasm3) and that text's BLAKE3 (program), its counts of gates and swaps, its layouts, and the check it passed before it was sent. Results sealed before qasm3 carry the hash alone.",
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "checked": {
+ "type": "string"
+ },
+ "equivalence": {
+ "description": "The equivalence checker's verdict on the compiled program against the request's program, decided before it was sent: proved, or undecided within the budget it states (a client sends nothing it refutes), with each route's finding and the residual Z rotations the statement takes in.",
+ "properties": {
+ "arithmetic": {
+ "description": "Of a proof: exact (integers in a cyclotomic field, or exact phases), or doubles within tolerance.",
+ "enum": [
+ "exact",
+ "tolerance"
+ ]
+ },
+ "budget": {
+ "description": "The counts each route might spend (no clock): stimuli, state_vector_qubits, diagram_nodes, diagram_steps, zx_rewrites, exact_bits, seed.",
+ "type": "object"
+ },
+ "counterexample": {
+ "description": "Of a refutation: what shows it (found_by: stimuli, decision_diagram, zx or shape), with an input and the outcomes that differ, entries of the miter's matrix, or wires that cross.",
+ "type": "object"
+ },
+ "final_layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "final_layout_from": {
+ "description": "Where each logical qubit's end was read from, when it was read from the measurements.",
+ "type": "string"
+ },
+ "gates": {
+ "description": "Primitive gates of the source and of the compiled program.",
+ "type": "object"
+ },
+ "global_phase": {
+ "description": "The phase the decision diagram found, as [re, im].",
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "notion": {
+ "description": "unitary: one unitary up to a global phase; measured: up to phases on the computational basis just before the final measurements.",
+ "enum": [
+ "unitary",
+ "measured"
+ ]
+ },
+ "proved_by": {
+ "description": "The routes that proved it: decision_diagram, zx.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "refuted_by": {
+ "description": "The routes that refuted it: stimuli, decision_diagram, zx, shape.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "residual": {
+ "description": "The Z rotations the compiled program leaves unapplied before its measurements, each a physical qubit and m/2^k of a turn, which the statement takes in.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "residual_is": {
+ "type": "string"
+ },
+ "routes": {
+ "description": "Each route's finding: stimuli, decision_diagram, zx, with its outcome and its counts.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "statement": {
+ "description": "The statement decided, in words.",
+ "type": "string"
+ },
+ "tolerance": {
+ "description": "With arithmetic tolerance: within what two doubles were taken equal.",
+ "type": "number"
+ },
+ "verdict": {
+ "enum": [
+ "proved",
+ "refuted",
+ "undecided"
+ ]
+ },
+ "version": {
+ "description": "The verdict's form: 1.",
+ "type": "integer"
+ },
+ "why": {
+ "description": "How it was decided, or why no route decided it.",
+ "type": "string"
+ },
+ "wires": {
+ "description": "The miter's wires: the logical qubits, the physical qubits used, the layout, the ancillas and the closing exchanges.",
+ "type": "object"
+ }
+ },
+ "required": [
+ "verdict",
+ "notion",
+ "statement",
+ "why"
+ ],
+ "type": "object"
+ },
+ "final_layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "hash": {
+ "type": "string"
+ },
+ "layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "native_gates": {
+ "type": "integer"
+ },
+ "placement": {
+ "description": "Where the program was placed on the device's qubits, and why.",
+ "type": "object"
+ },
+ "program": {
+ "type": "string"
+ },
+ "qasm3": {
+ "description": "The program sent, as OpenQASM 3, $i being index i of the coupling map the provider described; program is the BLAKE3 of its UTF-8 bytes.",
+ "type": "string"
+ },
+ "qubit_names": {
+ "additionalProperties": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "description": "The device's own name for each index the program uses, as it was when the job was sent, where a client sends it under those names.",
+ "type": "object"
+ },
+ "swaps": {
+ "type": "integer"
+ },
+ "two_qubit_gates": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "basis",
+ "program"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A job asked to compile its program first: what ran is the compiled circuit, within distance of the program in the operator norm up to a global phase.",
+ "properties": {
+ "basis": {
+ "description": "The gate set the program was compiled to.",
+ "enum": [
+ "clifford_t",
+ "standard",
+ "cz",
+ "zz",
+ "xx"
+ ]
+ },
+ "certificate": {
+ "description": "The BLAKE3 of the compile certificate's RFC 8785 text, in hex.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "chain": {
+ "description": "The certificate's chain of digests (wai/extensions/quantum-compile.md section 6.3): the program's digest, each pass with the digests of the circuit it was given and the circuit it gave, the layer its check stands on and the distance it adds, and the output's digest; with the layer the whole compile stands on and the weakest of its passes'. A verifier holds it to its form and compiles the request's program again. Results sealed before results carried it have none.",
+ "properties": {
+ "layer": {
+ "enum": [
+ "pass_equivalence",
+ "exact_simulation",
+ "exact_arithmetic",
+ "stabilizer",
+ null
+ ]
+ },
+ "output": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "passes": {
+ "items": {
+ "properties": {
+ "bound": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "input": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "layer": {
+ "enum": [
+ "unchecked",
+ "bounded",
+ "exact_simulation",
+ "exact_arithmetic",
+ "stabilizer"
+ ]
+ },
+ "output": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "pass": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "pass",
+ "input",
+ "output",
+ "layer",
+ "bound"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "weakest": {
+ "enum": [
+ "unchecked",
+ "bounded",
+ "exact_simulation",
+ "exact_arithmetic",
+ "stabilizer",
+ null
+ ]
+ }
+ },
+ "required": [
+ "source",
+ "output",
+ "passes"
+ ],
+ "type": "object"
+ },
+ "distance": {
+ "description": "The bound the passes' distances add to.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "epsilon": {
+ "description": "The budget asked for.",
+ "type": "number"
+ },
+ "level": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "output": {
+ "description": "A circuit's counts, as the compiler counts them.",
+ "properties": {
+ "cnots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "depth": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "one_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "rotations": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "t_count": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "three_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "source": {
+ "description": "A circuit's counts, as the compiler counts them.",
+ "properties": {
+ "cnots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "depth": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "one_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "rotations": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "t_count": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "three_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "verdict": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "basis",
+ "verdict"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "How the program was compiled before it ran: on the person's own provider, to the device's gates; or, asked with compile, to a basis within a budget. Either way, basis is the gate set it was compiled to."
+ },
+ "components": {
+ "description": "The identity of every component that made the result, when a registered one took part (engine::registry): its program's format, the passes its compile ran, the noise channels it names, its method; each registered one marked so. Sealed by the receipt with the rest.",
+ "items": {
+ "description": "One component that made the result (engine::registry): its kind, name and version, the BLAKE3 digest of its descriptor, and whether it is built in. A result carries these only when a registered component took part; one made by built-ins alone names them as it always has (its method, its compile's passes, its noise's channels and the engine's version), the digests of that version listed by the components list.",
+ "properties": {
+ "certified": {
+ "const": false,
+ "description": "Beside a registered component: the engine does not certify it."
+ },
+ "digest": {
+ "description": "BLAKE3 of the component's descriptor in its canonical JSON (engine::registry::digest_of).",
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "method",
+ "pass",
+ "channel",
+ "front_end"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "origin": {
+ "description": "built-in: the engine's own; registered: a host's own, added in its process, not part of the engine.",
+ "enum": [
+ "built-in",
+ "registered"
+ ]
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "name",
+ "version",
+ "digest",
+ "origin"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "contraction_flops": {
+ "description": "The tensor network's contraction cost.",
+ "type": "number"
+ },
+ "cost": {
+ "description": "A provider job: the estimate shown before it was sent, what the provider says it charged, and whether the person confirmed a run that was not free.",
+ "type": "object"
+ },
+ "counts": {
+ "additionalProperties": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "description": "Outcomes and their counts, keyed by the program's classical bits, the highest bit first. At most 65536 outcomes are listed; omitted_shots holds the rest.",
+ "type": "object"
+ },
+ "counts_source": {
+ "description": "A provider job: where its counts come from (wai/extensions/quantum-providers.md section 8.3): tallied from one record a shot (shots), the provider's own counts (vendor_counts), or rebuilt from the probabilities it returned by largest remainders, derived and not shot records (probabilities). Results sealed before it carry neither it nor execution.",
+ "enum": [
+ "shots",
+ "vendor_counts",
+ "probabilities"
+ ]
+ },
+ "diagnostics": {
+ "description": "The reader's warnings and notes on the program, each with its code.",
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "distinct_outcomes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "dynamic": {
+ "description": "A program that measures in the middle, resets or branches on a measured bit: how it ran.",
+ "properties": {
+ "branches_run": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "branches_weighed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "measurements_and_resets": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "states_at_once": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "elapsed_ms": {
+ "description": "Wall time of the run, where the host has a clock (not in a browser tab).",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "energy": {
+ "anyOf": [
+ {
+ "properties": {
+ "service_kwh": {
+ "description": "A provider job: the provider's own figure.",
+ "type": "number"
+ },
+ "service_kwh_is": {
+ "type": "string"
+ },
+ "unmetered": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "unmetered"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "attribution": {
+ "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
+ "enum": [
+ "process",
+ "none"
+ ]
+ },
+ "concurrent_jobs": {
+ "description": "Other jobs that ran on the host during the window.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "counter": {
+ "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
+ "properties": {
+ "step_uj": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "update_us": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "coverage": {
+ "enum": [
+ "whole",
+ "partial"
+ ]
+ },
+ "covers": {
+ "type": "string"
+ },
+ "cpu_ms": {
+ "type": "integer"
+ },
+ "declared": {
+ "description": "What the stated uncertainty covers, and what it does not.",
+ "type": "string"
+ },
+ "energy_counter_filtering": {
+ "type": "string"
+ },
+ "energy_provenance": {
+ "type": "string"
+ },
+ "energy_uncertainty": {
+ "properties": {
+ "relative_ppm": {
+ "type": "integer"
+ },
+ "window_us": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "excludes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "joules_micro": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "packages": {
+ "description": "The processor packages read.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "source": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules_micro",
+ "energy_provenance",
+ "coverage"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
+ },
+ "engine": {
+ "description": "The engine that made the result: the wai-quantum crate's name and version.",
+ "properties": {
+ "name": {
+ "const": "wai-quantum"
+ },
+ "version": {
+ "description": "Its semantic version, as MAJOR.MINOR.PATCH.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "version"
+ ],
+ "type": "object"
+ },
+ "execution": {
+ "additionalProperties": false,
+ "description": "A provider job: how the device was asked to run the program (section 8.3): who states it (stated_by: client, provider or nobody); what the client sent (sent: the request's members and the settings among them); each of mitigation, twirling, decoupling, remapping and optimisation (off, on, default when the request sets nothing for it, none when the device has no such step, unknown when nobody states it); whether the gates were to run as written (verbatim); and a note.",
+ "properties": {
+ "decoupling": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "mitigation": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "note": {
+ "type": "string"
+ },
+ "optimisation": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "remapping": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "sent": {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "settings": {
+ "type": "object"
+ }
+ },
+ "required": [
+ "fields",
+ "settings"
+ ],
+ "type": "object"
+ },
+ "stated_by": {
+ "enum": [
+ "client",
+ "provider",
+ "nobody"
+ ]
+ },
+ "twirling": {
+ "description": "What happened to one step: off or on (by a setting the client sent, or as the provider states), default (the request sets nothing for it, so the provider's default stands), none (the device has no such step), unknown (nobody states it).",
+ "enum": [
+ "off",
+ "on",
+ "default",
+ "none",
+ "unknown"
+ ]
+ },
+ "verbatim": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "stated_by",
+ "mitigation",
+ "twirling",
+ "decoupling",
+ "remapping",
+ "optimisation",
+ "verbatim"
+ ],
+ "type": "object"
+ },
+ "expectations": {
+ "items": {
+ "properties": {
+ "bound": {
+ "description": "A bound on |exact − value|: rigorous for the bounded class; with confidence beside it, holding with that probability.",
+ "type": "number"
+ },
+ "coeff": {
+ "type": "number"
+ },
+ "confidence": {
+ "description": "The probability the bound holds, for a bound that holds with a stated probability (stabilizer_rank's sampled mode).",
+ "type": "number"
+ },
+ "ladder": {
+ "description": "The value at thresholds a decade apart, the asked one last.",
+ "items": {
+ "properties": {
+ "bound": {
+ "type": "number"
+ },
+ "peak_terms": {
+ "type": "integer"
+ },
+ "threshold": {
+ "type": "number"
+ },
+ "threshold_reached": {
+ "type": "number"
+ },
+ "value": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "threshold",
+ "value",
+ "bound"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "max_terms": {
+ "type": "integer"
+ },
+ "observable": {
+ "type": "string"
+ },
+ "peak_terms": {
+ "type": "integer"
+ },
+ "stderr": {
+ "description": "The standard error, for an estimate.",
+ "type": "number"
+ },
+ "threshold_reached": {
+ "type": "number"
+ },
+ "value": {
+ "description": "The coefficient times the expectation value.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "observable",
+ "coeff",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "fabric": {
+ "description": "Where the state vector, or the pauli method's sum of terms, ran: the kernel, the placement the job asked for, the member that ran it (or each partition's), each with its certificate, and the energy. Present when the job asked for a placement, or when auto placed the state on a member by measurement (`auto`); a job auto leaves on the CPU names nothing; the receipt seals it with the rest of the result. Every member placed is certified bit-exact, so the answers are the CPU's, byte for byte.",
+ "properties": {
+ "asked": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ ],
+ "description": "The placement the job asked for, as it gave it."
+ },
+ "auto": {
+ "description": "Why auto placed the state where it ran: the rule (a member is placed only where the committed measurements show it faster than this host's CPU for the job's size and fusion width) and the measured row it rests on, with the host, the day and the load it was measured under. Present only when auto placed a state on a member.",
+ "properties": {
+ "about": {
+ "type": "string"
+ },
+ "basis": {
+ "description": "The measured row the job is judged by: the largest measured size at or below its own, the launches of its plan, the runs of each, and the spread of the CPU's and the member's times in milliseconds.",
+ "properties": {
+ "cpu_ms": {
+ "description": "The least, the median and the most of a measured row's runs, in milliseconds.",
+ "properties": {
+ "max": {
+ "type": "number"
+ },
+ "median": {
+ "type": "number"
+ },
+ "min": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "min",
+ "median",
+ "max"
+ ],
+ "type": "object"
+ },
+ "launches": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "member_ms": {
+ "description": "The least, the median and the most of a measured row's runs, in milliseconds.",
+ "properties": {
+ "max": {
+ "type": "number"
+ },
+ "median": {
+ "type": "number"
+ },
+ "min": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "min",
+ "median",
+ "max"
+ ],
+ "type": "object"
+ },
+ "qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "runs": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "qubits",
+ "launches",
+ "runs",
+ "cpu_ms",
+ "member_ms"
+ ],
+ "type": "object"
+ },
+ "discovery_ms": {
+ "description": "What discovering and certifying the host's members took, once per process, as measured.",
+ "type": "number"
+ },
+ "from_qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "fusion": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "host": {
+ "description": "The host's processor as the measurements name it (cpu-<architecture>-<hash>).",
+ "type": "string"
+ },
+ "load": {
+ "type": "string"
+ },
+ "measured": {
+ "description": "The day the host was measured (UTC).",
+ "type": "string"
+ },
+ "min_launches": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "rule": {
+ "type": "string"
+ },
+ "to_qubits": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "rule",
+ "host",
+ "fusion",
+ "from_qubits",
+ "to_qubits"
+ ],
+ "type": "object"
+ },
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "class": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "energy": {
+ "anyOf": [
+ {
+ "properties": {
+ "service_kwh": {
+ "description": "A provider job: the provider's own figure.",
+ "type": "number"
+ },
+ "service_kwh_is": {
+ "type": "string"
+ },
+ "unmetered": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "unmetered"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "attribution": {
+ "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
+ "enum": [
+ "process",
+ "none"
+ ]
+ },
+ "concurrent_jobs": {
+ "description": "Other jobs that ran on the host during the window.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "counter": {
+ "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
+ "properties": {
+ "step_uj": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "update_us": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "coverage": {
+ "enum": [
+ "whole",
+ "partial"
+ ]
+ },
+ "covers": {
+ "type": "string"
+ },
+ "cpu_ms": {
+ "type": "integer"
+ },
+ "declared": {
+ "description": "What the stated uncertainty covers, and what it does not.",
+ "type": "string"
+ },
+ "energy_counter_filtering": {
+ "type": "string"
+ },
+ "energy_provenance": {
+ "type": "string"
+ },
+ "energy_uncertainty": {
+ "properties": {
+ "relative_ppm": {
+ "type": "integer"
+ },
+ "window_us": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "excludes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "joules_micro": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "packages": {
+ "description": "The processor packages read.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "source": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules_micro",
+ "energy_provenance",
+ "coverage"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
+ },
+ "exchanges": {
+ "description": "Partition qubits exchanged with local ones through the host's copy of the state.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "fell_back_from": {
+ "description": "An accelerator request whose member failed during the run: each member that failed, in turn, with how; the member named above ran the job.",
+ "items": {
+ "description": "A member of the fabric and its certificate for the kernel: its id (which binds the device), its key, its class, the implementation, the parity tier, the certificate's digest (BLAKE3, hex), and the corpus it was earned on (its digest, generator and cases; the CPU reference's own standing has none).",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "class": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "implementation": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ },
+ "member": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "description": "For a member the job fell back from: how it failed.",
+ "type": "string"
+ },
+ "wide": {
+ "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "kernel": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parity"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "member",
+ "implementation",
+ "parity",
+ "certificate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "implementation": {
+ "type": "string"
+ },
+ "kernel": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ },
+ "local_qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "member": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "partition_qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "partitions": {
+ "description": "Each partition's member, by the value of the state's top qubits: partition i holds the amplitudes whose top bits read i.",
+ "items": {
+ "description": "A member of the fabric and its certificate for the kernel: its id (which binds the device), its key, its class, the implementation, the parity tier, the certificate's digest (BLAKE3, hex), and the corpus it was earned on (its digest, generator and cases; the CPU reference's own standing has none).",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "class": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "implementation": {
+ "type": "string"
+ },
+ "key": {
+ "type": "string"
+ },
+ "member": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "description": "For a member the job fell back from: how it failed.",
+ "type": "string"
+ },
+ "wide": {
+ "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "kernel": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parity"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "member",
+ "implementation",
+ "parity",
+ "certificate"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "segments": {
+ "description": "Runs of gates the partitions took in turn, between exchanges.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "why": {
+ "type": "string"
+ },
+ "wide": {
+ "description": "A member's certificate for gates on more than three qubits at once (wai.quantum.sv/run-wide): a fusion width of 4 to 6, or a wider gate, runs kernels the pinned corpus does not reach, certified on a corpus of their own (sv64-wide-v1). A member is placed for such a job only when this certificate is bit-exact; one that is not, or has none, says why and runs only gates on up to three qubits at once.",
+ "properties": {
+ "cases": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "certificate": {
+ "type": "string"
+ },
+ "corpus": {
+ "type": "string"
+ },
+ "generator": {
+ "type": "string"
+ },
+ "kernel": {
+ "type": "string"
+ },
+ "parity": {
+ "description": "A certificate's standing against the CPU reference: bit-exact, within a bound (max_ulp, max_abs), statistical (fidelity over shots) or uncertified. Only bit-exact members are placed.",
+ "properties": {
+ "fidelity": {
+ "type": "number"
+ },
+ "max_abs": {
+ "type": "number"
+ },
+ "max_ulp": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tier": {
+ "enum": [
+ "bit-exact",
+ "within",
+ "statistical",
+ "uncertified"
+ ]
+ }
+ },
+ "required": [
+ "tier"
+ ],
+ "type": "object"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "parity"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "kernel",
+ "asked",
+ "parity",
+ "energy"
+ ],
+ "type": "object"
+ },
+ "gates": {
+ "description": "The program's gates, in standard gates (at most 2^53 - 1), however the method ran them.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "global_phase": {
+ "description": "Why the amplitudes' global phase is not fixed, when it is not.",
+ "type": "string"
+ },
+ "ideal": {
+ "anyOf": [
+ {
+ "properties": {
+ "computed": {
+ "const": true
+ },
+ "hellinger_fidelity": {
+ "type": "number"
+ },
+ "ideal_outcomes": {
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "sampling_tvd_expected": {
+ "type": "number"
+ },
+ "total_variation_distance": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "computed",
+ "total_variation_distance",
+ "hellinger_fidelity"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "computed": {
+ "const": false
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "computed",
+ "why"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A provider job: the circuit's exact distribution set beside the measured counts."
+ },
+ "job": {
+ "description": "A provider job: the provider's job id and its status checks.",
+ "type": "object"
+ },
+ "method": {
+ "description": "The method that ran the job (provider for a run on the person's own provider).",
+ "type": "string"
+ },
+ "mitigation": {
+ "description": "A job's mitigation (its request's mitigate, engine::mitigate), in its result: the method and the options it ran with, its bias and variance assumptions, each observable raw and mitigated with a standard error each and the ideal value (or, for readout, the counts inverted as a quasi-distribution), the method's own details and what it spent. docs/qec.md describes each method.",
+ "properties": {
+ "assumptions": {
+ "properties": {
+ "bias": {
+ "type": "string"
+ },
+ "variance": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "cost": {
+ "description": "The circuits and shots it spent beyond the job's own.",
+ "properties": {
+ "circuits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "details": {
+ "additionalProperties": true,
+ "description": "The method's own: the folded scales and the folding check (zne), the learned model and the amplified values (pea), the quasi-probability and the value it converges to (pec), the training fits (cdr), the purity (vd), the flip and its amplification (readout).",
+ "type": "object"
+ },
+ "distribution": {
+ "description": "readout: each outcome's raw share and its mitigated quasi-probability, with its standard error.",
+ "items": {
+ "properties": {
+ "bits": {
+ "type": "string"
+ },
+ "mitigated": {
+ "type": "number"
+ },
+ "raw": {
+ "type": "number"
+ },
+ "stderr": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "method": {
+ "enum": [
+ "zne",
+ "pea",
+ "pec",
+ "cdr",
+ "vd",
+ "readout"
+ ]
+ },
+ "noise": {
+ "description": "How the job's noise model is read for the method.",
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observables": {
+ "items": {
+ "description": "One observable: its raw value and the mitigated one, each with its standard error, and the ideal value a simulation knows.",
+ "properties": {
+ "coeff": {
+ "type": "number"
+ },
+ "ideal": {
+ "type": "number"
+ },
+ "mitigated": {
+ "type": "number"
+ },
+ "observable": {
+ "type": "string"
+ },
+ "raw": {
+ "type": "number"
+ },
+ "raw_stderr": {
+ "type": "number"
+ },
+ "stderr": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "options": {
+ "description": "The options it ran with, the defaults filled in.",
+ "properties": {
+ "extrapolation": {
+ "enum": [
+ "richardson",
+ "linear",
+ "exponential"
+ ]
+ },
+ "factors": {
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "keep": {
+ "type": "integer"
+ },
+ "learn_shots": {
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "samples": {
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "training": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "method",
+ "options",
+ "assumptions"
+ ],
+ "title": "wai.quantum.mitigation/1",
+ "type": "object"
+ },
+ "omitted_shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "operations": {
+ "description": "When the method held a gate under many controls as one (statevector, and exact asked for it): the operations it ran.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "outcome_dimension": {
+ "description": "The stabilizer method: the dimension of the measured outcomes' affine space.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "outputs": {
+ "description": "The program's output declarations: each its name and type, and its value, or the places of its bits in each outcome.",
+ "items": {
+ "properties": {
+ "bits": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "value": {
+ "description": "A number, a boolean, a bit string, a duration's text, {\"re\", \"im\"}, or an array of them."
+ }
+ },
+ "required": [
+ "name",
+ "type"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "planner": {
+ "description": "Why this route ran (wai.quantum.planner/1): every route the host could see, each one's price or reason for rejection, and the choice. Sealed by the receipt; a verifier recomputes each route's outcome and the choice from what it states (wai/extensions/quantum-providers.md section 8.7). A plan carries it too, with the refusal in place of the choice when no route meets the contract.",
+ "properties": {
+ "auto": {
+ "description": "The route auto picks, when the job leaves the method to it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "choice": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "format": {
+ "const": "wai.quantum.planner/1"
+ },
+ "host": {
+ "properties": {
+ "job_bytes": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "providers": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "job_bytes",
+ "providers"
+ ],
+ "type": "object"
+ },
+ "kept": {
+ "description": "What the contract asked, against what happened; each kept is null when it cannot be said. A result that missed one is sealed and says so.",
+ "properties": {
+ "cost": {
+ "properties": {
+ "charged": {
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "currency": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "kept": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "max_cost": {
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "currency": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "max_cost",
+ "charged",
+ "kept"
+ ],
+ "type": "object"
+ },
+ "deadline": {
+ "properties": {
+ "elapsed_ms": {
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "kept": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "seconds": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "seconds",
+ "elapsed_ms",
+ "kept"
+ ],
+ "type": "object"
+ },
+ "energy": {
+ "properties": {
+ "joules": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "kept": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "max_joules": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "max_joules",
+ "joules",
+ "kept"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "named": {
+ "description": "The route the job names: the provider or the method its request names, or the one method a device target's job runs on; null when it names none.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "question": {
+ "description": "The question the job asks, read from its request, which orders the methods auto tries (section 8.7).",
+ "enum": [
+ "noise",
+ "counts",
+ "expectations",
+ "amplitudes"
+ ]
+ },
+ "refusal": {
+ "description": "When no route meets the contract, in a plan: the refusal as data.",
+ "type": "object"
+ },
+ "routes": {
+ "items": {
+ "description": "One route the planner could see: its class, its price or why it has none, and what came of it.",
+ "properties": {
+ "approximate": {
+ "const": true
+ },
+ "auto_rank": {
+ "description": "On a local route: its rank in auto's order for the job's question, or null where auto does not try it; a built-in method's is section 8.7's table.",
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "class": {
+ "description": "The accuracy class its result has at worst: a matrix product state's is heuristic, though its result may say exact.",
+ "type": "string"
+ },
+ "device": {
+ "type": "string"
+ },
+ "host_dependent": {
+ "description": "Whether it depends on the host: a provider's, a method on a GPU, or a registered method.",
+ "type": "boolean"
+ },
+ "kind": {
+ "enum": [
+ "local",
+ "provider"
+ ]
+ },
+ "method": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "chosen",
+ "met",
+ "rejected"
+ ]
+ },
+ "price": {
+ "anyOf": [
+ {
+ "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
+ "properties": {
+ "energy": {
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "joules": {
+ "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "unwatched": {
+ "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
+ "type": "string"
+ },
+ "watch": {
+ "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules"
+ ],
+ "type": "object"
+ },
+ "leaves_out": {
+ "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
+ "items": {
+ "enum": [
+ "time",
+ "amount",
+ "energy",
+ "mitigation",
+ "decoder",
+ "charged",
+ "cancel"
+ ]
+ },
+ "type": "array"
+ },
+ "memory_bytes": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "money": {
+ "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "at_least": {
+ "const": true,
+ "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
+ },
+ "currency": {
+ "type": "string"
+ },
+ "free": {
+ "type": "boolean"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "unknown": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "free"
+ ],
+ "type": "object"
+ },
+ "program": {
+ "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
+ "properties": {
+ "expected_success": {
+ "type": "number"
+ },
+ "native_gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "swaps": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit_gates": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "time": {
+ "properties": {
+ "basis": {
+ "enum": [
+ "nominal",
+ "provider"
+ ]
+ },
+ "seconds": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "seconds"
+ ],
+ "type": "object"
+ },
+ "work": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "money",
+ "time",
+ "memory_bytes",
+ "work",
+ "energy",
+ "leaves_out"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "provenance": {
+ "type": "string"
+ },
+ "provider": {
+ "type": "string"
+ },
+ "rejected": {
+ "properties": {
+ "code": {
+ "enum": [
+ "not_named",
+ "fabric",
+ "class",
+ "cannot",
+ "memory",
+ "providers",
+ "deadline",
+ "deadline_unknown",
+ "cost",
+ "cost_currency",
+ "cost_unknown",
+ "cost_at_least",
+ "cost_no_ceiling",
+ "energy",
+ "energy_unwatched"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "why"
+ ],
+ "type": "object"
+ },
+ "route": {
+ "description": "method:<name> or provider:<name>.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "route",
+ "kind",
+ "class",
+ "host_dependent",
+ "price",
+ "outcome"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "shadow": {
+ "description": "The classical method that would shadow a provider's answer within the contract, or why none can.",
+ "properties": {
+ "budget_seconds": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "class": {
+ "type": "string"
+ },
+ "code": {
+ "enum": [
+ "budget",
+ "memory",
+ "none"
+ ]
+ },
+ "price": {
+ "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
+ "properties": {
+ "energy": {
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "joules": {
+ "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "unwatched": {
+ "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
+ "type": "string"
+ },
+ "watch": {
+ "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules"
+ ],
+ "type": "object"
+ },
+ "leaves_out": {
+ "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
+ "items": {
+ "enum": [
+ "time",
+ "amount",
+ "energy",
+ "mitigation",
+ "decoder",
+ "charged",
+ "cancel"
+ ]
+ },
+ "type": "array"
+ },
+ "memory_bytes": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "money": {
+ "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "at_least": {
+ "const": true,
+ "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
+ },
+ "currency": {
+ "type": "string"
+ },
+ "free": {
+ "type": "boolean"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "unknown": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "free"
+ ],
+ "type": "object"
+ },
+ "program": {
+ "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
+ "properties": {
+ "expected_success": {
+ "type": "number"
+ },
+ "native_gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "swaps": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit_gates": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "time": {
+ "properties": {
+ "basis": {
+ "enum": [
+ "nominal",
+ "provider"
+ ]
+ },
+ "seconds": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "seconds"
+ ],
+ "type": "object"
+ },
+ "work": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "money",
+ "time",
+ "memory_bytes",
+ "work",
+ "energy",
+ "leaves_out"
+ ],
+ "type": "object"
+ },
+ "request": {
+ "type": "object"
+ },
+ "route": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "tried": {
+ "items": {
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "route": {
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "route"
+ ],
+ "type": "object"
+ },
+ "stable": {
+ "properties": {
+ "choice": {
+ "type": "boolean"
+ },
+ "digest": {
+ "type": "string"
+ },
+ "routes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "scope": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "scope",
+ "routes",
+ "digest",
+ "choice"
+ ],
+ "type": "object"
+ },
+ "wanted": {
+ "description": "The class wanted: the contract's, else that of the route the job names or auto's pick.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "wanted_from": {
+ "enum": [
+ "contract",
+ "named",
+ "auto",
+ null
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "format",
+ "wanted",
+ "wanted_from",
+ "auto",
+ "host",
+ "routes",
+ "choice",
+ "why",
+ "stable",
+ "named",
+ "question"
+ ],
+ "type": "object"
+ },
+ "provenance": {
+ "description": "What a result came from, under the five categories cross-platform provenance surveys use: the circuit, the computer, the compilation, the execution and the software. A host adds it to the results it seals (the job service does, and each item of a set); a result without it reads as it always did. wai-quantum-service/docs/provenance.md maps every field to where it is and whether the receipt seals it.",
+ "properties": {
+ "circuit": {
+ "description": "The program: the BLAKE3 digest of its text as given, its qubits and its gates.",
+ "properties": {
+ "gates": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "program": {
+ "description": "BLAKE3 of the program's text, in hex.",
+ "type": "string"
+ },
+ "qubits": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "program"
+ ],
+ "type": "object"
+ },
+ "compilation": {
+ "description": "Whether the job asked to be compiled; if it did, each pass in order with its check's verdict, the certificate's digest, the gate set compiled to (its basis), the level, the ε budget and the distance the result carries, and that no pass draws a random number.",
+ "properties": {
+ "asked": {
+ "type": "boolean"
+ },
+ "basis": {
+ "description": "The gate set compiled to: clifford_t or standard.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "certificate": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "device": {
+ "description": "A job on a device target, compiled exactly to its gates: where its layout and routes are.",
+ "type": "string"
+ },
+ "distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "epsilon": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "level": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "passes": {
+ "items": {
+ "properties": {
+ "pass": {
+ "type": "string"
+ },
+ "verdict": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "seeded": {
+ "const": false
+ },
+ "status": {
+ "const": "not-applicable"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "asked"
+ ],
+ "type": "object"
+ },
+ "computer": {
+ "description": "What ran it: a classical simulator, the method and its accuracy class, a device target's hash when the job named one, and the fabric's members when the result names where its state ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "fabric": {
+ "description": "The kernel and the member that ran the state, or each partition's, as the result's fabric names them.",
+ "properties": {
+ "kernel": {
+ "type": "string"
+ },
+ "members": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "kind": {
+ "const": "simulator"
+ },
+ "method": {
+ "type": "string"
+ },
+ "target": {
+ "description": "The device target's hash; its layout, routes and noise are in the result's own target.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "method"
+ ],
+ "type": "object"
+ },
+ "execution": {
+ "description": "The shots, the seed and the plan the job ran under; its identifier and times are the host's, outside the result.",
+ "properties": {
+ "plan": {
+ "properties": {
+ "memory_bytes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ },
+ "work": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "seed": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "shots": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "plan"
+ ],
+ "type": "object"
+ },
+ "schema": {
+ "const": "wai.quantum.provenance/1"
+ },
+ "software": {
+ "description": "The engine's name and version, and the host's.",
+ "properties": {
+ "engine": {
+ "type": "string"
+ },
+ "host": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "engine",
+ "host"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "schema",
+ "circuit",
+ "computer",
+ "compilation",
+ "execution",
+ "software"
+ ],
+ "title": "wai.quantum.provenance/1",
+ "type": "object"
+ },
+ "provider": {
+ "description": "A provider job: the provider's name, kind and protocol, the device, its provenance, and the hash of its description.",
+ "type": "object"
+ },
+ "pulse": {
+ "description": "A pulse run (method pulse, engine::pulse): what was read and its distribution, the final populations, each capture's reading, the final density matrix's digest, the schedule's length, the integrator and its step, the device and where each parameter came from, and what the receipt binds (calibration).",
+ "properties": {
+ "calibration": {
+ "description": "What the receipt binds: the program's, its calibrations', the schedule's and the device's digests, and the target snapshot.",
+ "properties": {
+ "calibrations": {
+ "type": "string"
+ },
+ "device": {
+ "type": "string"
+ },
+ "program": {
+ "type": "string"
+ },
+ "schedule": {
+ "type": "string"
+ },
+ "target": {
+ "properties": {
+ "calibration": {
+ "type": "object"
+ },
+ "hash": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "captures": {
+ "items": {
+ "properties": {
+ "bit": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "frame": {
+ "type": "string"
+ },
+ "p1": {
+ "type": "number"
+ },
+ "p2": {
+ "type": "number"
+ },
+ "qubit": {
+ "type": "integer"
+ },
+ "start": {
+ "type": "integer"
+ },
+ "start_ns": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "density_hash": {
+ "description": "The BLAKE3 of the final density matrix's bits: the same on every platform.",
+ "type": "string"
+ },
+ "device": {
+ "properties": {
+ "couplings": {
+ "type": "array"
+ },
+ "dt_ns": {
+ "type": "number"
+ },
+ "levels": {
+ "type": "integer"
+ },
+ "model": {
+ "type": "string"
+ },
+ "qubits": {
+ "items": {
+ "properties": {
+ "anharmonicity_hz": {
+ "type": "number"
+ },
+ "frequency_hz": {
+ "type": "number"
+ },
+ "from": {
+ "additionalProperties": {
+ "enum": [
+ "pulse",
+ "target",
+ "default",
+ "none"
+ ]
+ },
+ "type": "object"
+ },
+ "qubit": {
+ "type": "integer"
+ },
+ "rabi_hz": {
+ "type": "number"
+ },
+ "t1_ns": {
+ "type": "number"
+ },
+ "t2_ns": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The probability of each outcome, which the counts sample; null when the captures start at different samples.",
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "duration": {
+ "type": "integer"
+ },
+ "duration_ns": {
+ "type": "number"
+ },
+ "integrator": {
+ "properties": {
+ "dt_ns": {
+ "type": "number"
+ },
+ "frame": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "norm_max": {
+ "type": "number"
+ },
+ "order": {
+ "type": "integer"
+ },
+ "step_ns": {
+ "type": "number"
+ },
+ "steps": {
+ "type": "integer"
+ },
+ "substeps": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "leakage": {
+ "description": "With three levels: each qubit's final probability of level 2.",
+ "items": {
+ "properties": {
+ "p2": {
+ "type": "number"
+ },
+ "qubit": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "not_modelled": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "outcome_bits": {
+ "description": "What each character of an outcome is, left to right: a program bit (c[0]) or a qubit ($0).",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "populations": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The final state read on every simulated qubit, the highest qubit first, a level above 0 read as 1.",
+ "type": "object"
+ },
+ "read": {
+ "description": "What the distribution reads: the captures together (into the program's bits when each writes one), or the final state.",
+ "type": "string"
+ },
+ "simulated_qubits": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "trace": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "read",
+ "outcome_bits",
+ "populations",
+ "simulated_qubits",
+ "density_hash",
+ "integrator",
+ "device",
+ "calibration"
+ ],
+ "type": "object"
+ },
+ "qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "description": "A result's receipt: an Ed25519 signature, by the key it names, over digest = BLAKE3(\"wai:quantum-service-receipt\\x02\" ‖ len ‖ request ‖ len ‖ result), each of request and result in its RFC 8785 canonical text (the result without its receipt member), each length 8 bytes big-endian. Whatever members the request and the result hold are sealed, the result's engine and schema among them. The first receipts (no canon member, $defs/first) sealed their writer's compact text under the domain ending \\x01; they still verify. wai/extensions/quantum-providers.md section 8.2 states the seal in full, and section 8.4 what a verifier checks.",
+ "properties": {
+ "alg": {
+ "const": "ed25519"
+ },
+ "canon": {
+ "const": "rfc8785",
+ "description": "The canonical form the digest is taken over."
+ },
+ "digest": {
+ "description": "The digest signed, 32 bytes in lower-case hex.",
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "key": {
+ "description": "The signing key, 32 bytes in lower-case hex.",
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "signature": {
+ "description": "The signature, 64 bytes in lower-case hex.",
+ "maxLength": 128,
+ "minLength": 128,
+ "pattern": "^[0-9a-f]{128}$",
+ "type": "string"
+ },
+ "time": {
+ "additionalProperties": false,
+ "description": "When the receipt was issued and, where it states one, until when it is offered, by the signer's clock, in milliseconds since 1970-01-01T00:00:00Z. Absent on a receipt that seals no time (one from a host with no clock, or sealed before receipts stated one). With it, the digest is taken under the domain ending \\x03 and ends with len ‖ the canonical text of this member, so the time cannot be changed or taken off (section 8.2).",
+ "properties": {
+ "issued_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "not_after_ms": {
+ "description": "The first moment the receipt is no longer offered: after issued_ms.",
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "issued_ms"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "alg",
+ "canon",
+ "key",
+ "digest",
+ "signature"
+ ],
+ "title": "wai.quantum.receipt/2",
+ "type": "object"
+ },
+ {
+ "description": "The first form, before canon: the digest is over the compact text its writer wrote of each, members in the document's order (section 8.2 of wai/extensions/quantum-providers.md), under the domain ending \\x01. Never written now; still verified.",
+ "properties": {
+ "alg": {
+ "const": "ed25519"
+ },
+ "digest": {
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "key": {
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "signature": {
+ "maxLength": 128,
+ "minLength": 128,
+ "pattern": "^[0-9a-f]{128}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "alg",
+ "key",
+ "digest",
+ "signature"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "repaired": {
+ "description": "A job asked to repair its program first: the program that ran, each repair, and what needs a person.",
+ "properties": {
+ "needs_person": {
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "qasm": {
+ "type": "string"
+ },
+ "repairs": {
+ "items": {
+ "properties": {
+ "by": {
+ "enum": [
+ "engine",
+ "proposal"
+ ]
+ },
+ "code": {
+ "type": "string"
+ },
+ "edits": {
+ "items": {
+ "properties": {
+ "after": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "before": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "line": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "flagged": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "rule": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "by",
+ "edits"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "schema": {
+ "const": "wai.quantum.job-result/1",
+ "description": "The schema the result follows."
+ },
+ "shadow": {
+ "description": "A classical method's answer beside a provider's, and their distance, for a contract job a provider answered; or why there is none. Its request can be run again by anyone, to the same counts.",
+ "properties": {
+ "accuracy": {
+ "description": "What the method promises of the numbers it gave.",
+ "properties": {
+ "approximate": {
+ "const": true,
+ "description": "A simulated result whose provider states its simulator is approximate."
+ },
+ "batch": {
+ "type": "integer"
+ },
+ "below_table": {
+ "description": "The bit-exact method: phase gates of its lowering that are not zero and ran as no phase, within the reader's tolerance (1e-14 of a turn) of a whole turn. `angles` counts those gates: one angle written may be several, and another count in another form of the same program.",
+ "properties": {
+ "angles": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "largest_radians": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "angles",
+ "largest_radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "bound": {
+ "description": "The bound this result is held to, by method: a pulse run (class bounded): every probability within this of the exact solution of the model's master equation, the truncation bound and the rounding estimate together; stabilizer_rank's sampled mode (class estimate): the bound on the distance of the estimated state from the state, holding with the probability confidence states.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "class": {
+ "description": "bit-exact: the same bits on every machine; exact: no approximation beyond double-precision rounding; single: single-precision arithmetic; bounded: a rigorous bound beside each value; estimate: a statistical estimate with its standard error; heuristic: an approximation with an estimate of its error, not a bound; measured: counts a processor returned through the person's provider, not reproducible by recomputation; simulated: counts a provider's simulator or emulator returned, measured on no device. Results sealed before simulated existed label a provider's simulator measured, and are read by its provenance. none: the run was stopped at its contract's energy ceiling and gave no answer.",
+ "enum": [
+ "bit-exact",
+ "exact",
+ "single",
+ "bounded",
+ "estimate",
+ "heuristic",
+ "measured",
+ "simulated",
+ "none"
+ ]
+ },
+ "confidence": {
+ "description": "The probability a stated bound holds.",
+ "type": "number"
+ },
+ "device": {
+ "type": "string"
+ },
+ "discarded_weight": {
+ "type": "number"
+ },
+ "fidelity_estimate": {
+ "type": "number"
+ },
+ "fusion": {
+ "type": "integer"
+ },
+ "gate_applications": {
+ "type": "integer"
+ },
+ "global_phase": {
+ "description": "The bit-exact method: method statevector's state of the program that ran is e^(i radians) times the amplitudes given, since this method's lowering drops the phase of rz, rx, ry, rxx, ryy, rzz and u. Absent when that is 1. The language's own state can differ from both: its U is e^(i theta / 2) times the matrix both methods take as u, the reader drops an uncontrolled gphase (Q206), and a compiled job's program is the compile's, right up to a global phase.",
+ "properties": {
+ "note": {
+ "type": "string"
+ },
+ "radians": {
+ "description": "The same in radians, in (-pi, pi].",
+ "type": "number"
+ },
+ "turns_over_2_33": {
+ "description": "The phase exactly, in 2^33rds of a turn.",
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "turns_over_2_33",
+ "radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "histories": {
+ "type": "integer"
+ },
+ "max_bond": {
+ "type": "integer"
+ },
+ "max_bond_used": {
+ "type": "integer"
+ },
+ "max_cut": {
+ "type": "integer"
+ },
+ "max_weight": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "moved_angles": {
+ "description": "The bit-exact method: phase gates of its lowering within the reader's tolerance (1e-14 of a turn) of a dyadic angle, by more than a double's rounding of it, that ran as it. `angles` counts those gates.",
+ "properties": {
+ "angles": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "largest_radians": {
+ "type": "number"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "angles",
+ "largest_radians",
+ "note"
+ ],
+ "type": "object"
+ },
+ "norm": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "order_work": {
+ "type": "number"
+ },
+ "rounding_estimate": {
+ "description": "A pulse run: an estimate of floating-point rounding beside the bound, not a proof.",
+ "type": "number"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "t_count": {
+ "description": "stabilizer_rank: the T and T† gates the program lowers to.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "terms": {
+ "description": "stabilizer_rank: the stabilizer branches summed (2^t exactly), or drawn.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "threshold": {
+ "type": "number"
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "trajectories": {
+ "type": "integer"
+ },
+ "truncation_bound": {
+ "description": "A pulse run: the proved bound, in the trace norm, on what the integrator's series leaves out.",
+ "type": "number"
+ },
+ "truncations": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "class"
+ ],
+ "type": "object"
+ },
+ "code": {
+ "type": "string"
+ },
+ "counts": {
+ "additionalProperties": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "properties": {
+ "computed": {
+ "type": "boolean"
+ },
+ "denominator": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "hellinger_fidelity": {
+ "type": "number"
+ },
+ "numerator": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "sampling_tvd_bound": {
+ "description": "A bound on the total variation the shots alone leave between two samples of one distribution, on average (section 8.7): each outcome's pooled count split as a fair coin splits it.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "total_variation": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "computed"
+ ],
+ "type": "object"
+ },
+ "distinct_outcomes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "elapsed_ms": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "omitted_shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "ran": {
+ "type": "boolean"
+ },
+ "request": {
+ "properties": {
+ "method": {
+ "type": "string"
+ },
+ "qasm": {
+ "type": "string"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "route": {
+ "type": "string"
+ },
+ "shots": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "ran"
+ ],
+ "type": "object"
+ },
+ "shots": {
+ "description": "The shots, where the method names them in the result (trajectories, provider).",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state_hash": {
+ "description": "The bit-exact method's statevector hash (BLAKE3, hex): the same on every machine.",
+ "type": "string"
+ },
+ "stopped": {
+ "description": "A run stopped at its contract's max_joules by a live reading: it gave no answer, and accuracy.class is none (wai/extensions/quantum-providers.md section 8.7).",
+ "properties": {
+ "at": {
+ "const": "max_joules"
+ },
+ "elapsed_ms": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "joules": {
+ "description": "What the reading had come to, at or past the ceiling.",
+ "type": "number"
+ },
+ "max_joules": {
+ "type": "number"
+ },
+ "read": {
+ "description": "What read the run, and what that covers.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "at",
+ "joules",
+ "max_joules",
+ "elapsed_ms",
+ "read"
+ ],
+ "type": "object"
+ },
+ "target": {
+ "description": "A run on a device target: which target (its hash, as its receipt binds it), its calibration snapshot, where the program was placed and why, and the noise derived from the target.",
+ "properties": {
+ "calibration": {
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "compiled": {
+ "description": "The program as compiled for the target, in the form a provider's result gives its own: its text (OpenQASM 3 on physical qubits $p, logical qubit i measured into c[i] where it ends), its layouts, and the equivalence checker's verdict on it against the request's program, decided before anything ran (a refuted one is not run).",
+ "properties": {
+ "equivalence": {
+ "description": "The equivalence checker's verdict on the compiled program against the request's program, decided before it was sent: proved, or undecided within the budget it states (a client sends nothing it refutes), with each route's finding and the residual Z rotations the statement takes in.",
+ "properties": {
+ "arithmetic": {
+ "description": "Of a proof: exact (integers in a cyclotomic field, or exact phases), or doubles within tolerance.",
+ "enum": [
+ "exact",
+ "tolerance"
+ ]
+ },
+ "budget": {
+ "description": "The counts each route might spend (no clock): stimuli, state_vector_qubits, diagram_nodes, diagram_steps, zx_rewrites, exact_bits, seed.",
+ "type": "object"
+ },
+ "counterexample": {
+ "description": "Of a refutation: what shows it (found_by: stimuli, decision_diagram, zx or shape), with an input and the outcomes that differ, entries of the miter's matrix, or wires that cross.",
+ "type": "object"
+ },
+ "final_layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "final_layout_from": {
+ "description": "Where each logical qubit's end was read from, when it was read from the measurements.",
+ "type": "string"
+ },
+ "gates": {
+ "description": "Primitive gates of the source and of the compiled program.",
+ "type": "object"
+ },
+ "global_phase": {
+ "description": "The phase the decision diagram found, as [re, im].",
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "notion": {
+ "description": "unitary: one unitary up to a global phase; measured: up to phases on the computational basis just before the final measurements.",
+ "enum": [
+ "unitary",
+ "measured"
+ ]
+ },
+ "proved_by": {
+ "description": "The routes that proved it: decision_diagram, zx.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "refuted_by": {
+ "description": "The routes that refuted it: stimuli, decision_diagram, zx, shape.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "residual": {
+ "description": "The Z rotations the compiled program leaves unapplied before its measurements, each a physical qubit and m/2^k of a turn, which the statement takes in.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "residual_is": {
+ "type": "string"
+ },
+ "routes": {
+ "description": "Each route's finding: stimuli, decision_diagram, zx, with its outcome and its counts.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "statement": {
+ "description": "The statement decided, in words.",
+ "type": "string"
+ },
+ "tolerance": {
+ "description": "With arithmetic tolerance: within what two doubles were taken equal.",
+ "type": "number"
+ },
+ "verdict": {
+ "enum": [
+ "proved",
+ "refuted",
+ "undecided"
+ ]
+ },
+ "version": {
+ "description": "The verdict's form: 1.",
+ "type": "integer"
+ },
+ "why": {
+ "description": "How it was decided, or why no route decided it.",
+ "type": "string"
+ },
+ "wires": {
+ "description": "The miter's wires: the logical qubits, the physical qubits used, the layout, the ancillas and the closing exchanges.",
+ "type": "object"
+ }
+ },
+ "required": [
+ "verdict",
+ "notion",
+ "statement",
+ "why"
+ ],
+ "type": "object"
+ },
+ "final_layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "layout": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "qasm3": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "qasm3",
+ "layout",
+ "final_layout",
+ "equivalence"
+ ],
+ "type": "object"
+ },
+ "hash": {
+ "type": "string"
+ },
+ "hash_is": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "noise": {
+ "description": "The noise model derived from the target's calibration: its channels, durations and idling, and each qubit's readout; where the target states coherent errors, leakage, static ZZ or its errors' standard deviations, applied and ignored say what the model applied of them and what it leaves out.",
+ "type": "object"
+ },
+ "placement": {
+ "description": "The native gate set, the layout and routes chosen, the swaps, the expected success beside the fewest-swaps layout's (and, where the target states its gates' errors' standard deviations, expected_success_interval at one standard deviation each way), and the check of the compiled program.",
+ "type": "object"
+ },
+ "source": {
+ "properties": {
+ "format": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "name",
+ "hash"
+ ],
+ "type": "object"
+ },
+ "timing": {
+ "description": "A program that states durations (delay, box, stretch) the method does not apply: said so, with the reader's code.",
+ "properties": {
+ "applied": {
+ "type": "boolean"
+ },
+ "code": {
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "applied",
+ "why"
+ ],
+ "type": "object"
+ },
+ "verdict": {
+ "description": "How far the engine checked an answer, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof; and the layer that decided it, with that layer's limits. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided), and layer names what decided them: exact simulation, a stabilizer check, checked rewrites, the answer held to its problem's own checks, agreement of the run's samples with a simulation, samples held to a distribution, physical consistency, random states, or unchecked. A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
+ "properties": {
+ "critique": {
+ "description": "The program's smells, each with its lines.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "executed": {
+ "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled_distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "method": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "holds": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "intent": {
+ "items": {
+ "description": "One intent's check: what it asked, whether it held, how strong the check was, how it was made, the layer it stands on and that layer's limits.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "counts": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The program's distribution, when its outcomes are few enough to list.",
+ "type": "object"
+ },
+ "expected": {
+ "description": "An expectation intent: the value the intent states.",
+ "type": "number"
+ },
+ "fit": {
+ "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "dof": {
+ "type": "integer"
+ },
+ "impossible": {
+ "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
+ "type": [
+ "integer",
+ "array",
+ "boolean"
+ ]
+ },
+ "impossible_outcomes": {
+ "description": "How many outcomes sampled the stated distribution gives probability 0.",
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "p_value": {
+ "type": "number"
+ },
+ "rejected": {
+ "type": "boolean"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "smallest_expected": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "statistic": {
+ "type": "number"
+ },
+ "test": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "global_phase": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "how": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "distribution",
+ "equivalent",
+ "prepares",
+ "sampled",
+ "compiled",
+ "expectation",
+ "outcomes",
+ "conserves",
+ "counts",
+ "agrees",
+ "landscape"
+ ]
+ },
+ "largest_gaps": {
+ "items": {
+ "properties": {
+ "intent": {
+ "type": "number"
+ },
+ "outcome": {
+ "type": "string"
+ },
+ "program": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer the check stands on: unchecked when it was not decided.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "method": {
+ "description": "A sampled intent: the method the samples were run by.",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observable": {
+ "description": "An expectation intent: the observable.",
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "holds",
+ "fails",
+ "unchecked"
+ ]
+ },
+ "outcomes": {
+ "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
+ "type": "integer"
+ },
+ "outside": {
+ "description": "An outcomes or a conserves intent: how much lies outside, as probability of the exact distribution or as a fraction of the samples.",
+ "type": "number"
+ },
+ "said": {
+ "description": "An energy-landscape job's own word: solved, missed, failed or unchecked.",
+ "type": "string"
+ },
+ "samples": {
+ "description": "An outcomes or a conserves intent checked on the job's counts: how many samples.",
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "strength": {
+ "enum": [
+ "proof",
+ "evidence",
+ "none"
+ ]
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "value": {
+ "description": "An expectation intent: the observable's exact value on the program's state.",
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "outcome",
+ "strength",
+ "how"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer that decided the intents: the weakest of the checks' layers, and unchecked when an intent was not decided or none was given. Absent from a verdict sealed before layers were named.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "level": {
+ "enum": [
+ "refused",
+ "parsed",
+ "executed",
+ "evidence",
+ "proof"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "parsed": {
+ "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "diagnostics": {
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "ok": {
+ "type": "boolean"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "text": {
+ "description": "The refusal as the reader wrote it, with its line and code.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "rank": {
+ "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
+ "maximum": 4,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "refusal": {
+ "description": "For a refused job: its message and its codes.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "repairs": {
+ "description": "Each edit a repair made, with the code it answered and the lines it changed.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "wai.quantum.verdict/1"
+ },
+ "sealed": {
+ "type": "boolean"
+ },
+ "statement": {
+ "description": "The level in one plain line.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "level",
+ "rank",
+ "holds",
+ "statement",
+ "parsed",
+ "executed",
+ "intent",
+ "critique",
+ "repairs"
+ ],
+ "title": "wai.quantum.verdict/1",
+ "type": "object"
+ },
+ "warning": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "method",
+ "qubits",
+ "gates",
+ "accuracy"
+ ],
+ "title": "wai.quantum.job-result/1",
+ "type": "object"
+ },
+ "status": {
+ "enum": [
+ "done",
+ "failed"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "index",
+ "request",
+ "status",
+ "path"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "receipt": {
+ "description": "A result's receipt: an Ed25519 signature, by the key it names, over digest = BLAKE3(\"wai:quantum-service-receipt\\x02\" ‖ len ‖ request ‖ len ‖ result), each of request and result in its RFC 8785 canonical text (the result without its receipt member), each length 8 bytes big-endian. Whatever members the request and the result hold are sealed, the result's engine and schema among them. The first receipts (no canon member, $defs/first) sealed their writer's compact text under the domain ending \\x01; they still verify. wai/extensions/quantum-providers.md section 8.2 states the seal in full, and section 8.4 what a verifier checks.",
+ "properties": {
+ "alg": {
+ "const": "ed25519"
+ },
+ "canon": {
+ "const": "rfc8785",
+ "description": "The canonical form the digest is taken over."
+ },
+ "digest": {
+ "description": "The digest signed, 32 bytes in lower-case hex.",
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "key": {
+ "description": "The signing key, 32 bytes in lower-case hex.",
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "signature": {
+ "description": "The signature, 64 bytes in lower-case hex.",
+ "maxLength": 128,
+ "minLength": 128,
+ "pattern": "^[0-9a-f]{128}$",
+ "type": "string"
+ },
+ "time": {
+ "additionalProperties": false,
+ "description": "When the receipt was issued and, where it states one, until when it is offered, by the signer's clock, in milliseconds since 1970-01-01T00:00:00Z. Absent on a receipt that seals no time (one from a host with no clock, or sealed before receipts stated one). With it, the digest is taken under the domain ending \\x03 and ends with len ‖ the canonical text of this member, so the time cannot be changed or taken off (section 8.2).",
+ "properties": {
+ "issued_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "not_after_ms": {
+ "description": "The first moment the receipt is no longer offered: after issued_ms.",
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "issued_ms"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "alg",
+ "canon",
+ "key",
+ "digest",
+ "signature"
+ ],
+ "title": "wai.quantum.receipt/2",
+ "type": "object"
+ },
+ "root": {
+ "description": "The Merkle root of the items' leaves, in hex (domains moq-jwp:merkle-leaf and moq-jwp:merkle-node, version 1).",
+ "type": "string"
+ },
+ "schema": {
+ "const": "wai.quantum.set/1"
+ }
+ },
+ "required": [
+ "format",
+ "count",
+ "done",
+ "failed",
+ "root",
+ "items"
+ ],
+ "title": "wai.quantum.set/1",
+ "type": "object"
+ },
+ {
+ "description": "The run's result (section 6.4): its outcome, the counts of its shots, its calls and the fuel they used, the modules' digests, the digest of every call, the accuracy, the energy, and the receipt.",
+ "properties": {
+ "accuracy": {
+ "properties": {
+ "class": {
+ "enum": [
+ "exact",
+ "bit-exact"
+ ]
+ }
+ },
+ "required": [
+ "class"
+ ],
+ "type": "object"
+ },
+ "callouts": {
+ "description": "The calls into the modules that returned.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "counts": {
+ "additionalProperties": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "description": "Each outcome and how often it came, keyed by the program's bits with the highest first.",
+ "type": "object"
+ },
+ "energy": {
+ "description": "The first version: exactly {\"unmetered\": why}. The second (section 11.5): {\"run\", \"callouts\"}, the run's figure (a reading where the host meters it, the unmetered form with why where it does not, never zero) and each callout's (the unmetered form: no meter resolves one call).",
+ "type": "object"
+ },
+ "fault": {
+ "description": "Where the run stopped and why (section 6.2): its reason, its shot, its phase, the module, the fuel used, and the callout and budget where they apply.",
+ "properties": {
+ "budget": {
+ "description": "The budget that ran out, where one did.",
+ "type": "string"
+ },
+ "callout": {
+ "type": "string"
+ },
+ "fuel": {
+ "description": "The fuel the stopped call or instance used.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "module": {
+ "type": "string"
+ },
+ "phase": {
+ "description": "Where in the shot it stopped: a call, or an instance's seed, prior or init.",
+ "type": "string"
+ },
+ "reason": {
+ "description": "One of section 6.2's reasons.",
+ "type": "string"
+ },
+ "shot": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reason",
+ "shot",
+ "phase"
+ ],
+ "type": "object"
+ },
+ "format": {
+ "enum": [
+ "wai.quantum.wasmq.result/1",
+ "wai.quantum.wasmq.result/2"
+ ]
+ },
+ "fuel": {
+ "description": "The fuel used, in all and in the instances' seeds, priors and init; the budgets; and each callout's calls, fuel and most in one call.",
+ "properties": {
+ "budget": {
+ "type": "object"
+ },
+ "callouts": {
+ "type": "object"
+ },
+ "instances": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "used": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "used",
+ "instances",
+ "budget",
+ "callouts"
+ ],
+ "type": "object"
+ },
+ "method": {
+ "enum": [
+ "stabilizer",
+ "exact"
+ ]
+ },
+ "modules": {
+ "items": {
+ "properties": {
+ "blake3": {
+ "description": "A BLAKE3 digest, 64 lower-case hexadecimal digits.",
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "blake3"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "profile": {
+ "enum": [
+ "wai.quantum.wasmq/1",
+ "wai.quantum.wasmq/2"
+ ]
+ },
+ "qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "receipt": {
+ "description": "The job receipt every job takes (receipt.v2.json).",
+ "type": "object"
+ },
+ "seed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots_run": {
+ "description": "The shots that ended: all of them, or those before the fault.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "status": {
+ "description": "ok: every shot ran; fault: the run stopped, and fault says where and why.",
+ "enum": [
+ "ok",
+ "fault"
+ ]
+ },
+ "transcript_blake3": {
+ "anyOf": [
+ {
+ "description": "A BLAKE3 digest, 64 lower-case hexadecimal digits.",
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The digest of every call's inputs, outputs and fuel, in order, for a run that ended ok; null for one that faulted."
+ }
+ },
+ "required": [
+ "format",
+ "profile",
+ "status",
+ "method",
+ "qubits",
+ "shots",
+ "shots_run",
+ "seed",
+ "counts",
+ "callouts",
+ "fuel",
+ "modules",
+ "transcript_blake3",
+ "accuracy",
+ "energy"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A program run (wai-quantum qudit run): the counts, the amplitudes asked for, the state's digest and norm, the constants' digest, the work and the accuracy.",
+ "properties": {
+ "accuracy": {
+ "description": "bit-exact: the same integers on every host; bound is the 2-norm distance from the ideal state at most (bound_units in units of 2^-30), and outcomes the total variation between the law the counts are drawn from and the ideal outcome distribution at most (quantum-sim.md section 9.4).",
+ "properties": {
+ "bound": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "bound_units": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "class": {
+ "const": "bit-exact"
+ },
+ "note": {
+ "type": "string"
+ },
+ "outcomes": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "class",
+ "bound",
+ "bound_units",
+ "outcomes",
+ "note"
+ ],
+ "type": "object"
+ },
+ "amplitudes": {
+ "additionalProperties": {
+ "properties": {
+ "im": {
+ "type": "integer"
+ },
+ "re": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "re",
+ "im"
+ ],
+ "type": "object"
+ },
+ "description": "Each amplitude asked for, by its digits: the integers it is at 2^-30.",
+ "type": "object"
+ },
+ "answer": {
+ "const": "run"
+ },
+ "constants": {
+ "description": "The digest of every constant the dimension's gates read: its roots of unity and its Fourier entries (quantum-sim.md section 9.2).",
+ "properties": {
+ "blake3": {
+ "description": "A BLAKE3 digest, 64 lower-case hexadecimal digits.",
+ "maxLength": 64,
+ "minLength": 64,
+ "type": "string"
+ }
+ },
+ "required": [
+ "blake3"
+ ],
+ "type": "object"
+ },
+ "counts": {
+ "additionalProperties": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "description": "Each outcome drawn and how often, keyed by the qudits' digits with the highest qudit first; at most 65536 outcomes are listed, the most frequent first.",
+ "type": "object"
+ },
+ "d": {
+ "description": "The register's dimension: the levels of each qudit.",
+ "enum": [
+ 2,
+ 3,
+ 4,
+ 6
+ ]
+ },
+ "distinct_outcomes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "energy": {
+ "anyOf": [
+ {
+ "properties": {
+ "service_kwh": {
+ "description": "A provider job: the provider's own figure.",
+ "type": "number"
+ },
+ "service_kwh_is": {
+ "type": "string"
+ },
+ "unmetered": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "unmetered"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "attribution": {
+ "description": "Whose energy it is: the job's worker process, or none (the processor packages' over the job's window, every process on the host in it).",
+ "enum": [
+ "process",
+ "none"
+ ]
+ },
+ "concurrent_jobs": {
+ "description": "Other jobs that ran on the host during the window.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "counter": {
+ "description": "The package counter as seen: the longest it went between updates, and the smallest step it took.",
+ "properties": {
+ "step_uj": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "update_us": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "coverage": {
+ "enum": [
+ "whole",
+ "partial"
+ ]
+ },
+ "covers": {
+ "type": "string"
+ },
+ "cpu_ms": {
+ "type": "integer"
+ },
+ "declared": {
+ "description": "What the stated uncertainty covers, and what it does not.",
+ "type": "string"
+ },
+ "energy_counter_filtering": {
+ "type": "string"
+ },
+ "energy_provenance": {
+ "type": "string"
+ },
+ "energy_uncertainty": {
+ "properties": {
+ "relative_ppm": {
+ "type": "integer"
+ },
+ "window_us": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "excludes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "joules_micro": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "packages": {
+ "description": "The processor packages read.",
+ "minimum": 1,
+ "type": "integer"
+ },
+ "source": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules_micro",
+ "energy_provenance",
+ "coverage"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "The CPU energy of the job's process as the kernel counts it, with its uncertainty and what it leaves out, or unmetered with the reason."
+ },
+ "engine": {
+ "description": "The engine that made the result: the wai-quantum crate's name and version.",
+ "properties": {
+ "name": {
+ "const": "wai-quantum"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "version"
+ ],
+ "type": "object"
+ },
+ "gates": {
+ "description": "How many gates the program holds.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "omitted_shots": {
+ "description": "The shots of the outcomes not listed.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "outcomes": {
+ "description": "How an outcome is written.",
+ "type": "string"
+ },
+ "qudits": {
+ "maximum": 24,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "receipt": {
+ "description": "A result's receipt: an Ed25519 signature, by the key it names, over digest = BLAKE3(\"wai:quantum-service-receipt\\x02\" ‖ len ‖ request ‖ len ‖ result), each of request and result in its RFC 8785 canonical text (the result without its receipt member), each length 8 bytes big-endian. Whatever members the request and the result hold are sealed, the result's engine and schema among them. The first receipts (no canon member, $defs/first) sealed their writer's compact text under the domain ending \\x01; they still verify. wai/extensions/quantum-providers.md section 8.2 states the seal in full, and section 8.4 what a verifier checks.",
+ "properties": {
+ "alg": {
+ "const": "ed25519"
+ },
+ "canon": {
+ "const": "rfc8785",
+ "description": "The canonical form the digest is taken over."
+ },
+ "digest": {
+ "description": "The digest signed, 32 bytes in lower-case hex.",
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "key": {
+ "description": "The signing key, 32 bytes in lower-case hex.",
+ "maxLength": 64,
+ "minLength": 64,
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "signature": {
+ "description": "The signature, 64 bytes in lower-case hex.",
+ "maxLength": 128,
+ "minLength": 128,
+ "pattern": "^[0-9a-f]{128}$",
+ "type": "string"
+ },
+ "time": {
+ "additionalProperties": false,
+ "description": "When the receipt was issued and, where it states one, until when it is offered, by the signer's clock, in milliseconds since 1970-01-01T00:00:00Z. Absent on a receipt that seals no time (one from a host with no clock, or sealed before receipts stated one). With it, the digest is taken under the domain ending \\x03 and ends with len ‖ the canonical text of this member, so the time cannot be changed or taken off (section 8.2).",
+ "properties": {
+ "issued_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "not_after_ms": {
+ "description": "The first moment the receipt is no longer offered: after issued_ms.",
+ "maximum": 9007199254740991,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "issued_ms"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "alg",
+ "canon",
+ "key",
+ "digest",
+ "signature"
+ ],
+ "title": "wai.quantum.receipt/2",
+ "type": "object"
+ },
+ "schema": {
+ "const": "wai.quantum.qudit/1"
+ },
+ "seed": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "description": "The final state: its BLAKE3 (quantum-sim.md section 9.6), its amplitudes, and the sum of their squared moduli at 2^-30.",
+ "properties": {
+ "amplitudes": {
+ "minimum": 2,
+ "type": "integer"
+ },
+ "blake3": {
+ "description": "A BLAKE3 digest, 64 lower-case hexadecimal digits.",
+ "maxLength": 64,
+ "minLength": 64,
+ "type": "string"
+ },
+ "norm2": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "blake3",
+ "amplitudes",
+ "norm2"
+ ],
+ "type": "object"
+ },
+ "verdict": {
+ "description": "For a job that gave an intent: the engine's verdict of its counts, sealed with them.",
+ "properties": {
+ "critique": {
+ "description": "The program's smells, each with its lines.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "executed": {
+ "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled_distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "method": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "holds": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "intent": {
+ "items": {
+ "description": "One intent's check: what it asked, whether it held, how strong the check was, how it was made, the layer it stands on and that layer's limits.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "counts": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The program's distribution, when its outcomes are few enough to list.",
+ "type": "object"
+ },
+ "expected": {
+ "description": "An expectation intent: the value the intent states.",
+ "type": "number"
+ },
+ "fit": {
+ "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "dof": {
+ "type": "integer"
+ },
+ "impossible": {
+ "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
+ "type": [
+ "integer",
+ "array",
+ "boolean"
+ ]
+ },
+ "impossible_outcomes": {
+ "description": "How many outcomes sampled the stated distribution gives probability 0.",
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "p_value": {
+ "type": "number"
+ },
+ "rejected": {
+ "type": "boolean"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "smallest_expected": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "statistic": {
+ "type": "number"
+ },
+ "test": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "global_phase": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "how": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "distribution",
+ "equivalent",
+ "prepares",
+ "sampled",
+ "compiled",
+ "expectation",
+ "outcomes",
+ "conserves",
+ "counts",
+ "agrees",
+ "landscape"
+ ]
+ },
+ "largest_gaps": {
+ "items": {
+ "properties": {
+ "intent": {
+ "type": "number"
+ },
+ "outcome": {
+ "type": "string"
+ },
+ "program": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer the check stands on: unchecked when it was not decided.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "method": {
+ "description": "A sampled intent: the method the samples were run by.",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observable": {
+ "description": "An expectation intent: the observable.",
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "holds",
+ "fails",
+ "unchecked"
+ ]
+ },
+ "outcomes": {
+ "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
+ "type": "integer"
+ },
+ "outside": {
+ "description": "An outcomes or a conserves intent: how much lies outside, as probability of the exact distribution or as a fraction of the samples.",
+ "type": "number"
+ },
+ "said": {
+ "description": "An energy-landscape job's own word: solved, missed, failed or unchecked.",
+ "type": "string"
+ },
+ "samples": {
+ "description": "An outcomes or a conserves intent checked on the job's counts: how many samples.",
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "strength": {
+ "enum": [
+ "proof",
+ "evidence",
+ "none"
+ ]
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "value": {
+ "description": "An expectation intent: the observable's exact value on the program's state.",
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "outcome",
+ "strength",
+ "how"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer that decided the intents: the weakest of the checks' layers, and unchecked when an intent was not decided or none was given. Absent from a verdict sealed before layers were named.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "level": {
+ "enum": [
+ "refused",
+ "parsed",
+ "executed",
+ "evidence",
+ "proof"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "parsed": {
+ "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "diagnostics": {
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "ok": {
+ "type": "boolean"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "text": {
+ "description": "The refusal as the reader wrote it, with its line and code.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "rank": {
+ "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
+ "maximum": 4,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "refusal": {
+ "description": "For a refused job: its message and its codes.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "repairs": {
+ "description": "Each edit a repair made, with the code it answered and the lines it changed.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "wai.quantum.verdict/1"
+ },
+ "sealed": {
+ "type": "boolean"
+ },
+ "statement": {
+ "description": "The level in one plain line.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "level",
+ "rank",
+ "holds",
+ "statement",
+ "parsed",
+ "executed",
+ "intent",
+ "critique",
+ "repairs"
+ ],
+ "title": "wai.quantum.verdict/1",
+ "type": "object"
+ },
+ "work": {
+ "description": "Amplitudes touched: each gate's, the register walked for the draws and the hash, and the shots.",
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "answer",
+ "d",
+ "qudits",
+ "gates",
+ "shots",
+ "seed",
+ "counts",
+ "distinct_outcomes",
+ "omitted_shots",
+ "outcomes",
+ "state",
+ "constants",
+ "work",
+ "accuracy"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A job's result; a set's; on the job service, a wasmQ envelope's run (method wasmq) or a qudit job's (method qudit)."
+ },
+ "started_ms": {
+ "type": "integer"
+ },
+ "status": {
+ "description": "interrupted: the job service stopped while the job ran, after it had run it again once from its request, so it has no result; error says so.",
+ "enum": [
+ "queued",
+ "running",
+ "done",
+ "failed",
+ "cancelled",
+ "interrupted"
+ ]
+ },
+ "submitted_ms": {
+ "description": "The job service: when it was submitted, in milliseconds since 1970.",
+ "type": "integer"
+ },
+ "verdict": {
+ "description": "How far the engine checked an answer, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof; and the layer that decided it, with that layer's limits. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided), and layer names what decided them: exact simulation, a stabilizer check, checked rewrites, the answer held to its problem's own checks, agreement of the run's samples with a simulation, samples held to a distribution, physical consistency, random states, or unchecked. A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
+ "properties": {
+ "critique": {
+ "description": "The program's smells, each with its lines.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "executed": {
+ "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled_distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "method": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "holds": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "intent": {
+ "items": {
+ "description": "One intent's check: what it asked, whether it held, how strong the check was, how it was made, the layer it stands on and that layer's limits.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "counts": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The program's distribution, when its outcomes are few enough to list.",
+ "type": "object"
+ },
+ "expected": {
+ "description": "An expectation intent: the value the intent states.",
+ "type": "number"
+ },
+ "fit": {
+ "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "dof": {
+ "type": "integer"
+ },
+ "impossible": {
+ "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
+ "type": [
+ "integer",
+ "array",
+ "boolean"
+ ]
+ },
+ "impossible_outcomes": {
+ "description": "How many outcomes sampled the stated distribution gives probability 0.",
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "p_value": {
+ "type": "number"
+ },
+ "rejected": {
+ "type": "boolean"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "smallest_expected": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "statistic": {
+ "type": "number"
+ },
+ "test": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "global_phase": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "how": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "distribution",
+ "equivalent",
+ "prepares",
+ "sampled",
+ "compiled",
+ "expectation",
+ "outcomes",
+ "conserves",
+ "counts",
+ "agrees",
+ "landscape"
+ ]
+ },
+ "largest_gaps": {
+ "items": {
+ "properties": {
+ "intent": {
+ "type": "number"
+ },
+ "outcome": {
+ "type": "string"
+ },
+ "program": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer the check stands on: unchecked when it was not decided.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "method": {
+ "description": "A sampled intent: the method the samples were run by.",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observable": {
+ "description": "An expectation intent: the observable.",
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "holds",
+ "fails",
+ "unchecked"
+ ]
+ },
+ "outcomes": {
+ "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
+ "type": "integer"
+ },
+ "outside": {
+ "description": "An outcomes or a conserves intent: how much lies outside, as probability of the exact distribution or as a fraction of the samples.",
+ "type": "number"
+ },
+ "said": {
+ "description": "An energy-landscape job's own word: solved, missed, failed or unchecked.",
+ "type": "string"
+ },
+ "samples": {
+ "description": "An outcomes or a conserves intent checked on the job's counts: how many samples.",
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "strength": {
+ "enum": [
+ "proof",
+ "evidence",
+ "none"
+ ]
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "value": {
+ "description": "An expectation intent: the observable's exact value on the program's state.",
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "outcome",
+ "strength",
+ "how"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer that decided the intents: the weakest of the checks' layers, and unchecked when an intent was not decided or none was given. Absent from a verdict sealed before layers were named.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "level": {
+ "enum": [
+ "refused",
+ "parsed",
+ "executed",
+ "evidence",
+ "proof"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "parsed": {
+ "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "diagnostics": {
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "ok": {
+ "type": "boolean"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "text": {
+ "description": "The refusal as the reader wrote it, with its line and code.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "rank": {
+ "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
+ "maximum": 4,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "refusal": {
+ "description": "For a refused job: its message and its codes.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "repairs": {
+ "description": "Each edit a repair made, with the code it answered and the lines it changed.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "wai.quantum.verdict/1"
+ },
+ "sealed": {
+ "type": "boolean"
+ },
+ "statement": {
+ "description": "The level in one plain line.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "level",
+ "rank",
+ "holds",
+ "statement",
+ "parsed",
+ "executed",
+ "intent",
+ "critique",
+ "repairs"
+ ],
+ "title": "wai.quantum.verdict/1",
+ "type": "object"
+ },
+ "why": {
+ "description": "Why the plan chose the method.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "request"
+ ],
+ "title": "wai.quantum.job/1",
+ "type": "object"
+ },
+ {
+ "description": "What the service would do with a job or a set, running nothing: the plan's method and why, its qubits, memory and work, the estimated time and energy (each with its basis, or why there is none), the bounds that apply, where the client stands against its limits, each item of a set, and whether the service would take it now, or the refusal it would give.",
+ "properties": {
+ "accepted": {
+ "description": "Whether the service would take it now, by every limit, its reading held to what the submission's would take; the MCP tools plan it as their runs run it, its verdict asked.",
+ "type": "boolean"
+ },
+ "bounds": {
+ "additionalProperties": true,
+ "description": "The bounds that apply here: memory, time, queue, items of a set, and result_bytes, the most a job's or a set's result may take as served.",
+ "type": "object"
+ },
+ "client": {
+ "description": "Where the client stands: its active jobs, the memory they hold, the submissions left in its window and when the window resets.",
+ "properties": {
+ "active_jobs": {
+ "type": "integer"
+ },
+ "memory_held_bytes": {
+ "type": "integer"
+ },
+ "submissions_left": {
+ "type": "integer"
+ },
+ "window_resets_in_seconds": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "dry_run": {
+ "const": true
+ },
+ "energy": {
+ "additionalProperties": true,
+ "description": "The estimated energy, never a reading of this job: microjoules, its provenance and basis, or why there is none.",
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "energy_provenance": {
+ "type": "string"
+ },
+ "joules_micro_estimate": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "unestimated": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "items": {
+ "description": "A set: each item's plan and estimates.",
+ "items": {
+ "properties": {
+ "energy": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "index": {
+ "type": "integer"
+ },
+ "memory_bytes": {
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "point": {
+ "type": "object"
+ },
+ "qubits": {
+ "type": "integer"
+ },
+ "time": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "why": {
+ "type": "string"
+ },
+ "work": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "memory_bytes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "planner": {
+ "description": "Why this route ran (wai.quantum.planner/1): every route the host could see, each one's price or reason for rejection, and the choice. Sealed by the receipt; a verifier recomputes each route's outcome and the choice from what it states (wai/extensions/quantum-providers.md section 8.7). A plan carries it too, with the refusal in place of the choice when no route meets the contract.",
+ "properties": {
+ "auto": {
+ "description": "The route auto picks, when the job leaves the method to it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "choice": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "format": {
+ "const": "wai.quantum.planner/1"
+ },
+ "host": {
+ "properties": {
+ "job_bytes": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "providers": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "job_bytes",
+ "providers"
+ ],
+ "type": "object"
+ },
+ "kept": {
+ "description": "What the contract asked, against what happened; each kept is null when it cannot be said. A result that missed one is sealed and says so.",
+ "properties": {
+ "cost": {
+ "properties": {
+ "charged": {
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "currency": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "kept": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "max_cost": {
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "currency": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "max_cost",
+ "charged",
+ "kept"
+ ],
+ "type": "object"
+ },
+ "deadline": {
+ "properties": {
+ "elapsed_ms": {
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "kept": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "seconds": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "seconds",
+ "elapsed_ms",
+ "kept"
+ ],
+ "type": "object"
+ },
+ "energy": {
+ "properties": {
+ "joules": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "kept": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "max_joules": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "max_joules",
+ "joules",
+ "kept"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "named": {
+ "description": "The route the job names: the provider or the method its request names, or the one method a device target's job runs on; null when it names none.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "question": {
+ "description": "The question the job asks, read from its request, which orders the methods auto tries (section 8.7).",
+ "enum": [
+ "noise",
+ "counts",
+ "expectations",
+ "amplitudes"
+ ]
+ },
+ "refusal": {
+ "description": "When no route meets the contract, in a plan: the refusal as data.",
+ "type": "object"
+ },
+ "routes": {
+ "items": {
+ "description": "One route the planner could see: its class, its price or why it has none, and what came of it.",
+ "properties": {
+ "approximate": {
+ "const": true
+ },
+ "auto_rank": {
+ "description": "On a local route: its rank in auto's order for the job's question, or null where auto does not try it; a built-in method's is section 8.7's table.",
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "class": {
+ "description": "The accuracy class its result has at worst: a matrix product state's is heuristic, though its result may say exact.",
+ "type": "string"
+ },
+ "device": {
+ "type": "string"
+ },
+ "host_dependent": {
+ "description": "Whether it depends on the host: a provider's, a method on a GPU, or a registered method.",
+ "type": "boolean"
+ },
+ "kind": {
+ "enum": [
+ "local",
+ "provider"
+ ]
+ },
+ "method": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "chosen",
+ "met",
+ "rejected"
+ ]
+ },
+ "price": {
+ "anyOf": [
+ {
+ "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
+ "properties": {
+ "energy": {
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "joules": {
+ "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "unwatched": {
+ "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
+ "type": "string"
+ },
+ "watch": {
+ "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules"
+ ],
+ "type": "object"
+ },
+ "leaves_out": {
+ "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
+ "items": {
+ "enum": [
+ "time",
+ "amount",
+ "energy",
+ "mitigation",
+ "decoder",
+ "charged",
+ "cancel"
+ ]
+ },
+ "type": "array"
+ },
+ "memory_bytes": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "money": {
+ "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "at_least": {
+ "const": true,
+ "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
+ },
+ "currency": {
+ "type": "string"
+ },
+ "free": {
+ "type": "boolean"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "unknown": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "free"
+ ],
+ "type": "object"
+ },
+ "program": {
+ "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
+ "properties": {
+ "expected_success": {
+ "type": "number"
+ },
+ "native_gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "swaps": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit_gates": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "time": {
+ "properties": {
+ "basis": {
+ "enum": [
+ "nominal",
+ "provider"
+ ]
+ },
+ "seconds": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "seconds"
+ ],
+ "type": "object"
+ },
+ "work": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "money",
+ "time",
+ "memory_bytes",
+ "work",
+ "energy",
+ "leaves_out"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "provenance": {
+ "type": "string"
+ },
+ "provider": {
+ "type": "string"
+ },
+ "rejected": {
+ "properties": {
+ "code": {
+ "enum": [
+ "not_named",
+ "fabric",
+ "class",
+ "cannot",
+ "memory",
+ "providers",
+ "deadline",
+ "deadline_unknown",
+ "cost",
+ "cost_currency",
+ "cost_unknown",
+ "cost_at_least",
+ "cost_no_ceiling",
+ "energy",
+ "energy_unwatched"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "why"
+ ],
+ "type": "object"
+ },
+ "route": {
+ "description": "method:<name> or provider:<name>.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "route",
+ "kind",
+ "class",
+ "host_dependent",
+ "price",
+ "outcome"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "shadow": {
+ "description": "The classical method that would shadow a provider's answer within the contract, or why none can.",
+ "properties": {
+ "budget_seconds": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "class": {
+ "type": "string"
+ },
+ "code": {
+ "enum": [
+ "budget",
+ "memory",
+ "none"
+ ]
+ },
+ "price": {
+ "description": "What a route costs, with what is really known: a method's memory and work as the planner counts them and its time at the planner's nominal rate; a provider's own estimate, with what that leaves out.",
+ "properties": {
+ "energy": {
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "joules": {
+ "description": "An estimate of what the run takes, from past runs, never a promise. A contract's max_joules is enforced by a live reading while the run goes; an estimate can only refuse a job clearly past a ceiling.",
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "unwatched": {
+ "description": "Why nothing can read the run while it runs; under a ceiling the route is refused (energy_unwatched).",
+ "type": "string"
+ },
+ "watch": {
+ "description": "What reads the run while it runs, and what that covers: what stops it at a contract's max_joules.",
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "joules"
+ ],
+ "type": "object"
+ },
+ "leaves_out": {
+ "description": "What this price leaves out: time (it states no time), amount (it states no amount), energy, mitigation (what the provider's own mitigation costs or does), decoder (any decoder's latency), charged (what the provider charges may differ from what it estimates), cancel (its client cannot stop a job it sent).",
+ "items": {
+ "enum": [
+ "time",
+ "amount",
+ "energy",
+ "mitigation",
+ "decoder",
+ "charged",
+ "cancel"
+ ]
+ },
+ "type": "array"
+ },
+ "memory_bytes": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "money": {
+ "description": "What a route costs in money: free, an amount in a currency, or why that is not known. An unknown cost is not free.",
+ "properties": {
+ "amount": {
+ "type": "string"
+ },
+ "at_least": {
+ "const": true,
+ "description": "The amount is the least the job can come to: what it takes decides the rest, so it meets no ceiling (cost_at_least)."
+ },
+ "currency": {
+ "type": "string"
+ },
+ "free": {
+ "type": "boolean"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "unknown": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "free"
+ ],
+ "type": "object"
+ },
+ "program": {
+ "description": "What the job asks of a provider's device: its shots, and the compiled program's gates and swaps, and its expected success when a calibration states one.",
+ "properties": {
+ "expected_success": {
+ "type": "number"
+ },
+ "native_gates": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "shots": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "swaps": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "two_qubit_gates": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "time": {
+ "properties": {
+ "basis": {
+ "enum": [
+ "nominal",
+ "provider"
+ ]
+ },
+ "seconds": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "seconds"
+ ],
+ "type": "object"
+ },
+ "work": {
+ "minimum": 0,
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "money",
+ "time",
+ "memory_bytes",
+ "work",
+ "energy",
+ "leaves_out"
+ ],
+ "type": "object"
+ },
+ "request": {
+ "type": "object"
+ },
+ "route": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "tried": {
+ "items": {
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "route": {
+ "type": "string"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "route"
+ ],
+ "type": "object"
+ },
+ "stable": {
+ "properties": {
+ "choice": {
+ "type": "boolean"
+ },
+ "digest": {
+ "type": "string"
+ },
+ "routes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "scope": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "scope",
+ "routes",
+ "digest",
+ "choice"
+ ],
+ "type": "object"
+ },
+ "wanted": {
+ "description": "The class wanted: the contract's, else that of the route the job names or auto's pick.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "wanted_from": {
+ "enum": [
+ "contract",
+ "named",
+ "auto",
+ null
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "format",
+ "wanted",
+ "wanted_from",
+ "auto",
+ "host",
+ "routes",
+ "choice",
+ "why",
+ "stable",
+ "named",
+ "question"
+ ],
+ "type": "object"
+ },
+ "qubits": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "ran": {
+ "const": false
+ },
+ "refusal": {
+ "description": "For a refused job: its message and its codes.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "result_bytes": {
+ "description": "The most its result takes as served, bytes, bounded before it runs: past bounds.result_bytes the job is refused (422, J031). A pulse run is bounded from its schedule. For a method that gives no bound before it runs (no built-in is such): {\"bytes\": null, \"why\"}, and it is counted at bounds.result_bytes.",
+ "oneOf": [
+ {
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "bytes": {
+ "type": "null"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "bytes",
+ "why"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "status": {
+ "description": "The HTTP status a refusal would carry.",
+ "type": "integer"
+ },
+ "target": {
+ "description": "A job on a device target: the target the plan placed it on.",
+ "type": "object"
+ },
+ "time": {
+ "additionalProperties": true,
+ "description": "The estimated time: seconds and its basis, or null and why, with the most the job may take.",
+ "properties": {
+ "at_most": {
+ "type": "integer"
+ },
+ "basis": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "rate": {
+ "type": "object"
+ },
+ "seconds": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "verdict": {
+ "description": "How far the engine checked an answer, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof; and the layer that decided it, with that layer's limits. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided), and layer names what decided them: exact simulation, a stabilizer check, checked rewrites, the answer held to its problem's own checks, agreement of the run's samples with a simulation, samples held to a distribution, physical consistency, random states, or unchecked. A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
+ "properties": {
+ "critique": {
+ "description": "The program's smells, each with its lines.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "executed": {
+ "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled_distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "method": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "holds": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "intent": {
+ "items": {
+ "description": "One intent's check: what it asked, whether it held, how strong the check was, how it was made, the layer it stands on and that layer's limits.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "counts": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The program's distribution, when its outcomes are few enough to list.",
+ "type": "object"
+ },
+ "expected": {
+ "description": "An expectation intent: the value the intent states.",
+ "type": "number"
+ },
+ "fit": {
+ "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "dof": {
+ "type": "integer"
+ },
+ "impossible": {
+ "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
+ "type": [
+ "integer",
+ "array",
+ "boolean"
+ ]
+ },
+ "impossible_outcomes": {
+ "description": "How many outcomes sampled the stated distribution gives probability 0.",
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "p_value": {
+ "type": "number"
+ },
+ "rejected": {
+ "type": "boolean"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "smallest_expected": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "statistic": {
+ "type": "number"
+ },
+ "test": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "global_phase": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "how": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "distribution",
+ "equivalent",
+ "prepares",
+ "sampled",
+ "compiled",
+ "expectation",
+ "outcomes",
+ "conserves",
+ "counts",
+ "agrees",
+ "landscape"
+ ]
+ },
+ "largest_gaps": {
+ "items": {
+ "properties": {
+ "intent": {
+ "type": "number"
+ },
+ "outcome": {
+ "type": "string"
+ },
+ "program": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer the check stands on: unchecked when it was not decided.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "method": {
+ "description": "A sampled intent: the method the samples were run by.",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observable": {
+ "description": "An expectation intent: the observable.",
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "holds",
+ "fails",
+ "unchecked"
+ ]
+ },
+ "outcomes": {
+ "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
+ "type": "integer"
+ },
+ "outside": {
+ "description": "An outcomes or a conserves intent: how much lies outside, as probability of the exact distribution or as a fraction of the samples.",
+ "type": "number"
+ },
+ "said": {
+ "description": "An energy-landscape job's own word: solved, missed, failed or unchecked.",
+ "type": "string"
+ },
+ "samples": {
+ "description": "An outcomes or a conserves intent checked on the job's counts: how many samples.",
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "strength": {
+ "enum": [
+ "proof",
+ "evidence",
+ "none"
+ ]
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "value": {
+ "description": "An expectation intent: the observable's exact value on the program's state.",
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "outcome",
+ "strength",
+ "how"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer that decided the intents: the weakest of the checks' layers, and unchecked when an intent was not decided or none was given. Absent from a verdict sealed before layers were named.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "level": {
+ "enum": [
+ "refused",
+ "parsed",
+ "executed",
+ "evidence",
+ "proof"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "parsed": {
+ "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "diagnostics": {
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "ok": {
+ "type": "boolean"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "text": {
+ "description": "The refusal as the reader wrote it, with its line and code.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "rank": {
+ "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
+ "maximum": 4,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "refusal": {
+ "description": "For a refused job: its message and its codes.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "repairs": {
+ "description": "Each edit a repair made, with the code it answered and the lines it changed.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "wai.quantum.verdict/1"
+ },
+ "sealed": {
+ "type": "boolean"
+ },
+ "statement": {
+ "description": "The level in one plain line.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "level",
+ "rank",
+ "holds",
+ "statement",
+ "parsed",
+ "executed",
+ "intent",
+ "critique",
+ "repairs"
+ ],
+ "title": "wai.quantum.verdict/1",
+ "type": "object"
+ },
+ "why": {
+ "type": "string"
+ },
+ "within_time_limit": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "work": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "dry_run",
+ "ran",
+ "accepted",
+ "bounds",
+ "client"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A refusal as data: the message, every code in it (the last is the code), its outcome and meaning as the code's table gives them. A host that refuses for its own reasons gives the error alone.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "error": {
+ "type": "string"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "verdict": {
+ "description": "How far the engine checked an answer, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof; and the layer that decided it, with that layer's limits. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided), and layer names what decided them: exact simulation, a stabilizer check, checked rewrites, the answer held to its problem's own checks, agreement of the run's samples with a simulation, samples held to a distribution, physical consistency, random states, or unchecked. A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
+ "properties": {
+ "critique": {
+ "description": "The program's smells, each with its lines.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "executed": {
+ "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled_distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "method": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "holds": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "intent": {
+ "items": {
+ "description": "One intent's check: what it asked, whether it held, how strong the check was, how it was made, the layer it stands on and that layer's limits.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "counts": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The program's distribution, when its outcomes are few enough to list.",
+ "type": "object"
+ },
+ "expected": {
+ "description": "An expectation intent: the value the intent states.",
+ "type": "number"
+ },
+ "fit": {
+ "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "dof": {
+ "type": "integer"
+ },
+ "impossible": {
+ "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
+ "type": [
+ "integer",
+ "array",
+ "boolean"
+ ]
+ },
+ "impossible_outcomes": {
+ "description": "How many outcomes sampled the stated distribution gives probability 0.",
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "p_value": {
+ "type": "number"
+ },
+ "rejected": {
+ "type": "boolean"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "smallest_expected": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "statistic": {
+ "type": "number"
+ },
+ "test": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "global_phase": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "how": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "distribution",
+ "equivalent",
+ "prepares",
+ "sampled",
+ "compiled",
+ "expectation",
+ "outcomes",
+ "conserves",
+ "counts",
+ "agrees",
+ "landscape"
+ ]
+ },
+ "largest_gaps": {
+ "items": {
+ "properties": {
+ "intent": {
+ "type": "number"
+ },
+ "outcome": {
+ "type": "string"
+ },
+ "program": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer the check stands on: unchecked when it was not decided.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "method": {
+ "description": "A sampled intent: the method the samples were run by.",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observable": {
+ "description": "An expectation intent: the observable.",
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "holds",
+ "fails",
+ "unchecked"
+ ]
+ },
+ "outcomes": {
+ "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
+ "type": "integer"
+ },
+ "outside": {
+ "description": "An outcomes or a conserves intent: how much lies outside, as probability of the exact distribution or as a fraction of the samples.",
+ "type": "number"
+ },
+ "said": {
+ "description": "An energy-landscape job's own word: solved, missed, failed or unchecked.",
+ "type": "string"
+ },
+ "samples": {
+ "description": "An outcomes or a conserves intent checked on the job's counts: how many samples.",
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "strength": {
+ "enum": [
+ "proof",
+ "evidence",
+ "none"
+ ]
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "value": {
+ "description": "An expectation intent: the observable's exact value on the program's state.",
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "outcome",
+ "strength",
+ "how"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer that decided the intents: the weakest of the checks' layers, and unchecked when an intent was not decided or none was given. Absent from a verdict sealed before layers were named.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "level": {
+ "enum": [
+ "refused",
+ "parsed",
+ "executed",
+ "evidence",
+ "proof"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "parsed": {
+ "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "diagnostics": {
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "ok": {
+ "type": "boolean"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "text": {
+ "description": "The refusal as the reader wrote it, with its line and code.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "rank": {
+ "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
+ "maximum": 4,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "refusal": {
+ "description": "For a refused job: its message and its codes.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "repairs": {
+ "description": "Each edit a repair made, with the code it answered and the lines it changed.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "wai.quantum.verdict/1"
+ },
+ "sealed": {
+ "type": "boolean"
+ },
+ "statement": {
+ "description": "The level in one plain line.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "level",
+ "rank",
+ "holds",
+ "statement",
+ "parsed",
+ "executed",
+ "intent",
+ "critique",
+ "repairs"
+ ],
+ "title": "wai.quantum.verdict/1",
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A job the service no longer holds, known only by its id.",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "verdict": {
+ "description": "How far the engine checked an answer, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof; and the layer that decided it, with that layer's limits. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided), and layer names what decided them: exact simulation, a stabilizer check, checked rewrites, the answer held to its problem's own checks, agreement of the run's samples with a simulation, samples held to a distribution, physical consistency, random states, or unchecked. A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
+ "properties": {
+ "critique": {
+ "description": "The program's smells, each with its lines.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "executed": {
+ "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled_distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "method": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "holds": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "intent": {
+ "items": {
+ "description": "One intent's check: what it asked, whether it held, how strong the check was, how it was made, the layer it stands on and that layer's limits.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "counts": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The program's distribution, when its outcomes are few enough to list.",
+ "type": "object"
+ },
+ "expected": {
+ "description": "An expectation intent: the value the intent states.",
+ "type": "number"
+ },
+ "fit": {
+ "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "dof": {
+ "type": "integer"
+ },
+ "impossible": {
+ "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
+ "type": [
+ "integer",
+ "array",
+ "boolean"
+ ]
+ },
+ "impossible_outcomes": {
+ "description": "How many outcomes sampled the stated distribution gives probability 0.",
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "p_value": {
+ "type": "number"
+ },
+ "rejected": {
+ "type": "boolean"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "smallest_expected": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "statistic": {
+ "type": "number"
+ },
+ "test": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "global_phase": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "how": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "distribution",
+ "equivalent",
+ "prepares",
+ "sampled",
+ "compiled",
+ "expectation",
+ "outcomes",
+ "conserves",
+ "counts",
+ "agrees",
+ "landscape"
+ ]
+ },
+ "largest_gaps": {
+ "items": {
+ "properties": {
+ "intent": {
+ "type": "number"
+ },
+ "outcome": {
+ "type": "string"
+ },
+ "program": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer the check stands on: unchecked when it was not decided.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "method": {
+ "description": "A sampled intent: the method the samples were run by.",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observable": {
+ "description": "An expectation intent: the observable.",
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "holds",
+ "fails",
+ "unchecked"
+ ]
+ },
+ "outcomes": {
+ "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
+ "type": "integer"
+ },
+ "outside": {
+ "description": "An outcomes or a conserves intent: how much lies outside, as probability of the exact distribution or as a fraction of the samples.",
+ "type": "number"
+ },
+ "said": {
+ "description": "An energy-landscape job's own word: solved, missed, failed or unchecked.",
+ "type": "string"
+ },
+ "samples": {
+ "description": "An outcomes or a conserves intent checked on the job's counts: how many samples.",
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "strength": {
+ "enum": [
+ "proof",
+ "evidence",
+ "none"
+ ]
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "value": {
+ "description": "An expectation intent: the observable's exact value on the program's state.",
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "outcome",
+ "strength",
+ "how"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer that decided the intents: the weakest of the checks' layers, and unchecked when an intent was not decided or none was given. Absent from a verdict sealed before layers were named.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "level": {
+ "enum": [
+ "refused",
+ "parsed",
+ "executed",
+ "evidence",
+ "proof"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "parsed": {
+ "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "diagnostics": {
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "ok": {
+ "type": "boolean"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "text": {
+ "description": "The refusal as the reader wrote it, with its line and code.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "rank": {
+ "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
+ "maximum": 4,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "refusal": {
+ "description": "For a refused job: its message and its codes.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "repairs": {
+ "description": "Each edit a repair made, with the code it answered and the lines it changed.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "wai.quantum.verdict/1"
+ },
+ "sealed": {
+ "type": "boolean"
+ },
+ "statement": {
+ "description": "The level in one plain line.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "level",
+ "rank",
+ "holds",
+ "statement",
+ "parsed",
+ "executed",
+ "intent",
+ "critique",
+ "repairs"
+ ],
+ "title": "wai.quantum.verdict/1",
+ "type": "object"
+ }
+ },
+ "required": [
+ "id"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A job: queued, running, done with its result and receipt, or failed with its error; a set's job holds the set's result; with dry_run true, what the service would do with it, running nothing."
+ },
+ {
+ "description": "A refusal as data: the message, every code in it (the last is the code), its outcome and meaning as the code's table gives them. A host that refuses for its own reasons gives the error alone.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "error": {
+ "type": "string"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "verdict": {
+ "description": "How far the engine checked an answer, as one level of an ordered ladder (wai-quantum://docs/verdicts): refused, parsed, executed, evidence, proof; and the layer that decided it, with that layer's limits. A level says how far the engine checked, not that the answer is good: holds says whether the intents held (true, false, or null when none was decided), and layer names what decided them: exact simulation, a stabilizer check, checked rewrites, the answer held to its problem's own checks, agreement of the run's samples with a simulation, samples held to a distribution, physical consistency, random states, or unchecked. A job's result carries one under verdict when the job gives an intent or asks for one, and the receipt seals it; both MCP servers state one beside every answer about a program.",
+ "properties": {
+ "critique": {
+ "description": "The program's smells, each with its lines.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "executed": {
+ "description": "The method that ran and its accuracy class, and the distance a compile put between the program and what ran.",
+ "properties": {
+ "accuracy": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "compiled_distance": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "method": {
+ "type": "string"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "holds": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "intent": {
+ "items": {
+ "description": "One intent's check: what it asked, whether it held, how strong the check was, how it was made, the layer it stands on and that layer's limits.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "counts": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "distribution": {
+ "additionalProperties": {
+ "type": "number"
+ },
+ "description": "The program's distribution, when its outcomes are few enough to list.",
+ "type": "object"
+ },
+ "expected": {
+ "description": "An expectation intent: the value the intent states.",
+ "type": "number"
+ },
+ "fit": {
+ "description": "A sampled intent: the test, its statistic, degrees of freedom and p-value, the level, and whether it rejected.",
+ "properties": {
+ "alpha": {
+ "type": "number"
+ },
+ "dof": {
+ "type": "integer"
+ },
+ "impossible": {
+ "description": "The outcomes sampled that the stated distribution gives probability 0: the first 64, in order.",
+ "type": [
+ "integer",
+ "array",
+ "boolean"
+ ]
+ },
+ "impossible_outcomes": {
+ "description": "How many outcomes sampled the stated distribution gives probability 0.",
+ "type": "integer"
+ },
+ "note": {
+ "type": "string"
+ },
+ "p_value": {
+ "type": "number"
+ },
+ "rejected": {
+ "type": "boolean"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "smallest_expected": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "statistic": {
+ "type": "number"
+ },
+ "test": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "global_phase": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "how": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "distribution",
+ "equivalent",
+ "prepares",
+ "sampled",
+ "compiled",
+ "expectation",
+ "outcomes",
+ "conserves",
+ "counts",
+ "agrees",
+ "landscape"
+ ]
+ },
+ "largest_gaps": {
+ "items": {
+ "properties": {
+ "intent": {
+ "type": "number"
+ },
+ "outcome": {
+ "type": "string"
+ },
+ "program": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer the check stands on: unchecked when it was not decided.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "method": {
+ "description": "A sampled intent: the method the samples were run by.",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "note": {
+ "type": "string"
+ },
+ "observable": {
+ "description": "An expectation intent: the observable.",
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "holds",
+ "fails",
+ "unchecked"
+ ]
+ },
+ "outcomes": {
+ "description": "The outcomes the distribution holds, or the samples' distinct outcomes.",
+ "type": "integer"
+ },
+ "outside": {
+ "description": "An outcomes or a conserves intent: how much lies outside, as probability of the exact distribution or as a fraction of the samples.",
+ "type": "number"
+ },
+ "said": {
+ "description": "An energy-landscape job's own word: solved, missed, failed or unchecked.",
+ "type": "string"
+ },
+ "samples": {
+ "description": "An outcomes or a conserves intent checked on the job's counts: how many samples.",
+ "type": "integer"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "strength": {
+ "enum": [
+ "proof",
+ "evidence",
+ "none"
+ ]
+ },
+ "tolerance": {
+ "type": "number"
+ },
+ "value": {
+ "description": "An expectation intent: the observable's exact value on the program's state.",
+ "type": "number"
+ },
+ "why": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "outcome",
+ "strength",
+ "how"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "layer": {
+ "description": "The layer that decided the intents: the weakest of the checks' layers, and unchecked when an intent was not decided or none was given. Absent from a verdict sealed before layers were named.",
+ "enum": [
+ "unchecked",
+ "physical_consistency",
+ "samples",
+ "agreement",
+ "random_states",
+ "certificate",
+ "reading",
+ "pass_equivalence",
+ "stabilizer",
+ "exact_simulation"
+ ]
+ },
+ "level": {
+ "enum": [
+ "refused",
+ "parsed",
+ "executed",
+ "evidence",
+ "proof"
+ ]
+ },
+ "limits": {
+ "description": "What that layer does not show.",
+ "type": "string"
+ },
+ "parsed": {
+ "description": "Whether the reader took the program, and its warnings and notes with their codes, or its refusal.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "diagnostics": {
+ "items": {
+ "description": "One of the reader's diagnostics: its code, what happens to the construct it is about, its message (without the line or the code), and where it stands.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "column": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned"
+ ]
+ }
+ },
+ "required": [
+ "code",
+ "outcome",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "length": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "line": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "ok": {
+ "type": "boolean"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ },
+ "text": {
+ "description": "The refusal as the reader wrote it, with its line and code.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok"
+ ],
+ "type": "object"
+ },
+ "rank": {
+ "description": "The level's place on the ladder, from 0 (refused) to 4 (proof).",
+ "maximum": 4,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "refusal": {
+ "description": "For a refused job: its message and its codes.",
+ "properties": {
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "codes": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "meaning": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "outcome": {
+ "enum": [
+ "refused",
+ "retry",
+ "failed",
+ "lowered",
+ "carried",
+ "preserved",
+ "warned",
+ "dropped",
+ "defaulted"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "repairs": {
+ "description": "Each edit a repair made, with the code it answered and the lines it changed.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "wai.quantum.verdict/1"
+ },
+ "sealed": {
+ "type": "boolean"
+ },
+ "statement": {
+ "description": "The level in one plain line.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "schema",
+ "level",
+ "rank",
+ "holds",
+ "statement",
+ "parsed",
+ "executed",
+ "intent",
+ "critique",
+ "repairs"
+ ],
+ "title": "wai.quantum.verdict/1",
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]