TheYuchen commited on
Commit
8b3dd78
·
1 Parent(s): d105dc7

Document evidence-workbench rework state, rationale, and backlog

Browse files
Files changed (1) hide show
  1. docs/EVIDENCE_WORKBENCH.md +87 -0
docs/EVIDENCE_WORKBENCH.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
22
+ 1. **Provenance core (backend)** — every run gets run_id, seed_mode,
23
+ root_seed, app_version. Fresh runs draw-and-record a root seed →
24
+ any archived run is exactly replayable. Per-node seeds =
25
+ sha256(root_seed, node_id): order-independent, graph-edit-local.
26
+ Sampled fidelity honours the seed (seed_simulator) and emits a
27
+ distribution payload (binomial successes/shots, Wilson 95% CI,
28
+ top-16 counts). Cache: pinned runs live in a seed-salted prefix
29
+ namespace and may cache stochastic steps; fresh runs keep the
30
+ legacy namespace + nondeterministic bypass. SSE opens with a
31
+ run_meta event.
32
+ 2. **Run archive (frontend, IndexedDB)** — immutable RunRecord: graph
33
+ (share-link serialization), full response, seed envelope,
34
+ structural config_hash (ids/layout-independent), forked_from
35
+ lineage. Server stays stateless by design.
36
+ 3. **Timeline panel** — restore / replay(pin seed) / delete;
37
+ config-hash chips group replicates; ×1/5/10/20 replicate runner
38
+ (fresh seeds, sequential, per-run archiving).
39
+ 4. **Distribution-first fidelity card** — CI bar, counts histogram,
40
+ consumed seed, across-runs strip (one dot per archived replicate
41
+ of the current config).
42
+ 5. **Transformation signatures** — executor-level before/after
43
+ structural snapshots (shape + ops counts) on every step, uniform
44
+ across built-ins AND plugins. SignatureTile (canvas, e.g. "P-2")
45
+ + SignatureCard (before→after grid + per-op chips + explicit
46
+ pass-through line).
47
+ 6. **Composition comparison** — two archived runs side by side:
48
+ structural param diff, same-config detection ("differences are
49
+ noise"), fidelity as two Wilson CIs on one scale with overlap
50
+ callout ("intervals overlap: not evidence"), step-aligned
51
+ signatures.
52
+
53
+ All verified on the live Space (pinned replay reproduces bit-exact;
54
+ 5-replicate distribution accumulation; signature on QuCAD pruning of
55
+ vqc_2q_small showed P-2; interval-overlap callout fires).
56
+
57
+ ## Not done yet (ordered backlog)
58
+
59
+ * **Phase 2.5** — gate-level circuit diff (qubit-lane aligned,
60
+ changed gates highlighted) in the signature card. Demo scale only
61
+ (≤10q); big circuits → cite Quantivine as the scaling story.
62
+ * **Phase 3.5** — comparison upgrades: pick-which-fidelity-node,
63
+ dual-canvas visual diff, >2-way comparison table.
64
+ * **Phase 4** — cost preview (per-node runtime estimates, replicate
65
+ budget), reproducibility export (manifest + runnable script,
66
+ extend exportPython with seed), opt-in interaction logging
67
+ (schema first — needed for the user study).
68
+ * **Seeding audit** — QuBound LSTM training and Qshot pilot runs are
69
+ stochastic but not yet seed-plumbed; only sampled fidelity is.
70
+ Their distribution payloads are also missing.
71
+ * **Prewarm decision** — precomputed disk cache untouched and still
72
+ served (fresh-mode namespace unchanged), but responses in it lack
73
+ provenance/transformation fields. Either re-run
74
+ scripts/precompute_preset_results.py against the new schema or
75
+ accept cold first hits.
76
+ * **Welcome/tour copy** — still demo-oriented; reposition toward the
77
+ evidence workbench once features stabilize.
78
+ * **Formative study** — interview protocol before locking the task
79
+ taxonomy (Meyer-Dykes INFORMED). Blocked on user's go-ahead.
80
+
81
+ ## Conventions
82
+
83
+ Push to `github` + `hf` (jqub21/quaim) only; qudastudio/app is a
84
+ mirror synced ONLY on explicit request. After push: ~2-4 min rebuild,
85
+ smoke = /api/health + a pinned-seed run. Unit lane:
86
+ backend/tests/*.py runnable directly, no torch needed
87
+ (29 tests green as of d105dc7).