Commit History
-
Health + OpenAPI report the real APP_VERSION
TheYuchen/api/health carried a hardcoded 0.1.0 while every run stamps app_version from app/_version.py — the liveness probe disagreed with the provenance stamp about which build was serving. health.py and the FastAPI metadata now import APP_VERSION from the single source of truth. No test pinned the old value; unit lane 86 green.42d80aa
-
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 1: backend service + subprocess runner
Yuchen YuanThree new backend modules to support user-uploaded plugin blocks: * plugin_service.py — manifest schema (Pydantic), per-user storage under /tmp/quda_plugins/<user_id>/, zip upload + validation: - max 1 MB zip, ≤ 50 entries, ≤ 512 KB per file - allowlist: .py / .json / .txt / .md only - rejects path traversal (.., leading /) - rejects reserved kinds (collisions with built-in block types) - rejects > 5 plugins per user (count cap) - validates manifest.json against PluginManifest schema (kind format, family enum, hex color, unique param keys, …) * plugin_runner.py — subprocess execution with safety measures: - 10-minute hard timeout (subprocess.run(timeout=600)) - 1 GB virtual memory cap via RLIMIT_AS in preexec_fn - 11-minute CPU time cap via RLIMIT_CPU - os.nice(10) so a busy plugin doesn't starve FastAPI - env stripped to allowlist (PATH, PYTHONPATH, HOME, TMPDIR, …) — drops IBM_QUANTUM_TOKEN and any other Space secrets - cwd set to plugin's own dire…34125c4
-
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
-
Backend copy: extend QuAIM description and cache motivation to four algorithms
Yuchen YuanTwo more places that hadn't caught up with Qshot landing: - main.py FastAPI description ("/docs" page header) still listed only QuCAD/QuBound/CompressVQC. Add Qshot. - run_cache.py module docstring referenced "the three preset pipelines" and "four presets x six samples". Both numbers were stale (5 presets, 9 samples; the precompute matrix is 36 cache entries). Generalise the wording so it doesn't have to be edited on every preset/sample addition, and note current counts inline.ede3688
-
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
-
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