Skip to content

atomli.calculators.qc

Generated from the public Python surface of Atomli 0.1.18.

QC(*args: 'Any', download: 'bool' = True, **kwargs: 'Any')

Section titled “QC(*args: 'Any', download: 'bool' = True, **kwargs: 'Any')”

Construct the native QC calculator.

Arguments follow the native DFT class, whose docstring documents the whole surface. Device selection additionally uses Atomli’s shared resolver, so device= or adapter= accepts atomli.gpu.Adapter objects and QC inherits atomli.set_default_device(...) exactly like XTB/MLIP. This wrapper also adds automatic SKALA 1.1 checkpoint delivery. With xc="SKALA-1.1" and no skala_checkpoint, the pinned checkpoint is fetched once from the model release and cached locally.

download: Whether a missing checkpoint may be fetched. Pass False to require a cache hit. Ignored unless the checkpoint is being resolved, so it never affects a non-SKALA functional or an explicitly supplied skala_checkpoint.

SCF numerical controls, molecular and periodic alike.

Keyword arguments name the engine’s own settings fields; an unknown key raises a message naming every valid field. Scf.fields() lists the fields with their documentation. Scf.default() and Scf.robust() are the named presets, also accepted wherever settings are taken as strings.

The default preset.

(name, description) for every field, in declaration order.

The robust preset.

The settings as a plain dict in public units (SCF energies in eV).

Explicit periodic k-point mesh, with its centering and symmetry semantics.

The mesh dimensions alone do not identify a sampling: gamma-centered and shifted Monkhorst-Pack coordinates are different point sets for any even dimension. KMesh carries the whole identity, so kpts= and settings["kpoints"] state what was sampled instead of implying it.

QC(xc="PBE", kpts=KMesh((4, 4, 4), centering="monkhorst_pack"), settings=...)

size is positional; every other field is a keyword naming a serde field of the mesh struct, and an unknown one raises naming all of them. KMesh.fields() lists them with their documentation.

(name, description) for every field, in declaration order.

The mesh as a plain dict, exactly as the engine sees it.

Hubbard +U corrections, named the way the literature quotes them.

DftU({"Fe": {"3d": 4.0}}) corrects the 3d shell of every iron site by 4 eV. Each entry becomes a PySCF AO-label pattern ("Fe 3d") resolved against the MINAO reference cell, so the correction follows the element and shell rather than an AO index nobody can predict from a settings dict.

QC(xc="PBE", settings={..., "dft_u": DftU({"Fe": {"3d": 4.0}})})

The plain mapping is accepted anywhere this class is, so the typed spelling is for autocompletion and validation, never a requirement.

(name, description) for the mapping’s shape.

The selections as a plain dict, exactly as the engine sees them.

MolecularBasis(atoms, basis='def2-SVP', *, auxiliary_basis=None)

Section titled “MolecularBasis(atoms, basis='def2-SVP', *, auxiliary_basis=None)”

Immutable molecular geometry and Gaussian basis, with analytical AO operators. Coordinates use angstrom, energy integrals use eV, overlap is dimensionless. AO values use angstrom**(-3/2); derivatives use one extra inverse angstrom per spatial derivative. No SCF or finite-difference calculation is performed.

Exact AO-to-MO Coulomb integrals for one real coefficient matrix, in eV. Returns full chemists’ (mo, mo, mo, mo) ordering.

Analytical AO values/derivatives at points in angstrom. deriv=0 returns (point, ao); deriv=1/2 returns (component, point, ao). Components are value,x,y,z,xx,xy,xz,yy,yz,zz, truncated to deriv.

Coulomb and positive exchange matrices for a real AO density, in eV. The real symmetric density has shape (ao, ao), with no implicit spin factor.

AO one-/two-electron integrals. Energy-valued outputs use eV. Supported names: int1e_ovlp, int1e_kin, int1e_nuc, int1e_hcore, ECPscalar, int2e. ERIs retain full chemists’ (ao, ao, ao, ao) axes.

AO/shell ownership and basis identity; no SCF required.