changedOutput schema / anyOf
Previous value: -[
- {
- "description": "A resource estimate as a host returns it (the command line's estimate --json, both servers' estimate_resources, the job service's POST /v1/estimate): the request, and the result, which its receipt seals in a job's form. The result holds the program's logical counts, the error budget and how it was shared, the decoder calibration the physical model uses, the headline estimate and the frontier trading physical qubits for runtime, each estimate sealed in the resource-estimate receipt family (the frontier's naming the headline's as parent), and the model's notes. A result names the engine that made it and this schema (engine and schema); results made before results carried them have neither. docs/estimate.md explains every number.",
- "properties": {
- "request": {
- "description": "A program (qasm), a logical-counts document (counts) or a routine document (routine), with the estimate's options, as given.",
- "properties": {
- "budget": {
- "type": "number"
- },
- "calibration": {
- "type": "string"
- },
- "clock": {
- "anyOf": [
- {
- "const": "steps"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reaction_us": {
- "exclusiveMaximum": 1000000000,
- "exclusiveMinimum": 0,
- "type": "number"
- }
- },
- "required": [
- "reaction_us"
- ],
- "type": "object"
- }
- ],
- "description": "How long a Toffoli takes: steps (the default: three logical steps of d cycles), or the reaction-limited clock, a Toffoli one tick of the control system's reaction time in µs, its Clifford fixups teleported away, with enough factories to keep up."
- },
- "counts": {
- "type": "object"
- },
- "export": {
- "enum": [
- "counts",
- "routine"
- ]
- },
- "inputs": {
- "additionalProperties": {
- "type": "integer"
- },
- "type": "object"
- },
- "max_slowdown": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- },
- "qasm": {
- "type": "string"
- },
- "qubit": {
- "type": [
- "string",
- "object"
- ]
- },
- "routine": {
- "type": "object"
- }
- },
- "type": "object"
- },
- "result": {
- "properties": {
- "calibration": {
- "description": "The decoder calibration the physical model uses: the decoder, the experiment, the fit, its measured range, and how to reproduce it.",
- "type": "object"
- },
- "counts": {
- "additionalProperties": {
- "type": [
- "integer",
- "number",
- "string",
- "null",
- "array"
- ]
- },
- "description": "The program's logical counts: qubits and ancillas, measurements, Clifford gates, T gates, Toffolis, rotations (each costed at its own synthesised word's T count), T states, depths.",
- "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"
- },
- "epsilon": {
- "description": "The error budget, the synthesis share and each rotation's share, the bound the rotations' distances add to, and their T counts.",
- "properties": {
- "angles": {
- "type": [
- "integer",
- "null"
- ]
- },
- "bound": {
- "type": [
- "number",
- "null"
- ]
- },
- "budget": {
- "type": [
- "number",
- "null"
- ]
- },
- "each": {
- "type": [
- "number",
- "null"
- ]
- },
- "rotations": {
- "type": [
- "integer",
- "null"
- ]
- },
- "synthesis": {
- "type": [
- "number",
- "null"
- ]
- },
- "t_per_rotation": {
- "type": [
- "object",
- "null"
- ]
- }
- },
- "type": "object"
- },
- "estimate": {
- "description": "One estimate on a physical qubit: the code and its distance, the slowdown, physical qubits (the algorithm's and the factories'), factories, runtime, logical steps and their length, tiles, the logical error, T states, and how the budget was shared; sealed by its resource-estimate receipt (receipt), or marked the headline.",
- "properties": {
- "algorithm_qubits": {
- "type": "integer"
- },
- "budget": {
- "properties": {
- "distillation": {
- "type": "number"
- },
- "logical": {
- "type": "number"
- },
- "synthesis": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "clock": {
- "description": "On the reaction-limited clock only: its reaction time, one tick at this estimate's slowdown, and the Toffolis run on ticks. Then steps are the lattice-surgery steps alone, and runtime_s adds the ticks.",
- "properties": {
- "reaction_us": {
- "type": "number"
- },
- "tick_us": {
- "type": "number"
- },
- "toffolis": {
- "type": "integer"
- }
- },
- "required": [
- "reaction_us",
- "tick_us",
- "toffolis"
- ],
- "type": "object"
- },
- "code": {
- "type": "string"
- },
- "distance": {
- "type": "integer"
- },
- "factories": {
- "type": "integer"
- },
- "factory": {
- "type": [
- "object",
- "null"
- ]
- },
- "factory_fraction": {
- "type": "number"
- },
- "factory_qubits": {
- "type": "integer"
- },
- "headline": {
- "type": "boolean"
- },
- "logical_error": {
- "type": "number"
- },
- "physical_qubits": {
- "type": "integer"
- },
- "qubit": {
- "type": "string"
- },
- "receipt": {
- "description": "A receipt of the resource-estimate family: the estimate, the hashes of its job and its result, its Merkle root, its signer and signature, and the receipt it names as parent.",
- "properties": {
- "clock": {
- "additionalProperties": false,
- "description": "On the reaction-limited clock only: the runtime the estimate's steps do not account for, read from its signed figures. How long one tick was is the job's, whose hash binds the reaction time.",
- "properties": {
- "kind": {
- "const": "reaction"
- },
- "tick_time_ns_bits": {
- "type": "string"
- },
- "tick_time_s": {
- "type": "number"
- }
- },
- "required": [
- "kind",
- "tick_time_ns_bits",
- "tick_time_s"
- ],
- "type": "object"
- },
- "energy_provenance": {
- "type": "string"
- },
- "energy_uncertainty": {
- "type": "object"
- },
- "estimate": {
- "type": "object"
- },
- "job_hash": {
- "type": "string"
- },
- "joules_micro": {
- "type": "integer"
- },
- "kind": {
- "const": "quantum-resource"
- },
- "parent_receipt_hash": {
- "type": [
- "string",
- "null"
- ]
- },
- "receipt_hash": {
- "type": "string"
- },
- "result_hash": {
- "type": "string"
- },
- "root_hash": {
- "type": "string"
- },
- "sig": {
- "type": "string"
- },
- "signer_id": {
- "type": "string"
- },
- "signer_pubkey": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "receipt_hash",
- "sig",
- "signer_pubkey"
- ],
- "type": "object"
- },
- "runtime_s": {
- "type": "number"
- },
- "slowdown": {
- "type": "integer"
- },
- "step_us": {
- "type": "number"
- },
- "steps": {
- "type": "integer"
- },
- "t_states": {
- "type": "integer"
- },
- "t_target": {
- "type": "number"
- },
- "tile_qubits": {
- "type": "integer"
- },
- "tiles": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "export": {
- "description": "With export: the program's counts as a logical-counts or a routine document.",
- "type": "object"
- },
- "format": {
- "const": "wai.quantum.estimate/1"
- },
- "frontier": {
- "description": "Estimates no other beats on both physical qubits and runtime; the headline among them.",
- "items": {
- "description": "One estimate on a physical qubit: the code and its distance, the slowdown, physical qubits (the algorithm's and the factories'), factories, runtime, logical steps and their length, tiles, the logical error, T states, and how the budget was shared; sealed by its resource-estimate receipt (receipt), or marked the headline.",
- "properties": {
- "algorithm_qubits": {
- "type": "integer"
- },
- "budget": {
- "properties": {
- "distillation": {
- "type": "number"
- },
- "logical": {
- "type": "number"
- },
- "synthesis": {
- "type": "number"
- }
- },
- "type": "object"
- },
- "clock": {
- "description": "On the reaction-limited clock only: its reaction time, one tick at this estimate's slowdown, and the Toffolis run on ticks. Then steps are the lattice-surgery steps alone, and runtime_s adds the ticks.",
- "properties": {
- "reaction_us": {
- "type": "number"
- },
- "tick_us": {
- "type": "number"
- },
- "toffolis": {
- "type": "integer"
- }
- },
- "required": [
- "reaction_us",
- "tick_us",
- "toffolis"
- ],
- "type": "object"
- },
- "code": {
- "type": "string"
- },
- "distance": {
- "type": "integer"
- },
- "factories": {
- "type": "integer"
- },
- "factory": {
- "type": [
- "object",
- "null"
- ]
- },
- "factory_fraction": {
- "type": "number"
- },
- "factory_qubits": {
- "type": "integer"
- },
- "headline": {
- "type": "boolean"
- },
- "logical_error": {
- "type": "number"
- },
- "physical_qubits": {
- "type": "integer"
- },
- "qubit": {
- "type": "string"
- },
- "receipt": {
- "description": "A receipt of the resource-estimate family: the estimate, the hashes of its job and its result, its Merkle root, its signer and signature, and the receipt it names as parent.",
- "properties": {
- "clock": {
- "additionalProperties": false,
- "description": "On the reaction-limited clock only: the runtime the estimate's steps do not account for, read from its signed figures. How long one tick was is the job's, whose hash binds the reaction time.",
- "properties": {
- "kind": {
- "const": "reaction"
- },
- "tick_time_ns_bits": {
- "type": "string"
- },
- "tick_time_s": {
- "type": "number"
- }
- },
- "required": [
- "kind",
- "tick_time_ns_bits",
- "tick_time_s"
- ],
- "type": "object"
- },
- "energy_provenance": {
- "type": "string"
- },
- "energy_uncertainty": {
- "type": "object"
- },
- "estimate": {
- "type": "object"
- },
- "job_hash": {
- "type": "string"
- },
- "joules_micro": {
- "type": "integer"
- },
- "kind": {
- "const": "quantum-resource"
- },
- "parent_receipt_hash": {
- "type": [
- "string",
- "null"
- ]
- },
- "receipt_hash": {
- "type": "string"
- },
- "result_hash": {
- "type": "string"
- },
- "root_hash": {
- "type": "string"
- },
- "sig": {
- "type": "string"
- },
- "signer_id": {
- "type": "string"
- },
- "signer_pubkey": {
- "type": "string"
- }
- },
- "required": [
- "kind",
- "receipt_hash",
- "sig",
- "signer_pubkey"
- ],
- "type": "object"
- },
- "runtime_s": {
- "type": "number"
- },
- "slowdown": {
- "type": "integer"
- },
- "step_us": {
- "type": "number"
- },
- "steps": {
- "type": "integer"
- },
- "t_states": {
- "type": "integer"
- },
- "t_target": {
- "type": "number"
- },
- "tile_qubits": {
- "type": "integer"
- },
- "tiles": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "notes": {
- "description": "The model's assumptions.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "ok": {
- "const": true
- },
- "options": {
- "description": "The options the estimate ran with, the defaults filled in.",
- "type": "object"
- },
- "program": {
- "description": "What was estimated: a circuit (its digest, BLAKE3 of the program's text), or a document's counts.",
- "properties": {
- "bound": {
- "type": "string"
- },
- "digest": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "origin": {
- "enum": [
- "circuit",
- "counts",
- "routine"
- ]
- },
- "qubits": {
- "type": "integer"
- }
- },
- "type": "object"
- },
- "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"
- },
- "rotations": {
- "description": "Each distinct rotation angle: how many there are, its T count, gates and distance.",
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "schema": {
- "const": "wai.quantum.estimate/1"
- }
- },
- "required": [
- "ok",
- "format",
- "program",
- "counts",
- "epsilon",
- "options",
- "estimate",
- "frontier"
- ],
- "type": "object"
- }
- },
- "required": [
- "request",
- "result"
- ],
- "title": "wai.quantum.estimate/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": "A resource estimate as a host returns it (the command line's estimate --json, both servers' estimate_resources, the job service's POST /v1/estimate): the request, and the result, which its receipt seals in a job's form. The result holds the program's logical counts, the error budget and how it was shared, the decoder calibration the physical model uses, the headline estimate and the frontier trading physical qubits for runtime, each estimate sealed in the resource-estimate receipt family (the frontier's naming the headline's as parent), and the model's notes. A result names the engine that made it and this schema (engine and schema); results made before results carried them have neither. docs/estimate.md explains every number.",
+ "properties": {
+ "request": {
+ "description": "A program (qasm), a logical-counts document (counts) or a routine document (routine), with the estimate's options, as given.",
+ "properties": {
+ "budget": {
+ "type": "number"
+ },
+ "calibration": {
+ "type": "string"
+ },
+ "clock": {
+ "anyOf": [
+ {
+ "const": "steps"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reaction_us": {
+ "exclusiveMaximum": 1000000000,
+ "exclusiveMinimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "reaction_us"
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "How long a Toffoli takes: steps (the default: three logical steps of d cycles), or the reaction-limited clock, a Toffoli one tick of the control system's reaction time in µs, its Clifford fixups teleported away, with enough factories to keep up."
+ },
+ "counts": {
+ "type": "object"
+ },
+ "export": {
+ "enum": [
+ "counts",
+ "routine"
+ ]
+ },
+ "inputs": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "type": "object"
+ },
+ "max_slowdown": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "qasm": {
+ "type": "string"
+ },
+ "qubit": {
+ "type": [
+ "string",
+ "object"
+ ]
+ },
+ "routine": {
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "result": {
+ "properties": {
+ "calibration": {
+ "description": "The decoder calibration the physical model uses: the decoder, the experiment, the fit, its measured range, and how to reproduce it.",
+ "type": "object"
+ },
+ "counts": {
+ "additionalProperties": {
+ "type": [
+ "integer",
+ "number",
+ "string",
+ "null",
+ "array"
+ ]
+ },
+ "description": "The program's logical counts: qubits and ancillas, measurements, Clifford gates, T gates, Toffolis, rotations (each costed at its own synthesised word's T count), T states, depths.",
+ "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"
+ },
+ "epsilon": {
+ "description": "The error budget, the synthesis share and each rotation's share, the bound the rotations' distances add to, and their T counts.",
+ "properties": {
+ "angles": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "bound": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "budget": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "each": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "rotations": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "synthesis": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "t_per_rotation": {
+ "type": [
+ "object",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "estimate": {
+ "description": "One estimate on a physical qubit: the code and its distance, the slowdown, physical qubits (the algorithm's and the factories'), factories, runtime, logical steps and their length, tiles, the logical error, T states, and how the budget was shared; sealed by its resource-estimate receipt (receipt), or marked the headline.",
+ "properties": {
+ "algorithm_qubits": {
+ "type": "integer"
+ },
+ "budget": {
+ "properties": {
+ "distillation": {
+ "type": "number"
+ },
+ "logical": {
+ "type": "number"
+ },
+ "synthesis": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "clock": {
+ "description": "On the reaction-limited clock only: its reaction time, one tick at this estimate's slowdown, and the Toffolis run on ticks. Then steps are the lattice-surgery steps alone, and runtime_s adds the ticks.",
+ "properties": {
+ "reaction_us": {
+ "type": "number"
+ },
+ "tick_us": {
+ "type": "number"
+ },
+ "toffolis": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reaction_us",
+ "tick_us",
+ "toffolis"
+ ],
+ "type": "object"
+ },
+ "code": {
+ "type": "string"
+ },
+ "distance": {
+ "type": "integer"
+ },
+ "factories": {
+ "type": "integer"
+ },
+ "factory": {
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "factory_fraction": {
+ "type": "number"
+ },
+ "factory_qubits": {
+ "type": "integer"
+ },
+ "headline": {
+ "type": "boolean"
+ },
+ "logical_error": {
+ "type": "number"
+ },
+ "physical_qubits": {
+ "type": "integer"
+ },
+ "qubit": {
+ "type": "string"
+ },
+ "receipt": {
+ "description": "A receipt of the resource-estimate family: the estimate, the hashes of its job and its result, its Merkle root, its signer and signature, and the receipt it names as parent.",
+ "properties": {
+ "clock": {
+ "additionalProperties": false,
+ "description": "On the reaction-limited clock only: the runtime the estimate's steps do not account for, read from its signed figures. How long one tick was is the job's, whose hash binds the reaction time.",
+ "properties": {
+ "kind": {
+ "const": "reaction"
+ },
+ "tick_time_ns_bits": {
+ "type": "string"
+ },
+ "tick_time_s": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "tick_time_ns_bits",
+ "tick_time_s"
+ ],
+ "type": "object"
+ },
+ "energy_provenance": {
+ "type": "string"
+ },
+ "energy_uncertainty": {
+ "type": "object"
+ },
+ "energy_unmetered": {
+ "description": "The unmetered form (quantum-ops section 3.5): why nothing read the estimate's energy, inside the signature. Every receipt an estimate is sealed with now carries it.",
+ "type": "string"
+ },
+ "estimate": {
+ "type": "object"
+ },
+ "job_hash": {
+ "type": "string"
+ },
+ "joules_micro": {
+ "description": "The microjoules the estimate took, where something read them; null in the unmetered form (quantum-ops section 3.5), beside energy_unmetered. An unlabelled 0 is the legacy form of the unmetered statement, sealed before that form: never a figure of zero joules.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "kind": {
+ "const": "quantum-resource"
+ },
+ "parent_receipt_hash": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "receipt_hash": {
+ "type": "string"
+ },
+ "result_hash": {
+ "type": "string"
+ },
+ "root_hash": {
+ "type": "string"
+ },
+ "sig": {
+ "type": "string"
+ },
+ "signer_id": {
+ "type": "string"
+ },
+ "signer_pubkey": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "receipt_hash",
+ "sig",
+ "signer_pubkey"
+ ],
+ "type": "object"
+ },
+ "runtime_s": {
+ "type": "number"
+ },
+ "slowdown": {
+ "type": "integer"
+ },
+ "step_us": {
+ "type": "number"
+ },
+ "steps": {
+ "type": "integer"
+ },
+ "t_states": {
+ "type": "integer"
+ },
+ "t_target": {
+ "type": "number"
+ },
+ "tile_qubits": {
+ "type": "integer"
+ },
+ "tiles": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "export": {
+ "description": "With export: the program's counts as a logical-counts or a routine document.",
+ "type": "object"
+ },
+ "format": {
+ "const": "wai.quantum.estimate/1"
+ },
+ "frontier": {
+ "description": "Estimates no other beats on both physical qubits and runtime; the headline among them.",
+ "items": {
+ "description": "One estimate on a physical qubit: the code and its distance, the slowdown, physical qubits (the algorithm's and the factories'), factories, runtime, logical steps and their length, tiles, the logical error, T states, and how the budget was shared; sealed by its resource-estimate receipt (receipt), or marked the headline.",
+ "properties": {
+ "algorithm_qubits": {
+ "type": "integer"
+ },
+ "budget": {
+ "properties": {
+ "distillation": {
+ "type": "number"
+ },
+ "logical": {
+ "type": "number"
+ },
+ "synthesis": {
+ "type": "number"
+ }
+ },
+ "type": "object"
+ },
+ "clock": {
+ "description": "On the reaction-limited clock only: its reaction time, one tick at this estimate's slowdown, and the Toffolis run on ticks. Then steps are the lattice-surgery steps alone, and runtime_s adds the ticks.",
+ "properties": {
+ "reaction_us": {
+ "type": "number"
+ },
+ "tick_us": {
+ "type": "number"
+ },
+ "toffolis": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "reaction_us",
+ "tick_us",
+ "toffolis"
+ ],
+ "type": "object"
+ },
+ "code": {
+ "type": "string"
+ },
+ "distance": {
+ "type": "integer"
+ },
+ "factories": {
+ "type": "integer"
+ },
+ "factory": {
+ "type": [
+ "object",
+ "null"
+ ]
+ },
+ "factory_fraction": {
+ "type": "number"
+ },
+ "factory_qubits": {
+ "type": "integer"
+ },
+ "headline": {
+ "type": "boolean"
+ },
+ "logical_error": {
+ "type": "number"
+ },
+ "physical_qubits": {
+ "type": "integer"
+ },
+ "qubit": {
+ "type": "string"
+ },
+ "receipt": {
+ "description": "A receipt of the resource-estimate family: the estimate, the hashes of its job and its result, its Merkle root, its signer and signature, and the receipt it names as parent.",
+ "properties": {
+ "clock": {
+ "additionalProperties": false,
+ "description": "On the reaction-limited clock only: the runtime the estimate's steps do not account for, read from its signed figures. How long one tick was is the job's, whose hash binds the reaction time.",
+ "properties": {
+ "kind": {
+ "const": "reaction"
+ },
+ "tick_time_ns_bits": {
+ "type": "string"
+ },
+ "tick_time_s": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "tick_time_ns_bits",
+ "tick_time_s"
+ ],
+ "type": "object"
+ },
+ "energy_provenance": {
+ "type": "string"
+ },
+ "energy_uncertainty": {
+ "type": "object"
+ },
+ "energy_unmetered": {
+ "description": "The unmetered form (quantum-ops section 3.5): why nothing read the estimate's energy, inside the signature. Every receipt an estimate is sealed with now carries it.",
+ "type": "string"
+ },
+ "estimate": {
+ "type": "object"
+ },
+ "job_hash": {
+ "type": "string"
+ },
+ "joules_micro": {
+ "description": "The microjoules the estimate took, where something read them; null in the unmetered form (quantum-ops section 3.5), beside energy_unmetered. An unlabelled 0 is the legacy form of the unmetered statement, sealed before that form: never a figure of zero joules.",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "kind": {
+ "const": "quantum-resource"
+ },
+ "parent_receipt_hash": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "receipt_hash": {
+ "type": "string"
+ },
+ "result_hash": {
+ "type": "string"
+ },
+ "root_hash": {
+ "type": "string"
+ },
+ "sig": {
+ "type": "string"
+ },
+ "signer_id": {
+ "type": "string"
+ },
+ "signer_pubkey": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "receipt_hash",
+ "sig",
+ "signer_pubkey"
+ ],
+ "type": "object"
+ },
+ "runtime_s": {
+ "type": "number"
+ },
+ "slowdown": {
+ "type": "integer"
+ },
+ "step_us": {
+ "type": "number"
+ },
+ "steps": {
+ "type": "integer"
+ },
+ "t_states": {
+ "type": "integer"
+ },
+ "t_target": {
+ "type": "number"
+ },
+ "tile_qubits": {
+ "type": "integer"
+ },
+ "tiles": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "notes": {
+ "description": "The model's assumptions.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "ok": {
+ "const": true
+ },
+ "options": {
+ "description": "The options the estimate ran with, the defaults filled in.",
+ "type": "object"
+ },
+ "program": {
+ "description": "What was estimated: a circuit (its digest, BLAKE3 of the program's text), or a document's counts.",
+ "properties": {
+ "bound": {
+ "type": "string"
+ },
+ "digest": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "origin": {
+ "enum": [
+ "circuit",
+ "counts",
+ "routine"
+ ]
+ },
+ "qubits": {
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ },
+ "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"
+ },
+ "rotations": {
+ "description": "Each distinct rotation angle: how many there are, its T count, gates and distance.",
+ "items": {
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schema": {
+ "const": "wai.quantum.estimate/1"
+ }
+ },
+ "required": [
+ "ok",
+ "format",
+ "program",
+ "counts",
+ "epsilon",
+ "options",
+ "estimate",
+ "frontier"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "request",
+ "result"
+ ],
+ "title": "wai.quantum.estimate/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"
+ }
+]