Commit History
-
Learn from zero, part 2: steps 3-5 + handoff (marker: learn-complete)
TheYuchenStep3Bell "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…d70dffe -
Learn from zero, part 1: exact toy sim + LearnLab frame + steps 0-2 (marker: learn-lab)
TheYuchenlib/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…2af5086 -
Cleanup: dead touch-drag bridge, empty-state + tour copy, docs
TheYuchen- 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…d17180a -
Guided lessons: four beginner micro-experiments (marker: guided-lessons)
TheYuchenNew 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…edfa7f5
-
Global toast channel: store globalNotice + App-level host; palette alert() migrated
TheYuchenThe 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.535c56c -
Canvas/palette S3 sweep: id collisions, touch-cancel, caps, honest encodings
TheYuchenAudit 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…728039f -
Evidence pane: compare-selection lifecycle, honest empties, marker clamps
TheYuchen- 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 panef2fb736 -
Run-lifecycle guards: no canvas swaps, surprise runs, or false toasts mid-run
TheYuchen- 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 store72fe4f4 -
Evidence pooling honesty: scenario tagging, replay dedupe everywhere, timesTrusted
TheYuchen- 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…65e036f -
Provenance state: no false forks, no stale pins, one-shot board replicates
TheYuchen- 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…1cd2cb9
-
IA inversion 1/4: the Evidence board is home
TheYuchenStore 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…2e43c22 -
Difference funnel (difference-funnel): sequential A/B evidence + F8
TheYuchenThird 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…02aa1f6 -
Theater overlay comparison (theater-overlay) + scenario F7
TheYuchenNew figure capability: when two archived runs share a config_hash and both persisted per-batch traces, the Compare tab offers "overlay in theater" — the evidence theater renders BOTH runs' funnels on one axis pair (run A accent/blue, run B warn/amber, envelopes at .07 alpha, constant ∓3.5px x-dodge on the shared batch grid, per-run stop annotations in stacked top-band rows, a shared target corridor only when both runs executed the same rule, per-run id+seed legend in the context strip). The visual argument: the stopping rule is deterministic, the draws are not — "two replays of one configuration — same rule, different draws". The trace scrubber drives both series in lockstep (scrubSeries clamps per series). Store: theaterOverlayIds; closing the theater or starting a new run exits overlay mode; deleting either record mid-view exits instead of rendering a stale pair. Figure export takes the true-SVG path as evidence-theater-overlay_<slug>.svg with both run_ids/root_seeds in the provenanc…ecfb151
-
Compare reachability: one hop from where the question arises
TheYuchen* 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.8311ef0 -
Evidence Theater: steering becomes the visual protagonist (+F0 teaser)
TheYuchenThe 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 …f686793 -
Audit M1-M3 + minors: lineage, stopping disclosure, anon scrub
TheYuchenM1 scenarios.ts QUCAD_GRAPH is now a literal copy of bundled demo record 5c2a6a71a7a4's graph (ids n1..n5, sampled fidelity, same params/positions) instead of an s1..s5/statevector rebuild — F1/F5 runs now group with the demo cards (same config_hash) and pinned seed 336157917 replays the archived numbers bit-exactly. M2 Optional-stopping honesty in three places: limitation block at the stopping rule (qlib/qiskit_utils.py — width-based data-dependent stopping perturbs exact nominal coverage of the final fixed-n interval; confidence sequences are the rigorous alternative), one sentence in the Wave I doc section, and a clause in the precision-target tooltip. M3 Anon builds scrub the branded theme completely: generateBundle strips the [data-theme=gmu] CSS block, and theme.ts gates the stored-preference fallback behind !ANON so the key literal is dead-code-eliminated from VITE_ANON JS (runtime ?anon=1 behavior unchanged). Anon dist grep…e52951c -
Wave P: paper-first reorientation
TheYuchenDe-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…79cd0aa
-
Wave I: anytime evidence steering (live CIs, optional stopping)
TheYuchenBackend: 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…7fa375a -
Multiverse board: configurations as small-multiple evidence
TheYuchenThe set of configurations the analyst has tried becomes a first-class workspace. A Compose|Multiverse segmented toggle in the canvas toolbar flips the center column to a MultiverseBoard: one card per config_hash group, each with a topological pipeline schematic (family-colored 8px squares, warn dots on stages whose params differ from the baseline), the outcome distribution on a shared 0-1 scale (group hue, mean tick, latest emphasized), Δmean vs the most-tried (baseline) configuration in pp with an "(n small)" honesty flag under 3 replicates, and Open/A-B actions wired into the existing restore + compare bridges. The board overlays the canvas instead of replacing it so React Flow graph state and the pendingRestore watcher survive mode flips. hashHue/hueCss move to lib/hues.ts, shared by RunHistory and the board so a configuration keeps one color everywhere. Tour welcome slide gains one sentence pointing at the mode.4bf1a9d -
Composition comparison: two archived runs side by side, CIs not scalars
TheYuchenPhase 3 (minimal viable) of the evidence-workbench rework. Pick any two runs in the history panel (checkboxes, keep-latest-two) and a comparison panel renders: * configuration diff — params matched structurally by (kind, occurrence) exactly like configHash, so node ids and layout don't matter; circuit swaps surface as a "circuit" row; * same-configuration detection — when the config hashes match the panel says so explicitly ("differences are noise"), because that changes how any metric gap must be read; * fidelity compared as intervals — both Wilson CIs on one 0-1 scale with the Δ in percentage points, and an explicit "intervals overlap: not evidence" callout when the difference is within run-to-run noise at these shot counts; * step-by-step alignment with each side's transformation signature.d105dc7 -
Provenance timeline: run archive, restore/replay/fork, replicates
TheYuchenPhase 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…f2c03b7
-
Display fix + focus trap + mobile touch drag-to-edge-insert
Yuchen Yuan +1: Claude Opus 4.7 (1M context)DevelopersPopover layout fix When Yuchen Yuan's row gained a second link chip (LinkedIn), the single-row "icon + truncated name + chip + chip" layout squeezed the name down to its first letter ("Y") inside the 320px popover. Restructured to two rows per person: name on top (full width, no truncation), link chips below with flex-wrap. Single-link entries still look natural — the chip row simply contains one chip. Focus trap for modals + drawers New lib/focusTrap.ts useFocusTrap hook implements WAI-ARIA Authoring Practices for dialog focus management: - On open, focus moves into the container (prefers the container itself if tabIndex=-1, else first focusable child). - Tab from the last focusable wraps to first; Shift+Tab from first wraps to last. - Defensively re-routes focus into the container if something else steals it (e.g. async overlay). - Caller restores focus on close — we already do this for the upload modal and auth dropdown via their existing openerRef pattern. App…defa0ba
-
Multi-user: HF OAuth login + per-user plugin persistence
Yuchen Yuan +1: Claude Opus 4.7 (1M context)What this lets users do - Anyone can click "Sign in" in the top bar and authenticate with their Hugging Face account (OpenID Connect via the HF OAuth flow). No account creation, no password management on our side. - Each signed-in user gets their own private namespace for uploaded plugins. Other users (and other browsers from the same person) cannot see them. - Plugins uploaded while signed in are mirrored to a private HF Dataset repo (qudastudio/quda-user-data) so they survive container restarts and follow the user across devices. - Guest (anonymous) mode is fully preserved: visitors can still drop a .zip without signing in; those plugins continue to live in /tmp and are per-browser, exactly as before. Architecture Browser ──cookie──▶ FastAPI ──HfApi──▶ HF Dataset (private) │ └──▶ /tmp (volatile cache) Identity = session cookie's hf_<username> (when signed in) ∥ anon UUID query par…b6faf15 -
Plugin protocol Phase 3: frontend foundation
Yuchen Yuan* lib/userId.ts — anonymous browser ID stored in localStorage. Uses crypto.getRandomValues for a 16-byte hex string; falls back to Math.random if Web Crypto is unavailable. Matches the backend regex [a-zA-Z0-9_-]{8,64}. * lib/api.ts — three new endpoints (listPlugins / uploadPlugin / deletePlugin) and a PluginManifest type. RunRequest gains an optional user_id field so workflow runs can address the right user's plugins. * lib/store.ts — Zustand state for the current user's plugin list (refreshed on App boot, after upload, and after delete). * App.tsx — on boot, fetch this browser's plugin manifests in parallel with the health probe. Silent failure (just no plugins shown if /api/plugins is unreachable). * FlowCanvas.tsx — include getUserId() in the run-stream request payload so the backend can dispatch unknown node types to this user's plugins. No UI for upload yet — that's Phase 4. After this commit, refresh the live Space and a plugin uploaded directly via curl …10b580f -
Polish: unified value prop, error-message location hints, next-steps guidance
Yuchen YuanFour UX-audit follow-ups: 1. **Value-prop consistency**: WelcomeSlide's opening paragraph replaced. Was "A visual playground for research algorithms" — conflicted with README's "Interactive workflows for quantum system deployment" and TopBar's "Quantum Design Automation Studio" subtitle. Now leads with the QuDA acronym expansion + the canonical "interactive workflows" tagline, then explains the lab context underneath. All three surfaces (TopBar / WelcomeSlide / README) now agree. 2. **Error messages point at UI**: "Pick a circuit first" now also bumps a Zustand counter that App.tsx watches; the left CircuitPicker pane auto-expands (desktop) or its drawer slides open (mobile) so the user can SEE where to act. The message itself names the pane explicitly. "Canvas is empty" now mentions all three ways to add blocks (drag / Add blocks dropdown / preset). 3. **Cross-feature guidance**: After a successful run, ResultsPane shows a subtle "Where to …974ac89 -
Tour + mobile parity: address UX audit findings
Yuchen YuanUX audit found: 1. Tour didn't mention Export .py, Sweep, or BlockPicker (all shipped after the tour was last updated). 2. Sweep & Export were hidden on mobile (toolbar md+ only, not in MoreMenu). 3. TrySlide "What to try first" list was static text — users had to manually find samples + presets. Fixes: - MoreMenu: add Sweep entry alongside Auto-connect / Share / Export / Clear so mobile users can reach the parameter-sweep feature. - TrySlide: the 4 "What to try first" lines are now clickable buttons. Each loads its (preset, sample) combination via a new Zustand quickStart bridge and closes the tour. The bridge mirrors the existing pendingBlockKinds pattern. - TrySlide: new "Once you've got results" strip explicitly introduces Sweep and Export .py as the power-user features — these were completely undocumented before this commit. - TrySlide: "Build your own" now mentions Add blocks (multi-select dropdown) alongside drag interaction. - FlowCanvas.loadPreset: acce…82f6435 -
Polish pass: brand cleanup, popover consistency, mobile safety
Yuchen YuanAudit-driven fixes: 1. Branding: - Dockerfile comment: QuAIM → QuDA Studio - package.json name: jqub-quantum-flow-ui → quda-studio-ui - All localStorage keys: jqub.* → quda.* (theme, pane widths, collapsed state, IBM toggle, tour flag). Existing users will see fresh defaults on first visit (acceptable — the old Space URL is gone anyway so there's no continuity to preserve). 2. Popover consistency: - All 4 popovers (Papers, Developers, Support, BlockPicker) now share z-40 instead of a mix of z-30 and z-50. - BlockPicker gets the same mobile-safe positioning as the other three: fixed left-3 top-14 on narrow screens, absolute on ≥sm. - BlockPicker width clamped with min() so it can't overflow on narrow viewports. 3. Pre-hydration script in index.html updated to read quda.theme instead of jqub.theme.95967ab
-
NodePalette: checkbox multi-select + batch add to canvas
Yuchen YuanThree ways to add blocks now: 1. Drag a tile onto the canvas (unchanged). 2. Click the checkbox (top-left corner of tile) to select, then hit the "Add N to canvas" button that appears in the header. All checked blocks are created on the canvas in family order and auto-connected in one shot. 3. Hover a tile and click the + icon (top-right) to add just that one block instantly. Implementation: - NodePalette tracks a `checked: Set<NodeKind>` state. Checked tiles get an accent border + filled checkbox. - On "Add to canvas", NodePalette pushes the ordered list of kinds to `useApp.addBlocksToCanvas(kinds)` (new Zustand store field). - FlowCanvas watches `pendingBlockKinds` via useEffect: creates nodes positioned to the right of existing ones, merges them into the canvas, auto-connects the whole graph, shows a toast with any warnings, and fitViews to show all nodes. - Zustand bridge avoids restructuring the component tree (NodePalette and FlowCanvas are siblings, not …d9a330d
-
Add BibTeX copy + share-link URLs
Yuchen Yuan +1: Claude Opus 4.7Two features in one commit (both pure frontend, short). BibTeX copy - Extend paper metadata in nodeCatalog with a bibtex string for QuCAD, QuBound, and CompressVQC. - Papers popover now renders each row as a link + copy button; clicking copy writes the BibTeX to the clipboard and shows a short check-mark confirmation. Share link - frontend/src/lib/share.ts packs canvas state (nodes, edges, positions, per-node params, selected sample key) into a compact base64url JSON on the URL fragment. - FlowCanvas hydrates from #s=... on boot, falling back to the default preset if no hash payload is present; loads the linked sample circuit so recipients see the same Input circuit. - New "Share" button in the canvas toolbar copies the current pipeline as a URL (with a clipboard fallback for non-HTTPS dev). - CircuitPicker tracks sampleKey in the Zustand store so Share can record "which sample was loaded"; uploaded circuits clear the key (they can't round-trip through a link). C…a2227a5
-
Add client-side live IBM toggle and wrap palette to two rows
Yuchen YuanLive mode toggle: - TopBar chip becomes a button: cache (default) <-> live. State is persisted to localStorage as jqub.useLiveIbm and passed through on every run via use_live_ibm in RunRequest. - When the server itself cannot go live (no IBM_QUANTUM_TOKEN or ALLOW_LIVE_IBM=false) the chip greys out and the tooltip explains exactly what secret to set. - Tooltip copy now tells the user the cache is real IBM Fez data just frozen 14 days back, so off is not a downgrade for demo usage. Palette layout: - Block tiles now flow in two rows: setup blocks (input + backends) on top, processing/metric/sink on the bottom. This mirrors the pipeline flow and removes horizontal overflow on narrower viewports. - Tile height trimmed from 68 to 64 px to keep the two-row strip from eating too much canvas space.7fbd0c7 -
Initial JQub Quantum Flow demo
Yuchen Yuan- FastAPI backend serving QuCAD / QuBound / CompressVQC as a topologically-sorted pipeline under /api/workflow/run - React + Vite + React Flow frontend with drag-and-drop node palette - 14-day offline cache of ibm_fez calibration so the demo runs without an IBM Quantum token - Two-stage Dockerfile targeting HuggingFace Spaces (port 7860) Algorithms by Jovin Antony Maria (JQub); web refactor by Yuchen Yuan.1ee2bb3