← viewer

quantum.too.foo

A demonstration platform for quantum-physics phenomena, fed by an offline GPU pipeline. Compute happens on a local RTX 4070; wavefunction volumes ship to Cloudflare R2 and the viewer raymarches them in your browser.

Hydrogenic orbitals

orbitals/v1

For each Z (1 → 20), every (n, l, m) eigenstate up to n = 4 — 600 states, all live. Closed-form ψ via real spherical harmonics × Laguerre recurrence, evaluated on 128³ grids in PyTorch + CUDA. Multi-electron (screened) version planned via Hartree-Fock.

1D Schrödinger sandbox

sandbox/1d

Pick a potential (harmonic, square well, double well, soft Coulomb, box with barrier) and the page diagonalises the Hamiltonian in your browser, drawing the first six eigenstates at their energies. Tridiagonal QL solver, pure JS.

2D wave-packet

sandbox/2d

A Gaussian wave packet evolves under your chosen potential: tunneling through a barrier, double-slit interference, harmonic-trap orbits, ring confinement. Split-step Fourier on a 128² grid with a pure-JS radix-2 FFT.

How it works

  1. Sim (apps/quantum/sim/) — Python + PyTorch + CUDA on a local GPU. Evaluates ψnlm on a 3-D grid for each (Z, n, l, m), encodes the cube as gzipped float16, writes a manifest.
  2. Data — uploaded to a Cloudflare R2 bucket at data.quantum.too.foo. Headers set so the browser transparently decompresses; binaries are cached immutably, the manifest revalidates every 5 minutes.
  3. Viewer (this app) — Astro static page + three.js raymarched volume. Loads the requested state, renders density or isosurface, lets you spin / scrub. Signed ψ → two colors via OKLCH hue rotation of the site accent.

Source at apps/quantum on GitHub; the MONOREPO_NOTES.md and sim/README.md describe the contract between sim, R2, and viewer in detail.