This page documents post-HF calculators (CCSD, HF), Gaussian atomic-orbital operators (MolecularBasis), and the shared electronic state, field, and derivative interfaces. All public energies use eV, coordinates use Å, forces use eV/Å, stress uses eV/ų, Hessians use eV/Ų, and dipoles use e·Å.
from atomli.build import molecule
from atomli.calculators import CCSD
calc = CCSD ( basis = " cc-pvdz " , triples = True , frozen = 1 , device = " gpu " )
energy = calc. kernel ( atoms ) # eV (HF on CPU; CC/response on GPU)
forces = calc. get_forces () # eV/Å (analytical Lambda gradient)
Parameter Type Default Description basisstr"cc-pvdz"Molecular Gaussian basis or periodic gth-* basis triplesboolFalseTrue evaluates CCSD(T) perturbative tripleskptstuple[int, int, int](1, 1, 1)k-point mesh for periodic k-CCSD frozenint | list | dict | NoneNoneCore-orbital count, 0-based MO indices, or alpha/beta index lists (molecular only) chargefloat | NoneNoneInteger total charge override unpairedint | NoneNoneUnpaired electron count (N α − N β N_\alpha - N_\beta N α − N β ) devicestr | Adapter | NoneAuto / atomli.gpu "cpu", "gpu" (post-HF contractions and coupled response on GPU), or AdapteradapterAdapter | int | str | NoneNonePhysical GPU selector settingsdict | NoneNonemesh, density_fitting, auxiliary_basis, max_cycles, energy_tolerance_ev, amplitude_tolerance, hf_tolerance_ev, precision
Periodic CC derivatives: Periodic forces, stress, and Hessians require settings={"density_fitting": False} to use exact FFT derivatives. Molecular CC analytical forces and Hessians run on CPU or GPU; partial (1D/2D) PBC raises.
from atomli.calculators import HF
calc = HF ( basis = " def2-SVP " , method = " auto " , density_fitting = False , device = " cpu " )
Parameter Type Default Description basisstr"def2-SVP"Molecular Gaussian basis methodstr"auto""auto" (RHF for singlets, UHF otherwise), "rhf", "uhf", or "rohf"density_fittingboolFalseEnable RI-J/RI-K density fitting (True) or exact 4-center ERIs (False) auxiliary_basisstr | NoneNoneExplicit fitting basis when density_fitting=True charge, unpaired, scf— NoneShared molecular electronic-state and SCF controls devicestr"cpu"Molecular CPU only; device="gpu" raises
RHF and UHF provide analytical forces, get_hessian(), and get_hessian_vector(). ROHF provides energies and electronic state analysis only. HF and CCSD kernel() do not accept dm0= (use QC.kernel(dm0=...)).
MolecularBasis binds an immutable geometry and basis with no SCF required. Construct a new instance if coordinates change.
from atomli.calculators.qc import MolecularBasis, available_basis_sets
basis = MolecularBasis ( atoms , basis = " def2-SVP " )
S = basis. get_overlap () # dimensionless, (ao, ao)
H_core = basis. get_hcore () # eV, includes ECPscalar, (ao, ao)
J, K = basis. get_jk ( dm ) # eV, real symmetric (ao, ao)
ao_vals = basis. eval_ao ( [[ 0.1 , 0.2 , 0.3 ]], deriv = 2 )
Method Signature Return shape & unit Notes get_overlap()()(ao, ao) dimensionlessAlias of intor("int1e_ovlp") get_hcore()()(ao, ao) eVKinetic + nuclear + scalar ECP (int1e_hcore) intor(name)name: str(ao, ao) or (ao, ao, ao, ao) eV"int1e_ovlp", "int1e_kin", "int1e_nuc" (no ECP), "int1e_hcore", "ECPscalar", "int2e"get_jk(dm)dm: (ao, ao) real(J, K) each (ao, ao) eVPositive J J J and K K K ; uses auxiliary_basis DF if configured on init ao2mo(coefficients)coefficients: (ao, mo)(mo, mo, mo, mo) eVChemists’ notation; requires exact ERIs (auxiliary_basis=None) eval_ao(points, *, deriv=0)points: (N, 3) Å(N, ao) or (c, N, ao) Å− 3 / 2 − deriv ^{-3/2-\text{deriv}} − 3/2 − deriv deriv=0, 1, 2; component order value, x, y, z, xx, xy, xz, yy, yz, zzmetadata()()dictAO/shell ownership and basis identity available_basis_sets()module function list[dict]Packaged Gaussian basis names and supported atomic numbers
Method / attribute Shape / return type Unit Scope & notes calc.get_capabilities(atoms)dict— Analytical force/stress/Hessian/response support without running SCF calc.estimate_memory(atoms, properties)dictbytes Analytical host RAM and GPU VRAM estimate prior to evaluation calc.mo_coeff(spin, kpoint, ao, band)— Copied MO coefficient tensor calc.mo_energy, calc.mo_occ(spin, kpoint, band)eV / electrons Copied eigenvalues and occupations calc.make_rdm1()(spin, kpoint, ao, ao)electrons Restricted densities are spin-summed; CCSD returns relaxed Λ \Lambda Λ 1-RDM calc.get_overlap()(kpoint, ao, ao)dimensionless Retained overlap matrices calc.get_hessian()(natoms, 3, natoms, 3)eV/Ų Analytical second derivatives (no silent finite-difference fallback) calc.get_hessian_vector(direction)(natoms, 3)eV/Ų Analytical Hessian-vector product on a dimensionless (natoms, 3) direction calc.get_dfpt_force_constants(supercell)(n_images, natoms, 3, natoms, 3)eV/Ų Monochromatic periodic DFPT force constants calc.get_dipole_moment()(3,)e ⋅ A ˚ e\cdot\text{Å} e ⋅ A ˚ Molecular dipole about laboratory origin calc.get_dos(...), calc.get_pdos(...)dict eV (rel. Fermi) Gaussian-broadened total DOS and Mulliken-projected DOS ("atom" or "shell") calc.analyze_fields(...), calc.write_cube(...), calc.write_field(...)grid / .cube / .h5 e / A ˚ 3 e/\text{Å}^3 e / A ˚ 3 , eVelectron_density, spin_density, orbital_amplitude, electrostatic_potential, gradient_norm, laplacian, rdg, sign_lambda2_rho, elfcalc.write_wavefunction(...), calc.read_wavefunction(...).h5, Molden, WFN— HDF5 supports 0D & 3D PBC; Molden/WFN support molecular orbitals calc.write_checkpoint(...), calc.read_checkpoint(...)native checkpoint — Saves/loads electronic seed with model identity validation
All vibrational and phonon drivers (Vibrations(...), Phonons(...).run()) use analytical derivatives by default via get_capabilities(atoms) and never fall back silently to numerical differentiation.