NequixBackend

class jaxrens.backends.nequix.NequixBackend(model, config, supercell_trafo=(1, 1, 1))[source]

Bases: object

Nequix energy backend for jaxrens.

Satisfies the EnergyBackend protocol via duck typing: scalar energy from (positions, species, cell, max_neighbors) plus a per-atom max-neighbor-count report for the outer-loop bucket dispatch.

Parameters:
property atomic_numbers: tuple[int, ...]

Atomic numbers (Z) of the species the model was trained on, in the order matching the model’s species-index dimension. Used by the resolver to map user-supplied Z numbers in start_species to the model’s contiguous 0-based type indices.