Hackathon project exploring quantum machine learning and quantum optimization for polypharmacy safety. Built by a 5-agent team against a fixed contract (CONTRACT.md).
Given a patient's current drug regimen, Helix:
- Flags known interactions against a classical reference database.
- Predicts novel interactions via a quantum kernel SVM over molecular fingerprints (
/predict_interaction). - Optimizes the regimen via real QAOA on a QUBO sub-problem, honoring condition coverage and cost (
/optimize_regimen). - Explains molecular binding via cached VQE ground-state energies (
/simulate_binding). - Exposes a patient-facing scan UI, a clinician cockpit, and a researcher workbench across three front-ends.
| Path | Owner | Stack |
|---|---|---|
backend/ |
Helix Mind | FastAPI + PennyLane + Qiskit (QAOA, quantum kernel SVM, VQE cache) |
web/ |
Helix Web | Next.js 14 — patient Scan + clinician Clinic views |
forge/ |
Helix Forge | Streamlit — researcher workbench |
data/ |
Data + Pitch | Reference JSONs, VQE cache, patient mocks |
pitch/ |
Data + Pitch | Deck, demo script, architecture, Q&A |
CONTRACT.md |
Shared | API shape, demo scenario, scope boundaries (do not modify) |
CRITIQUE.md |
Devil's Advocate | Adversarial review |
- Backend:
http://localhost:8000 - Web:
http://localhost:3000 - Forge:
http://localhost:8501
# Backend
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000
# Web
cd web
npm install
npm run dev
# Forge
cd forge
pip install -r requirements.txt
streamlit run app.pySee each sub-directory's README.md for details. See CONTRACT.md for the canonical API shape and demo scenario.
/predict_interactionruns a real PennyLane quantum kernel circuit (default.qubit, 4 qubits, AngleEmbedding) for every call./optimize_regimenruns real Qiskit QAOA (StatevectorSampler,reps=2, COBYLA) on a 6-variable QUBO sub-problem./simulate_bindingis a cached lookup — VQE is not executed live. This is intentional and documented inapp/quantum/qsim.py.
All quantum work uses free local simulators only (PennyLane default.qubit, Qiskit Aer). No IBM hardware.