Installation
Atomli requires CPython 3.10 or later. Install the package and all calculator engines:
python -m pip install "atomli[all]"Verify a calculation
Section titled “Verify a calculation”from atomli.build import moleculefrom atomli.calculators import XTB
water = molecule("H2O")water.calc = XTB(method="gxtb", device="cpu")print("Energy (eV):", water.get_potential_energy())Continue to the quick start for optimization, periodic slabs, vibrations, and constrained adsorption.
Package extras
Section titled “Package extras”| Install command | Included calculators and features |
|---|---|
python -m pip install "atomli[all]" | All calculator engines below |
python -m pip install "atomli[dft]" | QC (DFT), CCSD (CCSD/CCSD(T)), HF (RHF/UHF/ROHF), MolecularBasis |
python -m pip install "atomli[tb]" | XTB (g-xTB, GFN2-xTB) and DFTD4 |
python -m pip install "atomli[mlip]" | MLIP (Nequix, NequIP, Equiformer, HyFF) |
python -m pip install atomli | Core structures, optimizers, MD, DFTD3, LennardJones, SumCalculator |
See Choosing a calculator and Methods and devices for method algorithms and device support.
Optional setup
Section titled “Optional setup”GPU acceleration
Section titled “GPU acceleration”Atomli ships precompiled native GPU shaders (Metal on macOS, Vulkan on Linux, DX12 on Windows) inside the Python wheels. Inspect hardware GPUs and set a process default via atomli.gpu:
import atomli
print(atomli.gpu.adapters())atomli.gpu.set_default_device("gpu") # or "cpu"ASE interoperability
Section titled “ASE interoperability”Install ASE to exchange ase.Atoms objects or combine external ASE calculators:
python -m pip install aseSee ASE compatibility.
MLIP and SKALA weights
Section titled “MLIP and SKALA weights”Neural potential and SKALA-1.1 weights are downloaded on first use, verified against pinned SHA-256 digests, and cached locally. See the model catalog for offline prefetching and ATOMLI_MODELS_DIR.