| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
WAI conformance / does this change touch it (pull_request) Successful in 8s
standards workspaces build + test / which workspaces this change touches (pull_request) Successful in 10s
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (pull_request) Successful in 11s
joule-moq-remote host agent / joule-moq-remote · does this change touch it (pull_request) Successful in 14s
wai-audit collector and player integration / does this change touch it (pull_request) Successful in 13s
joule-moq-room room service / joule-moq-room · does this change touch it (pull_request) Successful in 15s
joule-moq-web browser client / joule-moq-web · does this change touch it (pull_request) Successful in 14s
WAI examples / WAI examples · does this change touch them (pull_request) Successful in 7s
WAI operation catalogue / does this change touch it (pull_request) Successful in 19s
wai-app and Create / wai-app · does this change touch it (pull_request) Successful in 20s
wai-fleet service / does this change touch it (pull_request) Successful in 9s
WAI energy receipts / does this change touch it (pull_request) Successful in 19s
WAI JPEG-AI whole decode (pinned inputs, required) / does this change touch it (pull_request) Successful in 7s
wai-ledger service / does this change touch it (pull_request) Successful in 10s
wai-key-proxy / does this change touch it (pull_request) Successful in 10s
wai-ops-gpu integer operators on GPUs / does this change touch it (pull_request) Successful in 10s
wai-pack / wai-pack · does this change touch it (pull_request) Successful in 7s
WAI neural sink gates / does this change touch it (pull_request) Successful in 11s
wai-quantum contract / does this change touch it (pull_request) Successful in 6s
wai-quantum command line / does this change touch it (pull_request) Successful in 8s
joule-code conformance gate / joule-moq-relay, its own energy on a counter (macos) (pull_request) Successful in 37s
wai-quantum signal processor / does this change touch it (pull_request) Successful in 10s
wai-quantum CUDA member / does this change touch it (pull_request) Successful in 13s
wai-quantum resource estimation / does this change touch it (pull_request) Successful in 8s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 27s
wai-quantum other formats / does this change touch it (pull_request) Successful in 10s
wai-quantum editors / does this change touch it (pull_request) Successful in 13s
wai-quantum FPGA member / does this change touch it (pull_request) Successful in 11s
wai-quantum dataflow member / does this change touch it (pull_request) Successful in 16s
wai-quantum docs, course and locales / does this change touch it (pull_request) Successful in 16s
wai-quantum for JavaScript / does this change touch it (pull_request) Successful in 7s
wai-quantum HIP member / does this change touch it (pull_request) Successful in 7s
wai-quantum OpenQASM reader / does this change touch it (pull_request) Successful in 13s
wai-quantum Metal member / does this change touch it (pull_request) Successful in 13s
wai-quantum OpenCL member / does this change touch it (pull_request) Successful in 11s
wai-quantum npu-cores member / does this change touch it (pull_request) Successful in 18s
wai-quantum neural-processor member / does this change touch it (pull_request) Successful in 11s
WAI conformance / codec wrappers · fuzz smoke, text decode limits, C entry points, provenance, the semantic path (pull_request) Successful in 1m3s
joule-moq-remote host agent / joule-moq-remote, every target (macos) (pull_request) Successful in 54s
wai-quantum pulse and dynamics / does this change touch it (pull_request) Successful in 13s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (pull_request) Successful in 1m37s
wai-quantum on every processor / emulated · armv7-unknown-linux-gnueabihf (pull_request) Successful in 59s
wai-quantum for Python / does this change touch it (pull_request) Successful in 8s
wai-quantum error correction and mitigation / does this change touch it (pull_request) Successful in 8s
wai-quantum CUDA member / member · CUDA (jetson-hub) (pull_request) Successful in 1m33s
wai-quantum-qpu / does this change touch it (pull_request) Successful in 10s
wai-quantum extension points / does this change touch it (pull_request) Successful in 9s
wai-quantum matrix-extension member / does this change touch it (pull_request) Successful in 8s
wai-quantum service / does this change touch it (pull_request) Successful in 10s
wai-quantum on every processor / emulated · loongarch64-unknown-linux-gnu (pull_request) Successful in 1m44s
joule-code conformance gate / Build + round-trip C1-C4 vectors (pull_request) Successful in 2m47s
wai-quantum studio and desktop / does this change touch it (pull_request) Successful in 11s
wai-quantum tensor-engine member / does this change touch it (pull_request) Successful in 10s
wai-quantum CUDA member / member · CUDA (thor) (pull_request) Successful in 1m58s
wai-quantum OpenCL member / member · OpenCL GPU and CPU (jetson-hub) (pull_request) Successful in 33s
wai-quantum portable tensor program / does this change touch it (pull_request) Successful in 5s
wai-quantum verdicts and repairs / does this change touch it (pull_request) Successful in 9s
wai-quantum variational and algorithm library / does this change touch it (pull_request) Successful in 13s
wai-quantum CPU vector units / does this change touch it (pull_request) Successful in 12s
wai-quantum views in agent hosts / does this change touch it (pull_request) Successful in 8s
wai-quantum WebGPU member / does this change touch it (pull_request) Successful in 6s
WAI mbt2018_mean integer decode (regenerated vectors) / does this change touch it (pull_request) Successful in 7s
wai-sink-android native sink library / does this change touch it (pull_request) Successful in 16s
WAI conformance / fast integer kernels, every x86_64 kernel set (AVX-512 silicon) (pull_request) Successful in 3m6s
wai-sink-swift native sink package / does this change touch it (pull_request) Successful in 14s
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 5s
wai-web wasm32 / does this change touch it (pull_request) Successful in 8s
wai-quantum OpenCL member / member · OpenCL GPU and CPU (thor) (pull_request) Successful in 49s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 32s
wai-quantum service / service energy · linux packages (pull_request) Successful in 1m17s
wai-quantum HIP member / member · HIP (framework-128gb) (pull_request) Successful in 1m8s
wai-quantum portable tensor program / tensor program · GPUs (jetson-hub) (pull_request) Successful in 24s
wai-quantum on every processor / emulated · riscv64gc-unknown-linux-gnu (pull_request) Successful in 3m33s
wai-quantum on every processor / emulated · s390x-unknown-linux-gnu (pull_request) Successful in 4m11s
WAI conformance / faces from keypoints under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m35s
wai-audit collector and player integration / collector · linux (pull_request) Successful in 1m10s
wai-quantum OpenCL member / member · OpenCL GPU (framework-128gb) (pull_request) Successful in 34s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 4m14s
wai-quantum on every processor / emulated · sparc64-unknown-linux-gnu (pull_request) Successful in 5m11s
wai-quantum on every processor / emulated · aarch64-unknown-linux-gnu (pull_request) Successful in 5m53s
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (pull_request) Successful in 1m49s
WAI conformance / quantum core and corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 3m38s
wai-fleet service / service · macos (pull_request) Successful in 56s
wai-app and Create / wai-app · tests, clippy, the line language's verifier (linux) (pull_request) Successful in 39s
wai-quantum npu-cores member / member · npu-cores, neural processor (framework-128gb silicon) (pull_request) Successful in 1m37s
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 2m38s
wai-quantum portable tensor program / tensor program · integrated GPU (framework-128gb) (pull_request) Successful in 34s
wai-app and Create / wai-app · Create, browser end-to-end (macos) (pull_request) Successful in 7m26s
wai-quantum CPU vector units / member · vector units, avx2 and avx512 (framework-128gb silicon) (pull_request) Successful in 38s
wai-quantum on every processor / emulated · powerpc64-unknown-linux-gnu (pull_request) Successful in 8m57s
wai-ledger service / service · linux (pull_request) Successful in 2m24s
wai-pack / wai-pack · linux (pull_request) Successful in 2m16s
WAI operation catalogue / the catalogue and every door · linux (pull_request) Successful in 5m11s
wai-ledger service / service · macos (pull_request) Successful in 1m37s
wai-quantum WebGPU member / member · DX12 and Vulkan (cbio-windows) (pull_request) Successful in 11m54s
wai-key-proxy / proxy · linux (pull_request) Successful in 1m34s
wai-fleet service / service · linux (pull_request) Successful in 5m4s
WAI neural sink gates / model-free refusals of the neural sink (pull_request) Successful in 2m16s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 12m36s
wai-quantum contract / the policy is linked, and the deprecations page reads (pull_request) Successful in 38s
wai-quantum on every processor / emulated · powerpc64le-unknown-linux-gnu (pull_request) Successful in 13m51s
WAI examples / WAI examples · portable · linux (pull_request) Successful in 9m30s
WAI JPEG-AI whole decode (pinned inputs, required) / fetch pinned JPEG-AI inputs → whole decode + pixel hash, required (pull_request) Successful in 7m12s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 13m21s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 7m40s
wai-quantum CUDA member / member · CUDA absent (linux) (pull_request) Successful in 1m34s
wai-pack / wai-pack · macos (pull_request) Successful in 3m26s
wai-quantum contract / API compatibility · linux (pull_request) Successful in 4m41s
wai-quantum editors / editors · macos (pull_request) Successful in 1m4s
wai-quantum other formats / the set under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m26s
wai-quantum dataflow member / member · dataflow device absent (macos) (pull_request) Successful in 14s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (pull_request) Successful in 16m12s
wai-quantum FPGA member / member · FPGA simulation absent (linux) (pull_request) Successful in 21s
wai-quantum command line / command line · linux (pull_request) Successful in 3m38s
wai-quantum FPGA member / member · FPGA datapath, simulated (macos) (pull_request) Successful in 1m23s
wai-quantum command line / command line · macos (pull_request) Successful in 1m55s
wai-quantum OpenCL member / member · OpenCL GPU (macos) (pull_request) Successful in 27s
wai-quantum resource estimation / estimation and calibration · linux, release (pull_request) Successful in 2m1s
wai-quantum Metal member / member · Metal (macos) (pull_request) Successful in 50s
wai-quantum on every processor / emulated · i686-unknown-linux-gnu (pull_request) Successful in 16m52s
wai-quantum editors / editors · linux (pull_request) Successful in 2m31s
wai-quantum-qpu / credentials in the keychain (macos) (pull_request) Successful in 38s
wai-quantum contract / schemas and the committed tool lists · linux (pull_request) Successful in 6m53s
wai-quantum pulse and dynamics / the same bits · macos (pull_request) Successful in 1m20s
wai-quantum docs, course and locales / the Studio's words in every locale · linux (pull_request) Successful in 8s
wai-quantum matrix-extension member / member · matrix extension absent (macos) (pull_request) Successful in 15s
wai-quantum other formats / readers, writers and the set · linux (pull_request) Successful in 3m44s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:401e) (pull_request) Successful in 2m4s
wai-quantum for Python / python · macos (pull_request) Successful in 2m13s
wai-quantum OpenQASM reader / corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 40s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 46s
wai-quantum Metal member / member · Metal absent (linux) (pull_request) Successful in 33s
wai-quantum WebGPU member / member · integrated GPU, Vulkan (framework-128gb) (pull_request) Successful in 9m21s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Successful in 1m54s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 16m29s
wai-quantum portable tensor program / tensor program · Metal and the arm64 CPU (macos) (pull_request) Successful in 15s
wai-quantum OpenCL member / member · OpenCL absent (linux) (pull_request) Successful in 23s
wai-quantum neural-processor member / member · neural processor absent (linux) (pull_request) Successful in 19s
wai-quantum CPU vector units / member · vector unit absent (macos) (pull_request) Successful in 16s
joule-code conformance gate / joule-moq-relay, every target (pull_request) Successful in 2m59s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 12s
wai-quantum OpenQASM reader / reader and corpus · linux (pull_request) Successful in 1m53s
wai-quantum pulse and dynamics / reader, simulator and pulse jobs under wasm32-wasip2 (wasmtime) (pull_request) Successful in 49s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 27s
wai-ops-gpu integer operators on GPUs / builds · no adapter is not a pass (linux) (pull_request) Successful in 7m42s
wai-quantum for JavaScript / javascript · linux (pull_request) Successful in 2m43s
wai-quantum pulse and dynamics / reader, simulator and pulse jobs · linux, release (pull_request) Successful in 1m37s
wai-quantum-qpu / clients against their contracts (linux) (pull_request) Successful in 38s
wai-quantum studio and desktop / desktop app · windows (pull_request) Successful in 9m9s
wai-quantum matrix-extension member / member · matrix extension, emulated (aarch64 Linux) (pull_request) Successful in 17s
wai-quantum extension points / the registry under wasm32-wasip2 (wasmtime) (pull_request) Successful in 55s
wai-quantum WebGPU member / member · Metal (macos) (pull_request) Successful in 2m17s
wai-quantum service / service · macos (pull_request) Successful in 4m1s
wai-ops-gpu integer operators on GPUs / Metal GPU and browser WebGPU (macos) (pull_request) Successful in 8m41s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 1m45s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 15m1s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:b140) (pull_request) Successful in 5m49s
wai-quantum for Python / python · linux (pull_request) Successful in 2m54s
wai-quantum error correction and mitigation / codes, decoders, texts and mitigation · linux, release (pull_request) Successful in 2m34s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 4m34s
wai-quantum portable tensor program / tensor program · CPU, mutants, GPU builds (pull_request) Successful in 33s
joule-code conformance gate / joule-moq-ingest, every target (pull_request) Successful in 5m52s
wai-quantum docs, course and locales / the course and the command line's languages · linux (pull_request) Successful in 5m20s
joule-moq-remote host agent / joule-moq-remote, every target (linux-arm64) (pull_request) Successful in 1m8s
wai-quantum neural-processor member / member · neural processor (macos) (pull_request) Successful in 6m41s
wai-quantum WebGPU member / member · browser WebGPU (macos) (pull_request) Successful in 1m29s
wai-quantum CPU vector units / member · vector unit, rvv 1024-bit (riscv64, emulated) (pull_request) Successful in 48s
wai-quantum verdicts and repairs / the intent set and the verdict under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m16s
wai-quantum CPU vector units / member · vector unit, rvv 128-bit (riscv64, emulated) (pull_request) Successful in 25s
wai-quantum verdicts and repairs / verdicts, repairs and the intent set · linux (pull_request) Successful in 1m57s
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux, release (pull_request) Successful in 1m40s
wai-quantum CPU vector units / member · vector unit, avx2 (x86_64 silicon) (pull_request) Successful in 19s
wai-quantum CPU vector units / member · vector unit, sve 2048-bit (aarch64, emulated) (pull_request) Successful in 27s
wai-quantum CPU vector units / member · vector unit, sve 128-bit (aarch64, emulated) (pull_request) Successful in 1m3s
wai-quantum CPU vector units / member · vector unit, sve 512-bit (aarch64, emulated) (pull_request) Successful in 21s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 3m45s
wai-quantum WebGPU member / member · GPU, Vulkan (jetson-hub) (pull_request) Successful in 21m15s
wai-quantum service / service · linux (pull_request) Successful in 4m57s
wai-quantum extension points / the registry and the example · linux (pull_request) Successful in 5m58s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (pull_request) Successful in 52s
wai-quantum studio and desktop / desktop app · linux (pull_request) Successful in 5m24s
wai-quantum WebGPU member / member · software Vulkan (linux) (pull_request) Successful in 2m13s
joule-moq-room room service / joule-moq-room, every target (pull_request) Successful in 4m33s
wai-quantum tensor-engine member / member · tensor engine, the kernel toolchain's simulator (linux) (pull_request) Successful in 5m33s
wai-quantum WebGPU member / member · GPU, Vulkan (thor) (pull_request) Successful in 24m51s
wai-quantum views in agent hosts / views · the page and its engine (pull_request) Successful in 3m22s
wai-quantum WebGPU member / shader checks · browser build · wasip2 inertness (pull_request) Successful in 3m19s
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Successful in 5m4s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 7m2s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 2m29s
WAI mbt2018_mean integer decode (regenerated vectors) / regenerate mbt2018_mean integer vectors → Rust decode, required (pull_request) Successful in 5m30s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 11m35s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 4m21s
wai-quantum views in agent hosts / views · a scripted host (pull_request) Successful in 7m15s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 6m8s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 12m25s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 11m58s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 4m2s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 18m33s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 38s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 25s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (pull_request) Successful in 20m39s
wai-quantum HIP member / member · HIP absent (linux-arm64) (pull_request) Successful in 56s
wai-quantum npu-cores member / member · npu-cores absent (linux-arm64) (pull_request) Successful in 26s
wai-quantum pulse and dynamics / the same bits · linux-arm64 (pull_request) Successful in 1m21s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Successful in 13m44s
wai-quantum tensor-engine member / member · tensor engine absent (linux-arm64) (pull_request) Successful in 35s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 13m45s
wai-quantum extension points / the registry and the example · linux-arm64 (pull_request) Successful in 2m46s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 8m2s
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux-arm64, release (pull_request) Successful in 2m29s
wai-quantum signal processor / processor and member · signal processor, emulated (pull_request) Successful in 30m3s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 3m15s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 22m57s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 1h31m53s
Every change since 0.8.0 only adds or fixes, so each package moves its last number (VERSIONING.md, "Before 1.0"). cargo-semver-checks 0.51.0 finds no semver update required for wai-quantum, wai-quantum-cli or wai-quantum-qpu against 0.8.0, 0.2.3 and 0.4.0 on crates.io, and keeps its baselines at the versions last published. Every dependent's requirement names the new versions, both server.json files follow, and the seventeen lockfiles that resolve any of them move with them, each read with --locked. The JavaScript package stays 0.1.1, as nothing in it changed, and the desktop app stays 0.1.2; its requirements move with the others. VERSIONING.md's "Version today" table already reads 0.8.x, 0.4.x and 0.2.x, so only its example of a result's engine moves. The Python README and its zh-CN translation name the wheel at 0.1.2, and the views manifest records the new digest of wai-quantum-views's lockfile, the two things 0.8.0 needed after its release commit. The page is rebuilt with wai/wai-quantum-views/build.sh on the build host with Rust 1.99.1 (build-views.mjs --check passes): its script and styles are unchanged, and the engine inside it is the engine as it is now, which changed its bytes, not its size. The engine's version is among the sealed bytes of a stamped result, so the page's pinned digests move (the course check's 1a9aa0ad... to 49a9fdb8..., the compile's beffb3cb... to 198ea9bd..., the estimate's db90b147... to acbd7208...), the answer set's stored seal is written again (WAI_ANSWER_BUNDLE_WRITE=1), and the notebooks' stored outputs are stored again (ci/check.sh --write-notebooks). The job pins strip the engine and schema and do not move. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
| .. | ||
| conformance | ||
| schemas | ||
| src | ||
| tests | ||
| bring-your-own-quantum.md | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
wai-quantum-qpu
Quantum processors as members of the wai-quantum fabric: clients for the services that run circuits on them, and the person's own providers, brought without a client written for them (Bring your own quantum).
For every circuit, a QpuSampler:
- reads the device's native gates and connectivity from the service;
- compiles the circuit to them exactly, with
wai_quantum::quantum_toolchain::native, and checks the program against the circuit by simulation before anything is sent; - submits it, waits for the job, and reads the counts back onto the circuit's qubits: logical qubit
iis measured into classical biti, which is bitiof the counts' index, whatever physical qubit it ended on.
A queue can outlast any wait, so job::start records a job before it is sent (ledger), and job::check, job::follow and job::cancel come back to it by its record, from any process. Running out of patience leaves the job where it is. job::run keeps no record, so it cancels what does not finish within its bound.
QpuSampler::member certifies the device statistically against the exact distribution of every circuit of a corpus, as the fabric certifies any sampler. Its certificates carry the device's provenance: silicon for a processor, a simulator for a service's simulator. Placement ranks a simulator after silicon.
Services
| Module | Protocol | Native gates | Angles on the wire |
|---|---|---|---|
sampler_v2 |
Sampler V2 jobs: an IAM bearer token, one OpenQASM 3 circuit per job | rz, sx, x, cz on physical qubits $p |
radians |
prx_circuits |
circuit jobs of native instructions on named qubits, one measurement key per classical bit | prx, cz |
radians |
native_turns |
circuit jobs in a native gateset that runs as written; a simulator with device noise models | gpi, gpi2, zz |
turns, so every dyadic angle is exact |
Each module's BASE constant is the endpoint it is written against. Each client is configured from the environment (from_env) or in code. Keys and tokens are held in Secret, which never prints:
| Module | Variables |
|---|---|
sampler_v2 |
WAI_QPU_SAMPLER_API_KEY, WAI_QPU_SAMPLER_CRN, WAI_QPU_SAMPLER_BACKEND |
prx_circuits |
WAI_QPU_PRX_TOKEN, WAI_QPU_PRX_QC |
native_turns |
WAI_QPU_TURNS_KEY, WAI_QPU_TURNS_BACKEND (default simulator), WAI_QPU_TURNS_NOISE |
use wai_quantum_qpu::{QpuSampler, check_probe, probe_circuit, transport::Curl};
use wai_quantum_qpu::native_turns::NativeTurns;
let sampler = QpuSampler::new(NativeTurns::from_env(Curl::new(120))?)?;
// The first job on any service: an X on qubit 0, whose counts must land on index 1.
let (counts, job) = sampler.run(&probe_circuit(3), 1000)?;
check_probe(&counts, 0.95)?;
Bring your own quantum
A device needs no client written for it here: it speaks the open provider protocol, wai.quantum.provider/1, over HTTP or as a local process, and the person lists it in their registry. Bring your own quantum is the guide.
| Module | What it is |
|---|---|
open_provider |
the protocol's client: Http (through curl; a credential only over https or to this machine) and Process (one JSON line each way; the credential in the program's environment, never its command line), and OpenProvider, a Provider over either |
reference |
the reference provider: the protocol around this crate's exact simulator, served over HTTP or standard input and output; the tests run against it, and it is the template to copy |
conformance |
the checker, and its vectors in conformance/provider-v1.json with the reference's counts pinned |
registry |
the person's list of providers (~/.config/wai/quantum-providers.json, holding no credential), and the credential stores: the keychain (the system security tool on macOS, secret-tool on Linux), else a file only its owner reads, labelled so |
job |
the dry run (the exact compile, the check by simulation, the provider's estimate and billing unit), the refusal of a run that is not free until it is confirmed, and the seal of its counts by the engine (wai_quantum::engine::provider), labelled measured |
Provider gains details (the protocol, the calibration snapshot, the billing), estimate, a seeded submit_seeded and cancel, each with a default, so a client that has none keeps working: its cost is then unknown, and a run on it is never taken to be free.
When a provider's describe states its calibration (errors per qubit or per pair), the description is read as a device target, and the program is placed on the qubits and routes most likely to succeed (wai_quantum::engine::targets::layout). It is still in the device's own gates and checked against the circuit before it is sent. The plan and the receipt's compiled.placement say how it was placed, with the target's hash. A description that states no errors keeps the compiler's own layout.
The command line carries it all: wai-quantum providers add|list|remove|describe|test|free|reference and wai-quantum run --provider NAME [--dry-run] [--yes] (its README).
The command
wai-qpu device <service> # the device: qubits, basis, provenance
wai-qpu probe <service> [--qubits N] [--shots N] # the bit-order probe
wai-qpu certify <service> [--shots N] [--cases N] [--report FILE] [--yes]
wai-qpu reference --stdio | --http ADDR [device options] # the reference provider
<service> is sampler-v2, prx-circuits or native-turns, configured from its variables above. A certification runs every circuit of the corpus in both gatesets as a job. On a device whose provenance is silicon that spends the service's quota, so it runs only with --yes. --report writes each certificate with its hash, and every job, as JSON.
Transport
transport::Curl runs curl as a program, so the crate carries no TLS stack. Headers, keys and tokens included, go in a curl configuration file that only this user can read, removed when the request ends. The body goes on curl's standard input. Nothing secret appears on a command line. transport::Scripted answers from a function, for tests.
What is checked here, and what only a service can check
The tests run each client against a service that follows that provider's published contract. The fake parses the submitted program in the provider's own format, runs it on the crate's simulator, and answers in the provider's result shape and bit order. A client whose request, units or bit order departs from the contract reads back the wrong distribution, and the tests fail. A probe test shows that a service using the other bit order is caught.
A real service settles its own conventions. The first job on each should be probe_circuit, checked with check_probe, before any other result is trusted.
The open protocol is tested end to end (tests/providers.rs): every operation against the reference provider as a process and over HTTP; the conformance vectors over both, in each basis; the reference's pinned counts; the registry with its credential in a file only its owner reads (and, on macOS, the keychain in a keychain file made for the test); a run that is not free refused until it is confirmed; receipts that verify with the engine's verifier; and no credential in anything a run returns. Nothing there spends money: the priced runs are the reference's.
The work runs at the service, so every run is unmetered here. An energy figure the service reports, such as a per-job estimate, is kept in the job record as the service's figure (JobRecord::service_kwh). It is never recorded as a measurement.
Every circuit a certification runs is a job on the service, and spends that service's quota.
Versions
The open provider protocol is wai.quantum.provider/1 (the extension, section 10); its messages, program and answers are a JSON Schema, schemas/provider.v1.json, which every message the client sends and every answer the reference provider gives is held to. What is stable in this crate and the protocol, and how a change is announced: the policy; what is deprecated: the deprecations.
Licence
Apache-2.0.