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(**kwargs)
Section titled “Scf(**kwargs)”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.
default()
Section titled “default()”The default preset.
fields()
Section titled “fields()”(name, description) for every field, in declaration order.
robust()
Section titled “robust()”The robust preset.
to_dict(self, /)
Section titled “to_dict(self, /)”The settings as a plain dict in public units (SCF energies in eV).
KMesh(size, **kwargs)
Section titled “KMesh(size, **kwargs)”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.
fields()
Section titled “fields()”(name, description) for every field, in declaration order.
to_dict(self, /)
Section titled “to_dict(self, /)”The mesh as a plain dict, exactly as the engine sees it.
DftU(sites)
Section titled “DftU(sites)”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.
fields()
Section titled “fields()”(name, description) for the mapping’s shape.
to_dict(self, /)
Section titled “to_dict(self, /)”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.
ao2mo(self, /, coefficients)
Section titled “ao2mo(self, /, coefficients)”Exact AO-to-MO Coulomb integrals for one real coefficient matrix, in eV. Returns full chemists’ (mo, mo, mo, mo) ordering.
eval_ao(self, /, points, *, deriv=0)
Section titled “eval_ao(self, /, points, *, deriv=0)”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.
get_hcore(self, /)
Section titled “get_hcore(self, /)”get_jk(self, /, dm)
Section titled “get_jk(self, /, dm)”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.
get_overlap(self, /)
Section titled “get_overlap(self, /)”intor(self, /, name)
Section titled “intor(self, /, name)”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.
metadata(self, /)
Section titled “metadata(self, /)”AO/shell ownership and basis identity; no SCF required.