Walked all 10 steps live against an explorable-explanations rubric
(interaction-first, predict-then-check, misconception counters, honest
feedback). Three fixes fell out; the physics itself audited clean.
- Step3Bell: seed 20260703 opened the linked pair with FIVE 11s in a
row, so "always the same side" read as "always 11". Seed 20260708
shows both sides within two clicks (00 11 00 11...) and, once
broken, a first-click disagreement (01) with all four cells filling
inside ten draws. Comment records the choice so it stays chosen.
- Step3Phase: the apply-H caption said the needles "snapped" — the
track's collapse verb — for a deterministic gate move, blurring the
very gate-vs-measurement line the step draws. Now they swing
(CircleState's own word for gate motion).
- Step4Noise: in noisy mode before any misread, the score line read
"100% — on a perfect machine it is 100%", which sounds broken. It
now says what is true: no misreads yet; noise strikes per look,
not ever…
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 B2: "Waves that cancel" + signed amplitude bars
TheYuchen
bf4e707
learn/AmpBars.tsx — the arrow picture: one signed bar per outcome
(up=+ / down=-, height=|amplitude|), odds kept SEPARATE as a thin
overlay bar + %, so arrows-are-not-odds is visible; optional dashed
ghost route-arrows; bars animate through zero via scaleY.
Step4Interference.tsx — H·H on |0> as a <->-stepped three-frame story
(never autoplay); the last frame shows the two routes into each
outcome as ghosts (into 1: one +, one -, merging to zero); a Z toggle
between the H's flips the hidden sign and the cancelling swaps sides
(certain 1), in place. Glossary gains `interference`.
Learn track, part B1: toy sim grows the Deutsch oracle (+ node-lane proofs)
TheYuchen
ac9eae8
deutschOracle(rule) in lib/quantumToy.ts — the four hidden coin rules
(always0/always1/copy/flip) as |x>|y> -> |x>|y xor f(x)>, all real
permutation matrices, so the exact real-amplitude subset is untouched.
The node lane asserts the truth table on the computational basis and
the full Deutsch run (|0>|1>, H both, oracle, H on q0) reads q0 with
CERTAINTY for all four rules, plus the interference step's ghost-route
identities (routes into 0 agree, routes into 1 cancel; a Z between the
H's swaps the sides).
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 track, part A1: scientific audit fixes + toy sim grows Z and stateAngle
TheYuchen
f1c44e4
Audit (copy vs the exact sim):
- shots gloss: "repeated measurements" implied re-asking one qubit;
now "prepared and measured from scratch" (each shot is a fresh
preparation).
- step 0 caption "holds: a lean" foreclosed phase — the lean is the
measurement distribution, not the whole state; it now reads "a
first approximation; step 4 refines it".
- Dial docstring updated (the gates step's wire end moves to the
full circle in part A2; the semicircle can only show leans).
Sim: applyZ1 (diag(1,-1) — the sign flip, still REAL, so the exact
real-amplitude subset stays exact) and stateAngle (the circle
convention: |0> top, |+> right, |1> bottom, |-> left; Bloch angle
doubling; global sign modded out — unphysical). Glossary gains
phase and amplitude.
Node lane asserts the new physics: Z|+>=|->, H|->=|1>, ZZ=I,
HZH=X, all four angle conventions, global-sign invariance, and the
reachable-set truth: from |0> the X/H/Z words generate a dihedral
orbit of 8 signed pairs at 45-degree mult…
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…
The pipeline grammar moves INTO the canvas. Two openers, one mini
chooser (CanvasInsertMenu, ~240px, internal scroll, Escape/outside
dismiss via useDismissOn):
(a) onConnectEnd — releasing a connection drag from a node's SOURCE
handle over EMPTY pane opens the menu at the drop point, filtered to
nextFamilies() of the dragged-from node's family. Picking a block
creates it there AND wires the pending connection to it.
(b) double-click on empty pane — same menu, unfiltered (all five
stage sections in mini form), no wiring. zoomOnDoubleClick is off so
the gestures don't fight.
nextFamilies lives in autoConnect.ts next to FAMILY_ORDER — the
grammar source of truth — and is derived from how autoConnect builds
chains: any later family can directly follow (empty buckets are
skipped when flattening); algorithm→algorithm and metric→metric may
repeat (unwarned legal chains); source→source and backend→backend are
excluded because they are exactly the shapes autoConnect's advisory
warnings flag;…
BlockPicker rewritten from a multi-select checkbox dropdown into THE
single chooser surface, anchored under the one permanent "+ Add
block" button now sitting in canvas-toolbar row 1 (after the
workspace toggle, btn h-8 idiom). Width min(480px, 90vw), max-height
~380px with internal scroll, useDismissOn for Escape/outside-click.
Content teaches the grammar the shelf used to spell out: five stage
sections in pipeline order (Source → Backend → Algorithm → Metric →
Sink), each a 10px uppercase header + the shelf's one-line tagline,
then compact h-9 rows — icon, name, plugin badge, on-canvas count dot
(live multiset from the canvasKinds bridge), full description as the
title tooltip. Plugins list inside their declared family's section
and keep their delete ×.
Interactions: click = add via the pendingBlockKinds bridge and KEEP
the popover open (multi-add by clicking; the row flashes "added ✓");
rows stay draggable with the unchanged application/reactflow payload
so drop + splice-on-edge w…
Tier 1: kill the pipeline shelf — the canvas owns its space again
TheYuchen
cde3a67
The always-visible five-column shelf (marker pipeline-shelf, commit
6d69c3f) cost ~300px of permanent chrome, was mostly whitespace, and
grew with block count at the canvas's expense. Removed wholesale:
NodePalette.tsx deleted, both <NodePalette /> mounts dropped from
App.tsx, MIN_CANVAS_W comment updated (its overflow rationale died
with the shelf). The pendingBlockKinds store bridge stays — it is
still the add mechanism for the tier-2 chooser popover that replaces
the shelf in the next commit.
Guided lessons: four beginner micro-experiments (marker: guided-lessons)
TheYuchen
edfa7f5
New lib/lessons.ts + components/LessonCard.tsx — an integrated
beginner path, not a separate mode. Each lesson step rides the SAME
machinery scenario boots use (pendingRestore + autoRunAfter through
the store bridges), and every lesson run is tagged via the existing
RunRecord.scenario field ("L1"…"L4") so lesson runs never pollute
evidence pools — the theater prior-pool filter and the F6/F7/F8
pickers already exclude scenario-tagged records (comments at all
three sites now name the lesson tags too).
The four lessons, numbers grounded like scenarios are:
L1 "Measurement is sampling" — bell_state, sampled fidelity, 128
shots fresh ("why isn't it exactly 50%?"), follow-up button runs
4096 → the funnel visibly narrows.
L2 "Noise costs fidelity" — vqc_2q_small twice: statevector under
bind_zero is EXACTLY 1.0 (RY(0)+CX on |00⟩ is identity in
effect), sampled on FakeFez lands ~0.97; after the second run the
card selects both runs into Between configurations.
L…
Pipeline shelf: palette becomes the grammar (marker: pipeline-shelf)
TheYuchen
6d69c3f
Rebuild NodePalette as five stage columns in pipeline order — Source →
Backend → Algorithm → Metric → Sink — separated by faint arrow glyphs,
so the palette itself reads as the sentence structure a valid pipeline
follows. Each column: 10px uppercase header + one-line tagline, blocks
stacked vertically as compact h-9 rows (icon + name; the tagline moved
into the row tooltip). Killed: the rotated vertical family-letter
rails, the count-filter chips, the horizontal tile sprawl. Kept
exactly: drag-to-canvas (dataTransfer payload), tap/click-to-add via
pendingBlockKinds, the touch-drag bridge, plugin badges + delete,
paper links, search (now filtering rows across columns), "Add blocks",
and the collapse-to-strip affordance. New: a subtle count dot on rows
already placed (canvasKinds is a multiset, so it counts copies).
Columns share width equally (min 120px); a column with ≥5 blocks
(plugins join their declared family) scrolls internally behind a
mask-image fade — growth is vertical, never…
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.
Infra S3 sweep: boot honesty, theater stability, export provenance
TheYuchen
cab6fcb
Audit backlog wave 3, infra area:
- App boot: unknown ?scenario= keys warn instead of vanishing;
scenario activation runs before the demo-archive check and writes
its workspace mode before any await (mode flash); StrictMode
double-boot guard landed with the canvas batch
- EvidenceTheater: y-domain target band anchors on the FIRST batch
(no mid-run re-zoom); overlay stop annotations flip when the left
side would clip (shared estimateTextW); frame keys are composite
(shots_done can repeat); scrub-reset dep list documented and its
accidental window.open reference removed; "hatched" doc claim
corrected to the 5%-opacity wash actually drawn
- figureExport: regenerate string and scenario doc say F0..F8 (F8
existed, the string didn't); multiverse/history provenance lists
exactly the ARCHIVE_WINDOW the views render while id lookups scan
unbounded; the live run's config_hash comes from theaterRun (run
start) with lastConfigHash as fallback (archive-time value goes
sta…
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…
Canvas/palette S3 sweep: id collisions, touch-cancel, caps, honest encodings
TheYuchen
728039f
Audit backlog (docs/AUDIT_BACKLOG.md) wave 3, canvas area:
- node ids: module counter kills the same-millisecond collision
- touch drag cancel clears the splice highlight; restore-pulse timer
held in a ref (cleared on re-restore/unmount)
- cost effect reads nodes through a ref (stale closure)
- ARCHIVE_WINDOW (runStore) consolidates the 50/100/200/500 listRuns
caps; countRuns()/countRunsByConfig() back every displayed total
(board header, config-context bar); exportArchive scans unbounded;
listRunsByConfig keeps the newest window instead of an arbitrary
primary-key subset; import preserves synthesized run_ids (no dupes
on re-import)
- stale post-run encodings: ribbons/edge labels dim at 0.45 when the
live structural hash diverges from the run's hash
- RibbonEdge: role=img on the aria-labelled group; deltaSize null
(unknown) no longer renders as pass-through; "ops" -> "gates"
- replicate loop: sticky progress notice (outlives the 4s fade) and
per-iteration clearLivePr…
Board/theater/export: overlay stacking, figure honesty, export text metrics
TheYuchen
77fb334
- boot "Connecting" overlay at z-50 (painted under board/theater/header)
- band run-start effect skips the band Evidence overlay when the theater
will auto-open (no double overlay)
- DemoArchiveBanner + board hint strips carry data-export-strip (F2 figures
drop guidance chrome); scenario force-reimport after "Clear demo data"
says so in the banner, and the Clear tooltip drops its "never" claim
- shared svgPaper.estimateTextW(chars, fontSize, bumped) budgets the x1.25
PAPER_FONT_BUMP in theater layout math: stop-label flip/intrusion,
panel title-dx, and the cost-anchor line (splits into two tspans when
the bumped width would clip; svg gets bottom pad for the second line)
- DifferenceFunnel viewBox width is two-tier: pane tier derives from the
container (labels stay >=9px effective; legend wraps to two lines),
export tier keeps the documented 760px geometry via a hidden twin
- F6/F8 pair picker excludes scenario-tagged records (F7's guard verified
already in place) and …
- 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
Pickers: live on-canvas badges, honest zero-states, upload retry + spinner
TheYuchen
dee698c
- BlockPicker reads real canvas kinds (store bridge): "on canvas" badges are
live, and defaults already placed are not pre-checked (no duplicate
input/output on every Add blocks round-trip)
- NodePalette zero-state accounts for the family filter and offers
"Show all families"
- CircuitPicker: file input resets after handling (same file re-uploads),
upload button shows its busy spinner, circuit picks lock while running
Run-lifecycle guards: no canvas swaps, surprise runs, or false toasts mid-run
TheYuchen
72fe4f4
- restore consumer refuses (queues) while running; applies when the run ends
- pendingAutoRun expires on restore consume / loadPreset / clearGraph
- restore-path loadSample shares the preset path's generation guard
- replicate loop reports "stopped after i of N" on step failure or transport
error instead of the unconditional success toast
- Run button becomes "Stop after this run" while a replicate loop runs
(flag checked between iterations; the current run completes + archives)
- boot default-sample failure sets a warn notice; disabled Run buttons say
"No circuit loaded - pick one on the left"
- authoring locked while running: param editors, node delete x, preset picker
- config-context bar: liveHash reset on context switch + "computing identity"
state (no stale-hash flash); FlowCanvas publishes canvasKinds to the store
- 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).
- 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…
exportPython: make the reproducibility claim true
TheYuchen
fb2cd9e
- input_circuit: sample runs emit a REAL loader (QPY downloaded from
/api/circuits/samples/<key>/download, cached beside the script)
instead of a hardcoded QuantumCircuit(4) placeholder under a header
claiming bit-exactness. Uploaded-circuit runs emit a sys.exit guard
BEFORE the placeholder so the script can never silently print wrong
numbers.
- fake/ibm/compvqc backends: qiskit.providers.fake_provider imports
(dead since Qiskit 1.0, and FakeFezV2 never existed there) replaced
with qiskit_ibm_runtime.fake_provider — the exact import the studio
backend (workflow_service / qlib) uses.
- qucad: removed the dead qc_bound block. Verified against
qlib/qucad.py: run_qucad_training_noisy trains the PARAMETERIZED
circuit (the backend passes ctx["circuit"] unbound; pre-binding
would leave zero trainable parameters), so the emitter now mirrors
_handle_qucad exactly and binds theta*mask after training.
- plugin/unknown steps: emitted as "# Step N: <kind> — plugin step,
no…
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."
Provenance state: no false forks, no stale pins, one-shot board replicates
TheYuchen
1cd2cb9
- clearGraph / loadPreset now clear restoredFrom, pinnedSeed,
precisionTarget and editorContext (mirroring the New-configuration
bridge, which also clears precisionTarget now): a preset or cleared
canvas is not a fork of whatever was restored before, and must not
replay an unrelated pinned seed.
- restoredFrom is consumed after the FIRST post-restore run archives:
only that run is the fork; later runs no longer inherit a false
forked_from lineage.
- The restore consumer writes the pin unconditionally — including
null — so board "Open" clears a stale pin from an unrelated replay.
- Board "+3 replicates" no longer mutates global toolbar state: a new
one-shot replicateOnce field rides the pendingRestore -> auto-run
bridge and is consumed by that single run; replicateCount is never
written.
- Palette-add appends nodes only: when the canvas already has edges
(hand-drawn or restored) it no longer recomputes the whole edge set
(which silently destroyed hand wiring) — i…
Toolbar: intentional two-row design — hierarchy, single CTA, consistent controls
TheYuchen
130ee8d
The canvas toolbar's single flex-wrap row broke at an arbitrary,
pane-width-dependent point: the evidence cluster dangled left on a
ragged second line, its 9px "evidence" micro-label read as floating
debris, and the accent2 "Load preset" pill competed with Run for the
eye. Replace it with a deliberate two-row layout at every width >=768:
- Row 1 (workspace & authoring): mode toggle, dot, counters (mute
11px), then ml-auto actions — Load preset (now a standard outline
btn; PresetPicker drops btn-secondary), Auto-connect, figure export,
Clear, the overflow menu.
- Row 2 (evidence & execution): right-aligned seed chip / xN select /
target select / est chip / Run — the toolbar's only accent control.
The "evidence" label + lg divider are deleted; the row boundary
carries the grouping, the word lives in the row's aria-label.
- Est chip copy: "est ~35s" at N=1; "est ~35s each · ~2m total" at
N>1 — the xN multiplier is no longer duplicated next to the select.
Chip yields below…
Evidence tabs: active scale named in a visible one-line subtitle
TheYuchen
5d99076
The three tabs' scale framing (within a run / across replicates /
between configurations) lived only in hover titles. A one-line 10px
subtitle under the tab bar now states the active tab's scale in plain
words ("Scale 2 -- all archived runs; same color = same
configuration"), so the minimum needed to read the view is visible;
the tooltips keep the longer framing (item e of the tooltip-critical
-> visible microcopy pass; items b and d were verified already
visible: the lineage strips show "xN" and the theater header carries
its plain-language subtitle).
History rows: seed glyph gains a visible word (pinned / fresh)
TheYuchen
346e35d
The bare glyphs were cryptic without hover (owner's tooltip-reliance
complaint, item c): a 9px "pinned"/"fresh" label now sits next to the
glyph inside the same shrinkable row group, colored with it. No-seed
records (pre-provenance / cached) keep the bare glyph + tooltip -- a
"fresh" word there would be dishonest. Tooltips unchanged.
Palette taglines fit the tile: no mid-thought ellipsis
TheYuchen
c50b89a
At the 108px tile width the 9px tagline clamps at two lines, and three
built-ins ellipsized mid-thought live ("your quantum...", "predict
today's erro...", "recommend shot..."). Taglines are rewritten to
honest microcopy that reads complete inside the budget: your circuit /
simulated IBM chip / error bound / shot count / fold gates;
noise-aware pruning, fresh IBM calibration, how close to ideal?, and
final metrics & diagram already fit and stay. The full thought lives
in `description`, which is the tile's hover tooltip (unchanged), and
the NodeSpec.tagline doc now states the two-line budget so future
blocks cannot regress it.
Editor viewport: fits show every node at short canvases (450px-tall)
TheYuchen
4117bcd
Two clipping causes closed:
(1) restore path never re-fit -- a graph restored from the archive (or
a scenario boot, same bridge) keeps coordinates from whatever
screen authored it, while the boot-time fitView measured the BOOT
graph; at short viewports the restored node row rendered half
below the fold. The pendingRestore consumer now re-fits via the
same rAF pattern loadPreset uses.
(2) the instance minZoom (0.4) floored every fit -- a 4-block chain in
a ~500px-wide center column needs ~0.3 to fit, so the fit clamped
and clipped. minZoom drops to 0.15, and every fit call (boot
fitViewOptions, restore, preset, add-blocks, orientation change)
caps at maxZoom 1 so nodes never render past natural size just to
fill a large canvas.
Toolbar: evidence-cluster divider + label gate at lg, not md
TheYuchen
a62ec36
In the 768-1024 range the evidence cluster's border-l divider (md-
gated) rendered while the cluster wrapped, reading as a clipped stray
rule next to the faint lg-only "evidence" label. Divider now hides
below lg with the label; the grouping stays implied by spacing, the
cluster still wraps as a unit (outer flex-wrap + min-w-0), and Run
stays reachable without horizontal scroll at every width >= 768px.
Layout: no horizontal page scroll at any width >= 768px (band overlay)
TheYuchen
78949f0
At 864px CSS the app rendered wider than the viewport: persisted pane
widths from a wider monitor were only clamped on window-resize EVENTS
(never on mount), and even freshly clamped the 768-1200px range cannot
host both panes in flow at all -- LEFT_MIN + RIGHT_MIN + MIN_CANVAS_W +
two resizers = 808px, so the Evidence pane and toolbar cluster sat past
the right edge and the board grid computed auto-fill columns from a
container wider than the screen.
App.tsx now carries an explicit RESPONSIVE CONTRACT comment block and
implements it: 768-1199px is the compact-desktop "band", where the
Evidence pane never takes layout width -- it boots collapsed to its
32px strip and, when expanded (strip click, run-start auto-expand, the
hintExpandRightPane bridge), opens as a right-anchored overlay over the
center column (bandEvidenceOpen: session state, never persisted, so
band sessions cannot rewrite the >=1200px preference). The mount+resize
clamp is band-aware and runs once at mount. The center …
The board header row (title, counts, New configuration, ?, plus an
lg-only "squares = pipeline stages / dot above / strip" note) crowded
the 768-1200 band. The inline note duplicated the header TipIcon's card
key verbatim and partially duplicated the orientation strip, so it is
removed rather than squeezed; the "?" reopener's strip now carries the
key inline (squares = stages, dot above = differs from baseline, one
dot per replicate) so the consolidation loses nothing recoverable.
Header keeps title, counts, New configuration, ?, export.
Statistical coherence: baseline + delta are per circuit (marker: same circuit)
TheYuchen
defe968
The board compared every card against ONE global baseline (the
most-populous configuration overall), so a vqc_2q_small card could
report "delta +50.0pp vs baseline" against a bell_state configuration --
fidelities of two different circuits are two different quantities, and
a delta between them is meaningless.
MultiverseBoard: pickBaseline -> pickBaselines, one baseline per
circuit identity (sample_key ?? upload:circuit_name, the exact
computeConfigHash circuitTag convention, so "same circuit" can never
disagree with configuration identity). Most-populous config per
circuit, ties toward most recent activity. Cards whose circuit has no
other configuration show no baseline chip, no diff dots and no delta
line. The delta line now names its reference inline -- "vs #hash (same
circuit)" -- instead of tooltip-only (owner's over-reliance-on-hover
complaint, item a).
DifferenceFunnel: cross-circuit gate in trace assembly.
useDifferenceEvidence returns status "different-circuit" when the two
s…
UI speaks the field's language: precision correspondence + cost anchor
TheYuchen
a6120cc
* Glossary precisionTarget: adds the documented-practice
correspondence (IBM Estimator `precision`, default 0.0156 ~ ±3.1pp
at 95% two-sided; Quantum Volume's 97.5% one-sided gate). Our 95%
two-sided Wilson semantics stay unchanged -- comment explains why
(system-wide convention; QV mapping documented in doc 1.2, no
convention switcher). Flows into the toolbar select tooltip, the
theater target tags and the tour TipIcon via the shared gloss.
* Evidence Theater (marker cost-anchor): under "evidence spent", a
secondary estimate line translating the run's wall-clock duration
into IBM pay-as-you-go dollars ($1.60/s) and percent of the Open
Plan's 10 min/28d grant, labeled "simulator wall-time as proxy;
hardware timing differs"; only rendered when a duration is known.
Bottom margin 66->80 to make room. Shorter twin appended to the
cost chip tooltip. Constants + source in lib/costModel.ts.
* Claims map: "grounded in:" mini-line per contribution group.
* Tour slide 3: …
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.
IA inversion 3/4: editor framed as definition view (marker config-context)
TheYuchen
ae61a23
When the Pipeline editor is entered FROM the board (card Open / New
configuration), a slim context bar renders above the toolbar and makes
configuration identity — the thing replicates and comparisons key on —
visible at authoring time (C2 detail):
* card, unedited: "Defining configuration #hash — circuit · runs
archived: N · Back to board".
* as the user edits, the structural config hash of the CURRENT canvas
is recomputed (250 ms debounce) with the exact computeConfigHash
archiving uses; divergence renders "edited: will archive as a new
configuration #newhash" — or names the EXISTING configuration the
canvas now matches, with its archived count (live via
historyVersion, so the count ticks up the moment a run archives).
* New configuration: blank-canvas consumer (newConfigRequest bridge)
also drops the stale pinned seed and fork parentage; the bar reads
"New configuration — not yet run" until the first archive lands.
Chip hues come from the shared hash->hue mapping, …
IA inversion 2/4: board cards expand in place (marker card-expand)
TheYuchen
f10a7ab
The Evidence board becomes a working surface, not a menu. A chevron
(or the strip area) expands one card at a time — spanning two grid
columns only when the grid actually measures two (a span-2 in a
1-column auto-fill grid would mint a phantom implicit column) — into
an inline scale-2 summary:
* run-dots timeline: the newest 12 archived runs of the configuration,
chronological, on the SHARED evidence-mass encoding (dot area ~
sqrt(shots), ring = pinned seed, hollow red slash = errored, ink
outline = newest). The encoding is lifted from RunHistory into
lib/evidenceMass.ts so lineage and board size dots identically.
* the pooled Wilson interval as a labeled line (same pool the
collapsed band draws), or an honest "pooling needs >=2 runs with
counts" note.
* quick actions: replay latest (pins the run's seed, auto-runs),
+3 replicates (clears any stale pin, replicateCount=3, auto-runs),
open in editor, A/B. Replay/replicates stay ON the board: the
covered canvas consumes …
IA inversion 1/4: the Evidence board is home
TheYuchen
2e43c22
Store default workspaceMode = "multiverse"; the last mode is persisted
per device (quda.workspaceMode) and read synchronously at store
creation, so returning users boot straight into their mode and a
first-ever visit (no stored value) paints the board from the first
frame. That unifies the two landing paths: App.tsx's demo-import
branch that used to force the board landing is removed. Scenario boots
write the store field directly (useApp.setState) so scripted figure
states never overwrite the preference.
Labels renamed, internal ids FROZEN ("compose"/"multiverse" stay in
scenario uiState, localStorage and provenance): WorkspaceToggle now
reads "Evidence board" (home — every configuration and its evidence)
and "Pipeline editor" (define or modify one configuration), board
segment first; the label<->id mapping is pinned in the toggle + store
comments. Store also gains the editorContext / newConfigRequest
bridges the definition-view bar and the board's New-configuration
button consume (wi…
Tour + claims map speak the three-scales language
TheYuchen
a202d78
Tour slide 3 is now scales 1&2 ("Steer one run, then pool its
replicates" — funnel + precision target inside a run, lineage across
×N replicates, naming the This-configuration tab); slide 4 is scale 3
("Scale 3 — between configurations", naming the tab and adding the
difference funnel as the sequential A/B verdict); slide 5's first
moves point at Evidence → This configuration. Claims map rows are
reorganized under C1/C2/C3 contribution headers (C1 one funnel
grammar, three scales; C2 stochastic-provenance substrate; C3 honesty
devices), gain the missing difference-funnel row (F8), and every
"where" string uses the renamed tabs.
(a) RibbonLegend: still mounts only after the session's first run
(verified — the parent gates on the in-memory `run`), and now fades
out on its own after 20s (unmounts at 21s; mount-scoped timer, so
re-runs don't resurrect it). The × dismissal remains the only
persisted state. (b) Guidance-strip budget — at most ONE strip per
view, demo banner > hint: the Multiverse orientation hint collapses
to its header "?" while the demo banner is up (explicit "?" click
force-shows it for the session); the History-tab archive-io strip
starts collapsed to an "archive…" reopen chip when the banner
renders. (c) Evidence-pane header chip budget: at most two chips —
the seed chip absorbs the cached state as "cached · no seed" (a
precomputed response IS a response no seed was drawn for), replacing
the separate cached chip. (d) Node tiles audited: the post-run strip
cannot exceed glyph + headline/chips row + micro-CI row (chips row is
flex-nowrap, headline min-w-0 truncate, ≤3 shrink-0 chips); the
layout…
Toolbar calm-down: authoring vs evidence clusters
TheYuchen
7ece09e
The canvas toolbar mixed authoring (preset, wiring, share, export,
clear) with evidence controls (replicates, target, seed, cost, Run).
Now two visually separated clusters: LEFT = workspace toggle +
authoring (counters, preset, Auto-connect, camera, Clear, ⋯ menu);
RIGHT = evidence group (pinned seed, ×N, precision target, cost chip,
Run) behind a md-gated divider with a faint "evidence" group label —
the toolbar reads as "what am I composing?" vs "what will the next
run measure?". Share + Export .py are demoted into the ⋯ MoreMenu at
EVERY width (their rows always render; Auto-connect/Clear rows are
md:hidden so exactly one reachable copy of each action exists at any
width) — two fewer permanent buttons, plus the Theater button already
removed by the three-scales commit. ShareButton toolbar instance and
its import dropped; MoreMenu's stale breakpoint-close guard removed;
NextStepsHint points at the ⋯ menu for Export .py.
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.
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…