Learn track, part B3: scale + Deutsch steps, the 10-step ladder (marker: learn-scale)
TheYuchen
6746262
Step6Scale.tsx — qubit-count stepper 1..30: up to 5 qubits the wall
draws the actual 2^n arrow slots; beyond, a log-scale bar + plain
count with modest anchors (10 a spreadsheet, 20 a photo's pixels,
30 a laptop's RAM — no hype), then the honesty turn as a readout
funnel: 2^n arrows in, n bits out per look; cross-link chips to the
interference and Deutsch steps (StepProps gains optional goToStep).
Step7Deutsch.tsx — the payoff game: seeded mystery coin-rule box;
classical verdict locked until TWO queries; the quantum act stages
the real Deutsch circuit over 4-slot AmpBars (ghost routes on the q0
mix), reads the verdict certain in ONE question, replayable; honesty
card scopes the claim (structure, not universal speed).
LearnLab frame reordered to the final ladder — lean, measure, gates,
phase, interference, Bell (moved unchanged), scale, Deutsch, noise,
certainty; entry copy de-counted (tour/board/TopBar said "six");
docs paragraph updated to the final ladder.
Learn track, part A2: "The hidden direction" (frame step 4 of 7) + Step2 Z upgrade
TheYuchen
ba81ce9
New CircleState.tsx — the honest Bloch slice: a full circle, needle =
current physical state (stateAngle), poles 0/1, sides "fifty-fifty,
plus-way / minus-way"; the key visual is the needle's SHADOW on the
vertical axis with % labels — two different points cast the same
50/50 shadow. Read-only: gates move it, fingers don't.
New Step3Phase.tsx (file names are stage names; the frame's STEPS
array is the only source of order): Act 1 — |+> and |-> prepared via
shown recipes [H] and [X,H] measure as twins (same distribution; the
copy never claims identical counts). Act 2 — one H to both: left
snaps to 0, right to 1, with certainty; a gate separates what
measurement never could. Act 3 — THE SPHERE: pseudo-3D SVG, drag to
rotate around the vertical axis or auto-slow-rotate (reduced-motion
holds a fixed angle), our great circle highlighted with the four
labeled points; the sideways directions are more of the same hidden
dial (phase).
Step2Gates: Z chip ("sign flip — does nothing you can SEE …
Learn from zero, part 2: steps 3-5 + handoff (marker: learn-complete)
TheYuchen
d70dffe
Step3Bell "Two qubits, one fate": the fixed Bell recipe on two wires
(BellRecipe.tsx, read-only SVG), two dials whose needles snap TOGETHER
on every draw, and a 2x2 PairGrid (the Tally idiom folded into the
fourfold table) where only 00/11 ever populate — a certainty claim the
exact sim licenses. "Break the link" swaps CX for H(x)H (NOT mere
deletion, which would pin q1 at 0) so all four cells fill as the
honest independent contrast; both marginal dials read 50% in both
modes — only the joint tally reveals the link.
Step4Noise "Real machines misread": same recipe + grid, a perfect/
noisy machine switch (applyReadoutNoise, seeded) with an eps slider
(0-15%): 01/10 leak warn-tinted counts and the live agreement score
(reported pair == drawn pair; ~88% at 6% noise since both bits must
survive) is fidelity in miniature, bridged to the Noisy simulator
block by name.
Step5Certainty "How many looks is enough?": the noisy agreement score
becomes the estimand, drawn as a live mini funnel in t…
Learn from zero, part 1: exact toy sim + LearnLab frame + steps 0-2 (marker: learn-lab)
TheYuchen
2af5086
lib/quantumToy.ts: tiny EXACT simulator over REAL amplitudes ([a,b] /
[a00..a11]) — exact quantum mechanics for the lesson gate set X/H/CX
(real matrices keep |0...0> in the real subspace), so H·H|0> returns
|0> by sign cancellation and Bell is exactly half/half. Complex phases
are deferred, not denied (module header states the stance); seeded rng
(mulberry32), probs/measureOnce/measureMany/applyReadoutNoise.
Asserted in scripts/check_quantum_toy.test.ts (plain-node lane).
components/LearnLab.tsx: the beginner track BEFORE the guided lessons
— full center-column overlay (same pattern as board/theater, z-30 in
App <main>, both branches), own header (step k of 6, prev/next,
progress dots, ×), progress in localStorage quda.learnLabStep. Copy
rules enforced by the frame: one bold idea sentence + one guiding
line + one interactive per step; percentages only, no formulas.
components/learn/: Dial (semicircular lean control — drag, keyboard,
snap-to-pole collapse animation), Tally (counts_to…
Cleanup: dead touch-drag bridge, empty-state + tour copy, docs
TheYuchen
d17180a
- touchDrag / pendingTouchDrop machinery removed from the store and
FlowCanvas (selectors, both effects, the TouchDragPreview chip):
the shelf was its only producer — grep confirms zero remaining
references. Tap-to-add via the Add-block popover is the touch path;
the shared splice-highlight logic (findClosestEdge +
dropTargetEdgeId) stays, since the mouse drag-from-popover path
still uses it.
- EmptyCanvas teaches the two add paths ("+ Add block", drag from a
block's edge into empty space) and carries the five-stage grammar
line the shelf used to illustrate.
- Tour slide 2 (ComposeSlide) no longer claims a pipeline shelf
exists; minimal rewording to "+ Add block" + edge-drag, grammar
order kept.
- docs/EVIDENCE_WORKBENCH.md: the palette-as-grammar paragraph
rewritten honestly — shelf superseded by the chooser popover +
grammar-aware insertion; design principle stated (constant chrome,
growth in on-demand surfaces).
- Store/FlowCanvas comments updated to name t…
One paragraph each: §1.1 gains the pipeline-shelf rationale (the
palette lays out the compositional grammar the IA already enforces —
five stage columns, vertical growth, container-query wrap, every old
tile interaction preserved), and the beginner-support item under the
UX comprehension wave gains the guided-lessons summary (four lessons
on the scenario machinery, tags "L1"…"L4" excluded from evidence
pools, entry points, localStorage progress).
Docs: final audit wave section; AUDIT_BACKLOG emptied
TheYuchen
816718a
All five deferred design-call items shipped (toast channel, plugin-
default rehydration, legend-as-chrome + guidance budget, CircuitDiff
shared scroll, bundle.zip export packaging). The backlog file now
states the empty condition; EVIDENCE_WORKBENCH gains the final-wave
paragraph.
Figure export: one <base>.bundle.zip download (STORE zip writer, no deps)
TheYuchen
c4e53ef
Packaging decision resolved: zip, without the dependency. New
frontend/src/lib/zip.ts is a minimal STORE-method ZIP writer (local
file headers + central directory + EOCD, table-driven CRC-32, ~100
lines, pure JS). exportFigure now collects the .svg, the .png (hybrid/
raster path only) and the .provenance.json and downloads exactly ONE
<base>.bundle.zip — a single camera click can no longer trip browser
multi-download blocking, which silently dropped the sidecar and/or
PNG. In-SVG provenance <metadata> unchanged. New node lane
scripts/check_zip.test.ts asserts the CRC-32 check vector
("123456789" -> 0xCBF43926), the archive structure, and interop:
the fixture is listed with `python3 -m zipfile -l` and CRC-tested
with `-t` (Done testing). Camera button/claims-map wording and the
Wave-Q export contract + filename notes updated. Backlog entry
removed.
CircuitDiff: one shared horizontal scroll container, sticky qN labels
TheYuchen
efd5605
The gate-level diff's per-lane overflow-x-auto gave every qubit lane
its own scrollbar, so lanes desynced the moment one was scrolled —
breaking exactly the column correspondence a 2-qubit gate's ·c/·t
chips exist to show. All lanes now live in ONE horizontally scrolling
CSS grid (max-content label column + one chip track), so scrolling is
synchronized by construction; the qN labels are position:sticky
left:0 with an opaque panel-alt background (the SignatureCard host
surface) so they stay readable while chips pass underneath. Chip
encodings and tooltips unchanged. Backlog entry removed.
History tab: lineage legend as fixed chrome; guidance rows capped at two
TheYuchen
5f6b0fb
The History tabpanel stops scrolling; RunHistory (embedded) becomes a
flex column that renders the LineageLegend — with its "key" reopen
chip — ABOVE an internal scroll container, as plain non-scrolling
chrome. No position:sticky needed, so the panel-alt overflow-hidden
that broke the sticky approach is moot. Guidance budget settled: the
demo banner now outranks the scale-hint row AND the archive strip (the
archive reopen chip parks inside the legend chrome row, costing no row
of its own), so a fresh device shows at most banner + legend chrome;
reopening the archive strip is explicit user intent and wins for the
session. Standalone hosting keeps the old in-panel layout. The legend
chrome stays inside the tabpanel subtree the figure camera exports.
Backlog entry removed.
Share-hash boot: plugin defaultData rehydrated once manifests arrive
TheYuchen
4410c8a
buildInitialGraph runs synchronously at mount while plugin manifests
load async, so a share-hash boot mounted plugin nodes without their
spec's defaultData (built-in kinds merge theirs at boot; every other
mount path merges via resolveNodeSpec). A one-time FlowCanvas effect
(ref-guarded) now runs when `plugins` first becomes non-empty on a
share-hash boot and merges each plugin spec's defaultData UNDER the
node's existing params — missing keys only, the link author's explicit
values always win. Non-share boots skip it (presets never place plugin
kinds). Backlog entry removed.
Global toast channel: store globalNotice + App-level host; palette alert() migrated
TheYuchen
535c56c
The store gains globalNotice ({text, tone} | null) + setter — the
cross-component notification bridge the audit backlog deferred. App.tsx
renders a GlobalToastHost fixed to the viewport's bottom-center at
z-50, styled to mirror the canvas toast (tone palette, auto-fade ok=4s
/ warn=8s, danger sticky with an explicit dismiss). NodePalette's
plugin-delete failure alert() now goes through it; window.confirm
stays as the blocking guard before destructive plugin deletes, and the
FlowCanvas-local canvas Notice stays local (positionally contextual).
Backlog entry removed.
Docs: Wave 3 sweep section; AUDIT_BACKLOG shrunk to true deferrals
TheYuchen
a2ac282
71 of 76 S3 bullets fixed (canvas 728039f, evidence 64aa288, infra
cab6fcb); the backlog file now holds only the 5 deferred items, each
with the design reason it was skipped. EVIDENCE_WORKBENCH gains the
Wave 3 sweep summary paragraph.
Docs: Wave 2 fixes section; S3 backlog persisted to docs/AUDIT_BACKLOG.md
- runStream: after the read loop, flush the TextDecoder and parse the
remaining buffer — a final event without a trailing newline (or a
multi-byte char split across the last chunk) was silently dropped,
losing the last step or a cached response.
- Unknown JSON events are treated as StepResults only when
parsed.node_id is a string, so a future event type can't masquerade
as a pipeline step.
- docs/EVIDENCE_WORKBENCH.md: dedupe-admissions paragraph rewritten to
the new uniform rule; stale "+3 replicates" description fixed;
appended "Deep audit 2026-07-10 — Wave 1 fixes" section (one line
per fix).
Doc: grounding in documented practice (corpus-grounded task analysis)
TheYuchen
0726715
New section 1.2 between the narrative and the contributions: each
scale mapped to its documented-practice grounding (Scale 1 <- QV/RB/
XEB precision gates + iCANS/Rosalin in-optimizer adaptivity + IBM
hard costs; Scale 2 <- Dasgupta-Humble irreproducibility + stochastic
transpiler + tracking void/history fragility; Scale 3 <- benchmark
lottery + no difference-CI convention, with the T3 device-level vs
experiment-level wording fix). Gap statement: rigor codified at the
protocol layer, automated at the optimizer layer, never surfaced at
the interactive layer. Full citation list at section end.
Related work: iCANS/Rosalin positioning sentence (shot-frugality one
layer up, human-facing) + Trebugger (transpile-diff demand; theirs
debugs transpiler passes, ours is a uniform vocabulary across
arbitrary pipeline steps).
IA inversion 4/4: docs + tour + claims map speak board-first
TheYuchen
7717649
Doc: new section 1.1 "IA inversion (board = home)" under the narrative
(configurations first-class; board home; editor the subordinate
definition view; markers card-expand / config-context; ids frozen),
the design position added to the related-work paragraph (every
node-wire tool is editor-centric; ours is evidence-centric), and the
wave entry with the full mechanics + verification.
Tour: slide 2 introduces authoring board-first ("from the Evidence
board, open the Pipeline editor to define a configuration"); slide 4
and its schematic name the Evidence board; slide 5's button label is
"Go to the Evidence board" (behavior unchanged) and its first move
points at card expansion. Claims map and the fidelity card's pooled
tooltip updated to the new labels; the C1 multiverse-analysis claim
keeps the literature term but its "where" now names the board as the
home workspace.
Doc: paper skeleton on top — narrative, C1-C3, figure plan, structure map
TheYuchen
b424eb7
docs/EVIDENCE_WORKBENCH.md now opens with the paper stated as a
system: (1) the committed narrative ("Evidence steering: sequential
visual analysis of stochastic, costly computational experiments — one
grammar, three scales"); (2) contributions C1 (grammar+paradigm), C2
(stochastic-provenance substrate), C3 (honesty devices), each with
where-in-the-system and which-figure; (3) the F0–F8 figure plan table
plus planned filmstrips; (4) tightened related-work positioning; (5)
the system=paper structure map (tab ↔ section, ids frozen). Backlog +
conventions follow, and the entire chronological engineering log is
kept verbatim under "— wave history —" (with this wave's entry
appended). The opening states the test every future pixel must pass:
does it serve a scale?
Third funnel scale, between-configuration: the Compare tab now draws
the 95% interval of the DIFFERENCE d(B-A) narrowing as replicates of
both configurations accumulate chronologically -- comparing two
configurations honestly means watching the interval of the
difference, not eyeballing two separate CIs.
* stats.ts: newcombe95 (Newcombe 1998 method-10 hybrid score interval
for p1-p2, built from the same Wilson bounds every other surface
uses; anchor 56/70 vs 48/80 -> [0.0524, 0.3339]), dedupeDraws
(pinned replays are the same draw bit-exactly -- never pooled
twice), differenceTrace (chronological accumulation, unequal run
counts and unequal shots-per-run pool on raw counts),
differenceVerdict (established / lost / sustained).
* DifferenceFunnel.tsx: one true-SVG chart in the theater's funnel
grammar -- x = shots consumed by both sides (evidence bought),
y = d(B-A) in pp always including the dashed "no difference" zero
line, per-step Newcombe intervals + envelope + po…
Doc: improvement wave section (export-gap + health blemishes closed)
TheYuchen
19e23d4
EVIDENCE_WORKBENCH.md gains the 2026-07-10 improvement-wave section
(all seven items with rationale and verification bar), the scenario
range references move F0..F6 -> F0..F7, and item 12's export claim was
already updated to now-true in the first commit of the wave.
An early-stopped run's exported Python ran ALL requested shots — the
stopping rule was part of the run's provenance (RunRecord persists it,
replay re-sends it) but the export path dropped it, so the doc's
"reproduces the archived run's exact draw" overstated for early-stopped
runs. Now: ExportProvenance carries precisionTarget (read
server-authoritatively from the sampled step's distribution payload,
not the toolbar's current selection), the generated
sampledFidelityEstimator call re-sends precision_target=, and the
script header stamps stop_target. Shape-verified by
frontend/scripts/check_export_python.test.ts (esbuild bundle + node).
Doc claim updated to now-true.
History lineage: always-visible legend key
TheYuchen
fbeb1e8
The lineage view fronts five visual channels but its only decoding
aids were hover tooltips, a footer line below the scroll and a
skippable tour slide — even the project owner had to ask what the
circles and lines mean.
- LineageLegend (marker class `lineage-legend`): compact wrap-row key
pinned at the TOP of the History tab body, above the demo banner.
Six items, each a mini SVG replica of the real mark (accent-toned,
no specific config hue implied) + 2-4 word label: color =
configuration, size = shots, ring = pinned seed, band = replicates,
curve = forked from, strip = results + mean. Full explanations in
per-item tooltips.
- Dismissable (x at row end), persisted in localStorage
`quda.lineageLegendDismissed`; unlike RibbonLegend, a small "key"
chip remains in the same top strip to bring it back.
- Footer legend removed — fully folded into the key: radius floor/cap
into the size tooltip, slash=error into the color tooltip, funnel
per-group scale into the band tool…
A run stopping at its precision target has final half-width ~= target
by the stopping rule itself, so y(point) and y(point+target) sit ~one
text line apart; in the single-panel hero view the blue final readout
overprinted the amber target tag (user screenshot). The old ad-hoc
pool nudge (final up 24 px when the pool label was near) made it
deterministic: 24 px ~= the corridor offset at typical zoom, landing
final exactly on target.
dodgeMarginLabels now runs in EVERY layout (the multi-node-only scope
kept recorded F0 exports bit-exact — wrong call; they are provenance-
backed and regenerable). Layout contract commented in Panel: one
right-margin readout column (final 2 lines, target 1, pool 2), blocks
sorted by anchor, tops >= max(12, h+2) px apart, clamped to the plot
band; in-plot annotations never enter the column by construction (the
ghost hint ends at the plot edge; when the non-flipped stop text
reaches into the column x-range the band top drops below its two
lines). Pass is two…
Copy fix: plugin-missing node no longer says 'Re-upload' (upload UI was removed); doc: correct plugin upload endpoint path
TheYuchen
323d8cc
QuBound/Qshot distribution payloads: decided NO; doc the wave
TheYuchen
22911da
Both steps consume their stochasticity in a single draw per run (one
LSTM training / one seeded pilot -> one fit -> one decision), so no
within-run distribution payload exists that isn't torch-heavy or
statistically invented (loss/fit residuals are not sampling
distributions of the decision). Across-run replicates are the honest
representation; decision comments in both handlers, rationale +
known headline-scale limitation in the doc.
EVIDENCE_WORKBENCH.md: leftover-clearing wave section, two backlog
items closed, rough edges (b)/(c) marked fixed.
Filmstrips: Evidence Theater gains a batch-index trace scrubber
(replayed/archived runs only; live path untouched) that renders the
chart AS OF batch k — truncated intervals/envelope, "so far" readouts,
stop annotation only once reached. Exports in a scrubbed state are
bit-exact per (trace, k) and embed trace_position in the provenance;
F0 filmstrip recipe (batch 2 / batch 4 / final) documented with
live-verified widths (±3.06 / ±2.16 / ±1.93pp).
Illustrator-grade true-SVG: new lib/svgPaper.ts holds the pure
presentation-inlining logic (whitelisted attributes resolved via
getComputedStyle to literals — zero var()/currentColor/class/<style>;
concrete font stacks; px normalized; viewBox-derived pt sizing;
standalone XML header) with a plain-node unit test
(scripts/check_svg_paper.test.ts) and a per-export safety audit.
Raster: hybrid PNG at explicit pixel dimensions (never
devicePixelRatio); 2.5x default, 4x via alt-click/long-press on the
camera. Files named <view>_<scenario|runid>[_b…
Evidence Theater: steering becomes the visual protagonist (+F0 teaser)
TheYuchen
f686793
The system's most novel contribution -- anytime evidence steering
(streaming CI narrowing + optional stopping, Wave I) -- was the
smallest element on screen. New EvidenceTheater overlay (auto-opens on
the first step_progress frame, dismissable, localStorage auto-open
pref, toolbar + fidelity-card reopen affordances): one big SVG funnel
per sampled node -- per-batch Wilson CIs on a linear shots axis with
convergence envelope, first-interval-anchored auto-zoom, dashed target
corridor + early-stop annotation with unspent-shots region, client-
timed cost row (caveat commented) with server-total fallback, and a
context strip (config hue chip, live root-seed via new runStream
onMeta hook, pooled prior-evidence archive band). Store retains per-
node stamped traces until the next run so the theater outlives the
step; true-SVG figure export with embedded provenance.
Scenario F0 (the teaser): bell_state on FakeFez, 4096 shots, sampled
fidelity, target +/-2pp, pinned seed 2026 (probed live: all …
M1 scenarios.ts QUCAD_GRAPH is now a literal copy of bundled demo
record 5c2a6a71a7a4's graph (ids n1..n5, sampled fidelity, same
params/positions) instead of an s1..s5/statevector rebuild —
F1/F5 runs now group with the demo cards (same config_hash) and
pinned seed 336157917 replays the archived numbers bit-exactly.
M2 Optional-stopping honesty in three places: limitation block at
the stopping rule (qlib/qiskit_utils.py — width-based
data-dependent stopping perturbs exact nominal coverage of the
final fixed-n interval; confidence sequences are the rigorous
alternative), one sentence in the Wave I doc section, and a
clause in the precision-target tooltip.
M3 Anon builds scrub the branded theme completely: generateBundle
strips the [data-theme=gmu] CSS block, and theme.ts gates the
stored-preference fallback behind !ANON so the key literal is
dead-code-eliminated from VITE_ANON JS (runtime ?anon=1 behavior
unchanged). Anon dist grep…
* workflow_service: a step-cache hit now re-stamps the CURRENT
node's id onto the served StepResult. The prefix hash ignores node
ids, so a cached step written by a graph with different ids was
served verbatim (live-reproduced: an s1..s5 scenario run poisoned
a n1..n5 archive replay, which came back with node_ids s1..s3 the
frontend cannot map). NOTE this fix only repairs the id, not the
deeper pinned-cache identity hole — per-node seeds derive from
node ids but the pinned cache key does not include them, so
structurally-identical graphs with different ids can still serve
each other's draws under the same root seed (see audit report).
* FlowCanvas: ribbon-legend localStorage key renamed quaim-* ->
quda.* ("quaim" matched the identifying Space slug and shipped in
the VITE_ANON bundle, contradicting the doc's anon-audit claim).
* scenarios/doc: F3's expected stop corrected to the value the live
API actually produces (2,560 of 4096 shots; 512-shot batch
granulari…
Wave J: uncertainty-in-provenance (evidence-mass lineage, pooled CIs)
TheYuchen
75184f5
Provenance views stop pretending states are deterministic — lineage
nodes ARE distributions, so the timeline now shows how certainty
accumulated over the session. Minimal honest version, one task per
mark:
* evidence mass (marker `evidence-mass`): lineage dot AREA propto
sqrt(executed shots), radius 3-7px against a fixed 2048-shot
reference; early-stopped runs are visibly lighter. Ring / slash /
edges / hover target track the radius; tooltip gains "N shots of
evidence".
* replicate-band certainty funnel: pooled Wilson CI half-width at
each row (counts summed oldest->newest; valid within a config
group: same underlying p), mirrored polylines around the lane
spine, narrowing upward ~1/sqrt(N) — Wave I's funnel motif, second
context. Tooltip: "pooled +/-X.Xpp after n runs / N shots".
* lib/stats.ts (new): wilson95 ported from
app/services/stats.py::wilson_interval with unit-anchor comments;
runEvidence / poolEvidence helpers.
* Multiverse cards: "pooled mu x.x% +/-y.y…
Wave P: correct F3 expected stop point (verified against live API)
TheYuchen
38c04fd
Wave P: paper-first reorientation
TheYuchen
79cd0aa
De-product: remove WelcomeTour(+slides), AuthButton/session UI,
Support(NSF)/Papers/Developers popovers, Lab link, UploadPluginModal
trigger; plugin protocol stays live via API. Neutral index.html
title/meta + PWA manifest. Header = name/tagline/env chip/live
toggle/theme.
Anonymous mode (double-blind): lib/anon.ts. VITE_ANON=1 build folds
identifying strings out of the bundle (EvidenceQ codename, no paper
bibtex, no GMU theme, vite plugin rewrites index.html+manifest);
?anon=1 runtime fallback hides the same surfaces on normal builds.
Audit: zero user-visible identifying strings in the anon dist.
Figure export with embedded provenance: lib/figureExport.ts + camera
buttons on canvas toolbar / Multiverse header / Evidence header.
True-SVG for svg targets, foreignObject-SVG + 2.5x PNG for HTML
composites; paper transform (white bg, fonts x1.25, chrome stripped);
SVG <metadata> + .provenance.json carry app version, export time,
run_ids/root_seeds/config_hashes of every visible run and t…
Wave P spec: paper-first reorientation directive
TheYuchen
67b247f
Wave I: re-record bell demo records under batched draw scheme
TheYuchen
a892a99
The Wave I per-batch seed schedule makes pre-Wave-I sampled records
non-replayable (a single 2048-shot draw != 8 seeded 256-shot draws).
Re-recorded all 14 bell_state demo records (512 + 2048, incl. the
same-seed replay pair) against the live API via the resumable script;
each now carries the per-batch trace and replays bit-exact. The 3
vqc_2q_small (QuCAD) records still carry old-scheme numbers — the
loader degrades gracefully (omits the funnel, keeps the CI bar);
finish them with scripts/rerecord_demo_archive.py on an idle Space.
Doc: migration status + live regression numbers recorded.
Backend: sampled fidelity always runs as B=min(8,max(2,shots//128))
batches; batch i seeded sha256(f"{node_seed}:batch:{i}") so replays
are bit-exact regardless of any run's stopping point. Streaming SSE
interleaves {"step_progress": {node_id, batch_i, n_batches,
shots_done, successes, point, ci95}} frames (worker thread + queue in
the executor; eager path unaffected). RunRequest.precision_target
(CI half-width, (0,0.5]) = server-honoured optional stopping, min 2
batches; distribution records shots executed vs requested,
stopped_early, and the full per-batch trace. qlib duplicates the
Wilson fn (no app import from qlib); twins pinned equal by test.
Frontend: toolbar precision-target select (off/±5/±2/±1pp); live
narrowing CI band + shot counter on node faces from streamed frames;
evidence-funnel in the fidelity card (one line per batch, opacity
ramp, target ticks at point±target, early-stop annotation); RunRecord
persists precision_target + stopped_early; restore/replay writes the
tar…
Roadmap: waves I-K after full-system novelty review
Seed coverage for QuBound/Qshot + cost estimates from run history
TheYuchen
91b2cd9
Closes the two remaining claim-integrity gaps for "every run is
exactly replayable" over "stochastic, costly experiments":
Seeds. QuBound trains its LSTM on BOTH ok paths (live IBM history and
the cached 14-day pickle) — there is no precomputed-only branch in the
handler — so both now seed the global RNGs (_seed_stochastic_libs:
random + numpy + lazily-imported, try/except-guarded torch) and thread
node_seed into qlib (Aer seed_simulator + Sabre seed_transpiler in
get_labels_fromNoise); results carry nondeterministic=True +
seed_used. Qshot's pilot seed was 99991 + hash(str(base)) — str hashes
are PYTHONHASHSEED-salted, i.e. "fixed" only until the next server
restart. pilot_seed is now threaded predict → recommend_shots →
compute_pilot_pf, making the recommendation reproducible across
processes given the seed. Executor cache logic untouched: fresh runs
draw fresh node seeds (honest new draw, cache-bypassed), pinned runs
re-derive the same seeds (cacheable in the seed-salted namespace)…