All five experiments now support physical IBM QPUs and classical/QPU analytics.
Open Physical QPU Analytics (/hardware/) for completed measurements from
ibm_marrakesh, job dbr0sthabdes73fp2v60. See the
hardware guide and
actual results.
For the final presentation push, see the Fall Fest roadmap and science challenge answers, including the November 12 local neutrino measurements, figure, and remaining integration work. The release and demo guide records the implemented workspaces, study limits, and rehearsal commands.
For the limited quantum-testing allowance, use the Qiskit connection setup guide. SDK installation and the default readiness check submit no jobs; provider authentication/device listing is a separate operator action. The compiler Test step now offers one explicitly confirmed IBM QPU job, using local angle training followed by physical sampling.
Q-Atlas is a five-developer quantum computing hackathon project for reproducible,
scientifically honest comparisons with classical methods. It combines a restricted
Python optimization compiler, small spin-system experiments, QAOA optimization, and
Grover search in a SvelteKit application. The original React scaffold is preserved
in frontend/react-scaffold/ for Developer 5 review; the shared specification is unchanged.
Read the final science report for the research question, Qiskit approaches, models, classical comparisons, evidence status, reproduction inputs, citations and limitations across all five experiences. Use the presentation runbook for startup, the five-minute demonstration, anticipated questions, and offline fallback. The Methodology page offers the report, figure and downloadable presentation pack.
Current state: five live local experiment workspaces. The compiler safely analyzes supported Python and runs exact classical/shared Aer QAOA comparisons. Optimization runs the same shared solvers on graph presets and configurable cycle graphs. Materials, Search, and Neutrinos expose their existing live models and references. All five workspaces offer bounded sequential parameter studies with distinct seeds, quality/error and timing statistics, cancellation, and full raw JSON export.
Start with ./dev.sh; it enables local compiler comparisons by default. Set
QATLAS_ENABLE_COMPILER_AER=0 to keep conversion-only deployments. A separately
started backend still requires QATLAS_ENABLE_COMPILER_AER=1 for compiler execution.
Optional IBM hardware sampling retains its explicit confirmation and quota limits.
No account or physical hardware is needed for any local demonstration.
Search now runs a bounded local Grover/classical comparison at POST /api/search/run,
with measured/theoretical success probabilities, query comparisons, and explicit
timing metadata. See the search guide for Windows commands, limits,
and API examples. The live Search page at /search/ provides controls, probability
curves, query/runtime comparisons, errors, and measured JSON export.
Repeated-trial mode adds two to five distinct seeded runs, probability variation,
median runtimes, and raw-record export alongside the summary.
An explicit, dated previously measured fallback and a repeatable API rehearsal command
are documented in the search guide for demo preparation.
See the compiler guide for supported syntax, diagnostics, limits, and the shared QUBO-to-QAOA handoff. The Developer 2 next steps cover the remaining integration work and owner handoffs under the current mocks-only constraint. The Developer 3 handoff records the selected circuit and solver contracts for optimization integration.
The compiler accepts named local terms, numeric accumulation, bounded literal
range loops, and squared penalty expressions inside a marked objective function.
Start with the seven
pasteable Python examples
and their expected QUBOs. Submitted source is parsed and verified, never executed.
The Svelte compiler page at /compiler/ uses load Python → Convert Python →
Download .py. Put @qatlas.objective above the objective; function and input names
are arbitrary, named scalar inputs need no indexing, and width is inferred without
num_bits. No circuit function or quantum settings are required. Start with
named_decisions.py and the
script-generation guide. The optional second
@qatlas.circuit marker is only for replacing an existing circuit factory.
The page offers energy-project examples at three through six qubits,
defaulting to a six-project selection problem, alongside
three generated output scripts,
and advanced conversion details plus nonexecuting comparison planning.
Local measured results include exact and sampled objectives, objective gap, solver timings, depth and optimizer evaluations. Physical QPU usage has a separate scope from local training and end-to-end execution.
Local numeric weight vectors are supported inside objectives. Test planning remains
nonexecuting; the separate hardware action submits
one confirmed IBM job. User-submitted Python itself is never executed.
See the manual validation record and
Developer 5's integration handoff.
Materials now provides a 2–4-spin TFIM simulation with exact, ideal-circuit, and finite-shot results; see the materials guide. No materials simulations are run as part of compiler validation.
Read the original specification completely before implementing features. The original file and its casing are preserved.
.
├── AGENTS.md
├── README.md
├── docs/
│ ├── Project_Spec.md # original source of truth
│ ├── API_CONTRACTS.md
│ └── BENCHMARK_METHODOLOGY.md
├── backend/
│ ├── pyproject.toml
│ ├── uv.lock
│ ├── scripts/export_openapi.py
│ ├── app/
│ │ ├── main.py
│ │ ├── api/ # one route module per feature + errors
│ │ ├── schemas/contracts.py # canonical Pydantic contracts
│ │ ├── compiler/ # Developer 2
│ │ ├── quantum/qaoa.py # Developer 3 shared runner stub
│ │ ├── experiments/
│ │ │ ├── materials/ # Developer 1
│ │ │ ├── optimization/ # Developer 3; classical runner stub
│ │ │ └── search/ # Developer 4
│ │ └── benchmarks/ # shared timing/result assembly
│ └── tests/ # api, schemas, compiler, materials, optimization, search
└── frontend/
├── package.json # primary SvelteKit application
├── src/
│ ├── routes/ # overview + four experiment views
│ ├── lib/ # reusable controls, graphs, example displays
│ ├── api/client.ts # one shared typed transport
│ └── types/ # canonical OpenAPI-generated types
├── tools/api-types/ # isolated TypeScript 5 generator workspace
└── react-scaffold/ # preserved React application on port 5174
Prerequisites: Python 3.11+ (Developer 3 uses Python 3.12), uv, and Node.js 22.17+ (22 LTS or 24+). The lockfiles pin resolved compatible packages. SvelteKit uses TypeScript 6; the OpenAPI generator is isolated in a workspace using TypeScript 5.9 to satisfy its peer range. The frontends use Vite and the Tailwind Vite plugin.
From the repository root, in the backend terminal:
cd backend
uv sync --locked
uv run --locked uvicorn app.main:app --reload --host 127.0.0.1 --port 8000This installs only API/dev dependencies. Quantum developers also run
uv sync --locked --all-extras and use uv run --locked --all-extras ... so uv retains
NumPy, SciPy, Qiskit, Qiskit Aer, and NetworkX. No IBM account is needed.
In a separate terminal, from the repository root:
cd frontend
npm ci
npm run devFrom the repository root, after installing dependencies, start both servers from one terminal (Bash 4.3+):
./dev.shThe backend automatically reads optional QUANTUM-KEY and QUANTUM-CDN from
.env without prompts. QUANTUM-CDN is the IBM instance name/CRN. Existing
environment values take precedence, and missing settings leave the local app usable.
Settings stay in the backend; startup does not authenticate or submit quantum jobs.
The launcher works from any current directory when invoked by its path. Both servers share the terminal output; Ctrl+C stops both, including their worker processes. If either server exits, the other is stopped too. It uses the existing backend virtual environment and frontend dependencies without installing packages or running experiments.
Open http://127.0.0.1:5173. Backend docs are at http://127.0.0.1:8000/docs;
health is http://127.0.0.1:8000/api/health. Start either server independently.
The frontend serves /, /compiler, /neutrinos, /materials, /optimization, and
/search. The Svelte compiler sends generation, planning, and explicit local execution requests; conversion
does not execute user code or run a benchmark. Its Test step can explicitly submit
and retrieve a bounded IBM QPU sample after device selection and authorization.
The Neutrino Lab runs vacuum, matter,
layered propagation, and density sweeps through its own API using normalized inputs;
see the experiment guide. With the quantum extra installed, the
Materials page submits configurable requests and displays returned simulation results,
metrics, and time-series plots. Search and Optimization run live comparisons and parameter studies. React health/request panels remain runnable from
frontend/react-scaffold/ on port 5174. See frontend setup for
both applications.
No environment file or credentials are required. The backend automatically reads optional
QUANTUM-KEY and QUANTUM-CDN (IBM instance name/CRN) from the repository .env,
then backend/.env as a fallback. Existing environment settings take precedence.
Missing values never prompt or prevent local startup. Optional overrides:
- Backend:
QATLAS_CORS_ORIGINS, a comma-separated list, defaulting tohttp://localhost:5173,http://127.0.0.1:5173. Set in the backend shell. - Frontend:
VITE_API_BASE_URL, defaulthttp://127.0.0.1:8000/api. Set in the frontend shell before starting Vite, or in an ignored frontend.env.local. EveryVITE_value is public browser configuration; never put secrets there.
From backend/:
uv run --locked --all-extras python -c 'from app.main import app; print(app.title)'
uv run --locked --all-extras pytest
uv run --locked --all-extras ruff check .
uv run --locked --all-extras ruff format --check .From frontend/:
npm run test:compiler
npm run types:check
npm run check
npm test
npm run format:check
npm run buildtypes:check exports OpenAPI using backend/.venv/bin/python and checks that committed
TypeScript matches. Backend setup is needed for this check, but the frontend server
and build run independently using the committed generated types. Following a contract
change, run npm run types:generate from frontend/, review the generated diff, and
commit the types with the backend change. frontend/openapi.json is ignored intermediate output.
With the local API running, check the compiler over HTTP from backend/:
.venv/bin/python scripts/check_compiler_api.pyThis checks health, all seven source examples, and one rejected input. It only calls
health and Analyze, never a solver endpoint. Use --base-url for a different API root
and --timeout for the socket timeout. See compiler checks.
| Owner | Begin here | First owned implementation/test |
|---|---|---|
| Developer 1 | backend/app/experiments/materials/, api/materials.py, tests/materials/ |
TFIM implemented; start with the physics and convergence tests |
| Developer 2 | backend/app/compiler/, api/compiler.py, tests/compiler/ |
Allowlisted marked AST, diagnostics, normalized QUBO; consume shared runners |
| Developer 3 | backend/app/quantum/qaoa.py, experiments/optimization/solvers.py, api/optimization.py, tests/optimization/ |
QUBO evaluation and classical reference, then shared QAOA and fair timings |
| Developer 4 | backend/app/experiments/search/, api/search.py, tests/search/ |
Marked-state oracle with explicit wire ordering and query assumptions |
| Developer 5 | frontend/src/routes/, src/lib/, src/api/; preserved frontend/react-scaffold/ |
Review SvelteKit integration and connect typed requests while preserving live errors/loading |
All backend paths in the table are relative to backend/ where shortened. Shared
contracts are in backend/app/schemas/contracts.py; timing guidance is in
benchmark methodology. Developer 3 coordinates benchmark
helpers with all owners. No second QAOA engine belongs in the compiler.
- Branch from updated
main:git switch -c codex/<module>-<change>(or the team's agreed prefix). - Keep each PR within its owner's module; coordinate cross-module contracts first.
- Include the problem, resulting behavior, and exact validation commands/results.
- Include regenerated frontend types whenever contracts change. Ask the impacted owner(s) to review. Never commit local environments, credentials, or fabricated results.
- Merge small vertical slices after relevant checks pass. Do not replace stubs in other owners' modules as part of unrelated work.
- Materials now fixes an open TFIM chain, all-zero initial state, second-order Trotter evolution, and dimensionless units with hbar=1; see the implementation guide.
- Optimization owner must define Max-Cut conversion, baseline selection, gap/ratio formulas, and optimizer stopping behavior. Requests accept graphs, but no conversion exists yet.
- Search owner must specify oracle construction cost and classical query assumptions.
- Materials enforces a wall-clock budget using a disposable simulation process. Other owners must enforce their runners' budgets; field validation alone cannot stop native work.
- Shared benchmark endpoints retain synchronous simulator semantics. The compiler's separate hardware contracts support explicit single-job submission and retrieval; further shared hardware integration requires owner coordination.