Some checks failed
standards workspaces build + test / which workspaces this change touches (pull_request) Successful in 8s
wai-audit collector and player integration / does this change touch it (pull_request) Successful in 6s
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (pull_request) Successful in 7s
WAI operation catalogue / does this change touch it (pull_request) Successful in 10s
WAI conformance / does this change touch it (pull_request) Successful in 7s
WAI energy receipts / does this change touch it (pull_request) Successful in 7s
WAI examples / WAI examples · does this change touch them (pull_request) Successful in 8s
wai-quantum command line / does this change touch it (pull_request) Successful in 8s
wai-quantum contract / does this change touch it (pull_request) Successful in 6s
wai-quantum dataflow member / does this change touch it (pull_request) Successful in 7s
wai-quantum CUDA member / does this change touch it (pull_request) Successful in 8s
wai-quantum docs, course and locales / does this change touch it (pull_request) Successful in 7s
wai-quantum signal processor / does this change touch it (pull_request) Successful in 10s
wai-quantum editors / does this change touch it (pull_request) Successful in 6s
wai-quantum resource estimation / does this change touch it (pull_request) Successful in 9s
wai-quantum other formats / does this change touch it (pull_request) Successful in 5s
wai-quantum FPGA member / does this change touch it (pull_request) Successful in 8s
wai-quantum HIP member / does this change touch it (pull_request) Successful in 8s
wai-quantum for JavaScript / does this change touch it (pull_request) Successful in 10s
wai-quantum OpenQASM reader / does this change touch it (pull_request) Successful in 5s
wai-quantum Metal member / does this change touch it (pull_request) Successful in 6s
wai-quantum npu-cores member / does this change touch it (pull_request) Successful in 5s
wai-quantum neural-processor member / does this change touch it (pull_request) Successful in 6s
wai-quantum OpenCL member / does this change touch it (pull_request) Successful in 5s
wai-quantum pulse and dynamics / does this change touch it (pull_request) Successful in 6s
wai-quantum for Python / does this change touch it (pull_request) Successful in 5s
wai-quantum error correction and mitigation / does this change touch it (pull_request) Successful in 5s
wai-quantum-qpu / does this change touch it (pull_request) Successful in 5s
wai-quantum extension points / does this change touch it (pull_request) Successful in 8s
wai-quantum service / does this change touch it (pull_request) Successful in 5s
wai-quantum matrix-extension member / does this change touch it (pull_request) Successful in 7s
wai-quantum studio and desktop / does this change touch it (pull_request) Successful in 5s
wai-quantum tensor-engine member / does this change touch it (pull_request) Successful in 9s
wai-quantum portable tensor program / does this change touch it (pull_request) Successful in 6s
wai-quantum variational and algorithm library / does this change touch it (pull_request) Successful in 5s
wai-quantum CPU vector units / does this change touch it (pull_request) Successful in 7s
wai-quantum on every processor / emulated · aarch64-unknown-linux-gnu (pull_request) Successful in 4m54s
wai-quantum verdicts and repairs / does this change touch it (pull_request) Successful in 6s
wai-quantum views in agent hosts / does this change touch it (pull_request) Successful in 7s
wai-quantum WebGPU member / does this change touch it (pull_request) Successful in 6s
wai-sink-android native sink library / does this change touch it (pull_request) Successful in 7s
wai-sink-swift native sink package / does this change touch it (pull_request) Successful in 7s
WAI Studio / does this change touch it (pull_request) Successful in 7s
wai-web reach builds / wai-web reach · does this change touch it (pull_request) Successful in 6s
wai-quantum on every processor / emulated · i686-unknown-linux-gnu (pull_request) Successful in 3m5s
wai-web wasm32 / does this change touch it (pull_request) Successful in 7s
wai-quantum on every processor / emulated · armv7-unknown-linux-gnueabihf (pull_request) Successful in 5m26s
wai-quantum on every processor / emulated · powerpc64-unknown-linux-gnu (pull_request) Successful in 7m6s
wai-quantum on every processor / emulated · loongarch64-unknown-linux-gnu (pull_request) Successful in 7m24s
wai-quantum on every processor / emulated · s390x-unknown-linux-gnu (pull_request) Successful in 6m55s
wai-quantum on every processor / emulated · sparc64-unknown-linux-gnu (pull_request) Successful in 15m49s
WAI conformance / fast integer kernels, every x86_64 kernel set (AVX-512 silicon) (pull_request) Failing after 0s
wai-quantum on every processor / emulated · powerpc64le-unknown-linux-gnu (pull_request) Successful in 42m40s
wai-quantum on every processor / emulated · riscv64gc-unknown-linux-gnu (pull_request) Successful in 48m37s
wai-quantum HIP member / member · HIP (framework-128gb) (pull_request) Successful in 1m29s
wai-quantum WebGPU member / member · DX12 and Vulkan (cbio-windows) (pull_request) Successful in 11m49s
wai-quantum npu-cores member / member · npu-cores, neural processor (framework-128gb silicon) (pull_request) Successful in 1m27s
wai-quantum OpenCL member / member · OpenCL GPU (framework-128gb) (pull_request) Successful in 26s
wai-quantum portable tensor program / tensor program · integrated GPU (framework-128gb) (pull_request) Successful in 22s
wai-quantum CPU vector units / member · vector units, avx2 and avx512 (framework-128gb silicon) (pull_request) Successful in 27s
wai-quantum WebGPU member / member · integrated GPU, Vulkan (framework-128gb) (pull_request) Successful in 9m39s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Successful in 4m43s
wai-quantum CUDA member / member · CUDA (thor) (pull_request) Successful in 2m1s
wai-quantum OpenCL member / member · OpenCL GPU and CPU (thor) (pull_request) Successful in 49s
wai-quantum WebGPU member / member · GPU, Vulkan (thor) (pull_request) Successful in 24m36s
wai-audit collector and player integration / collector · linux (pull_request) Successful in 1m59s
WAI breaking changes and the conformance runner / WAI breaking and conform · their tests, and the independent verifiers through wai conform · linux (pull_request) Successful in 3m15s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 29s
WAI conformance / faces from keypoints under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m39s
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (pull_request) Failing after 6m1s
WAI conformance / quantum core and corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 4m13s
wai-quantum contract / the policy is linked, and the deprecations page reads (pull_request) Successful in 5s
wai-quantum command line / command line · linux (pull_request) Successful in 3m19s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (pull_request) Successful in 2m2s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:401e) (pull_request) Successful in 1m34s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 39s
WAI conformance / codec wrappers · fuzz smoke, text decode limits, C entry points, provenance, the semantic path (pull_request) Successful in 1m45s
wai-quantum contract / schemas and the committed tool lists · linux (pull_request) Successful in 6m33s
WAI operation catalogue / the catalogue and every door · linux (pull_request) Successful in 15m0s
wai-quantum docs, course and locales / the Studio's words in every locale · linux (pull_request) Successful in 50s
WAI examples / WAI examples · portable · linux (pull_request) Successful in 9m32s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:b140) (pull_request) Successful in 6m34s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 15m56s
wai-quantum CUDA member / member · CUDA absent (linux) (pull_request) Successful in 6m20s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 10m28s
wai-quantum docs, course and locales / the course and the command line's languages · linux (pull_request) Successful in 11m2s
wai-quantum contract / API compatibility · linux (pull_request) Successful in 15m40s
wai-quantum dataflow member / member · dataflow device absent (macos) (pull_request) Successful in 34s
WAI conformance / cargo-class corpora · macos (pull_request) Failing after 16m1s
wai-quantum command line / command line · macos (pull_request) Successful in 3m9s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 8m58s
wai-quantum resource estimation / estimation and calibration · linux, release (pull_request) Successful in 2m17s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (pull_request) Successful in 17m25s
wai-quantum editors / editors · macos (pull_request) Successful in 1m18s
wai-quantum FPGA member / member · FPGA simulation absent (linux) (pull_request) Successful in 35s
wai-quantum editors / editors · linux (pull_request) Successful in 10m34s
wai-quantum other formats / the set under wasm32-wasip2 (wasmtime) (pull_request) Successful in 6m29s
wai-quantum Metal member / member · Metal absent (linux) (pull_request) Successful in 31s
wai-quantum OpenQASM reader / corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m8s
wai-quantum OpenQASM reader / reader and corpus · linux (pull_request) Successful in 1m47s
wai-quantum signal processor / processor and member · signal processor, emulated (pull_request) Successful in 22m48s
wai-quantum neural-processor member / member · neural processor absent (linux) (pull_request) Successful in 28s
wai-quantum OpenCL member / member · OpenCL absent (linux) (pull_request) Successful in 26s
wai-quantum pulse and dynamics / reader, simulator and pulse jobs under wasm32-wasip2 (wasmtime) (pull_request) Successful in 58s
wai-quantum pulse and dynamics / reader, simulator and pulse jobs · linux, release (pull_request) Successful in 1m25s
wai-quantum FPGA member / member · FPGA datapath, simulated (macos) (pull_request) Successful in 5m13s
wai-quantum Metal member / member · Metal (macos) (pull_request) Successful in 33s
wai-quantum other formats / readers, writers and the set · linux (pull_request) Successful in 16m49s
wai-quantum for JavaScript / javascript · linux (pull_request) Successful in 11m36s
wai-quantum error correction and mitigation / codes, decoders, texts and mitigation · linux, release (pull_request) Successful in 2m19s
wai-quantum-qpu / clients against their contracts (linux) (pull_request) Successful in 2m6s
wai-quantum for Python / python · linux (pull_request) Successful in 5m42s
wai-quantum extension points / the registry under wasm32-wasip2 (wasmtime) (pull_request) Successful in 51s
wai-quantum OpenCL member / member · OpenCL GPU (macos) (pull_request) Successful in 32s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 26m41s
wai-quantum pulse and dynamics / the same bits · macos (pull_request) Successful in 1m22s
wai-quantum matrix-extension member / member · matrix extension, emulated (aarch64 Linux) (pull_request) Successful in 14s
wai-quantum for Python / python · macos (pull_request) Successful in 2m16s
wai-quantum-qpu / credentials in the keychain (macos) (pull_request) Successful in 26s
wai-quantum neural-processor member / member · neural processor (macos) (pull_request) Successful in 6m2s
wai-quantum service / service · linux (pull_request) Successful in 5m48s
wai-quantum portable tensor program / tensor program · CPU, mutants, GPU builds (pull_request) Successful in 31s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 5m22s
wai-quantum CPU vector units / member · vector unit, rvv 1024-bit (riscv64, emulated) (pull_request) Successful in 13s
wai-quantum CPU vector units / member · vector unit, rvv 128-bit (riscv64, emulated) (pull_request) Successful in 11s
wai-quantum CPU vector units / member · vector unit, sve 128-bit (aarch64, emulated) (pull_request) Successful in 20s
wai-quantum tensor-engine member / member · tensor engine, the kernel toolchain's simulator (linux) (pull_request) Successful in 4m56s
wai-quantum CPU vector units / member · vector unit, sve 2048-bit (aarch64, emulated) (pull_request) Successful in 11s
wai-quantum CPU vector units / member · vector unit, avx2 (x86_64 silicon) (pull_request) Successful in 9s
wai-quantum CPU vector units / member · vector unit, sve 512-bit (aarch64, emulated) (pull_request) Successful in 11s
wai-quantum studio and desktop / desktop app · linux (pull_request) Successful in 6m29s
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux, release (pull_request) Successful in 2m50s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 50m31s
wai-quantum extension points / the registry and the example · linux (pull_request) Successful in 10m30s
wai-quantum matrix-extension member / member · matrix extension absent (macos) (pull_request) Successful in 13s
wai-quantum portable tensor program / tensor program · Metal and the arm64 CPU (macos) (pull_request) Successful in 26s
wai-quantum verdicts and repairs / verdicts, repairs and the intent set · linux (pull_request) Successful in 4m26s
wai-quantum views in agent hosts / views · the page and its engine (pull_request) Successful in 3m21s
wai-quantum verdicts and repairs / the intent set and the verdict under wasm32-wasip2 (wasmtime) (pull_request) Successful in 4m43s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 4m19s
wai-quantum CPU vector units / member · vector unit absent (macos) (pull_request) Successful in 21s
wai-quantum WebGPU member / shader checks · browser build · wasip2 inertness (pull_request) Successful in 3m25s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (pull_request) Successful in 1m54s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 2m27s
wai-quantum WebGPU member / member · software Vulkan (linux) (pull_request) Successful in 4m57s
wai-quantum service / service · macos (pull_request) Successful in 11m49s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 5m26s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 8m0s
wai-quantum WebGPU member / member · browser WebGPU (macos) (pull_request) Successful in 2m30s
wai-quantum views in agent hosts / views · a scripted host (pull_request) Successful in 11m38s
wai-quantum studio and desktop / desktop app · windows (pull_request) Successful in 9m44s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 6m42s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 10m25s
wai-quantum WebGPU member / member · Metal (macos) (pull_request) Successful in 13m13s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 15m4s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 41m50s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Has been cancelled
wai-quantum CUDA member / member · CUDA (jetson-hub) (pull_request) Successful in 1m58s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Has been cancelled
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Has been cancelled
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Has been cancelled
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Has been cancelled
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Has been cancelled
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Has been cancelled
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Has been cancelled
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Has been cancelled
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Has been cancelled
wai-quantum OpenCL member / member · OpenCL GPU and CPU (jetson-hub) (pull_request) Successful in 54s
wai-quantum HIP member / member · HIP absent (linux-arm64) (pull_request) Has been cancelled
wai-quantum service / service energy · linux packages (pull_request) Failing after 57s
wai-quantum npu-cores member / member · npu-cores absent (linux-arm64) (pull_request) Has been cancelled
wai-quantum portable tensor program / tensor program · GPUs (jetson-hub) (pull_request) Successful in 49s
wai-quantum pulse and dynamics / the same bits · linux-arm64 (pull_request) Has been cancelled
wai-quantum extension points / the registry and the example · linux-arm64 (pull_request) Has been cancelled
wai-quantum tensor-engine member / member · tensor engine absent (linux-arm64) (pull_request) Has been cancelled
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux-arm64, release (pull_request) Has been cancelled
wai-quantum WebGPU member / member · GPU, Vulkan (jetson-hub) (pull_request) Has been cancelled
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Has been cancelled
The second review found finding 1 closed only for undeclared inputs. A program that
declared `input uint err;` and never used it passed the bit-flip lesson at proof, and
one that branched on the classical err passed the syndrome lesson.
A new constraint, `inject`, names the input whose value is the qubit an error flips.
The cases' programs may then differ in that one gate alone, an x on the qubit the case
names, every other gate, measurement and step the same (course::injected). So the error
is in the quantum state, the program cannot read it classically, and what finds and
corrects it is the program's quantum operations, the same in every case. A program
that never applies the error, reads it elsewhere, or flips another qubit fails, saying
which. A second, `qubits` ({"max": n}), closes the last way round: an answer kept on a
qubit no error reaches. bit-flip-code and syndrome set both; their solutions and wrong
answers keep their results. The exercise schema names both, and a case set an
injection cannot be made from is refused.
Test an_injected_error_is_corrected_from_the_qubits_and_never_read, failing on
ba59c776e for the reason it states (the declared, unused input passed bit-flip-code).
Course tests 13 -> 14 in wai-quantum-docs.yml.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
310 lines
8.3 KiB
JSON
310 lines
8.3 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://git.transaction.science/Transaction-Science/open-standards/raw/branch/main/wai/wai-quantum/schemas/exercise.v1.json",
|
|
"title": "wai.quantum.exercise/1",
|
|
"description": "One lesson's exercise (course/lessons/<id>/exercise.json): what the program must do, checked by the engine (engine::course::check), with its solution and known wrong answers, which the tests hold to pass and to fail. Every text is given in each of the course's locales.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"schema",
|
|
"id",
|
|
"title",
|
|
"task",
|
|
"starter",
|
|
"hints",
|
|
"reference",
|
|
"wrong"
|
|
],
|
|
"$defs": {
|
|
"localized": {
|
|
"type": "object",
|
|
"description": "A text in each locale of the course",
|
|
"required": [
|
|
"en",
|
|
"zh-CN"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"en": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"zh-CN": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
},
|
|
"program": {
|
|
"description": "An OpenQASM program: its text, or its lines",
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"intent": {
|
|
"description": "One intent or a list, as a job takes it (wai-quantum://docs/verdicts): an exact distribution, a reference program to equal or whose state to prepare, or a sampled test",
|
|
"oneOf": [
|
|
{
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"bound": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"minProperties": 1,
|
|
"properties": {
|
|
"min": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"max": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
}
|
|
},
|
|
"at_most": {
|
|
"type": "object",
|
|
"description": "A bound the course says as at most n: its max alone",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"max"
|
|
],
|
|
"properties": {
|
|
"max": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"properties": {
|
|
"schema": {
|
|
"const": "wai.quantum.exercise/1"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"description": "The lesson's id, its directory's name"
|
|
},
|
|
"translations": {
|
|
"type": "object",
|
|
"description": "For each locale but English, how its texts were translated (machine-assisted until a fluent reader has reviewed them)",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"title": {
|
|
"$ref": "#/$defs/localized"
|
|
},
|
|
"task": {
|
|
"$ref": "#/$defs/localized"
|
|
},
|
|
"starter": {
|
|
"$ref": "#/$defs/program"
|
|
},
|
|
"job": {
|
|
"type": "object",
|
|
"description": "What the check runs the program with, as a job gives it",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"shots": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"seed": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"noise": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 1
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"intent": {
|
|
"$ref": "#/$defs/intent"
|
|
},
|
|
"cases": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"maxItems": 16,
|
|
"description": "A generator's inputs to check the program at, each a case with its own verdict, at most 16 (engine::course::MOST_CASES); a case without an intent takes the exercise's. Every input a case gives must be one the program declares, and the constraints hold in every case",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"inputs",
|
|
"name"
|
|
],
|
|
"properties": {
|
|
"inputs": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"name": {
|
|
"$ref": "#/$defs/localized"
|
|
},
|
|
"intent": {
|
|
"$ref": "#/$defs/intent"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"constraints": {
|
|
"type": "object",
|
|
"description": "How the program must do it, measured on it by the engine",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"allow": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "The only gates the program may use, by the reader's names"
|
|
},
|
|
"counts": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/$defs/bound"
|
|
},
|
|
"description": "Bounds on how many of a gate the program has"
|
|
},
|
|
"t_count": {
|
|
"$ref": "#/$defs/at_most",
|
|
"description": "A bound on the T gates: a t or tdg counts one, a p or rz by an odd multiple of π/4 one (a T up to Clifford gates), a Clifford gate none; a program with any other gate holds to no T count"
|
|
},
|
|
"two_qubit": {
|
|
"$ref": "#/$defs/at_most",
|
|
"description": "A bound on the two-qubit gates; a program with a gate on three qubits holds to none"
|
|
},
|
|
"no_smells": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"enum": [
|
|
"cancels",
|
|
"merges",
|
|
"does_nothing",
|
|
"idle",
|
|
"unmeasured"
|
|
]
|
|
},
|
|
"description": "The critique's smells the program must not have"
|
|
},
|
|
"estimate": {
|
|
"type": "object",
|
|
"description": "Bounds on the resource estimate's logical counts",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"toffolis": {
|
|
"$ref": "#/$defs/at_most"
|
|
},
|
|
"t_gates": {
|
|
"$ref": "#/$defs/at_most"
|
|
},
|
|
"rotations": {
|
|
"$ref": "#/$defs/at_most"
|
|
},
|
|
"logical_qubits": {
|
|
"$ref": "#/$defs/at_most"
|
|
},
|
|
"t_states": {
|
|
"$ref": "#/$defs/at_most"
|
|
}
|
|
}
|
|
},
|
|
"qubits": {
|
|
"$ref": "#/$defs/at_most",
|
|
"description": "A bound on the qubits the program declares"
|
|
},
|
|
"inject": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"description": "The input whose value, in each case, is the qubit an error flips: the cases' programs may differ only in that one x, so the program finds and corrects the error from the qubits and cannot read it otherwise. Every case gives it, and at least two give different ones"
|
|
}
|
|
}
|
|
},
|
|
"hints": {
|
|
"type": "object",
|
|
"description": "Hints from gentle to specific, the same number in each locale; none gives the solution",
|
|
"required": [
|
|
"en",
|
|
"zh-CN"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"en": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"zh-CN": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"reference": {
|
|
"$ref": "#/$defs/program",
|
|
"description": "A solution: the tests hold it to pass; no surface shows it"
|
|
},
|
|
"wrong": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"description": "Known wrong answers, each held by the tests to fail for the reason it states",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"qasm",
|
|
"fails",
|
|
"note"
|
|
],
|
|
"properties": {
|
|
"qasm": {
|
|
"$ref": "#/$defs/program"
|
|
},
|
|
"fails": {
|
|
"enum": [
|
|
"intent",
|
|
"constraint",
|
|
"refused"
|
|
]
|
|
},
|
|
"note": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|