Skip to main content
Glama

WAI Quantum job service

Decode a syndrome or a circuit's detectors

qec_decode
Read-onlyIdempotent

Decode with the engine's decoders. At code capacity, give code and a syndrome (the violated checks) or an error (the flipped qubits: its syndrome is taken and its residual judged, logical or not): matching (exact) and union_find for codes whose qubits sit in at most two checks; color for colour codes (restriction to matching on the three restricted lattices, lifted at each colour, completed below half the distance by an exact search); relay_bp for any code (it can stall on a degenerate error of a topological code, and then says it did not converge); search for the lightest error with the syndrome up to max_weight. At circuit level, give memory ({distance, rounds, p}: the rotated surface-code memory experiment), circuit (the circuit text: tags, Pauli-target observables and coordinates read) or model (detector error model text, decompositions with ^ read), with the fired detectors (the prediction: which observables flipped) or shots (sampled and decoded: the failure rate and its standard error): matching (exact), correlated (exact matching twice through the model's decomposed faults, the second answer kept only when the model's mechanisms explain it more cheaply), union_find, bp_osd, or window (a sliding window: window {commit, buffer} rounds; every edge set below half the distance is corrected once the buffer is at least (d + 1)/2). Sealed with the service's key.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "qec_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoA code by name: surface:D (the rotated surface code, odd D from 3 to 15), toric:L (2 to 12), steane, color:D (the triangular 6.6.6 colour code, odd D from 3 to 15), bb:72, bb:90, bb:108, bb:144 (or gross) or bb:288 (bivariate-bicycle codes); or {"family", "distance" | "size" | "n"}.
seedNoThe sampling seed (default 1).
errorNoThe flipped qubits, by index.
modelNoA detector error model in its text.
shotsNoSample this many shots of the circuit and decode each.
memoryNoThe rotated surface-code memory experiment at circuit level.
windowNowindow: rounds each window commits and the rounds after them it sees.
circuitNoA noisy Clifford circuit in the circuit text.
decoderNoThe decoder (default: matching, or color for a colour code, relay_bp for a bivariate-bicycle code).
syndromeNoThe violated checks, by index.
detectorsNoThe detectors that fired.
max_weightNosearch: the heaviest error to try.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • 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"
      +  }
      +]
  2. Changed1 schema field changed
    • 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) signed serde_json's own text under the domain ending \\x01; they still verify.",
      -                "properties": {
      -                  "alg": {
      -                    "const": "ed25519"
      -                  },
      -                  "canon": {
      -                    "const": "rfc8785",
      -                    "description": "The canonical form the digest is taken over."
      -                  },
      -                  "digest": {
      -                    "description": "The digest signed, 32 bytes in hex.",
      -                    "maxLength": 64,
      -                    "minLength": 64,
      -                    "type": "string"
      -                  },
      -                  "key": {
      -                    "description": "The signing key, 32 bytes in hex.",
      -                    "maxLength": 64,
      -                    "minLength": 64,
      -                    "type": "string"
      -                  },
      -                  "signature": {
      -                    "description": "The signature, 64 bytes in hex.",
      -                    "maxLength": 128,
      -                    "minLength": 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) signed serde_json's own text under the domain ending \\x01; they still verify.",
      -                "properties": {
      -                  "alg": {
      -                    "const": "ed25519"
      -                  },
      -                  "canon": {
      -                    "const": "rfc8785",
      -                    "description": "The canonical form the digest is taken over."
      -                  },
      -                  "digest": {
      -                    "description": "The digest signed, 32 bytes in hex.",
      -                    "maxLength": 64,
      -                    "minLength": 64,
      -                    "type": "string"
      -                  },
      -                  "key": {
      -                    "description": "The signing key, 32 bytes in hex.",
      -                    "maxLength": 64,
      -                    "minLength": 64,
      -                    "type": "string"
      -                  },
      -                  "signature": {
      -                    "description": "The signature, 64 bytes in hex.",
      -                    "maxLength": 128,
      -                    "minLength": 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) signed serde_json's own text under the domain ending \\x01; they still verify.",
      -                "properties": {
      -                  "alg": {
      -                    "const": "ed25519"
      -                  },
      -                  "canon": {
      -                    "const": "rfc8785",
      -                    "description": "The canonical form the digest is taken over."
      -                  },
      -                  "digest": {
      -                    "description": "The digest signed, 32 bytes in hex.",
      -                    "maxLength": 64,
      -                    "minLength": 64,
      -                    "type": "string"
      -                  },
      -                  "key": {
      -                    "description": "The signing key, 32 bytes in hex.",
      -                    "maxLength": 64,
      -                    "minLength": 64,
      -                    "type": "string"
      -                  },
      -                  "signature": {
      -                    "description": "The signature, 64 bytes in hex.",
      -                    "maxLength": 128,
      -                    "minLength": 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"
      +                  }
      +                },
      +                "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"
      +  }
      +]
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations only establish read-only, idempotent, closed-world behavior. The description adds substantial behavioral detail beyond them: exactness of matching, restrictions on union_find and color, relay_bp convergence failure, correlated decoding acceptance rules, window buffer requirements, and service-key sealing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every clause carries technical content and there is little filler. However, the description is a dense, semicolon-heavy block that is difficult to scan, and it would benefit from clearer grouping of code-capacity versus circuit-level behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex tool with 12 parameters, nested objects, multiple decoders, and an output schema. The description supplies the missing operational context: mode selection, decoder suitability, defaults, restrictions, and convergence caveats, making it complete enough for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already defines each parameter individually. The description still adds meaning by linking parameters, for example that `error` has its syndrome taken and residual judged, that `detectors` represent the predicted observable flips, and that `window` has commit/buffer rounds with a distance threshold.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb, 'Decode', and specific resources, syndromes and circuit detectors. It clearly separates code-capacity decoding from circuit-level decoding and names the decoders involved, so an agent can distinguish this from adjacent QEC tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit mode-selection guidance: at code capacity supply `code` with `syndrome` or `error`; at circuit level supply `memory`, `circuit`, or `model` with `detectors` or `shots`. It also explains which decoders suit which code types, but it does not explicitly state when not to use this tool versus sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources