wai-quantum 0.6.14: design critique, equivalence, alternatives and classical shortcuts across every surface; contraction trees that sweep along the line #427
Loading…
Reference in a new issue
No description provided.
Delete branch "wai/quantum-0.6.14"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Five features for WAI Quantum and two engine and service improvements, released as 0.6.14, which carries the unpublished 0.6.13. The five features are the four co-design features from the human–AI creativity research and the classical-shortcut lens. The improvements are contraction trees that sweep along the line, and the design checks on the job service.
This replaces #417 (and #405 before it). Both conflicted with main in the changelog only, because every session adds its entries at the top of the same section. These entries now sit above the 0.6.12 entry, among the other quantum entries, so new entries at the top no longer collide with them. The engine is the microscope and the judge, a local model is a muse that waits to be asked, and the reader is the author. Every figure is the engine's, and nothing changes the program until the reader applies a change.
0.6.13: the engine
engine::critiquegives a program's measures before it runs:It also gives the program's smells, each with its lines and operations: gates that cancel, rotations that merge or do nothing, idle qubits, and qubits never measured. A mid-circuit measurement, reset or condition is a barrier.
critique::variantsrewrites the program's own text with its smells fixed. It offers all the fixes, to a fixed point, and each one alone, each distinct program once. A fix touches only a statement alone on its line, and a merge keeps the user's expressions and comment. Every candidate carries its measures and the equivalence verdict. One the check finds different is never offered.engine::equivchecks two programs are the same circuit up to a global phase:engine::shortcutslists every exact classical route the engine knows for a program, priced on it, and names the cheapest for counts, amplitudes, expectation values and one-qubit expectation values. The routes:A cheap route proves a design classically easy; none being cheap proves nothing, and the result says so. On the 70-qubit random graph-state circuit:
qasm::parse_linesgives each operation's line.draw::layoutgives each gate its operation's index (op), so the diagram can mark what a smell names.0.6.14: contraction trees that sweep along the line
Network::amplitude_split_placedbuilds the same network asamplitude_split, index for index, with each index's place: a qubit and a time.tensor_places,sweep_ordersandsweep_pathturn the places into the trees that sweep qubit by qubit, or time by time.find_path_seededandfind_path_restarts_seededscore the sweeps beside the trials and polish the best of them all alike.tensor_networkmethod and the thorough lens take both sweeps as seeds.On the 70-qubit random graph-state circuit, one amplitude's largest intermediate falls from 2^48 to 2^36, and its multiply-adds from 2^56.1 to 2^48.7, in the thorough lens. With 16 trials and no seeds, the search finds 2^59. The plans pinned in
tests/bit_identity.rsare unchanged.0.6.14: the design checks on the job service
POST /v1/critique,/v1/equivalent,/v1/improveand/v1/shortcuts, with the MCP toolscritique_qasm,check_equivalent,improve_qasmandclassical_shortcuts.smoke.shchecks each endpoint. It now follows a job that outlasts/v1/run's wait, as a client does, instead of failing on a loaded host.Where it reaches
engine_critique,engine_equivalent,engine_variantsandengine_shortcuts, tested native and under wasm. The workflow's counts go from 4 to 6 native tests and from 6 to 8 wasm tests.critique_qasm,check_equivalentandclassical_shortcuts.critique,equivalent,variantsandshortcutscommands, the last off the window's thread.critique;equivalent a b, which exits 0 for the same circuit, 1 for different and 2 for unchecked;improve, which prints the program to stdout and what changed to stderr;shortcuts [--thorough] [--json];critique_qasm,check_equivalent,improve_qasmandclassical_shortcuts, all covered by smoke.sh.examples/cutrank_qasmgainsprobs: the exact2^n·pof given bit strings and their linear XEB.Tested, on the build host
Run through
rbon the build host, as each workflow runs them, on this branch at current main:wai-quantum:
cargo test --features full --lib -- engine:: qasm:: quantum_tn::passes. It includes:tests/bit_identity.rspasses with its pins unchanged. Clippy finds nothing in the changed files.wai-web: the engine's native tests pass 6 of 6, and its wasm tests under
wasm-bindgen-test-runnerpass 8 of 8, the workflow's new counts.Quantum Studio:
test/studio.test.mjspasses 58 of 58 checks in Chrome, against the engine package built as CI builds it. They cover:wai-quantum-cli: tests pass, clippy passes with and without default features, and
smoke.shholds forcritique,improve,equivalent,shortcutsand the MCP tools.wai-quantum-service: tests pass and clippy passes.
smoke.shholds against a service started on the build host, covering the four checks, the refused thorough search and the nine MCP tools.Desktop app: tests pass, including the new commands, and clippy passes.
Every lockfile resolves with
--lockedat 0.6.14.Name, comparative-prose, vanity-metric, tests-in-CI and orphan-source checks pass.
🤖 Generated with Claude Code