Thermodynamic routing of multi-reference quantum chemistry: C/T skeleton pre-screening and MGE-based active-space selection for CASSCF
Project description
Alchemi
Thermodynamic routing of multi-reference quantum chemistry.
Alchemi builds a C/T skeleton from MP2 natural orbital occupation numbers (NOONs), classifies each electron pair into an H^k stratum, and routes the computation to the right method — automatically, without fitting parameters.
| Stratum | NOON pattern | θ_G | Method |
|---|---|---|---|
| H⁰ (C-box) | near 2/0 | < 5° | Freeze / DFT |
| H¹ (T-arrow) | near 1, c₂ < δ* | 5–20° | CCSD |
| H² (T-arrow) | near 1, c₂ ≥ δ* | > 20° | CASSCF |
The routing threshold δ* = (π/4)√α is derived from the MGE cost-accuracy tradeoff — not tuned on a validation set.
Quickstart
from pyscf import gto, scf, mp
from alchemi import Skeleton, Router
# Run a cheap MP2 calculation
mol = gto.M(atom="N 0 0 0; N 0 0 1.1", basis="cc-pVDZ", verbose=0)
mf = scf.RHF(mol).run()
mp2 = mp.MP2(mf).run()
# Build the C/T skeleton
skel = Skeleton.from_pyscf(mol, mp2)
skel.report()
# Get the recommended CASSCF active space
active_orbs, n_elec = skel.active_space()
print(f"Active space: CAS({n_elec},{len(active_orbs)})")
# Soft MGE routing with β_eff
router = Router(skel, homo_lumo_gap=0.43, spin_multiplicity=1)
router.report()
Installation
pip install alchemi # core (numpy/scipy only)
pip install alchemi[pyscf] # with PySCF integration
pip install alchemi[dev] # with test/lint tools
Theory
Alchemi implements the theoretical framework of:
-
Paper 588 — The Topological Active Space: Weak Lifting and C/T Skeleton Pre-Screening for CASSCF. doi:10.5281/zenodo.21300667
-
Paper 491 — Galois Chemistry as the Tropical Degeneration of Density Functional Theory. doi:10.5281/zenodo.21224113
-
Paper 596 — Weyl Chamber Homology as a DFT Failure Detector. (in preparation)
The routing is based on the Maslov-Gibbs Einsum (MGE) at finite inverse temperature β_eff = Δ_HL / (corr_scale · (2S+1)). Hard thresholds (autoCAS, AVAS) are recovered at β_eff → ∞. Alchemi gives the correct soft blend near the H¹/H² boundary.
Related tools
- spectrafold — Racah spectroscopy from the quantum numbers that Alchemi computes
- thermion — the shared ISA engine underlying both packages
Citation
@software{alchemi2026,
author = {Buckley, Ian R. C.},
title = {Alchemi: Thermodynamic Routing of Multi-Reference Quantum Chemistry},
year = {2026},
url = {https://github.com/roguetrainer/alchemi},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alchemi-0.1.0.tar.gz.
File metadata
- Download URL: alchemi-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd4500902e17f541e574a62f20643c92ed9be1f99f7f7e6cd15dd108af6b48f0
|
|
| MD5 |
176b1fdca89e2e384426289217bb085f
|
|
| BLAKE2b-256 |
b7e4d63541fc36f23423426f3b7e17d9c7163227fb6bac6067c312f38f33f0d5
|
File details
Details for the file alchemi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: alchemi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
580d40ad4196f765ffc953ad6013ab2bb70712937386cc52b50ae6c6b9f464b6
|
|
| MD5 |
56db8cc3cd524a82223dff72a063a474
|
|
| BLAKE2b-256 |
c54a02a038039e4de75f161589fb3f40950f97c98f514d86e17d2730f575ebfd
|