Molecular Implementation of the Machine-Learned SkalaExchange–Correlation Functional in CP2K through GauXC
- Franz Poschel ,
- Johann Pototschnig ,
- Frederick Stein ,
- Andreas Knupfer ,
- Thijs Vogels ,
- Stefano Battaglia ,
- Sebastian Ehlert ,
- Jurg Hutter ,
- Thomas D. Kuhne
Machine-learned exchange–correlation (XC) functionals offer a route to improve Kohn–Sham density
functional theory without incurring the cost of explicitly correlated electronic-structure methods. Their use
in production simulation codes, however, requires a well-defined mapping between the learned model and the
host-code density representation. We formulate and implement a Skala-1.1 interface in CP2K through the
external GauXC library. CP2K supplies the geometry, Gaussian basis, spin-resolved atomic-orbital density
matrix, and communicator, while GauXC evaluates the XC energy, atomic-orbital potential matrix, and avail
able nuclear derivatives. The interface accepts both all-electron and valence-only density matrices. The latter
may arise from separable dual-space pseudopotentials or molecular effective-core potentials. Implementation
errors are isolated from functional differences by comparing the Perdew–Burke–Ernzerhof (PBE) functional
evaluated through GauXC with native CP2K PBE. The resulting interface gives consistent energies, forces
validated against finite-difference total-energy checks, and force-based molecular-virial diagnostics for repre
sentative molecular cases. The dietGMTKN55 benchmark suite is evaluated with an all-electron Gaussian
augmented plane-wave treatment for elements up to bromine and def2 effective-core potentials for the heavier
elements. The resulting aggregate mean absolute deviation of 1.255 kcalmol−1 is within 0.020 kcalmol−1 of
the corresponding Skala reference value of 1.235 kcalmol−1. This work establishes a validated molecular
implementation of Skala in CP2K through GauXC.