TheYuchen commited on
Commit
b424eb7
·
1 Parent(s): a202d78

Doc: paper skeleton on top — narrative, C1-C3, figure plan, structure map

Browse files

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?

Files changed (1) hide show
  1. docs/EVIDENCE_WORKBENCH.md +204 -44
docs/EVIDENCE_WORKBENCH.md CHANGED
@@ -1,21 +1,156 @@
1
- # Evidence Workbench — rework state & design rationale
2
-
3
- Target: an IEEE VIS submission built around QuDA Studio. Framing under
4
- consideration: **compositional algorithm analysis of stochastic,
5
- costly computational experiments** (NISQ quantum pipelines as the
6
- driving domain), with three contribution layers: (1) task
7
- theory/taxonomy grounded in a formative study, (2) a uniform visual
8
- vocabulary for pipeline transformations + distribution-first
9
- provenance, (3) empirical evaluation (comparative study vs
10
- Jupyter+Qiskit baseline, case studies, live deployment).
11
-
12
- Positioning vs prior art: VACSEN (backend noise), Quantivine (large
13
- circuits), QuantumEyes/VIOLET (circuit/QNN interpretability) are all
14
- single-point; CHI'25 "Toward HQCI" is an interface-technique design
15
- space; QCE tooling (QuBridge, CircInspect) is engineering without a
16
- vis-research framing. Nobody treats the *composition* as the object
17
- of analysis. Comparative + provenance layers of the quantum stack are
18
- open in vis venues (verified via adversarial search, 2026-07).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  ## Shipped (commits 2efd890 → d105dc7)
21
 
@@ -314,32 +449,6 @@ minimal honest version, no decoration without a task.
314
  pooled summary line. Frontend-only: no server change, archived
315
  responses already carry the counts.
316
 
317
- ## Not done yet (ordered backlog)
318
-
319
- * **Phase 3.5 leftovers** — pick-which-fidelity-node in comparison,
320
- dual-canvas visual diff, >2-way comparison.
321
- * **Phase 4 leftovers** — opt-in interaction logging (schema first —
322
- needed for the user study). Reproducible export and the cost
323
- preview are DONE.
324
- * **Gate-diff niceties** — pair remove+add of the same op with only a
325
- param change into a "modified" state; column-align lanes across
326
- qubits by circuit moment.
327
- * ~~Distribution payloads for QuBound/Qshot~~ — CLOSED 2026-07-06,
328
- decided AGAINST adding payloads (rationale in the leftover-clearing
329
- wave section below and in both handlers).
330
- * ~~Prewarm decision~~ — CLOSED 2026-07-06: cache schema gate +
331
- live-API regeneration (leftover-clearing wave below).
332
- * **Formative study** — interview protocol before locking the task
333
- taxonomy (Meyer-Dykes INFORMED). Blocked on user's go-ahead.
334
-
335
- ## Conventions
336
-
337
- Push to `github` + `hf` (jqub21/quaim) only; qudastudio/app is a
338
- mirror synced ONLY on explicit request. After push: ~2-4 min rebuild,
339
- smoke = /api/health + a pinned-seed run. Unit lane:
340
- backend/tests/*.py runnable directly, no torch needed
341
- (29 tests green as of d105dc7).
342
-
343
  ## Novelty roadmap (full-system review, 2026-07-05)
344
 
345
  Honest standing: the shipped five (multiverse, lineage, signatures+gate
@@ -1208,3 +1317,54 @@ the structural config hash started separating the shots param. The
1208
  top-two configs are bell-512 (×9) and bell-2048 (×5); comments and
1209
  F6's expect string now match reality (F6's picker behavior was always
1210
  deterministic and unchanged).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Evidence Workbench — the paper, stated as a system
2
+
3
+ This file is the single source of truth for the IEEE VIS submission
4
+ built around QuDA Studio. The sections below ARE the paper's skeleton;
5
+ the system's structure mirrors them one-to-one. The test every future
6
+ pixel must pass: **does it serve a scale?** If a proposed view, chip,
7
+ button or hint cannot name its scale (or its contribution) below, it
8
+ does not ship.
9
+
10
+ ## 1. The narrative
11
+
12
+ **Evidence steering: sequential visual analysis of stochastic, costly
13
+ computational experiments — one grammar, three scales.** QuDA Studio
14
+ treats every pipeline execution as what it physically is: a stochastic
15
+ experiment whose evidence is bought shot by shot, minute by minute.
16
+ One visual grammar — a 95% interval narrowing as evidence
17
+ accumulates, drawn as a funnel against the cost axis — is
18
+ instantiated at three scales. **Scale 1, within a run:** the Evidence
19
+ Theater shows the Wilson interval narrowing over streaming shot
20
+ batches, and a precision target turns optional stopping into a visual
21
+ interaction ("stop when it's precise enough — keep the unspent
22
+ budget"). **Scale 2, across replicates of one configuration:** the
23
+ lineage renders every archived run as a distribution-weighted dot,
24
+ and pooled/certainty funnels show replicates compounding to a
25
+ 1/√N-tighter interval; the theater overlay compares two draws of one
26
+ rule. **Scale 3, between configurations:** the difference funnel puts
27
+ one Newcombe interval on Δ(B−A) and accumulates it chronologically
28
+ across both sides' replicates — sequential A/B analysis whose verdict
29
+ can be watched, priced, and revoked. Everything else is supporting
30
+ cast: transformation signatures and the gate-level diff define what
31
+ "a configuration" IS (so replicates and comparisons have a stable
32
+ identity); the multiverse board is the portfolio entry point to
33
+ scale 3; circuit ribbons are context, not claim.
34
+
35
+ ## 2. Contributions
36
+
37
+ * **C1 — the grammar + the paradigm** (one funnel, three scales;
38
+ steering instead of monitoring). Where in the system: the Evidence
39
+ Theater with precision-target stopping and trace scrubbing
40
+ (scale 1); the lineage's per-band certainty funnels and the theater
41
+ overlay (scale 2); the Compare tab's difference funnel with
42
+ established/not-sustained verdicts, plus the multiverse board as
43
+ the scale-3 portfolio. Figures: **F0 (teaser) + F0 filmstrip, F3,
44
+ F7, F8, F2.**
45
+ * **C2 — the stochastic-provenance substrate** that makes steering
46
+ replayable. Where: root/per-node/per-batch seed derivation with
47
+ bit-exact pinned replay (early stops included); the IndexedDB run
48
+ archive + archive import/export; lineage-as-distributions (evidence
49
+ mass, fork edges); configuration identity via the structural config
50
+ hash, made legible by transformation signatures and the gate-level
51
+ circuit diff; per-batch traces persisted as provenance, so funnels
52
+ render identically live, archived, and replayed. Figures: **F4,
53
+ F1, F5.**
54
+ * **C3 — honesty devices** for sequential evidence. Where: intervals
55
+ instead of scalars everywhere a quantity is sampled; "intervals
56
+ overlap: not evidence" and the funnel-owned verdict line;
57
+ optional-stopping coverage disclosure (M2) and the multiple-looks
58
+ caveat on the difference funnel; replay-deduped pooling; "(n
59
+ small)" suffixes and pooled-shots gates; the demo-data banner; and
60
+ provenance-backed figure export (every figure regenerates from its
61
+ own metadata). Figures: **F6, F8 (a deliberate null result), F0
62
+ filmstrip panels.**
63
+
64
+ ## 3. Figure plan
65
+
66
+ | fig | boots via | shows (scale · contribution) | export path |
67
+ |---|---|---|---|
68
+ | F0 teaser | `?scenario=F0` | theater funnel, ±2pp stop at 2,560 of 4,096 shots, unspent budget (1 · C1) | true-SVG `evidence-theater_F0.svg` |
69
+ | F0 filmstrip | F0 + scrub batch 2 / 4 / final | optional stopping as an interaction sequence (1 · C1+C3) | true-SVG ×3, `_batchK` suffixes |
70
+ | F1 | `?scenario=F1` | ribbon canvas post-run: √gates ribbons, delta-strip glyph faces (context · C2) | hybrid PNG |
71
+ | F2 | `?scenario=F2` | multiverse board: configuration small multiples, pooled bands, baseline Δ (3 · C1) | hybrid PNG |
72
+ | F3 | `?scenario=F3` | funnel on the fidelity card + early stop, This-run tab (1 · C1) | hybrid PNG |
73
+ | F4 | `?scenario=F4` | lineage: evidence mass, replicate bands + certainty funnels, fork edge (2 · C2) | hybrid PNG |
74
+ | F5 | `?scenario=F5` | gate-level circuit diff on the QuCAD card (config identity · C2) | hybrid PNG |
75
+ | F6 | `?scenario=F6` | interval comparison + aligned signatures, Between-configurations tab (3 · C3) | hybrid PNG |
76
+ | F7 | `?scenario=F7` | theater overlay: two replays of one configuration, one axis pair (2 · C1) | true-SVG `evidence-theater-overlay_F7.svg` |
77
+ | F8 | `?scenario=F8` | difference funnel: established at 5,120 shots, NOT sustained — the multiple-looks trap on real draws (3 · C1+C3) | true-SVG funnel camera / hybrid tab |
78
+ | planned | F7 + lockstep scrub | overlay filmstrip: two funnels truncated in lockstep (2 · C1) | true-SVG ×k |
79
+ | planned | F8 recompute at t=2 vs t=8 | "early win withdrawn" pair for the discussion section (3 · C3) | true-SVG ×2 |
80
+
81
+ Vector-vs-raster rationale and the per-camera table live in the
82
+ Wave Q section of the wave history below.
83
+
84
+ ## 4. Related-work positioning
85
+
86
+ VACSEN (backend noise), Quantivine (large circuits), QuantumEyes /
87
+ VIOLET (circuit/QNN interpretability) are single-point tools; CHI'25
88
+ "Toward HQCI" is an interface-technique design space; QCE tooling
89
+ (QuBridge, CircInspect) is engineering without a vis-research
90
+ framing. Nobody treats the *composition* as the object of analysis,
91
+ and nothing in the quantum stack — or in progressive/anytime
92
+ visualization generally — offers sequential-analysis steering:
93
+ progressive vis approximates a fixed answer ever better, while
94
+ evidence steering makes the stopping decision itself a first-class,
95
+ replayable, honestly-disclosed interaction (verified via adversarial
96
+ search, 2026-07). Provenance work assumes deterministic states; our
97
+ lineage nodes ARE distributions (Wave J). Optional stopping and
98
+ sequential A/B bring the statistics literature (Wilson/Newcombe
99
+ intervals, coverage-under-stopping caveats) into the visualization
100
+ loop instead of leaving it in the appendix.
101
+
102
+ ## 5. System = paper structure
103
+
104
+ | paper section | system surface (internal id) |
105
+ |---|---|
106
+ | teaser | Evidence Theater over F0 |
107
+ | §3 grammar: the funnel | UncertaintyBlock funnel + theater (one motif, stated once, reused) |
108
+ | §4 scale 1 — within a run | Evidence pane tab "This run" (`current`) + theater as its expanded mode |
109
+ | §5 scale 2 — across replicates | tab "This configuration" (`history`): lineage, evidence mass, certainty funnels; theater overlay |
110
+ | §6 scale 3 — between configurations | tab "Between configurations" (`compare`): interval bars, prefix folding, difference funnel; Multiverse board as entry |
111
+ | §7 substrate (C2) | seeds/archive/replay, signatures + gate diff, ribbons as context |
112
+ | §8 honesty (C3) | disclosure devices across all tabs + provenance-backed figures |
113
+
114
+ The Evidence pane's three tabs carry the scales in the user's face:
115
+ tab labels are the narrative ("This run" / "This configuration" /
116
+ "Between configurations"), tab tooltips name the scales, and the
117
+ internal ids (`current`/`history`/`compare`) stay frozen because
118
+ scenario URLs and figure provenance key on them.
119
+
120
+ ## Not done yet (ordered backlog)
121
+
122
+ * **Phase 3.5 leftovers** — pick-which-fidelity-node in comparison,
123
+ dual-canvas visual diff, >2-way comparison.
124
+ * **Phase 4 leftovers** — opt-in interaction logging (schema first —
125
+ needed for the user study). Reproducible export and the cost
126
+ preview are DONE.
127
+ * **Gate-diff niceties** — pair remove+add of the same op with only a
128
+ param change into a "modified" state; column-align lanes across
129
+ qubits by circuit moment.
130
+ * ~~Distribution payloads for QuBound/Qshot~~ — CLOSED 2026-07-06,
131
+ decided AGAINST adding payloads (rationale in the leftover-clearing
132
+ wave section below and in both handlers).
133
+ * ~~Prewarm decision~~ — CLOSED 2026-07-06: cache schema gate +
134
+ live-API regeneration (leftover-clearing wave below).
135
+ * **Formative study** — interview protocol before locking the task
136
+ taxonomy (Meyer-Dykes INFORMED). Blocked on user's go-ahead.
137
+
138
+ ## Conventions
139
+
140
+ Push to `github` + `hf` (jqub21/quaim) only; qudastudio/app is a
141
+ mirror synced ONLY on explicit request. After push: ~2-4 min rebuild,
142
+ smoke = /api/health + a pinned-seed run. Unit lane:
143
+ backend/tests/*.py runnable directly, no torch needed
144
+ (29 tests green as of d105dc7).
145
+
146
+ ---
147
+
148
+ # — wave history —
149
+
150
+ Everything below is the chronological engineering log (shipped
151
+ items, encoding rationale, audits, verification numbers). It is
152
+ kept verbatim as the project's memory; the sections ABOVE are the
153
+ current truth and the paper skeleton.
154
 
155
  ## Shipped (commits 2efd890 → d105dc7)
156
 
 
449
  pooled summary line. Frontend-only: no server change, archived
450
  responses already carry the counts.
451
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
452
  ## Novelty roadmap (full-system review, 2026-07-05)
453
 
454
  Honest standing: the shipped five (multiverse, lineage, signatures+gate
 
1317
  top-two configs are bell-512 (×9) and bell-2048 (×5); comments and
1318
  F6's expect string now match reality (F6's picker behavior was always
1319
  deterministic and unchanged).
1320
+
1321
+ ## Narrative-alignment restructuring (SHIPPED 2026-07-10)
1322
+
1323
+ Premise: the system had grown cluttered because its structure no
1324
+ longer mirrored the research narrative. This wave makes structure =
1325
+ narrative ("one grammar, three scales") and installs the skeleton at
1326
+ the top of this doc as the test every future pixel must pass.
1327
+
1328
+ 1. **Evidence tabs = the three scales.** Labels renamed to "This run"
1329
+ / "This configuration" / "Between configurations" with one-line
1330
+ scale tooltips; internal ids (current/history/compare) frozen —
1331
+ scenario uiState, the pendingEvidenceTab bridge and figure-export
1332
+ provenance key on them (mapping pinned in ResultsPane +
1333
+ scenarios.ts comments). The toolbar Theater button is gone: the
1334
+ theater is This-run's expanded mode, entered from the funnel
1335
+ card's "expand · theater" affordance (marker open-theater;
1336
+ auto-open on streaming unchanged). This-configuration opens with a
1337
+ one-line scale statement above the legend key. All user-visible
1338
+ cross-references updated (seed-chip tooltip, compare empty state,
1339
+ multiverse hint, compare-vs-previous link, tour, claims map).
1340
+ 2. **Toolbar calm-down.** Two clusters: LEFT authoring (toggle,
1341
+ counters, preset, Auto-connect, camera, Clear, ⋯ menu), RIGHT
1342
+ evidence (pinned seed, ×N, precision target, cost chip, Run)
1343
+ behind a md-gated divider + faint "evidence" group label. Share
1344
+ and Export .py demoted into the ⋯ MoreMenu at EVERY width
1345
+ (Auto-connect/Clear menu rows are md:hidden, so each action has
1346
+ exactly one reachable copy at any width). Net chrome: −3 buttons
1347
+ (Share, Export .py, Theater).
1348
+ 3. **Visual calm pass.** RibbonLegend auto-fades 20 s after its
1349
+ first-run mount (dismissal still the only persisted state);
1350
+ guidance strips capped at ONE per view with demo banner > hint
1351
+ (multiverse hint collapses to its "?", the archive-io strip to an
1352
+ "archive…" chip, both reopenable = explicit intent); Evidence
1353
+ header chips capped at two (seed chip absorbs cached as "cached ·
1354
+ no seed"); node-tile post-run strip audited ≤ glyph + 2 rows and
1355
+ the layout contract documented at RunResultStrip.
1356
+ 4. **Doc = paper skeleton.** This file now opens with the narrative,
1357
+ C1/C2/C3 (each with where-in-system + which-figure), the F0–F8
1358
+ figure plan (+ planned filmstrips), tightened related-work
1359
+ positioning, and the system=paper structure map; backlog +
1360
+ conventions follow; everything older lives verbatim under
1361
+ "— wave history —".
1362
+ 5. **Tour + claims map alignment.** Slide 3 = scales 1&2, slide 4 =
1363
+ scale 3 (both name the tabs; slide 4 adds the difference funnel);
1364
+ claims map reorganized under C1/C2/C3 headers and gains the
1365
+ missing F8 row.
1366
+
1367
+ Verification: tsc + build + VITE_ANON build green; backend 86 green;
1368
+ svg_paper / export_python (esbuild recipe) / difference_funnel node
1369
+ lanes green; F0–F8 scenario tab keys resolve unchanged (ids frozen);
1370
+ live bundle markers checked after deploy.