changedOutput schema / anyOf
Previous value: -[
- {
- "description": "An error-correction answer as every host gives it (engine::qec: qec_code, qec_decode and qec_threshold on both servers, wai-quantum qec, POST /v1/qec/*, the Studio and Python): the request, and the result sealed in a job's form. A code with its distance certificate (or a given certificate checked); a syndrome, an error or a circuit's detectors decoded, or shots sampled and decoded; logical failure rates over distances and physical rates. A result names the engine that made it and this schema (engine and schema). docs/qec.md explains each.",
- "properties": {
- "request": {
- "description": "The call's request, as given.",
- "type": "object"
- },
- "result": {
- "anyOf": [
- {
- "description": "A code: its checks and stabilizers, k, its layout, the decoders it takes, and its distance certificate (or a given one's check).",
- "properties": {
- "certificate": {
- "description": "A code's distance certificate (quantum_distance): in each sector, a witness logical of the least weight found and every lighter support ruled out by an exhaustive search over connected supports, re-checkable node for node; the code's families hash, the search's bound, the symmetries checked and used, and its reading. Given back to qec_code, it is checked against the code.",
- "properties": {
- "bound": {
- "minimum": 1,
- "type": "integer"
- },
- "code": {
- "type": "string"
- },
- "distance": {
- "description": "The distance, when both sectors settle it; null when the search stopped at its bound first.",
- "type": [
- "integer",
- "null"
- ]
- },
- "families": {
- "description": "BLAKE3 of the code's check families, in hex.",
- "type": "string"
- },
- "format": {
- "const": "wai.quantum.distance/1"
- },
- "k": {
- "minimum": 0,
- "type": "integer"
- },
- "method": {
- "type": "string"
- },
- "n": {
- "minimum": 1,
- "type": "integer"
- },
- "orbits": {
- "type": [
- "integer",
- "array",
- "null"
- ]
- },
- "reading": {
- "type": "string"
- },
- "symmetries": {
- "type": [
- "integer",
- "array",
- "null"
- ]
- },
- "x": {
- "description": "One sector: the least weight of a logical found, a witness of that weight, and the weight below which the search ruled every support out.",
- "properties": {
- "distance": {
- "type": [
- "integer",
- "null"
- ]
- },
- "no_logical_below": {
- "type": [
- "integer",
- "null"
- ]
- },
- "nodes": {
- "minimum": 0,
- "type": "integer"
- },
- "witness": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "type": [
- "array",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "z": {
- "description": "One sector: the least weight of a logical found, a witness of that weight, and the weight below which the search ruled every support out.",
- "properties": {
- "distance": {
- "type": [
- "integer",
- "null"
- ]
- },
- "no_logical_below": {
- "type": [
- "integer",
- "null"
- ]
- },
- "nodes": {
- "minimum": 0,
- "type": "integer"
- },
- "witness": {
- "items": {
- "minimum": 0,
- "type": "integer"
- },
- "type": [
- "array",
- "null"
- ]
- }
- },
- "type": "object"
- }
- },
- "required": [
- "format",
- "code",
- "n",
- "k",
- "distance",
- "x",
- "z"
- ],
- "title": "wai.quantum.distance/1",
- "type": "object"
- },
- "check": {
- "description": "A given certificate's check: its witnesses, and the search run again.",
- "properties": {
- "search_reproduced": {
- "type": "boolean"
- },
- "verified": {
- "type": "boolean"
- },
- "why": {
- "type": "string"
- },
- "witnesses": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "code": {
- "properties": {
- "checks": {
- "type": "array"
- },
- "colors": {
- "type": "array"
- },
- "decoders": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "families_hash": {
- "type": "string"
- },
- "family": {
- "type": "string"
- },
- "k": {
- "type": "integer"
- },
- "layout": {
- "type": "object"
- },
- "n": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "nominal_distance": {
- "type": "integer"
- },
- "sectors": {
- "type": "string"
- },
- "stabs": {
- "type": "array"
- }
- },
- "type": "object"
- },
- "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
- },
- "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.qec/1"
- }
- },
- "required": [
- "ok",
- "code"
- ],
- "type": "object"
- },
- {
- "description": "A decode: at code capacity the syndrome, the correction and whether it explains the syndrome (and with an error, its residual); at circuit level the model's size, the fired detectors and the observables predicted, or the shots sampled and their failure rate.",
- "properties": {
- "code": {
- "type": "string"
- },
- "correction": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "decoder": {
- "type": "string"
- },
- "detail": {
- "additionalProperties": true,
- "description": "The decoder's own: its passes, its convergence, its windows.",
- "type": "object"
- },
- "detectors": {
- "type": "integer"
- },
- "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"
- },
- "error": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "explains": {
- "type": "boolean"
- },
- "failures": {
- "type": "integer"
- },
- "fired": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "mechanisms": {
- "type": "integer"
- },
- "observables": {
- "type": "integer"
- },
- "predicted": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "rate": {
- "type": "number"
- },
- "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"
- },
- "residual": {
- "properties": {
- "logical": {
- "type": "boolean"
- },
- "qubits": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "reading": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "schema": {
- "const": "wai.quantum.qec/1"
- },
- "seed": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "stderr": {
- "type": "number"
- },
- "syndrome": {
- "items": {
- "type": "integer"
- },
- "type": "array"
- },
- "weight": {
- "type": "integer"
- }
- },
- "required": [
- "decoder"
- ],
- "type": "object"
- },
- {
- "description": "Logical failure rates: each point's shots, failures, rate and standard error, the code model fitted at circuit level, and at each physical rate whether every larger distance failed less.",
- "properties": {
- "below_threshold": {
- "items": {
- "properties": {
- "distance_helps": {
- "type": "boolean"
- },
- "p": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "decoder": {
- "type": [
- "string",
- "null"
- ]
- },
- "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"
- },
- "family": {
- "type": "string"
- },
- "fit": {
- "properties": {
- "model": {
- "type": "string"
- },
- "prefactor": {
- "type": "number"
- },
- "threshold": {
- "type": "number"
- }
- },
- "type": [
- "object",
- "null"
- ]
- },
- "noise": {
- "type": [
- "string",
- "object",
- "null"
- ]
- },
- "points": {
- "items": {
- "properties": {
- "distance": {
- "type": "integer"
- },
- "failures": {
- "type": "integer"
- },
- "p": {
- "type": "number"
- },
- "per_round": {
- "type": [
- "number",
- "null"
- ]
- },
- "rate": {
- "type": "number"
- },
- "rounds": {
- "type": "integer"
- },
- "shots": {
- "type": "integer"
- },
- "stderr": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "reading": {
- "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.qec/1"
- },
- "seed": {
- "type": "integer"
- }
- },
- "required": [
- "points",
- "below_threshold"
- ],
- "type": "object"
- }
- ],
- "description": "A code, a decode or a threshold, with its receipt."
- }
- },
- "required": [
- "request",
- "result"
- ],
- "title": "wai.quantum.qec/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"
- ]
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "description": "An error-correction answer as every host gives it (engine::qec: qec_code, qec_decode and qec_threshold on both servers, wai-quantum qec, POST /v1/qec/*, the Studio and Python): the request, and the result sealed in a job's form. A code with its distance certificate (or a given certificate checked); a syndrome, an error or a circuit's detectors decoded, or shots sampled and decoded; logical failure rates over distances and physical rates. A result names the engine that made it and this schema (engine and schema). docs/qec.md explains each.",
+ "properties": {
+ "request": {
+ "description": "The call's request, as given.",
+ "type": "object"
+ },
+ "result": {
+ "anyOf": [
+ {
+ "description": "A code: its checks and stabilizers, k, its layout, the decoders it takes, and its distance certificate (or a given one's check).",
+ "properties": {
+ "certificate": {
+ "description": "A code's distance certificate (quantum_distance): in each sector, a witness logical of the least weight found and every lighter support ruled out by an exhaustive search over connected supports, re-checkable node for node; the code's families hash, the search's bound, the symmetries checked and used, and its reading. Given back to qec_code, it is checked against the code.",
+ "properties": {
+ "bound": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "code": {
+ "type": "string"
+ },
+ "distance": {
+ "description": "The distance, when both sectors settle it; null when the search stopped at its bound first.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "families": {
+ "description": "BLAKE3 of the code's check families, in hex.",
+ "type": "string"
+ },
+ "format": {
+ "const": "wai.quantum.distance/1"
+ },
+ "k": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "method": {
+ "type": "string"
+ },
+ "n": {
+ "minimum": 1,
+ "type": "integer"
+ },
+ "orbits": {
+ "type": [
+ "integer",
+ "array",
+ "null"
+ ]
+ },
+ "reading": {
+ "type": "string"
+ },
+ "symmetries": {
+ "type": [
+ "integer",
+ "array",
+ "null"
+ ]
+ },
+ "x": {
+ "description": "One sector: the least weight of a logical found, a witness of that weight, and the weight below which the search ruled every support out.",
+ "properties": {
+ "distance": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "no_logical_below": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "nodes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "witness": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "z": {
+ "description": "One sector: the least weight of a logical found, a witness of that weight, and the weight below which the search ruled every support out.",
+ "properties": {
+ "distance": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "no_logical_below": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "nodes": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "witness": {
+ "items": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "format",
+ "code",
+ "n",
+ "k",
+ "distance",
+ "x",
+ "z"
+ ],
+ "title": "wai.quantum.distance/1",
+ "type": "object"
+ },
+ "check": {
+ "description": "A given certificate's check: its witnesses, and the search run again.",
+ "properties": {
+ "search_reproduced": {
+ "type": "boolean"
+ },
+ "verified": {
+ "type": "boolean"
+ },
+ "why": {
+ "type": "string"
+ },
+ "witnesses": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "code": {
+ "properties": {
+ "checks": {
+ "type": "array"
+ },
+ "colors": {
+ "type": "array"
+ },
+ "decoders": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "families_hash": {
+ "type": "string"
+ },
+ "family": {
+ "type": "string"
+ },
+ "k": {
+ "type": "integer"
+ },
+ "layout": {
+ "type": "object"
+ },
+ "n": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "nominal_distance": {
+ "type": "integer"
+ },
+ "sectors": {
+ "type": "string"
+ },
+ "stabs": {
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "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
+ },
+ "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.qec/1"
+ }
+ },
+ "required": [
+ "ok",
+ "code"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "A decode: at code capacity the syndrome, the correction and whether it explains the syndrome (and with an error, its residual); at circuit level the model's size, the fired detectors and the observables predicted, or the shots sampled and their failure rate.",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "correction": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "decoder": {
+ "type": "string"
+ },
+ "detail": {
+ "additionalProperties": true,
+ "description": "The decoder's own: its passes, its convergence, its windows.",
+ "type": "object"
+ },
+ "detectors": {
+ "type": "integer"
+ },
+ "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"
+ },
+ "error": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "explains": {
+ "type": "boolean"
+ },
+ "failures": {
+ "type": "integer"
+ },
+ "fired": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "mechanisms": {
+ "type": "integer"
+ },
+ "observables": {
+ "type": "integer"
+ },
+ "predicted": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "rate": {
+ "type": "number"
+ },
+ "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"
+ },
+ "residual": {
+ "properties": {
+ "logical": {
+ "type": "boolean"
+ },
+ "qubits": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "reading": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "schema": {
+ "const": "wai.quantum.qec/1"
+ },
+ "seed": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "stderr": {
+ "type": "number"
+ },
+ "syndrome": {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ "weight": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "decoder"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Logical failure rates: each point's shots, failures, rate and standard error, the code model fitted at circuit level, and at each physical rate whether every larger distance failed less.",
+ "properties": {
+ "below_threshold": {
+ "items": {
+ "properties": {
+ "distance_helps": {
+ "type": "boolean"
+ },
+ "p": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "decoder": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "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"
+ },
+ "family": {
+ "type": "string"
+ },
+ "fit": {
+ "properties": {
+ "model": {
+ "type": "string"
+ },
+ "prefactor": {
+ "type": "number"
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "noise": {
+ "type": [
+ "string",
+ "object",
+ "null"
+ ]
+ },
+ "points": {
+ "items": {
+ "properties": {
+ "distance": {
+ "type": "integer"
+ },
+ "failures": {
+ "type": "integer"
+ },
+ "p": {
+ "type": "number"
+ },
+ "per_round": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "rate": {
+ "type": "number"
+ },
+ "rounds": {
+ "type": "integer"
+ },
+ "shots": {
+ "type": "integer"
+ },
+ "stderr": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "reading": {
+ "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.qec/1"
+ },
+ "seed": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "points",
+ "below_threshold"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "A code, a decode or a threshold, with its receipt."
+ }
+ },
+ "required": [
+ "request",
+ "result"
+ ],
+ "title": "wai.quantum.qec/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"
+ ]
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]