Commit History
-
Palette taglines fit the tile: no mid-thought ellipsis
TheYuchenAt 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.c50b89a
-
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
-
Fix Fidelity on parameterized circuits + QuBound threshold + Backend shots
Yuchen Yuan +1: Claude Opus 4.7 (1M context)Three user-reported issues, all addressed with proper logging and actionable error surfaces. Issue 1 — Fidelity crashed on parameterized circuits simpleFidelityEstimator used Statevector.from_instruction(qc), which refuses circuits with unbound parameters. ry_chain_6q has 12 such parameters; Fidelity throw "TypeError: Parameter expression with unbound parameters … is not numeric" which surfaced as a generic "unexpected error" in the result card. The estimator now takes an `unbound_param_policy` argument: * "bind_zero" (default) — auto-binds free params to 0, matching the convention QuBound already uses internally, and reports `bound_unbound_to_zero: N` in the summary so the user sees what we did. * "error" — refuses and raises UnboundParametersError with the actionable message naming the offending param count and suggesting the upstream fix. _handle_fidelity catches UnboundParametersError specifically and maps it to a clean error step (the message is shown v…286193c
-
Plugin protocol Phase 4: full UI integration
Yuchen Yuan* lib/nodeCatalog.ts — `synthesizePluginSpec(manifest)` builds a NodeSpec on the fly from a backend-served PluginManifest. `resolveNodeSpec(kind, plugins)` is the new single source of truth for spec lookups: returns the built-in spec if available, otherwise the synthesized plugin spec, otherwise undefined. Adds PluginNodeSpec (NodeSpec + isPlugin/initials/pluginColor). * UploadPluginModal.tsx — drag-drop or click-to-pick .zip, posts to /api/plugins/upload with the browser's anonymous user_id, surfaces backend validation errors verbatim, refreshes the in- store plugin list on success. Inline docs spell out the manifest + handler.py contract. * NodePalette — new "Upload" button next to "Add blocks"; merges plugin specs with NODE_CATALOG before filtering by search / family chips. Plugin tiles render with the manifest's color + first-letter badge instead of a Lucide icon, and grow an X delete affordance on hover (with confirm dialog). * BlockPicker — same merge…74b7708
-
Param hints: explain what each control does in plain language
Yuchen YuanEvery editable param now has a hint that tells the user (a) what the control actually means and (b) which way to push it for which effect. Previously fake_backend's dropdown showed 'FakeFez · 156q (Heron r2)' with zero context — a non-quantum reader had no idea Heron was a chip family or why three options exist; Qshot's snapshot dropdown was even worse, listing dates with no explanation of what a 'snapshot' is or why dates differ. New hints, all under one line: * fake_backend.backend_name → 'Each option is a simulated copy of a real IBM chip. The choice mainly affects which gate-error rates and qubit connectivity the noise model uses.' * qshot.noise_snapshot → 'A real IBM chip's calibration captured on a specific date — different days have different noise levels, so the recommended shot count shifts too.' * qshot.alpha (was 'fraction of converged fidelity to hit', a domain-of-art phrasing) → 'Fraction of the best-possible accuracy you want. 0.95 = aim for 95% — higher me…cadac03 -
Generalise inline param editor; tunables for QuCAD + fake_backend
Yuchen YuanThe Qshot block had a hand-written inline editor; promote it to a schema-driven component so other blocks can opt in by listing `params: NodeParamSpec[]` in their NodeSpec — no per-block wiring. The single rule for what becomes user-tunable: it has to be an actual function argument on the algorithm's public API (Qshot.predict args, QuCAD's run_qucad_training_noisy args, fake_backend handler's backend_name lookup). Module-level constants the original author tuned during training stay locked — exposing them would invalidate bundled state. What's now tunable from the canvas (in addition to Qshot): * QuCAD — three ADMM hyperparameters: - `iterations` (1..20, default 3) — more = sparser pruning, slower - `lam` regularisation strength (1e-4..0.05, default 0.005) - `rho` ADMM penalty (10..5000, default 500) Inline hints flag the trade-off direction. * fake_backend — 3-way dropdown over the Heron-family fakes the backend handler can actually load: FakeFez (default) / FakeMarrak…94039f2 -
Qshot copy: tighten 4 claims an independent fact-check flagged
Yuchen YuanIndependent review against author source code + README found no hallucinations but four phrasings that a quantum researcher would read as imprecise marketing-speak. Tighten each: * nodeCatalog description — "minimum number" is misleading because Qshot's solver targets `mean − z·σ ≥ α·F_conv` with z=1.645 (≈90 % CI), not an unconditional minimum. Replace with "smallest shot count that meets a target fidelity bound (with statistical confidence, z=1.645)". * AlgorithmsSlide detail — "pre-measured records" was ambiguous about provenance. The 3.3k records were measured on AerSimulator under bundled IBM noise models, NOT on real IBM hardware. Replace with "simulator-measured fidelity curves (under bundled IBM noise models)". Also "hits a target fidelity" → "achieves a target fidelity bound" (matches the >= comparator). Also generalise the GNN-fallback trigger from "outside 5-8 qubit range" to "no cluster matches — typically outside 5-8q OR unusual structure" (the READ…9a9b067
-
Integrate Qshot (noise-aware shot-count recommender) as a pipeline block
Yuchen YuanNew research block from the JQub lab (handover from Tong Li). Given a QuantumCircuit + an IBM calibration snapshot + a target fidelity α, Qshot predicts the minimum shots needed to reach α × F_converged on that backend. Backend: * qlib/qshot/ — handover package (recommend_shots_v4, dual_gnn_model, show_dag, train_dual_gnn) + new __init__.py wrapping lazy singleton and NOISE_SNAPSHOTS registry. GNN-fallback lazy imports converted to package-relative so it works as a proper Python package. * cache/qshot/ — 12 dataset dirs (~3.3k records) + best_model.pt (LFS). * _handle_qshot in workflow_service: binds free circuit parameters to zero (Aer constraint), calls singleton.predict, surfaces shots / fidelity ± std / fit parameters / pilot measurements in summary. * NodeType += "qshot"; dispatcher wired. * requirements += hdbscan, torch-geometric, pylatexenc. torch-scatter / torch-sparse NOT pinned — PyG falls back to pure-Python scatter without them, far simpler on HF Spaces. Fr…fd88622 -
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 -
Copy audit pass: align timing/recommendation text with QuCAD default
Yuchen YuanAfter switching the default preset to QuCAD, several pieces of copy still framed QuBound-with-LSTM-training as the canonical first-run experience. Sweep them: - ResultsPane EmptyHint/RunningHint: lead with precomputed-cache instant behavior; QuBound's 2-min cold path is now a conditional footnote instead of the headline warning. - WelcomeTour TrySlide: same rewrite; reorder the 'what to try first' list so QuCAD (cache-hit instant) is the top recommendation, QuBound drops to second; upload hint covers .qasm too. - WelcomeTour PipelineSlide SVG: illustrative algo node shows QuCAD (accent2) instead of QuBound (accent3) so the diagram matches the default canvas; section titles use Blocks/Links to match the toolbar chip wording. - WelcomeTour WelcomeSlide: kbd label tracks the real button text ('Run pipeline', not 'Run'). - nodeCatalog: QuBound tagline 'predict fidelity bound' was mixing units vs the 'predicted error bound' label used in the cards and final metrics; uni…4087daa
-
Add preset pipelines dropdown and paper links
Yuchen Yuan +1: Claude Opus 4.7The canvas used to boot into one hardcoded 4-block demo and the only way to get back to it was a Reset button. Replaced that with a named preset registry (QuBound / QuCAD / CompressVQC / Full stack) exposed via a "Load preset" dropdown in the canvas header. Each preset is a pure-data graph spec; buildPresetGraph turns it into React Flow nodes/edges with a simple left-to-right layout. Adding new presets is a one-file edit. Also surfaced the underlying research papers: - QuCAD arXiv:2304.04666 (ICCAD 2023) - QuBound arXiv:2507.17043 (IEEE TCAD 2025) - CompressVQC arXiv:2207.01578 (ICCAD 2022) A NodeSpec.paper field carries url/title/venue. The algorithm node cards show a small paper icon on hover (top-left, mirroring the delete × on top-right), and the WelcomeTour AlgorithmsSlide now links each card's venue back to arxiv so the papers are discoverable without hovering. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>d9de684 -
Add sample diagram preview, upload hints, and block taglines
Yuchen YuanSample circuit preview: - Backend SampleCircuit now carries depth/size/params/diagram_text so the sample list exposes enough metadata to preview without a second round trip. - Each sample button has an eye-toggle that expands an ASCII circuit diagram inline. The Loaded card has a matching toggle. Upload affordance: - Button label is now 'upload .qpy / .qasm' with a descriptive title. - Empty Loaded card explains what formats are accepted and offers a 'download a sample' link so new users can try the upload flow with a known-good file. - New GET /api/circuits/samples/{key}/download serves the raw .qpy. Block discoverability: - Added NodeSpec.tagline (3-5 word human-friendly caption). - Palette tiles show the tagline under the label (tile height grew from 52px to 68px, width 92px -> 108px). - Canvas QNode also renders the tagline so users don't need the tooltip or the tour to recall what each block does.bd3a155 -
Polish: widen tiles, pedagogical sample order, em-dash sweep
Yuchen Yuan- NodePalette: widen tiles 72px->92px so CompressVQC / IBM live backend labels stop truncating; rewrite right-side hint into clean two-liner. - Backend: add SAMPLE_ORDER so /api/circuits/samples returns a pedagogical ordering (bell_state first, ry_chain_6q last) instead of alphabetical by filename. - Rename 'Circuit' -> 'Input circuit' for consistent naming across palette, tour, and results. - Remove em-dashes from user-visible copy (ResultsPane, FlowCanvas, nodeCatalog, WelcomeTour); replace with colons/periods/parens.fa80903 -
UX polish pass: results viz, sample descriptions, delete affordance
Yuchen YuanThree related changes aimed at making both experts and newcomers able to understand and play with the lab's algorithms through the demo. UX basics (Batch 1): - Fix all timing claims to match HF's shared CPU (~2 min, not ~60 s) - Rename "Fake backend" -> "Noisy simulator" with a plain-English description ("Simulates a real IBM quantum chip with its measured noise. Runs locally, no IBM account needed.") - Add a hover-X delete button on each canvas node, with a matching hint in the block palette about the Backspace shortcut - Sample circuit buttons now show a curated one-liner under the name, replacing the auto-generated "N-qubit circuit, depth D" text More demo circuits (Batch 2): - Add 4 new samples: w_state_3q, qft_3q, ry_chain_6q, hardware_efficient_4q - Each comes with a human-friendly description in the circuit picker Results visualization (Batch 3): - ResultsPane now renders per-algorithm cards instead of flat k/v rows: - QuBound: 0-1 gauge + "lower is better" caption …36d22d6 -
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