QuantumChemistry-Lab: H2 + HeH+ full CI, HF SCF loop, bond curves, correlation energy. Labelled toy!
112
Quantum Chemistry Method Lab β by Darion Kellar
Educational quantum chemistry lab in ONE pure-Python file: small molecular Hamiltonians for H2 and HeH+ in a minimal basis, solved exactly by determinant full-CI diagonalization with a from-scratch Jacobi eigensolver (no numpy), a HartreeβFock SCF loop that reaches the same HF energy by an independent AO-basis route, a bond-length curve with a golden-section minimum (R = 1.400 bohr = 0.741 Ang, E = -1.14014 Eh), the correlation energy defined and printed as E_exact β E_HF, a basis-set honesty table with every row flagged LABELLED or COMPUTED, and a from-scratch kNN bond classifier whose labels come from the model itself.
Pure Python standard library. Zero dependencies. Zero network. Honest scope: the integrals are LABELLED textbook-class parameters (minimal-basis / STO-3G ranges), NOT computed ab initio β every energy is exact for the toy Hamiltonian and approximate for the real molecule. HF is asserted exact only where that is true (one-electron H2+, to 1e-10); for H2 the lab prints the gap instead of hiding it, including the famous restricted-HF dissociation failure (exact β0.986 Eh vs RHF β0.686 Eh at 8 bohr). Every drug / materials discovery, weapons, explosives, synthesis, and production claim is a permanent HOLD gate (14 total).
docker pull credkellar/quantumchemistry-lab:latest
docker run --rm credkellar/quantumchemistry-lab:latest
The default command runs the full demo plus the built-in self-checks (CHECKS 57/57).
Run a specific command instead:
docker run --rm credkellar/quantumchemistry-lab:latest python3 main.py checks # CHECKS 57/57
docker run --rm credkellar/quantumchemistry-lab:latest python3 main.py h2 # H2 anchor: HF vs exact vs correlation
docker run --rm credkellar/quantumchemistry-lab:latest python3 main.py curve # bond curve + minimum + dissociation
docker run --rm credkellar/quantumchemistry-lab:latest python3 main.py scf # SCF iteration trace (JSON)
docker run --rm credkellar/quantumchemistry-lab:latest python3 main.py basis # basis-set honesty table
docker run --rm credkellar/quantumchemistry-lab:latest python3 main.py classify # kNN bond classifier report
docker run --rm credkellar/quantumchemistry-lab:latest python3 main.py holds # 14 HOLD gates
python:3.12-slimScience Β· Developer tools Β· Machine learning & AI
credkellar/quantumchemistry-lab:latestdocker pull credkellar/quantumchemistry-lab:latest