HUB
Sign inSign up
quantumdots-lab logo

credkellar/quantumdots-lab

By credkellar

•Updated 17 days ago

QuantumDots-Lab: quantum dot lab - box + harmonic shells, Coulomb blockade, Brus emission. Sim only!

Image
Machine learning & AI
Developer tools
Data science
1

130

credkellar/quantumdots-lab repository overview

⁠QuantumDots-Lab ⚛️🔵

Quantum Dot Confinement + Charging Lab — by Darion Kellar

Educational quantum-dot lab in ONE pure-Python file: a particle in a 1D/3D box with the exact E ∝ n²/L² spectrum, 2D/3D harmonic (Fock–Darwin, B = 0) shells with the magic numbers 2, 6, 12, 20 asserted, the constant-interaction model of Coulomb blockade (E_C = e²/C from SI constants, addition-energy sawtooth 2.00 meV inside a shell and 5.00 meV at shell closures, a stability-window table in gate voltage), the Brus equation for confinement-shifted CdSe emission (R = 2 nm → 487.8 nm, R = 6 nm → 689.6 nm, bulk 712.6 nm), a two-electron singlet/triplet toy built from Slater–Condon rules in miniature with a from-scratch Jacobi CI diagonalization, and a from-scratch kNN regime classifier whose labels come from the lab's own regime model.

Pure Python standard library. Zero dependencies. Zero network. Honest scope: every parameter is a LABELLED textbook-class teaching value (GaAs m* = 0.067, CdSe gap 1.74 eV, C = 80 aF, ℏω = 3 meV) — NOT measured device data, and no output is a device specification. The Brus model is a strong-confinement estimate that ignores finite barriers and surface states, and says so. Every fabrication / device / product / qubit claim is a permanent HOLD gate (14 total).

⁠🐳 Quick start

docker pull credkellar/quantumdots-lab:latest
docker run --rm credkellar/quantumdots-lab:latest

The default command runs the full demo plus the built-in self-checks (CHECKS 64/64).

Run a specific command instead:

docker run --rm credkellar/quantumdots-lab:latest python3 main.py checks   # CHECKS 64/64
docker run --rm credkellar/quantumdots-lab:latest python3 main.py box      # box levels + 1/L^2 law
docker run --rm credkellar/quantumdots-lab:latest python3 main.py shells   # harmonic shells + magic numbers
docker run --rm credkellar/quantumdots-lab:latest python3 main.py blockade # E_C, addition sawtooth, stability windows
docker run --rm credkellar/quantumdots-lab:latest python3 main.py emission # Brus gap + wavelength vs radius
docker run --rm credkellar/quantumdots-lab:latest python3 main.py exchange # singlet/triplet + CI toy
docker run --rm credkellar/quantumdots-lab:latest python3 main.py classify # kNN regime classifier report
docker run --rm credkellar/quantumdots-lab:latest python3 main.py holds    # 14 HOLD gates

⁠🔬 What's inside

  • Particle in a box — E_n = n²π²ℏ²/(2m*L²) with a labelled GaAs mass: at L = 10 nm the ground level is 56.12 meV and the 1→2 spacing 168.37 meV; the spacing ratio between L and 2L is asserted to be exactly 4 — the 1/L² law that makes confinement a nanoscale effect.
  • Harmonic shells — 2D Fock–Darwin shells at ℏω = 3 meV (LABELLED): capacities 2, 4, 6, 8 give the magic numbers 2, 6, 12, 20; the 3D oscillator gives 2, 8, 20, 40. Degeneracies are counted, not quoted.
  • Constant interaction — U(N) = Σ levels + E_C·N(N−1)/2 with E_C = e²/C = 2.0027 meV for C = 80 aF (LABELLED), computed from SI constants. Addition energy is E_C inside a shell and E_C + ℏω at the N = 2 and N = 6 closures.
  • Blockade condition, priced — E_C/kT = 232.41 at 100 mK (deeply blockaded), 5.53 at 4.2 K, 0.08 at 300 K (wide open): the same dot, three regimes, one ratio.
  • Stability windows — with a labelled lever arm α = 0.10, charge state N is frozen across a 20.0 mV gate window inside a shell and 50.0 mV at a closure; the windows tile the gate axis with no gaps, asserted in the checks.
  • Brus emission — CdSe parameters LABELLED: confinement +π²ℏ²(1/m_e* + 1/m_h*)/(2R²), Coulomb −1.8e²/(ε_r R), polarisation −0.248 E_Ry*. Gap falls monotonically 2.5417 → 1.7979 eV as R goes 2 → 6 nm; the exciton Bohr radius (5.35 nm) splits the strong/weak rows.
  • Two-electron toy — Slater–Condon by hand: closed-shell singlet 8.000 meV, open-shell triplet 10.200 vs singlet 10.900 (splitting exactly 2K = 0.70 meV), and a 3×3 CI over singlet configurations that lowers the ground state to 7.9622 meV — mixing can only lower it, and the checks assert it does by 0.01–0.10 meV.
  • TinyML kNN classifier — open / coulomb-blockaded / shell-filling from (E_C/kT, spacing/E_C, N); labels generated by the lab's own regime model over a 432-point grid.
  • Advisory seats — Gemini Argon 4 DECIDER (names-only, tighten-only, sha256 trace), Muse advisor (can never override HOLD), Google Flow plan-only (rendered = False, live = 0).

⁠✅ Verified

  • pytest: 34 passed
  • Built-in checks: CHECKS 64/64
  • Deterministic: double-run byte-identical
  • Base image: python:3.12-slim

⁠🏷️ Categories

Science · Developer tools · Machine learning & AI

  • License: MIT © 2026 Darion Kellar
  • Image: credkellar/quantumdots-lab:latest
Tag summary
Recent tags
Content type
Image
Digest
sha256:24fb1bf8e…
Size
41.5 MB
Last updated
17 days ago
docker pull credkellar/quantumdots-lab:latest