Audit backlog wave 3, evidence area:
- dedupeDraws keys on (root_seed, shots, successes) [approved]: only
a bit-exact repetition of the whole draw is dropped — the same seed
with a different stopping point executed different measurements and
now pools as new evidence. Node-lane assertions added; F8
demo-archive numbers verified unchanged.
- Sparkline stops flattening sub-unit series (QuCAD loss traces);
divide-by-zero guard only fires on a truly flat trace
- KvRow never prints "[object Object]" (nested objects/arrays
JSON-stringify, truncated); viz fmt + CircuitDiff gateDiffOf
unexported (dead exports)
- QuBound/QuCAD NaN payloads render as absent ("—"), not "NaN" tiles;
Qshot's headline fidelity joins the % convention (formula + pilot
table keep the author's raw-unit notation); CI line tabular-nums
- fidelity histogram says what it hides ("+k more outcomes · n shots
not listed"); ReplicateStrip excludes errored runs, highlights the
newest matching dot with an ep…
- pane auto-switch keyed on compareIds identity (pair replacement re-fires)
- compare selection pruned after Clear demo data / archive import;
setCompareIds dedupes; CompareView renders "runs no longer archived"
instead of a silent blank when records are gone
- interval-bar point markers clamp at the 0/1 scale edges (cards clipped
by overflow-hidden; CompareView twins overhung)
- RunHistory restore/replay titles tell uploaded-circuit records' truth
("re-upload to reproduce"); lineage footer names the 50-run window
- PluginFigures bar with data:[] renders a stub instead of crashing the pane
- Scenario auto-runs archive tagged (RunRecord.scenario, threaded
scenario key through pendingRestore -> pendingAutoRun ->
runPipeline -> buildRunRecord; preserved across archive import).
Scripted figure states are excluded from the theater's
prior-evidence pool and from the F7 overlay picker, so repeated F0
boots can no longer pollute the archive into a fake replicate group
or distort the evidence the figures claim to show (documented in
scenarios.ts).
- dedupeDraws ("exact replays counted once") now applies to EVERY
undisclosed pooling surface: theater archive band, fidelity-card
replicate strip, multiverse pooled band + pooled line, and the
lineage certainty funnel (seen-seed skip, same rule). Labels and
tooltips updated to say so; stats.ts's known-looseness note replaced
by the uniform truth.
- timesTrusted: a displayed run with no run_id is trusted only WHILE
streaming — a restored / cache-served run must not inherit the
previous run's seed chip, config…
Honest signals: gauge fill actually renders; QuCAD preflight tells the truth
TheYuchen
10b136b
- results/viz Gauge: theme tokens are raw RGB triplets, so
background: var(--color-ok) was invalid CSS and the fill rendered
as nothing — wrapped as rgb(var(--color-ok)) etc. (RibbonEdge
pattern). Whole file audited; these were the only occurrences.
- preflight: QuCAD-without-backend claimed "will use the default
FakeFez", but _handle_qucad hard-errors without a backend (the
FakeFez fallback exists only for QuBound/CompressVQC). Now severity
"error" with wording aligned to autoConnect and the backend handler:
"QuCAD needs a backend node upstream — it will error at run time."
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.
Evidence tabs = the three scales (three-scales IA)
TheYuchen
b54486e
Tab labels now mirror the paper narrative exactly: This run (scale 1,
within a run), This configuration (scale 2, replicates of one
configuration), Between configurations (scale 3). Internal ids
(current/history/compare) stay STABLE — scenario uiState, the
pendingEvidenceTab bridge and figure-export provenance key on them;
comments in ResultsPane + scenarios.ts pin the mapping. Tooltips are
one line per scale. The toolbar Theater button is gone: the theater is
This-run's expanded mode, so its entry affordance moved onto the
funnel card ("expand · theater", marker open-theater unchanged);
auto-open on streaming unchanged. This-configuration gains a compact
scale line ("every archived run; same-color runs are replicates of
one configuration") above the legend key. Every user-visible
cross-reference ("History tab", "Compare tab", "sends two cards to
Compare"…) updated coherently.
Compare reachability: one hop from where the question arises
TheYuchen
8311ef0
* RunHistory: while exactly one compare checkbox is ticked, a status
chip at the panel top says what completes the gesture ("1 of 2
picked — tick one more run, or A/B a card in Multiverse"); the
first tick used to feed only a tab badge.
* Fidelity card: with >=2 archived runs of the current configuration
the across-runs strip grows a "compare vs previous run" link
(marker compare-vs-previous) setting compareIds to the two latest
run_ids via the new store action setCompareIds — the Evidence
pane's existing length===2 auto-switch takes over.
Inventoried font sizes, label casing, chip styles and number
formatting across the seven views. The system is already largely
convergent; three real drifts fixed, and the convention is now
written down next to the tokens (index.css UI-conventions block):
- 9px floor: the only two sub-9px labels (CompareView "divergence
point", BlockPicker "plugin" suffix) bumped from 8px to 9px.
- Section-label convention: FinalMetrics' uppercase labels were the
one instance missing tracking-wider.
- Compact-line decimals: the fidelity card's across-runs line mixed a
2dp mean with a 1dp range in one sentence — now 1dp like every
other strip/board stat (headline metrics and mono detail lines
stay 2dp; targets stay whole pp).
Deliberately NOT churned (documented instead): tracking-widest on
palette family badges (distinct role), micro-chips in 28px history
rows and tab count badges (px exceptions), CompareView's 2dp Δ (it
sits in a 2dp mono detail line).
Comprehension audit: close the self-explanation gaps
TheYuchen
530ca91
Walked every interactive element (toolbar, Evidence pane, history
rows, multiverse cards, theater, pickers, param editors) asking "does
this explain itself where the user finds it?". Most surfaces already
carry task-language titles/TipIcons; six gaps fixed:
- ×N replicate selector now states the caching consequence (the
deterministic prefix is served from cache after run 1; only
stochastic steps re-run) — previously only the cost chip said so,
and only once N>1 with history present.
- Precision-target selector states that the target is archived with
the run and restored on replay (an early stop reproduces exactly).
- Evidence tabs (Current run / History / Compare) gained one-line
title tooltips; the count badges inherit context from them.
- The two funnels now explain their relationship in both directions:
the fidelity-card funnel (shot batches inside one run) and the
lineage funnel (runs across a replicate group) cross-reference each
other as one motif in two contexts…
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 …
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: 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…
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…
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…
Comment-vs-behavior audit: fix four real mismatches
Yuchen Yuan
8e6747e
- run_cache: docstring claimed `_normalize_node` drops node id, code
actually keeps it. Rewrite docstring to match behavior + explain why
the cache still hits in practice (frontend presets and precompute
script both use the same n1, n2... convention).
- precompute_preset_results: qshot preset existed in frontend but was
missing from the script's PRESETS dict, so qshot+ry_chain_6q always
cache-missed. Add it.
- viz/Sparkline: docstring said "non-negative integers" but the code
defensively handles negatives (Math.min(...data, 0)) and short arrays
(returns null on len<2). Rewrite docstring to match.
- ResultsPane: EmptyHint said QuBound takes "about 2 minutes" while
RunningHint says "1-3 minutes" for QuBound or Qshot. Unify both to
1-3 min and mention both slow paths.
Qshot copy: tighten 4 claims an independent fact-check flagged
Yuchen Yuan
9a9b067
Independent review against author source code + README found no
hallucinations but four phrasings that a quantum researcher would
read as imprecise marketing-speak. Tighten each:
* nodeCatalog description — "minimum number" is misleading because
Qshot's solver targets `mean − z·σ ≥ α·F_conv` with z=1.645 (≈90 %
CI), not an unconditional minimum. Replace with "smallest shot
count that meets a target fidelity bound (with statistical
confidence, z=1.645)".
* AlgorithmsSlide detail — "pre-measured records" was ambiguous about
provenance. The 3.3k records were measured on AerSimulator under
bundled IBM noise models, NOT on real IBM hardware. Replace with
"simulator-measured fidelity curves (under bundled IBM noise
models)". Also "hits a target fidelity" → "achieves a target
fidelity bound" (matches the >= comparator). Also generalise the
GNN-fallback trigger from "outside 5-8 qubit range" to "no cluster
matches — typically outside 5-8q OR unusual structure" (the READ…
Qshot UX polish: flag GNN-fallback results, drop meaningless -1s
Yuchen Yuan
dca9772
Observed on HF after first end-to-end run: bell_state (2q) was out of
Qshot's 5-8q training distribution, so it took the GNN fallback path.
The UI then showed the user 'Cluster: -1 / Tier: -1 / PF-matched
neighbours: 0' — correct Qshot internals but unintelligible to a user
who doesn't know that -1 is the outlier sentinel.
* When method==='gnn_fallback', suppress the cluster/tier/neighbours
line entirely and surface a warn-toned banner that says 'extrapolated
via GNN because the circuit is outside the validated 5-8 qubit
range — treat as a best guess'.
* Update the Qshot preset tagline to 'try ry_chain_6q' so new users
load a 5-8q circuit by default instead of hitting bell_state and
getting surprised by the fallback warning.
Integrate Qshot (noise-aware shot-count recommender) as a pipeline block
Yuchen Yuan
fd88622
New research block from the JQub lab (handover from Tong Li). Given a
QuantumCircuit + an IBM calibration snapshot + a target fidelity α,
Qshot predicts the minimum shots needed to reach α × F_converged on
that backend.
Backend:
* qlib/qshot/ — handover package (recommend_shots_v4, dual_gnn_model,
show_dag, train_dual_gnn) + new __init__.py wrapping lazy singleton
and NOISE_SNAPSHOTS registry. GNN-fallback lazy imports converted
to package-relative so it works as a proper Python package.
* cache/qshot/ — 12 dataset dirs (~3.3k records) + best_model.pt (LFS).
* _handle_qshot in workflow_service: binds free circuit parameters to
zero (Aer constraint), calls singleton.predict, surfaces shots /
fidelity ± std / fit parameters / pilot measurements in summary.
* NodeType += "qshot"; dispatcher wired.
* requirements += hdbscan, torch-geometric, pylatexenc. torch-scatter /
torch-sparse NOT pinned — PyG falls back to pure-Python scatter
without them, far simpler on HF Spaces.
Fr…
frontend: split ResultsPane into results/cards + results/viz
Yuchen Yuan
c6eecfe
Three-way split: `ResultsPane.tsx` keeps the pane scaffolding (header,
empty/running states, step card, final metrics). `results/cards.tsx`
owns the per-algorithm views (QuBound/QuCAD/CompressVQC/Fidelity/Output/
Input/Backend/Generic) plus the `StepBody` dispatcher.
`results/viz.tsx` hosts the shared visual primitives
(Stat/Caption/Gauge/DepthCompare/OpBar/Sparkline/KvRow + fmt/numOr).
ResultsPane shrinks from 713 to 211 lines; each file now has a clear
single responsibility, which matters when the next person adds a block
and has to figure out where the "cards" live.