Commit History
-
Full audit pass: leak fixes, sign-in clarity, functional bugs
Yuchen Yuan +1: Claude Opus 4.7 (1M context)Triggered by user request "全方位的检查、测试" covering visualization, user comprehension, page logic, ease-of-use, science, info leakage, and security. Three parallel audits ran (info-leak, sign-in clarity, visual/a11y, functional/scientific); fixes batched below. Critical functional bugs - workflow_service.run_pipeline + run_pipeline_stream now call plugin_service.hydrate_from_dataset_if_needed before dispatch. Without this, a logged-in user running a pipeline on a fresh container (or on the mirror Space) would see "plugin not found" even though it sits safely in their HF Datasets backing store. - plugin_runner._scrub_scalars / _scrub_value drop NaN and ±Inf instead of passing them through. Standard JSON has no representation for either; model_dump_json emits NaN/Infinity which the browser's JSON.parse refuses, so any plugin returning a numerically degenerate scalar used to make the entire /run response fail to parse client- side. NaN → dropped from scalars dict; Inf → nul…4c566b4 -
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 5: final audit fixes + polish
Yuchen Yuan +1: Claude Opus 4.7 (1M context)Defence-in-depth fixes from the security/UX/scientific audits: Backend safety: - Reject `\` and absolute paths in zip entry names (defensive even on Linux containers). - Cap stdin payload at 50 MB in the subprocess wrapper before parsing. - Drop the full `/tmp/quda_plugins/<user>/<kind>/` path from the "handler.py missing" error message — user already knows their kind. Frontend UX: - QNode now renders a red-bordered tombstone card with a "?" badge and a "plugin not installed" hint when a referenced plugin has been deleted, instead of silently disappearing. - App.tsx listens for `storage` events on `quda.*` keys to refresh the plugin list across tabs. - UploadPluginModal title now reads "Upload your own block" with a one-line explanation of what plugins do. - TrySlide adds a "Upload your own block" tip alongside the Export .py one so new users discover the plugin workflow. Docs: - README.md gains a User plugins section pointing to PLUGIN_SDK.md. - PLUGIN_SDK.md adds a "…d06bf19
-
Rebrand QuAIM → QuDA Studio (Quantum Design Automation Studio)
Yuchen YuanNew product name across all user-facing surfaces: - TopBar: title + tagline - index.html <title> - WelcomeTour slide 1 gradient heading - FastAPI app title + boot/shutdown log messages - README HF frontmatter (title, short_description) + H1 - config.py module docstring Domain moves from jqub21-quaim.hf.space to qudastudio-app.hf.space (new HF org "qudastudio" under the same jqub21 account).8742007
-
README: catch up with current algorithm lineup and pinned versions
Yuchen Yuan- Add Qshot to the algorithm tagline and bullet list (the WelcomeSlide / TrySlide / nodeCatalog already had it; README was the lone holdout from before Qshot landed). - Mention .qasm upload alongside .qpy. - Cold-run timing line said "QuBound ~ 2 min". Match the language used in ResultsPane and TrySlide: 1-3 min, naming both QuBound and Qshot as the slow paths. - Stack section pinned "Qiskit 2.4" but backend/requirements.txt has qiskit==2.3.0; correct it. Also list torch-geometric and hdbscan since both are now hard runtime deps for the Qshot block.f8afa87
-
Un-pin copy to "three algorithms"; remove README credits; reorder dev menu
Yuchen YuanFuture-proof the user-visible copy so adding a fourth/fifth research block doesn't require another copy pass: * README intro: "three research algorithms" -> "research algorithms from the JQub lab — currently QuCAD, QuBound, and CompressVQC, with more to come" * Welcome tour slide 1 paragraph: same "currently ..., with more to come" framing. * Algorithms tour slide 2: kicker "The three algorithms" -> "The algorithm blocks"; headline "One block each" -> "One block per algorithm". Added a code comment flagging that the md:grid-cols-3 breakpoint will need bumping when a fourth block lands. * Internal docstrings in PapersPopover / WelcomeSlide / AlgorithmsSlide also drop the "three" count and note the block list is expected to grow. Also remove the README's "Credits" section entirely per request. Reorder DevelopersPopover so Jovin Antony Maria (algorithm author) lists above Yuchen Yuan (demo & UI). Credit should lead with the research.71199f3 -
README: shorten short_description to fit HF 60-char cap
Yuchen Yuan1e8b457 -
Rename the product from "JQub Quantum Flow" to "QuAIM"
Yuchen YuanThe old name was just a working title. Adopt the proper product name so the Space card, browser tab, welcome tour, TopBar, and the FastAPI OpenAPI title all agree. Changed: * README frontmatter (Space card title + short_description) and H1 * index.html <title> * WelcomeSlide gradient title * TopBar product name * FastAPI app(title=) and startup/shutdown log lines * config.py module docstring * Dockerfile header comment Intentionally NOT changed: * Repo / HF Space path (jqub-quantum-flow) — renaming would break bookmarked share links, existing clones, and CI paths. * frontend/package.json "name" — not published to npm. * Git remote, git history, commit authors. No NSF-specific metadata (award number, program wording, PI listing, dollar amount, abstract text) is added anywhere in the repo. The name "QuAIM" is used standalone without its acronym expansion.52378e7 -
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
-
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 -
Fix meta-info leaks in welcome tour and README
Yuchen Yuan- Remove 'NSF demo' chip (came from chat context, not from the project) - Correct institution: 'Georgia Tech' -> 'George Mason University' - Drop the invented '(Jiaqi Gu Quantum)' expansion of JQub; use the lab's own framing and link to https://jqub.ece.gmu.edu/ instead - Update README's opening line the same way175b0c8 -
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