changedOutput schema / anyOf
Previous value: -[
- {
- "anyOf": [
- {
- "description": "A compile as a host returns it (the command line's compile --json, both servers' compile_qasm, the job service's POST /v1/compile): the request as given, and the result, which its receipt seals in the form every job's receipt takes. The result holds the compiled program and its certificate (wai.quantum.compile/1): each pass's counts before and after, its check and verdict, the budget and the bound the passes' distances add to. A result names the engine that made it and this schema (engine and schema); results made before results carried them have neither.",
- "properties": {
- "request": {
- "description": "The program and the compile's options, as given.",
- "properties": {
- "basis": {
- "type": "string"
- },
- "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": {
- "type": "number"
- },
- "level": {
- "type": "integer"
- },
- "qasm": {
- "type": "string"
- },
- "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."
- }
- },
- "required": [
- "qasm"
- ],
- "type": "object"
- },
- "result": {
- "properties": {
- "certificate": {
- "description": "What the compile did and how each step was checked. Hashes are BLAKE3, in hex, of the program as read (written out as OpenQASM 3) and of the output text.",
- "properties": {
- "basis": {
- "enum": [
- "clifford_t",
- "standard"
- ]
- },
- "epsilon": {
- "description": "The budget, the bound the passes' distances add to, and how the budget was shared among the rotations.",
- "properties": {
- "bound": {
- "type": "number"
- },
- "budget": {
- "type": "number"
- },
- "each": {
- "type": "number"
- },
- "rotations": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "format": {
- "const": "wai.quantum.compile/1"
- },
- "level": {
- "type": "integer"
- },
- "output": {
- "properties": {
- "counts": {
- "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"
- },
- "hash": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "passes": {
- "description": "Each pass: its name, the counts before and after, and its check (how, the verdict, and its distance where it has one).",
- "items": {
- "properties": {
- "after": {
- "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"
- },
- "before": {
- "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"
- },
- "check": {
- "type": "object"
- },
- "component": {
- "description": "Beside a registered pass's record: its identity. Its check is the engine's, on the whole circuit (by: engine).",
- "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"
- },
- "pass": {
- "type": "string"
- }
- },
- "required": [
- "pass",
- "check"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "reading": {
- "description": "What the certificate says of the output, in words.",
- "type": "string"
- },
- "rotations": {
- "description": "Each rotation written as a Clifford+T word: its angle, its T count, its distance.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "properties": {
- "counts": {
- "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"
- },
- "hash": {
- "type": "string"
- },
- "qubits": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "verdict": {
- "description": "proof, exact or approximate.",
- "type": "string"
- },
- "whole": {
- "description": "The check of the whole output against the whole program, where it was made.",
- "type": "object"
- }
- },
- "required": [
- "format",
- "basis",
- "level",
- "source",
- "output",
- "epsilon",
- "passes",
- "verdict"
- ],
- "type": "object"
- },
- "components": {
- "description": "The identity of every component that made the compile, when a registered pass took part (engine::registry): the program's format and each pass, each registered one marked so.",
- "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"
- },
- "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"
- },
- "ok": {
- "const": true
- },
- "options": {
- "description": "The options the compile ran with, the defaults filled in.",
- "properties": {
- "basis": {
- "enum": [
- "clifford_t",
- "standard"
- ]
- },
- "dd": {
- "description": "The decoupling pass's sequence.",
- "enum": [
- "xx",
- "xy4"
- ]
- },
- "epsilon": {
- "type": "number"
- },
- "level": {
- "type": "integer"
- },
- "twirl": {
- "description": "The twirl pass's seed.",
- "properties": {
- "seed": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "epsilon",
- "level",
- "basis"
- ],
- "type": "object"
- },
- "qasm": {
- "description": "The compiled program, as OpenQASM 3.",
- "type": "string"
- },
- "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"
- },
- "schema": {
- "const": "wai.quantum.compile-result/1"
- },
- "stages": {
- "description": "With stages: the circuit after each pass.",
- "items": {
- "properties": {
- "pass": {
- "type": "string"
- },
- "qasm": {
- "type": "string"
- }
- },
- "required": [
- "pass",
- "qasm"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "ok",
- "options",
- "qasm",
- "certificate"
- ],
- "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"
- }
- },
- "required": [
- "request",
- "result"
- ],
- "title": "wai.quantum.compile-result/1",
- "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 compile sealed with the service's key, or why it was refused."
- },
- {
- "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 compile as a host returns it (the command line's compile --json, both servers' compile_qasm, the job service's POST /v1/compile): the request as given, and the result, which its receipt seals in the form every job's receipt takes. The result holds the compiled program and its certificate (wai.quantum.compile/1): each pass's counts before and after, the digests of the circuit it was given and the circuit it gave, the layer its check stands on and the distance it adds, its check and verdict, the budget and the bound the passes' distances add to (wai/extensions/quantum-compile.md). A result names the engine that made it and this schema (engine and schema); results made before results carried them have neither.",
+ "properties": {
+ "request": {
+ "description": "The program and the compile's options, as given.",
+ "properties": {
+ "basis": {
+ "type": "string"
+ },
+ "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": {
+ "type": "number"
+ },
+ "equivalence": {
+ "description": "true: the certificate also holds the equivalence checker's verdict on the whole output against the program.",
+ "type": "boolean"
+ },
+ "level": {
+ "type": "integer"
+ },
+ "qasm": {
+ "type": "string"
+ },
+ "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."
+ }
+ },
+ "required": [
+ "qasm"
+ ],
+ "type": "object"
+ },
+ "result": {
+ "properties": {
+ "certificate": {
+ "description": "What the compile did and how each step was checked. Hashes are BLAKE3, in hex, of the program as read (written out as OpenQASM 3) and of the output text.",
+ "properties": {
+ "basis": {
+ "enum": [
+ "clifford_t",
+ "standard",
+ "cz",
+ "zz",
+ "xx"
+ ]
+ },
+ "epsilon": {
+ "description": "The budget, the bound the passes' distances add to, and how the budget was shared among the rotations.",
+ "properties": {
+ "bound": {
+ "type": "number"
+ },
+ "budget": {
+ "type": "number"
+ },
+ "each": {
+ "type": "number"
+ },
+ "rotations": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "equivalence": {
+ "description": "When the request asks for it: the equivalence checker's verdict on the whole output against the whole program (verdict proved, refuted with a counterexample, or undecided within its stated budget; the notion, the statement, each route's finding, the wires and the budget). A compile that approximates claims its bound, not equality, and its verdict is undecided, saying so.",
+ "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"
+ },
+ "format": {
+ "const": "wai.quantum.compile/1"
+ },
+ "guard": {
+ "description": "At a level above 0: the program compiled at this level and at each level below it under the same options, and the output kept, the one with the fewest of the objective's counts compared in order (the highest level's of those that tie), so a level never gives a worse output than a lower one. The passes, the bound and the whole check are the kept compile's. Certificates sealed before the guard have none.",
+ "properties": {
+ "candidates": {
+ "description": "The certificate's level and each level below it, highest first: the output's digest and its counts on the objective, or why that level refused the program.",
+ "items": {
+ "properties": {
+ "counts": {
+ "additionalProperties": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "level": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "output": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "refused": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "level"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "how": {
+ "type": "string"
+ },
+ "kept": {
+ "description": "The level whose output this is.",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "objective": {
+ "description": "The counts compared, in order, fewer first: t_count, cnots, gates for clifford_t; cnots, gates for standard; two_qubit, gates for cz, zz and xx.",
+ "items": {
+ "enum": [
+ "t_count",
+ "cnots",
+ "two_qubit",
+ "gates"
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "objective",
+ "candidates",
+ "kept"
+ ],
+ "type": "object"
+ },
+ "layer": {
+ "description": "The strongest check the whole output passed against the whole program: stabilizer (equal tableaus), exact_arithmetic (proportional over Z[ω]/√2ᵏ), exact_simulation (their dense unitaries, up to 8 qubits) or pass_equivalence (the passes' own checks, composed).",
+ "enum": [
+ "pass_equivalence",
+ "exact_simulation",
+ "exact_arithmetic",
+ "stabilizer"
+ ]
+ },
+ "level": {
+ "type": "integer"
+ },
+ "output": {
+ "properties": {
+ "counts": {
+ "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"
+ },
+ "hash": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "passes": {
+ "description": "Each pass: its name, the digests of the circuit it was given (input) and the circuit it gave (output), the layer its check stands on, the distance it adds (bound), the counts before and after, and its check (how, the verdict, and its distance where it has one). One pass's output is the next one's input: the first input is source.hash and the last output is output.hash. A certificate sealed before certificates carried them has no input, output, layer or bound.",
+ "items": {
+ "properties": {
+ "after": {
+ "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"
+ },
+ "before": {
+ "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"
+ },
+ "bound": {
+ "description": "The distance the pass adds to epsilon.bound: 0 for a pass checked by exact_arithmetic or stabilizer, or not applied.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "check": {
+ "type": "object"
+ },
+ "component": {
+ "description": "Beside a registered pass's record: its identity. Its check is the engine's, on the whole circuit (by: engine).",
+ "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"
+ },
+ "input": {
+ "description": "The BLAKE3 of the circuit the pass was given, written out as OpenQASM 3.",
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "layer": {
+ "description": "The layer the pass's check stands on: unchecked (skipped, or its check did not hold and it was left out), bounded (within the distance bound), exact_simulation (compared in double precision), exact_arithmetic (an identity in integers) or stabilizer (equal tableaus).",
+ "enum": [
+ "unchecked",
+ "bounded",
+ "exact_simulation",
+ "exact_arithmetic",
+ "stabilizer"
+ ]
+ },
+ "output": {
+ "description": "The BLAKE3 of the circuit the pass gave: its input when the pass was not applied.",
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "pass": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "pass",
+ "check"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "reading": {
+ "description": "What the certificate says of the output, in words.",
+ "type": "string"
+ },
+ "rotations": {
+ "description": "Each rotation written as a Clifford+T word: its angle, its T count, its distance.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "properties": {
+ "counts": {
+ "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"
+ },
+ "hash": {
+ "type": "string"
+ },
+ "qubits": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "verdict": {
+ "description": "proof, exact or approximate.",
+ "type": "string"
+ },
+ "weakest": {
+ "description": "The weakest layer among the passes that were applied; null when none was.",
+ "enum": [
+ "unchecked",
+ "bounded",
+ "exact_simulation",
+ "exact_arithmetic",
+ "stabilizer",
+ null
+ ]
+ },
+ "whole": {
+ "description": "The check of the whole output against the whole program: how, its verdict, its layer (the certificate's layer), and the distance where it measures one.",
+ "type": "object"
+ }
+ },
+ "required": [
+ "format",
+ "basis",
+ "level",
+ "source",
+ "output",
+ "epsilon",
+ "passes",
+ "verdict"
+ ],
+ "type": "object"
+ },
+ "components": {
+ "description": "The identity of every component that made the compile, when a registered pass took part (engine::registry): the program's format and each pass, each registered one marked so.",
+ "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"
+ },
+ "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"
+ },
+ "ok": {
+ "const": true
+ },
+ "options": {
+ "description": "The options the compile ran with, the defaults filled in.",
+ "properties": {
+ "basis": {
+ "enum": [
+ "clifford_t",
+ "standard"
+ ]
+ },
+ "dd": {
+ "description": "The decoupling pass's sequence.",
+ "enum": [
+ "xx",
+ "xy4"
+ ]
+ },
+ "epsilon": {
+ "type": "number"
+ },
+ "level": {
+ "type": "integer"
+ },
+ "twirl": {
+ "description": "The twirl pass's seed.",
+ "properties": {
+ "seed": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "epsilon",
+ "level",
+ "basis"
+ ],
+ "type": "object"
+ },
+ "qasm": {
+ "description": "The compiled program, as OpenQASM 3.",
+ "type": "string"
+ },
+ "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.compile-result/1"
+ },
+ "stages": {
+ "description": "With stages: the circuit after each pass.",
+ "items": {
+ "properties": {
+ "pass": {
+ "type": "string"
+ },
+ "qasm": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "pass",
+ "qasm"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "ok",
+ "options",
+ "qasm",
+ "certificate"
+ ],
+ "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"
+ }
+ },
+ "required": [
+ "request",
+ "result"
+ ],
+ "title": "wai.quantum.compile-result/1",
+ "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 compile sealed with the service's key, or why it was refused."
+ },
+ {
+ "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"
+ }
+]