xnn.gnn.models.qet_foundation#

The QET foundation potentials of MatGL, converted weight for weight.

MatGL (BSD-3-Clause) publishes QET potentials trained on MatPES as a directory of model.json (the architecture) and state.pt (the weights). They convert to QET with the trunk mapped as for TensorNet (xnn.gnn.models.tensornet_foundation) and the charge head layer by layer: the electronegativity and hardness networks, the layer norm of the energy network’s input and the per-element tables, re-indexed by atomic number. The energy is data_std times the network’s sum plus the per-element references, which map onto energy_scale and atom_ref.

QET.from_foundation("qet-matpes-pbe-2025.2") downloads a pinned revision into the model cache and converts it; a local directory loads through the model hub’s "matgl" format (xnn.common.models.from_pretrained(path)).

Module Attributes

FOUNDATION_MODELS

name -> (repository, pinned revision).

Functions

convert_directory(path[, dtype])

Convert a MatGL QET directory into xnn's QET.

from_foundation([name, dtype, cache_dir])

Download (once) and convert a registered MatGL QET potential.