open-standards/wai/wai-quantum/examples/gbs_loops
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science a4efd4e634
Some checks failed
wai-audit collector and player integration / does this change touch it (push) Successful in 23s
wai-quantum command line / does this change touch it (push) Successful in 19s
WAI operation catalogue / does this change touch it (push) Successful in 23s
wai-quantum clippy / does this change touch it (push) Successful in 16s
wai-quantum contract / does this change touch it (push) Successful in 15s
wai-quantum docs, course and locales / does this change touch it (push) Successful in 15s
wai-quantum editors / does this change touch it (push) Successful in 23s
wai-quantum resource estimation / does this change touch it (push) Successful in 20s
wai-quantum other formats / does this change touch it (push) Successful in 18s
wai-quantum for JavaScript / does this change touch it (push) Successful in 22s
wai-quantum-landscape-fpga reference design / does this change touch it (push) Successful in 21s
wai-quantum OpenQASM reader / does this change touch it (push) Successful in 34s
wai-quantum pulse and dynamics / does this change touch it (push) Successful in 31s
wai-quantum qudit jobs / does this change touch it (push) Successful in 26s
wai-quantum error correction and mitigation / does this change touch it (push) Successful in 37s
wai-quantum extension points / does this change touch it (push) Successful in 33s
wai-quantum service / does this change touch it (push) Successful in 46s
wai-quantum studio and desktop / does this change touch it (push) Successful in 46s
wai-quantum for Python / does this change touch it (push) Successful in 2m23s
wai-quantum service / service energy · linux packages (push) Failing after 12s
wai-quantum views in agent hosts / does this change touch it (push) Successful in 51s
wai-quantum on Windows / does this change touch it (push) Successful in 49s
wai-sink-swift native sink package / does this change touch it (push) Successful in 2m59s
wai-quantum variational and algorithm library / does this change touch it (push) Successful in 3m33s
wai-quantum verdicts and repairs / does this change touch it (push) Successful in 3m26s
WAI Studio / does this change touch it (push) Successful in 2m57s
wai-sink-android native sink library / does this change touch it (push) Successful in 3m3s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (push) Has been cancelled
WAI Studio / Studio in Chromium and Firefox · macos (push) Has been cancelled
WAI Studio / Studio in WebKit · linux (push) Has been cancelled
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (push) Has been cancelled
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (push) Has been cancelled
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (push) Has been cancelled
wai-quantum on Windows / engine · windows (push) Has been cancelled
wai-quantum on Windows / command line · windows (push) Has been cancelled
wai-quantum on Windows / job service · windows (push) Has been cancelled
wai-quantum on Windows / python · windows (push) Has been cancelled
wai-quantum wasmQ / does this change touch it (push) Has been cancelled
wai-quantum wasmQ / profile, engines, reference modules, adversarial, vectors · linux (push) Has been cancelled
wai-quantum wasmQ / profile, engines, reference modules, adversarial, vectors · macos (push) Has been cancelled
wai-quantum wasmQ / the reference modules rebuild to their modules of record · linux (push) Has been cancelled
wai-quantum wasmQ / interpreter and vectors under wasm32-wasip2 (wasmtime) (push) Has been cancelled
wai-quantum views in agent hosts / views · the page and its engine (push) Has been cancelled
wai-quantum views in agent hosts / views · a scripted host (push) Has been cancelled
wai-quantum verdicts and repairs / verdicts, repairs and the intent set · linux (push) Has been cancelled
wai-quantum verdicts and repairs / the intent set and the verdict under wasm32-wasip2 (wasmtime) (push) Has been cancelled
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux, release (push) Has been cancelled
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux-arm64, release (push) Has been cancelled
wai-quantum studio and desktop / studio · browser (push) Has been cancelled
wai-quantum studio and desktop / desktop app · macos (push) Has been cancelled
wai-quantum studio and desktop / desktop app · linux (push) Has been cancelled
wai-quantum studio and desktop / desktop app · windows (push) Has been cancelled
wai-quantum extension points / the registry and the example · linux (push) Has been cancelled
wai-quantum extension points / the registry and the example · linux-arm64 (push) Has been cancelled
wai-quantum extension points / the registry under wasm32-wasip2 (wasmtime) (push) Has been cancelled
wai-quantum qudit jobs / the module, the job, the conformance set, the referee and the verb · linux (push) Has been cancelled
wai-quantum qudit jobs / the same bits · macos (push) Has been cancelled
wai-quantum qudit jobs / the module and the conformance set under wasm32-wasip2 (wasmtime) (push) Has been cancelled
wai-quantum error correction and mitigation / codes, decoders, texts and mitigation · linux, release (push) Has been cancelled
wai-quantum for Python / python · linux (push) Has been cancelled
wai-quantum for Python / python · macos (push) Has been cancelled
wai-quantum pulse and dynamics / reader, simulator and pulse jobs · linux, release (push) Has been cancelled
wai-quantum pulse and dynamics / the same bits · linux-arm64 (push) Has been cancelled
wai-quantum pulse and dynamics / the same bits · macos (push) Has been cancelled
wai-quantum pulse and dynamics / reader, simulator and pulse jobs under wasm32-wasip2 (wasmtime) (push) Has been cancelled
wai-quantum OpenQASM reader / reader and corpus · linux (push) Has been cancelled
wai-quantum OpenQASM reader / corpus under wasm32-wasip2 (wasmtime) (push) Has been cancelled
wai-quantum energy-landscape jobs / does this change touch it (push) Has been cancelled
wai-quantum energy-landscape jobs / reader, kernels, answers and the stated result · linux, release (push) Has been cancelled
wai-quantum energy-landscape jobs / the same bits · linux-arm64 (push) Has been cancelled
wai-quantum energy-landscape jobs / the same bits · macos (push) Has been cancelled
wai-quantum energy-landscape jobs / the module under wasm32-wasip2 (wasmtime) (push) Has been cancelled
wai-quantum energy-landscape jobs / native against WebAssembly, over many seeds (push) Has been cancelled
wai-quantum landscape stage 0, the sampler against the exact law / does this change touch it (push) Has been cancelled
wai-quantum landscape stage 0, the sampler against the exact law / the small tier, to the byte · linux (push) Has been cancelled
wai-quantum landscape stage 0, the sampler against the exact law / the small tier, to the byte · macos (push) Has been cancelled
wai-quantum landscape energy to solution / does this change touch it (push) Has been cancelled
wai-quantum landscape energy to solution / the small tier, to the byte · linux (push) Has been cancelled
wai-quantum landscape energy to solution / the small tier, to the byte · macos (push) Has been cancelled
wai-quantum-landscape-fpga reference design / the member against the model of the logic, and the logic against the model · linux, release (push) Has been cancelled
wai-quantum-landscape-fpga reference design / the board's code on the board's processor's architecture · linux-arm64, release (push) Has been cancelled
wai-quantum for JavaScript / javascript · linux (push) Has been cancelled
wai-quantum other formats / readers, writers and the set · linux (push) Has been cancelled
wai-quantum other formats / the set under wasm32-wasip2 (wasmtime) (push) Has been cancelled
wai-quantum resource estimation / estimation and calibration · linux, release (push) Has been cancelled
wai-quantum editors / editors · linux (push) Has been cancelled
wai-quantum editors / editors · macos (push) Has been cancelled
wai-quantum docs, course and locales / every command and snippet in the docs · linux (push) Has been cancelled
wai-quantum docs, course and locales / the course and the command line's languages · linux (push) Has been cancelled
wai-quantum docs, course and locales / the Studio's words in every locale · linux (push) Has been cancelled
wai-quantum contract / API compatibility · linux (push) Has been cancelled
wai-quantum contract / schemas and the committed tool lists · linux (push) Has been cancelled
wai-quantum contract / the policy is linked, and the deprecations page reads (push) Has been cancelled
wai-quantum clippy / clippy, warnings denied, every feature set · linux (push) Has been cancelled
wai-quantum command line / command line · linux (push) Has been cancelled
wai-quantum command line / command line · macos (push) Has been cancelled
WAI examples / WAI examples · does this change touch them (push) Has been cancelled
WAI examples / WAI examples · portable · linux (push) Has been cancelled
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (push) Has been cancelled
WAI examples / WAI examples · android-app · linux-arm64 (push) Has been cancelled
WAI operation catalogue / the catalogue and every door · linux (push) Has been cancelled
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (push) Has been cancelled
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (push) Has been cancelled
WAI breaking changes and the conformance runner / WAI breaking and conform · their tests, and the independent verifiers through wai conform · linux (push) Has been cancelled
wai-audit collector and player integration / collector · linux (push) Has been cancelled
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (push) Has been cancelled
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (push) Has been cancelled
wai-quantum service / service · linux (push) Successful in 11m57s
wai-quantum service / service · macos (push) Successful in 7m17s
quantum_gbs: a 2022 time-domain photonic boson sampler's samples against their exact ground truth
The published data set of Madsen et al., Nature 606, 75 (2022) (Apache-2.0), all five
instances, held to the engine's exact Gaussian-state computations, a signed receipt per run.

The module gains what the experiment needs, each tested against exact small cases:
- GaussianState::through: squeezed, thermal or squashed inputs through any subunitary
  transfer matrix (a different loss on every path); an amplifying matrix is refused.
- Loops: a time-domain interferometer of fibre loops from its program. It rebuilds every
  published T and U (16 to 288 modes) to within 2.3e-16 per entry.
- photon_moments (exact first- and second-order photon-number cumulants) and
  photon_number_distribution (the exact total-photon distribution, from the eigenvalues
  of I - Q^-1 and the generating function on the unit circle; it holds at 576 x 576).
  In every total, the hafnian probabilities sum to it within 3e-15.
- photon_table: what every pattern probability needs, computed once; photon_probability
  keeps its bits (bit_identity unchanged).

examples/gbs_loops.rs reads the pinned data set (wai/tools/quantum-gbs/fetch.sh).
tests/gbs_reference.rs holds the receipts to the published values and re-runs the
16-mode comparison up to four photons bit for bit.
- 16 modes, 84,096,000 samples: fidelity 99.87-99.66%, total variation distance
  3.95-6.51% for three to six photons (paper: >99%, <=6.5%). The sample count alone
  gives 0.4-3.0%. Thermal, squashed and coherent light are farther off in every total.
- The stated means reproduce: 21.120 +- 0.006, 22.416 +- 0.006, 124.35 +- 0.02, max 219.
- The ground truth explains the pair cumulants best in all five instances.
- Fig. 3b's Bayesian scores for 10-14 photons are above zero against thermal, squashed
  and coherent light.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 02:44:00 -05:00
..
common.rs quantum_gbs: a 2022 time-domain photonic boson sampler's samples against their exact ground truth 2026-11-12 02:44:00 -05:00