Installation
This page is for anyone setting up QuOptuna for the first time. By the end you’ll have the package installed and the app running at http://localhost:8000.
Requirements
Section titled “Requirements”| Requirement | Details |
|---|---|
| Python | 3.11 or 3.12 |
| RAM | 4 GB minimum, 8 GB recommended for quantum models |
| Internet | Needed for UCI datasets and LLM-generated reports |
| Node.js | 18+ — only if you run the frontend in dev mode |
Install the package
Section titled “Install the package”With uv:
uv pip install quoptunaOr with pip:
pip install quoptunaFor an editable development install with extra tooling:
uv pip install -e ".[dev]"Choose a run mode
Section titled “Choose a run mode”QuOptuna can run three ways. Most users want packaged mode.
| Mode | Command | Ports | When to use |
|---|---|---|---|
| Packaged | uvx quoptuna or uv run quoptuna run | :8000 (UI + API) | Everyday use; simplest, one process |
| Dev | make dev | :8000 API + :3000 UI | Contributing with hot reload |
| Docker | docker compose up --build | :3000 frontend + :8000 backend | Isolated, reproducible environment |
Packaged mode (one process)
Section titled “Packaged mode (one process)”Serves the web UI and JSON API on a single port. It opens your browser automatically and prints a gradient ASCII banner.
uvx quoptunaRunning uvx quoptuna (or uv run quoptuna) with no subcommand is the same as
quoptuna run. Useful options:
uv run quoptuna run --port 8001 --no-browseruv run quoptuna run --host 0.0.0.0uv run quoptuna run --streamlit # launch the legacy Streamlit dashboardDev mode (two processes, hot reload)
Section titled “Dev mode (two processes, hot reload)”Runs FastAPI and the Next.js frontend separately so both hot-reload. This needs Node 18+ for the frontend.
make dev # FastAPI on :8000 + Next.js on :3000Individual targets are also available: make run_backend, make run_frontend,
make run_streamlit, and make run_cli.
Docker
Section titled “Docker”docker compose up --buildThe docker-compose.yml defines the frontend on :3000 and the backend on
:8000.
Verify it works
Section titled “Verify it works”- Start the app:
uvx quoptuna. - Open the web UI at http://localhost:8000 — you should see the 6-step wizard.
- Open the interactive API docs at http://localhost:8000/api/docs to confirm the API is live.
The JSON API lives under http://localhost:8000/api/v1/....