Repository navigation
Tooling: 3.15× faster production Clifford zero_state via gate tables with identical receipts - #2329
VictorLiwentao wants to merge 3 commits into
Conversation
…d evaluator Wire the proved exact permutation/phase tables from research/clifford-state-performance/ into the multicold clifford_exact.py used by scripts/verify_cold617_interface.py. Vendor pairwise-era bytes as baseline.py; demote the opt-in live pin; honestly refresh research/clifford-reciprocal-basis-obstruction's clifford_exact pin. Prepared by Wentao Li with substantial AI assistance.
Record pinned-CPU 3.15× helper-interface medians for clifford-state-production. Restore live-file swap + perm-foil corruption control. Demote clifford-reciprocal-basis-obstruction's multicold clifford_exact pin to provenance (drop from VERIFY inputs) so research-packages CI does not see working-source drift after the production gate-table rewrite. Prepared by Wentao Li with substantial AI assistance.
VERIFY/README no longer claim a read-only default: helper-interface runs briefly swap the live production evaluator under try/finally restore. Move cold-wrapper-amplitude-audit's pairwise clifford_exact digest to provenance_sha256 (audit does not import that module). Prepared by Wentao Li with substantial AI assistance.
|
Maintainer review of
A consumed oracle is an input, not historical provenance. Please preserve a pinned original runtime baseline for the historical replay, or explicitly migrate the replay to a pinned optimized oracle with complete regenerated evidence and the original drift-control coverage. Keep immutable evidence intact and audit the same issue in This is a reproducibility/integration hold, not a rejection of the speedup. Exact evidence is retained in the efficient1300 audit as |
Change and scope
At base
0fdd7d82de03e43c9e5a1000dfbcd380d1b687d2, production multicoldclifford_exact.pystill built the exact zero state by expanding the Clifford circuit. The opt-in adapterresearch/clifford-state-performance/(lineage of #662) already proved gate-table permutation/phase evaluation with identical cold617 helper-interface receipts. This PR wires that equivalentzero_stateinto the production multicold evaluator used byscripts/verify_cold617_interface.py.Path:
research/complex-multicold/vendor/pr558/vendor/pr552/complex-global/vendor531/vendor/clifford/clifford_exact.py.No certificate κ pins change. Same-tip provenance hygiene:
research/clifford-state-performance/vendors pairwise-era bytes asbaseline.pyand demotes the live pairwise pin.research/clifford-reciprocal-basis-obstruction/demotesclifford_exactto provenance and drops it from liveVERIFY.jsoninputs.research/cold-wrapper-amplitude-audit/moves the pairwiseclifford_exactdigest toprovenance_sha256(that audit does not import the module).Tooling improvement; no new kappa. Selected frontier untouched.
Result
On Linux / CPython 3.12.3 with pinned CPU, five alternating fresh-process pairs gave median helper-interface wall time 1.202 → 0.382 s (3.15×). Timing is host-descriptive and is not a correctness gate. Helper-interface receipts match the baseline evaluator (
states=100,instances=2).Package:
research/clifford-state-production/.Tip:
68a7161a610f175dc8e7b22f95acd033191450d9.Validation
Expected:
Helper-interface receipt/benchmark runs briefly swap the live production
clifford_exact.pyundertry/finallyrestore, becausescripts/verify_cold617_interface.pyforcesMULTICOLD_SOURCEonto the repository multicold tree (temporary overlays are ignored). The working tree is restored after every run. Permutation-foil rejects via subprocess failure. Package gates under-Ostill launch assertion-enabled children. Fullmake verify, selected cold replay, Lean, and multiplication-theorem obligations were not rerun for this isolated evaluator change.Overlap and credit
Closest priors (different delivery):
research/clifford-state-performance// #662 (opt-in gate tables; this is the production wiring), CrocSwap/integer-mult-bounds#756, CrocSwap/integer-mult-bounds#2257 / #2263 / #2276 / #2320 (same production-promotion + provenance pattern). No competing open PR on this productionclifford_exact.pyat refresh.Credit Charles Bethin and the multicold Clifford lineage. Prepared by Wentao Li (VictorLiwentao, @Is__Victor) with substantial AI assistance, under Apache-2.0.