Commit History
-
Board/theater/export: overlay stacking, figure honesty, export text metrics
TheYuchen- 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 …77fb334
-
Qshot preset: auto-load ry_chain_6q so default lands in 5-8q range
Yuchen Yuanbell_state (2q) is the global default circuit — perfect for QuCAD / QuBound demos but immediately trips Qshot's GNN-fallback path because it's outside the 5-8 qubit training distribution. New users picking the Qshot preset would see the warn-banner version of the result and think 'is this thing actually working?'. Add an optional `defaultCircuit` field on PipelinePreset that, when present, triggers a sample-load alongside the node/edge swap. Set it to `ry_chain_6q` for the Qshot preset only — every other preset keeps the user's current sample, since QuCAD / QuBound / CompressVQC are happy with whatever's loaded. Skip the round-trip when sampleKey is already on the target.088ad4b
-
Qshot UX polish: flag GNN-fallback results, drop meaningless -1s
Yuchen YuanObserved on HF after first end-to-end run: bell_state (2q) was out of Qshot's 5-8q training distribution, so it took the GNN fallback path. The UI then showed the user 'Cluster: -1 / Tier: -1 / PF-matched neighbours: 0' — correct Qshot internals but unintelligible to a user who doesn't know that -1 is the outlier sentinel. * When method==='gnn_fallback', suppress the cluster/tier/neighbours line entirely and surface a warn-toned banner that says 'extrapolated via GNN because the circuit is outside the validated 5-8 qubit range — treat as a best guess'. * Update the Qshot preset tagline to 'try ry_chain_6q' so new users load a 5-8q circuit by default instead of hitting bell_state and getting surprised by the fallback warning.dca9772 -
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 -
Default preset: switch from QuBound to QuCAD for faster first-run
Yuchen YuanQuBound's LSTM-based bound predictor can take tens of seconds on HF's shared CPU when the precomputed cache misses (which happens any time the user loads a circuit we didn't ship results for). That's a poor first impression for drive-by demo traffic. QuCAD's ADMM pass is sub-second on the small sample circuits, the fidelity check stays in place so the result pane still has something meaningful to show, and the shipped precompute cache covers QuCAD for all default samples. Only flips DEFAULT_PRESET_KEY. The QuBound preset is still available from the Load-preset menu and the intro tour still features it prominently as an algorithm.693d2b1
-
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