Interactive web application for exploring quantum mechanics concepts with React + FastAPI.
backend/ # FastAPI backend
app/
routers/ # API endpoints for each lab
main.py # FastAPI app with CORS
requirements.txt
frontend/ # React + TypeScript frontend
src/
labs/ # Lab components
api/ # API client
App.tsx # Main app with navigation
# Start production environment
docker-compose up --build
# Or use Make
make prodThen open:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000/docs
For development with hot-reload:
docker-compose -f docker-compose.dev.yml up
# Or: make devSee DOCKER.md for detailed Docker instructions.
See QUICKSTART.md for detailed setup instructions.
Backend (Terminal 1):
cd backend
uv venv && source .venv/bin/activate
uv pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000Frontend (Terminal 2):
cd frontend
npm install && npm run devThen open http://localhost:5173
cd backend
uv venv && source .venv/bin/activate
uv pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000cd frontend
npm install && npm run devThen open http://localhost:5173
- Solve time-independent Schrödinger equation
- Visualize energy eigenstates
- Animate time evolution of wave packets
- Potentials: harmonic oscillator, square well, barrier
- Generate quantum states and operators
- Compute eigenvalues and eigenvectors
- Analyze measurement probabilities
- Explore basis transformations
- Schrödinger picture time evolution
- Heisenberg picture operator evolution
- Ehrenfest theorem verification
- Spin dynamics in magnetic fields
- Two-spin coupling and Clebsch-Gordan coefficients
- Spin-orbit coupling energy levels
- Rotation operators
- Parity transformations
- Time-reversal symmetry
- Variational method for harmonic oscillator
- Variational method for helium atom
- WKB approximation for tunneling
- Unit 1-2: Schrödinger Lab (wave functions, operators)
- Unit 3: State & Operator Lab (Hilbert space, observables)
- Unit 4: Dynamics Lab (time evolution, pictures)
- Unit 5: Spin Lab (angular momentum, coupling)
- Unit 6: Symmetry Lab (conservation laws)
- Unit 7: Variational & WKB Lab (approximation methods)