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…
Backend: AerSimulator.from_backend / NoiseModel.from_backend rebuilt
the full 100+ qubit device noise model on every sampled-fidelity and
QuCAD step (~40-90 s of GIL-bound Python per fresh run — the dominant
cost of every uncached run on the Space). Fake* snapshots are frozen,
so the derived model is memoized by backend name (live IBM backends
never cached). qlib/qiskit_utils.aer_simulator_for / noise_model_for.
Frontend: plumbing for a bundled first-visit evidence archive —
RunRecord.demo flag, lib/demoArchive.ts (ensureDemoArchive imports
data/demoArchive.json via buildRunRecord on first visit only, decided
flag quda-demo-decided, clearDemoRuns), DemoArchiveBanner on the
Multiverse board + History tab, per-row demo chip, multiverse landing
for first visits, welcome-slide tagline reframed to the evidence
story. Archive JSON itself ships in the next commit (placeholder []).
Information architecture: the results pane is now the Evidence pane
with three tabs — Current run (step cards + final metrics + hints),
History (lineage view, always expanded, no own collapse toggle when
embedded), Compare (instruction pointing at History's checkboxes
until two runs are picked). Badges: History = archive size via a new
countRuns() IndexedDB count (refreshed on historyVersion), Compare =
selection count. Auto-switch: starting a run -> Current; ticking the
2nd compare checkbox -> Compare. flex-wrap tab bar so the pane still
works inside the mobile drawer; collapsed strip + drawer title renamed
to Evidence.
Comparison: consecutive leading step rows that are identical on both
sides (same node kind, no structural param diff for that kind, equal
transformation-signature deltas) fold into one expandable "shared
prefix - N steps" <details> row; the first divergent row carries an
accent left border + "divergence point" label. Rationale in code: the
analytical question is where…
Provenance timeline: run archive, restore/replay/fork, replicates
TheYuchen
f2c03b7
Phase 1 of the evidence-workbench rework. Every completed run is now
archived client-side (IndexedDB — the server stays stateless by
design) as an immutable RunRecord: the graph in share-link
serialization, the full per-step response, and the seed envelope.
Run history panel (results pane): newest-first timeline with a
structural configuration hash chip — runs sharing a chip are
replicates of the same experiment. Actions per entry: restore
(canvas + circuit come back exactly), replay (restore + pin the
recorded root seed, so Run reproduces the exact draw), delete.
Restores thread forked_from lineage into subsequent records.
Replicate execution: a ×1/×5/×10/×20 selector runs the same
configuration N times with fresh seeds, sequentially, archiving each
draw. The fidelity card now renders sampled results as what they are
— a draw, not a number: Wilson 95% CI on a fixed 0-1 scale, the
top-outcome histogram, the consumed seed, and an across-runs strip
that accumulates one dot per archived…