Skip to content

Installation

Atomli requires CPython 3.10 or later. Install the package and all calculator engines:

Terminal window
python -m pip install "atomli[all]"
from atomli.build import molecule
from 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.

Install commandIncluded 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 atomliCore structures, optimizers, MD, DFTD3, LennardJones, SumCalculator

See Choosing a calculator and Methods and devices for method algorithms and device support.

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"

Install ASE to exchange ase.Atoms objects or combine external ASE calculators:

Terminal window
python -m pip install ase

See ASE compatibility.

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.