alphaFeedback

WorksPhysics and Astronomy

Where the Error Lives: Spectral Representations of Learned Kohn-Sham Hamiltonians

AI contributions
  • generative AI tools
View details

Abstract

Kohn-Sham density functional theory (DFT) is the standard method for computing the electronic structure of molecules and materials, but its self-consistent-field (SCF) iterations make it expensive for large systems and high-throughput screening. Machine-learned Hamiltonian models offer a shortcut: an equivariant network predicts the Kohn-Sham Hamiltonian matrix in one forward pass, and diagonalizing the prediction yields orbital energies, the HOMO-LUMO gap, molecular orbitals and the electron density. These models are trained to match the reference matrix entry by entry, yet a small entry-wise error does not guarantee accurate eigenvalues or eigenvectors. Two physics-informed alternatives go partway: a recently proposed wavefunction-alignment loss adds a spectral penalty without diagonalizing the prediction, and matching the electron density of the diagonalized prediction supervises it directly. Neither is complete: by representing the prediction error in the eigenbasis of the reference Hamiltonian, we show that each sees only part of the error, and that shifting the predicted orbital energies leaves the electron density exactly unchanged. The same analysis identifies a complete training signal: the cumulative local density of states (cumulative LDOS), the number of electrons at each point in space with energy below a given threshold. The cumulative LDOS is a single physical observable that contains the electron density as a special case, responds to every component of the error, determines the Hamiltonian uniquely, and yields gradients that do not vanish for large orbitalenergy errors. Fine-tuning three Hamiltonian networks on QH9 in this way, which we call FermiScope, reduces the HOMO-LUMO gap error without increasing the element-wise error. The gains carry over to out-of-distribution and molecular-dynamics splits, where the wavefunction-alignment loss helps less.

Introduction

Kohn–Sham density functional theory (DFT) [6, 11], recognized by the 1998 Nobel Prize in Chemistry [10], is the most widely used method for computing the electronic structure of molecules and materials. It summarizes the electrons of a molecule in a single matrix, the Kohn–Sham Hamiltonian, whose generalized eigendecomposition gives the orbital energies, the energies of the highest occupied and lowest unoccupied molecular orbitals (HOMO and LUMO) and their gap, the molecular orbitals, and the electron density. These quantities determine chemical reactivity, optical and electronic behaviour and, through the total energy, molecular stability. Obtaining the Hamiltonian, however, requires self-consistent-field (SCF) iterations (Szabo & Ostlund, [22]). Each iteration builds the Hamiltonian from the current occupied orbitals (O(n4)O(n^4) in the number of basis functions nn for hybrid functionals) and diagonalizes it to obtain new ones (O(n3)O(n^3)). A typical calculation repeats this TT times, until the Hamiltonian and the orbitals it is built from agree (T≈9T \approx9 for the QH9 molecules studied here; Appendix § 11). This loop limits DFT on large systems and in high-throughput screening.

Machine-learned Hamiltonian models remove this bottleneck. An equivariant neural network predicts the Hamiltonian directly from the atomic numbers and positions (Schütt et al. [18]; Unke et al. [24]; Li et al. (2022); Yu et al. [27]; Li et al. [14]; Luo et al. [15]), replacing all TT iterations by one forward pass. The predicted Hamiltonian is used in two ways: it can be diagonalized once to obtain orbital energies, orbitals and the density, or it can initialize a conventional DFT calculation to save SCF iterations (Yu et al. [26]; Li et al. [14]). We focus on the first setting, where no SCF iteration is left to correct the prediction and the quality of the loss function directly determines the quality of the result. On the QH9 benchmark (Yu et al. [26]), the entry-wise error of the predicted Hamiltonian has more than halved since the benchmark was introduced (Table 1), but this has not always translated into better eigenvalues.

Table 1: Results on the QH9-stable-id test set (13,084 molecules) after 30k fine-tuning steps. Energies in μ\muHa, ψ\psi in %. For each backbone, the gray rows are the two baselines, the pretrained model and fine-tuning with WALoss (Li et al., [14]). The violet row, density only, is the ablation at weight w=100w = 100 that keeps only the E=μE = \mu slice of our loss, which is density matching (Proposition B.4). The blue row is our cumulative LDOS loss, which adds the energy resolution. All fine-tuning runs share every other setting, and the peak-shaped variant is in Appendix § 17.§ 4. Bold marks the best downstream metric per backbone.

backbonerolemethodHHdiagnon-diagHOMO ↓\downarrowLUMO ↓\downarrowgap ↓\downarrowεO↓\varepsilon_{O} \downarrowψ↑\psi\uparrow
QHNetbaselinepretrained77.56129.2573.68104194459632120696.28
QHNetbaseline+ WALoss78.04119.0374.958475458583557096.79
QHNetablation+ density only (w=100w=100)76.82118.7073.657191575208135697.87
QHNetours+ cumulative LDOS (ours)74.81109.5472.196781482202734197.91
SPHNetbaselinepretrained36.6044.7935.383451309155438099.06
SPHNetbaseline+ WALoss37.2846.0335.98341957125928899.17
SPHNetablation+ density only (w=100w=100)37.6347.1436.2336368497014399.08
SPHNetours+ cumulative LDOS (ours)36.6444.8335.4229257278913799.25
WANetbaselinepretrained40.0751.2838.423351454168428898.98
WANetbaseline+ WALoss40.9953.2639.193281025130615799.13
WANetablation+ density only (w=100w=100)40.2151.6338.53324823110114099.22
WANetours+ cumulative LDOS (ours)40.1951.5938.5228757379113799.22

Table 1.

The entry-wise error does not translate directly into accurate eigenvalues and eigenvectors. For example, continuing to train QHNNet with its own element-wise loss lowers its matrix error but raises its HOMO–LUMO gap error, consistently on all four QH9 splits and by 53% on the standard split (Appendix § 17.§ 2). Li et al. [14] observed the same decoupling from the other side: on QH9, their alignment loss increased the matrix error while improving the orbital energies, and on larger molecules, matrices with tiny relative errors produced unusable total energies. The reason is that these models are trained with an element-wise loss, the mean absolute or squared error over matrix entries, which treats every entry alike, whereas eigenvalues and eigenvectors respond very unevenly to an error. Classical matrix perturbation theory makes this precise (Kato, [9]; Davis & Kahan, 1970; Stewart & Sun, 1990): to first order, an eigenvalue moves only with the corresponding diagonal entry of the error expressed in the eigenbasis, and the eigenvectors rotate by the off-diagonal entries divided by eigenvalue differences. On QH9, an error that couples the HOMO and the LUMO, about 0.25 Ha apart, therefore changes the LUMO about 75 times more than an equally large error that couples it to a core orbital some 19 Ha lower.

To make this precise, we represent the prediction error in the eigenbasis of the reference Hamiltonian, where it separates into three interpretable blocks, which we call sectors (Figure 1d): diagonal entries, which shift orbital energies; entries corresponding to an occupied and an unoccupied orbital, which mix the two and change the electron density; and entries corresponding to two occupied or two unoccupied orbitals, which only rotate orbitals within those spaces. This view explains why existing physics-informed losses help only partly. The wavefunction-alignment loss (WALoss) of Li et al. [14] evaluates the predicted Hamiltonian in the reference orbital basis. In its full form it weights every entry of the error uniformly, like the element-wise loss, and therefore does not concentrate on the errors that matter; in the diagonal-only form proposed by Li et al. [14], it penalizes only the orbital energies, and only to first order. A natural alternative is to diagonalize the prediction and match its electron density, which is exact and automatically focuses on the frontier orbitals, those closest to the HOMO–LUMO gap. We prove, however, that energy shifts and rotations within the occupied or the unoccupied space leave the density exactly unchanged, so a loss that depends only on the density does not respond to them at all; we say that it is blind to them. These errors span about 69% of the degrees of freedom of the error on QH9 and include every orbital-energy error.

Overview of a Hamiltonian network, downstream properties, error sectors, training signals, and cumulative LDOS

Figure 1. Overview. (a–c) A Hamiltonian network maps a molecule, QH9 #23470 (C8_8H5_5N), to its Kohn–Sham Hamiltonian H^\hat{H}, whose eigendecomposition gives the orbital energies and HOMO–LUMO gap, the electron density and the molecular orbitals. All visualizations in panels (a–c) use reference DFT data for this molecule. (d) In the reference orbital basis, the prediction error splits into three sectors: orbital-energy shifts (A, yellow-orange diagonal), occupied–virtual mixing (B, blue off-diagonal block) and rotations within the occupied or the virtual space (C, purple off-diagonal blocks). The tags in panel (c) mark the sectors each downstream property depends on. (e) The sectors each training signal sees. WALoss is from Li et al. [14]; density matching, Equation (4), is the E=μE = \mu slice of our loss. (f) At a point r\mathbf{r}, the cumulative LDOS N(r,E)N(\mathbf{r}, E) is a staircase with one step per orbital. An energy error shifts a step (A), and a shape error changes step heights (B, C). The shape error shown changes the LUMO step but not the slice at μ\mu, which is the density, so it is of type C and invisible to density matching; Figure 2 shows all three types.

Three schematic cumulative LDOS error plots: A · energy error (LUMO), B · HOMO–LUMO coupling, and C · coupling of two occupied orbitals; each shows occupied levels, virtual levels, energy $E$ in Ha, and the density slice at $\mu$.

Figure 2. How each kind of error shows up in the cumulative LDOS: the first-order change of N(r,E)N(\mathbf{r}, E) at one point r\mathbf{r} as a function of energy (schematic levels with the median QH9 gap, σ=0.02\sigma= 0.02 Ha; sign and scale arbitrary). An orbital-energy error (A, left) adds a bump at its level. An occupied–virtual coupling (B, middle) adds a plateau between the two levels, which crosses the Fermi level μ\mu. A coupling of two occupied orbitals (C, right) adds a plateau that ends below μ\mu. Density matching reads only the slice E=μE = \mu (dashed line), where only the B plateau is nonzero; the cumulative LDOS loss reads the whole energy window and sees all three (Theorem 3.5(ii)).

The same representation tells us what a complete training signal must do: see every sector, weight each by its effect on the properties of interest, and use the exact eigenpairs of the prediction. We find such a signal in a physical observable, the local density of states (LDOS), which resolves the electron density by energy and is what a scanning tunnelling microscope measures [23]. Its cumulative form, N(r,E)N(r, E), the number of electrons at point rr with energy below EE, represents the Hamiltonian in the language of the density without discarding the orbital energies (Figure 1f). We prove four properties. The density is its slice at the Fermi level, the energy midway between the HOMO and the LUMO. It responds to every sector. It determines the Hamiltonian uniquely. And unlike a peak-shaped LDOS, it keeps pulling on an orbital energy toward its target however far inside the energy window it starts. We turn NN into a training loss, the cumulative LDOS loss Lcum\mathcal{L}_{\mathrm{cum}}: the mean squared difference between NN computed from the predicted and from the reference Hamiltonian, over sampled points rr and energies EE. A network is fine-tuned on Lelem+w Lcum\mathcal{L}_{\mathrm{elem}} + w\,\mathcal{L}_{\mathrm{cum}}, where Lelem\mathcal{L}_{\mathrm{elem}} is its usual element-wise loss and ww a weight, with no change to its architecture. We call this method FermiScope, as it scans NN across a window of energies around the Fermi level.

Across three architectures and four QH9 splits, this loss improves every eigen-derived metric in all twelve settings and is the best method in each (Table 1 and Table 6). On the standard split, it lowers the HOMO–LUMO gap error by 49–79%, 2.0–2.6 times more than WALoss, while the element-wise error rises by at most 0.3% and QHNet even falls by 3.5%. Under distribution shift, it still lowers the gap error by 36–77%, whereas WALoss makes it worse in three of the nine shifted settings, all on QHNet.

backbonesplitmethodHHdiagnon-diagHOMO ↓\downarrowLUMO ↓\downarrowgap ↓\downarrowϵO↓\epsilon_O \downarrowψ↑\psi\uparrow
QHNetstable-oodpretrained73.53122.3270.785614632452274095.54
+ WALoss72.70115.0070.304755511567139395.04
+ cumulative LDOS (ours)71.10110.8168.874421420150629096.17
dynamic-geopretrained98.4161.493.69605561609084096.66
+ WALoss100.0162.295.39766950744159796.06
+ cumulative LDOS (ours)95.6148.591.67711517213240097.85
dynamic-molpretrained173.5420.1153.776626856862262969679.74
+ WALoss174.5419.4154.881017405767285928079.10
+ cumulative LDOS (ours)172.3415.9152.824941510514356484290.57
SPHNetstable-oodpretrained30.3838.6229.44171911100411098.62
+ WALoss30.9539.6029.9518760572010798.67
+ cumulative LDOS (ours)30.4738.8729.5115650459010598.70
dynamic-geopretrained37.7741.2737.2322575892810499.39
+ WALoss38.5542.7337.9024164285410499.49
+ cumulative LDOS (ours)37.7441.2137.202034315929899.53
dynamic-molpretrained102.32221.5983.3814611375813433286293.54
+ WALoss102.09221.6083.1213441063210466234694.11
+ cumulative LDOS (ours)102.28221.4383.36130685288362206894.56
WANetstable-oodpretrained37.0578.9932.283801259105516098.55
+ WALoss34.4249.2632.7217652457711398.57
+ cumulative LDOS (ours)34.0948.3932.4616248654911098.59
dynamic-geopretrained41.0446.6340.19269953112610699.32
+ WALoss41.9348.5440.9325267589810399.45
+ cumulative LDOS (ours)41.0646.6440.202174406099799.51
dynamic-molpretrained127.51290.69101.5232382623624126411289.17
+ WALoss127.15290.41101.1530702311121184357189.88
+ cumulative LDOS (ours)127.46290.44101.5120201375612936218692.47

Table 6. Results on the shifted QH9 splits (test sets; energies in μ\muHa, ψ\psi in %). Same protocol as Table 1. Bold marks the best downstream metric per block.

Our contributions are as follows.

• Problem. We show that the mismatch between how Hamiltonian networks are trained, entry by entry, and how they are used, through eigenpairs, is a question of where the error lies. In the reference orbital basis, the error separates into sectors that each property and each training signal read selectively, and the electron density, the most natural physical target, is blind to every orbital-energy error (§ 3.1).

• Solution. We identify the cumulative LDOS as a representation of the Hamiltonian that contains the density, sees every sector and determines the Hamiltonian uniquely, and we turn it into a training loss that any Hamiltonian network can use unchanged (§ 3.2 and § 3.3).

• Results and implications. The loss improves every eigen-derived metric in all twelve backbone–split settings without raising the element-wise error by more than 0.3% (§ 4). How a predicted Hamiltonian is represented during training, and not only the architecture that produces it, decides whether it is useful.

Background

Notation. We follow standard quantum-chemistry notation [22]; Appendix § 11 explains the terms we use and illustrates the SCF procedure. Bold upright symbols denote matrices and vectors. A star marks quantities of the reference DFT calculation and a hat quantities computed from a network’s prediction; unadorned symbols (ε\varepsilon, C\mathbf{C}, ψ\psi, ρ\rho, NN) denote the same maps applied to a generic Hamiltonian. A hat thus means predicted, as in statistics.

Kohn–Sham Hamiltonians. Consider a molecule of NatN_{\mathrm{at}} atoms with atomic numbers Z∈Z+Nat\mathbf{Z} \in\mathbb{Z}_{+}^{N_{\mathrm{at}}}, which identify the element of each atom, and positions R∈R3Nat\mathbf{R} \in\mathbb{R}^{3N_{\mathrm{at}}}. Its electrons are described in a basis of nn real-valued, atom-centred basis functions {ϕμ:R3→R}μ=1n\{\phi_{\mu}: \mathbb{R}^{3} \to\mathbb{R}\}_{\mu=1}^{n}, also called atomic orbitals; for the def2-SVP basis used here, they are Gaussian-type functions. The basis functions are linearly independent but not orthogonal. Their inner products form the overlap matrix S\mathbf{S}, with entries Sμν=∫ϕμ(r)ϕν(r) drS_{\mu\nu} = \int\phi_{\mu}(\mathbf{r})\phi_{\nu}(\mathbf{r})\,\mathrm{d}r; it depends only on the geometry and is positive definite, written S≻0\mathbf{S} \succ0. In Kohn–Sham DFT [6, 11], the electronic structure is represented by a second symmetric n×nn \times n matrix, the Kohn–Sham Hamiltonian H⋆\mathbf{H}^{\star}, with entries Hμν⋆=⟨ϕμ∣F[P⋆]∣ϕν⟩H_{\mu\nu}^{\star} = \langle\phi_{\mu}|\mathbf{F}[\mathbf{P}^{\star}]|\phi_{\nu}\rangle, where F[P]\mathbf{F}[\mathbf{P}] is the Kohn–Sham operator built from the occupied orbitals through their density matrix P\mathbf{P} Equation (2) and P⋆\mathbf{P}^{\star} is the converged, self-consistent one. The molecular orbitals of the reference are linear combinations of the basis functions, ψi(r)=∑μCμi⋆ϕμ(r)\psi_i(\mathbf{r}) = \sum_{\mu} C_{\mu i}^{\star}\phi_{\mu}(\mathbf{r}) (we omit their star), whose coefficients and energies solve the generalized eigenvalue problem

H⋆C⋆=SC⋆diag⁡(ε⋆),C⋆TSC⋆=I.(1)\mathbf{H}^{\star}\mathbf{C}^{\star} = \mathbf{S}\mathbf{C}^{\star}\operatorname{diag}(\boldsymbol{\varepsilon}^{\star}), \qquad\mathbf{C}^{\star\mathsf{T}}\mathbf{S}\mathbf{C}^{\star} = \mathbf{I}. \tag*{(1)}

The second condition states that, unlike the basis functions, the molecular orbitals are orthonormal, ∫ψi(r)ψj(r) dr=δij\int\psi_i(\mathbf{r})\psi_j(\mathbf{r})\,\mathrm{d}r = \delta_{ij}. Column ci⋆\mathbf{c}_i^{\star} of C⋆\mathbf{C}^{\star} holds the coefficients of orbital ψi\psi_i, and εi⋆\varepsilon_i^{\star} is its energy. A closed-shell molecule with NeN_{\mathrm{e}} electrons occupies the no=Ne/2n_{\mathrm{o}} = N_{\mathrm{e}}/2 lowest orbitals (the set O\mathcal{O}); the remaining nv=n−non_{\mathrm{v}} = n - n_{\mathrm{o}} orbitals are unoccupied, or virtual (the set V\mathcal{V}). The HOMO and LUMO energies are εno⋆\varepsilon_{n_{\mathrm{o}}}^{\star} and εno+1⋆\varepsilon_{n_{\mathrm{o}}+1}^{\star}, and the electron density is

ρ⋆(r)=2∑i∈O∣ψi(r)∣2=ϕ(r)TP⋆ϕ(r),P⋆=2CO⋆CO⋆T,(2)\rho^{\star}(\mathbf{r}) = 2\sum_{i\in\mathcal{O}}|\psi_i(\mathbf{r})|^2 = \boldsymbol{\phi}(\mathbf{r})^{\mathsf{T}}\mathbf{P}^{\star}\boldsymbol{\phi}(\mathbf{r}), \qquad\mathbf{P}^{\star} = 2\mathbf{C}_{\mathcal{O}}^{\star}\mathbf{C}_{\mathcal{O}}^{\star\mathsf{T}}, \tag*{(2)}

where ϕ=(ϕ1,…,ϕn)T\boldsymbol{\phi} = (\phi_1,\ldots,\phi_n)^{\mathsf{T}} and CO⋆\mathbf{C}_{\mathcal{O}}^{\star} holds the occupied columns of C⋆\mathbf{C}^{\star}. The density matrix P⋆\mathbf{P}^{\star} is twice the projector onto the occupied subspace, the span of the non_{\mathrm{o}} lowest orbitals.

Two maps connect the Hamiltonian and the density matrix. Diagonalizing a Hamiltonian and filling its non_{\mathrm{o}} lowest orbitals gives a density matrix, H↦P[H]\mathbf{H} \mapsto\mathbf{P}[\mathbf{H}], and from it the density by Equation (2). Conversely, evaluating the Kohn–Sham operator in the basis builds an Hamiltonian from a density matrix, P↦H[P]\mathbf{P} \mapsto\mathbf{H}[\mathbf{P}]; for a hybrid functional such as B3LYP, the exact-exchange term needs all of P\mathbf{P}, not only the density. DFT alternates the two maps in the self-consistent-field (SCF) iteration,

H(t)→diagonalize(ε(t),C(t))→fill noP(t)→buildH(t+1)=H[P(t)],(3)\mathbf{H}^{(t)} \xrightarrow{\text{diagonalize}} (\boldsymbol{\varepsilon}^{(t)},\mathbf{C}^{(t)}) \xrightarrow{\text{fill }n_{\mathrm{o}}} \mathbf{P}^{(t)} \xrightarrow{\text{build}} \mathbf{H}^{(t+1)} = \mathbf{H}[\mathbf{P}^{(t)}], \tag*{(3)}

from an initial guess until P\mathbf{P} stops changing. The reference is the fixed point of this loop, H⋆=H[P⋆]\mathbf{H}^{\star} = \mathbf{H}[\mathbf{P}^{\star}] with P⋆=P[H⋆]\mathbf{P}^{\star} = \mathbf{P}[\mathbf{H}^{\star}]. The two maps are not mirror images. The build gives one Hamiltonian for each density matrix, but many Hamiltonians share the same density matrix, because P\mathbf{P} records only which subspace is occupied, not the orbital energies or how the subspace is split into individual orbitals. The build costs O(n4)O(n^4) for hybrid functionals, and the TT iterations dominate the cost of the calculation (Figure 4 in Appendix § 11).

Self-consistent-field loop and Hamiltonian network workflow

Figure 4. (a) The self-consistent-field loop of Kohn–Sham DFT: the Kohn–Sham matrix is built from the current density matrix and diagonalized, and the occupied orbitals give the next density matrix, until the two agree. (b) A Hamiltonian network predicts the converged matrix in one forward pass; one diagonalization gives the orbital energies, orbitals and density, and the prediction can also initialize SCF. Iteration counts are medians over 50 QH9-stable-ood test molecules (PySCF, B3LYP/def2-SVP).

Learning Hamiltonians. A Hamiltonian network predicts H^=fθ(Z,R)\widehat{\mathbf{H}} = f_{\theta}(\mathbf{Z},\mathbf{R}) and is built to transform correctly under rotations of the molecule; S\mathbf{S} is computed exactly from the geometry. Existing models are trained with the element-wise loss Lelem=∥H^−H⋆∥\mathcal{L}_{\mathrm{elem}} = \lVert\widehat{\mathbf{H}} - \mathbf{H}^{\star}\rVert, the mean absolute or squared error over matrix entries [27, 14, 15]. At inference, H^\widehat{\mathbf{H}} replaces H⋆\mathbf{H}^{\star} in Equation (1), and every downstream quantity follows from its eigenpairs (ε^,C^)(\widehat{\boldsymbol{\varepsilon}},\widehat{\mathbf{C}}). Following QH9 [26], models are evaluated by the element-wise error of H^\widehat{\mathbf{H}} together with the errors of the orbital energies and the similarity of the orbital coefficients (§ 4.1).

Physics-informed losses. The wavefunction-alignment loss (WALoss) of Li et al. [14] adds a spectral signal without diagonalizing the prediction. It precomputes the reference orbitals C⋆C^{\star} and evaluates the prediction in their basis: since C⋆C^{\star} diagonalizes H⋆H^{\star}, the matrix C⋆TH^C⋆{C^{\star}}^{\mathsf{T}}\hat{H}C^{\star} should equal diag⁡(ε⋆)\operatorname{diag}(\varepsilon^{\star}). The full form penalizes every entry of the deviation alike, LWA=ℓ(C⋆TH^C⋆−diag⁡(ε⋆))\mathcal{L}_{\mathrm{WA}}=\ell({C^{\star}}^{\mathsf{T}}\hat{H}C^{\star}-\operatorname{diag}(\varepsilon^{\star})), where ℓ\ell is the mean absolute or squared error over the entries (Appendix § 17.§ 3); we use this form for all backbones. Li et al. [14] also propose a diagonal-only form that keeps only the diagonal, ∑iwi(ci⋆TH^ci⋆−εi⋆)2\sum_i w_i({c_i^{\star}}^{\mathsf{T}}\hat{H}c_i^{\star}-\varepsilon_i^{\star})^2, with large weights on the occupied orbitals and the LUMO; it appears as reweighted WALoss in Figure 1e. A second option is to diagonalize H^\hat{H}, form the predicted density ρ[H^]\rho[\hat{H}] by Equation (2), and penalize its deviation from ρ⋆\rho^{\star} at a set R\mathcal{R} of sample points,

\mathcal{L}_{\rho}(\hat{H})=\left\langle\left(\frac{\rho[\hat{H](\mathbf{r})-\rho^{\star}(\mathbf{r})}{\operatorname{div}(\mathbf{r})}\right)^2\right\rangle_{\mathbf{r}\in\mathcal{R}},} \tag*{(4)}

where div⁡(r)≥1\operatorname{div}(\mathbf{r})\ge1 is a geometry-only factor that down-weights the region near the nuclei, where the density is orders of magnitude larger (Ushenin et al. (2025)). We call Equation (4) density matching; § 3.2 shows that it is a special case of our loss.

Spectral Representations of Hamiltonian Errors

We first represent the prediction error in the basis of reference orbitals and determine which part of it each eigen-property depends on (§ 3.1). This identifies what a complete training signal must see and leads to the cumulative LDOS (§ 3.2), whose guarantees we establish in § 3.3.

Where the prediction error lives

Write the prediction as H^=H⋆+δH\hat{H}=H^{\star}+\delta H and express the error in the basis of reference orbitals,

Δ≔C⋆TδHC⋆,so thatC⋆TH^C⋆=diag⁡(ε⋆)+Δ.(5)\Delta\coloneqq{C^{\star}}^{\mathsf{T}}\delta H C^{\star}, \qquad\text{so that}\qquad{C^{\star}}^{\mathsf{T}}\hat{H}C^{\star}=\operatorname{diag}(\varepsilon^{\star})+\Delta. \tag*{(5)}

Entry Δij\Delta_{ij} measures how strongly the error couples reference orbitals ii and jj. We partition the symmetric matrix Δ\Delta into three sectors (Figure 1d): (A) the diagonal entries di:=Δiid_i:=\Delta_{ii}; (B) the occupied–virtual block ΔOV\Delta_{\mathrm{OV}}; and (C) the off-diagonal parts of the occupied–occupied and virtual–virtual blocks, ΔOO\Delta_{\mathrm{OO}} and ΔVV\Delta_{\mathrm{VV}}. This partition is exact: it sorts the entries of Δ\Delta by position alone, according to whether an entry lies on the diagonal and whether the orbitals it couples are occupied or virtual. The full WALoss averages the entries of Δ\Delta without weights (Lemma B.1), so it treats all sectors alike.

Classical matrix perturbation theory (Kato, [9]; Stewart & Sun, [20]) then shows what each sector does to the downstream properties.

Proposition 3.1 (What each property depends on). Let the reference orbital energies be non-degenerate, and expand the eigenvalues and eigenvectors of H^\hat{H} as functions of Δ\Delta around the reference, Δ=0\Delta=0. To first order:

(a) Sector A: orbital energies depend only on the diagonal: ε^i−εi⋆=di\hat{\varepsilon}_i-\varepsilon_i^{\star}=d_i;

(b) Sectors B and C: orbital shapes depend on the off-diagonal entries, weighted by inverse energy spacings: c^i−ci⋆=∑j≠iΔjiεi⋆−εj⋆cj⋆\hat{c}_i-c_i^{\star}=\sum_{j\ne i}\frac{\Delta_{ji}}{\varepsilon_i^{\star}-\varepsilon_j^{\star}}c_j^{\star};

(c) Sector B only: the density depends only on the occupied–virtual block, with the largest weights on orbital pairs near the HOMO–LUMO gap:

δρ(r)=4∑i∈O,a∈VΔaiψi(r)ψa(r)εi⋆−εa⋆.(6)\delta\rho(\mathbf{r})=4\sum_{\substack{i\in\mathcal{O},\,a\in\mathcal{V}}}\frac{\Delta_{ai}\psi_i(\mathbf{r})\psi_a(\mathbf{r})}{\varepsilon_i^{\star}-\varepsilon_a^{\star}}. \tag*{(6)}

Appendix § 12 gives the proof and the second-order corrections. Item (c) holds because the occupied–occupied contributions cancel in pairs: rotating occupied orbitals among themselves leaves their total density unchanged. This cancellation is exact, not only first-order. Items (a) and (b) need non-degenerate orbital energies, but (c) needs only a nonzero HOMO–LUMO gap, because the density matrix is the spectral projector onto the occupied subspace, which depends analytically on the Hamiltonian while the gap is open (Kato, [9]). This matters on QH9, where 12% of the molecules have two orbital energies closer than 0.1 mHa. Remark B.3 in Appendix § 12 relates the sectors to the reported metrics.

Proposition 3.2 (The density is blind to sectors A and C). If ΔOV=0\Delta_{OV}=0 and no eigenvalue of H^\hat{H} crosses the HOMO–LUMO gap, then ρ[H^]=ρ∗\rho[\hat{H}]=\rho^{\ast} exactly. Any loss that depends on H^\hat{H} only through its density therefore vanishes on a subspace of dimension no(no+1)2+nv(nv+1)2\frac{n_o(n_o+1)}{2}+\frac{n_v(n_v+1)}{2} out of n(n+1)2\frac{n(n+1)}{2}.

The reason is the map H↦P[H]\mathbf{H}\mapsto\mathbf{P}[\mathbf{H}] of § 2, which keeps only the occupied subspace. If ΔOV=0\Delta_{OV}=0, the prediction does not mix occupied with virtual reference orbitals, and if no level crosses the gap, its occupied subspace is that of the reference. Shifting energies (A) or rotating orbitals within the occupied or the virtual space (C) leaves this subspace, and with it P\mathbf{P} and ρ\rho, in place.

On a uniform sample of 4,000 QH9-stable molecules, with median n=171n=171 and no=33n_o=33, this blind subspace holds a median of 69.0% of the degrees of freedom of Δ\Delta, that is, of its n(n+1)2\frac{n(n+1)}{2} independent entries, and 66–71% between the 5th and 95th percentiles (Table 5). It contains every orbital-energy error, including the HOMO–LUMO gap error. The fraction counts directions, not error size: on physically realized Hamiltonian changes, the blind sectors carry 16–30% of ∥Δ∥F2\lVert\Delta\rVert_F^2 more at larger displacements (Appendix § 14.§ 4). On a real molecule, shifting the HOMO or LUMO energy by 2 mHa changes the density loss by less than 10−3010^{-30}, whereas rotating the HOMO and LUMO into each other changes it by 3×10−73\times10^{-7} (Figure 12a in Appendix § 18).

quantitymedianrangemin–max
atoms per molecule18–5–29
heavy atoms (C, N, O, F)9–1–9
basis functions nn171141–19634–226
occupied orbitals noccn_{\mathrm{occ}}3329–355–37
occupied fraction f=nocc/nf = n_{\mathrm{occ}}/n0.1930.178–0.2190.147–0.256
HOMO–LUMO gap (Ha)0.2480.173–0.3050.079–0.463
HOMO–LUMO gap (eV)6.744.72–8.312.15–12.60
lowest eigenvalue ε1\varepsilon_1 (Ha)−19.14–−24.76–−10.17
highest eigenvalue εn\varepsilon_n (Ha)3.69–2.91–4.14
density-blind fraction of Δ\Delta0.6900.661–0.709–

Table 5. QH9-stable composition and reference spectra, measured on a uniform 4,000-molecule sample. Ranges are 5–95% intervals unless a min–max is stated. The last row is the exact fraction of the parameters of a symmetric residual that lie in the two sectors the density loss cannot resolve.

Response of each loss to controlled perturbations and mismatch and gradient responses

Figure 12. (a) Response of each loss to controlled perturbations of the reference Hamiltonian of one QH9 molecule (#12345): shifting the LUMO or HOMO energy by 2 mHa with all orbitals fixed, or rotating the HOMO and LUMO into each other with all energies fixed. Density matching does not respond to energy shifts at all (values at the level of floating-point round-off); both LDOS losses respond to both kinds of error. (b) Mismatch between a displaced and a reference orbital as a function of the energy error δ\delta, for a Gaussian peak and for a cumulative step (closed forms of Theorem 3.5(iv)): the peak mismatch saturates, the step mismatch keeps growing. (c) The corresponding gradient with respect to δ\delta, normalized by its maximum: the peak gradient vanishes beyond a few σ\sigma, whereas the step gradient approaches a constant.

Remark 3.3 (Why density matching still improves the gap). Proposition 3.2 is a statement about directions, not about what a trained network does. A network produces all sectors from the same atomic-orbital blocks, so correcting the frontier couplings of sector B, which the density weights by 1/(εa∗−εi∗)1/(\varepsilon_a^{\ast}-\varepsilon_i^{\ast}), also changes the frontier orbital energies. In practice it improves them, and density matching alone lowers the gap error substantially (§ 4.4). The density loss is, however, exactly flat along any change of the predicted orbital energies that leaves the predicted orbitals fixed and moves no level across the gap, so it cannot correct the energy error that remains. That error lies in sector A, which is where energy resolution adds most (§ 4.4).

From the density back to the Hamiltonian. SCF fixes the Hamiltonian from the density matrix, H∗=H[P∗]\mathbf{H}^{\ast}=\mathbf{H}[\mathbf{P}^{\ast}], but only because the reference is self-consistent: it is built from its own density matrix. A predicted H^\hat{\mathbf{H}} is not, and the step from H^\hat{\mathbf{H}} to its density matrix loses information. Every Hamiltonian that differs from H∗\mathbf{H}^{\ast} only in sectors A and C, and moves no level across the gap, has the same P\mathbf{P} and hence the same ρ\rho. Matching the density, or even the density matrix, therefore cannot single out H∗\mathbf{H}^{\ast}. This is enough when the prediction only initializes SCF, whose first build turns the right P[H^]\mathbf{P}[\hat{\mathbf{H}}] into H∗\mathbf{H}^{\ast} (Appendix § 16), but not when the prediction is diagonalized once and used directly, the setting we focus on.

What existing losses see. Figure 1e applies these results to the losses of § 2, and Table 3 in Appendix § 12 lists how each loss weights the sectors. The element-wise loss and the full WALoss penalize every sector, but uniformly: a small coupling between two frontier orbitals, which shifts the gap at second order with weight 1/gap1/\mathrm{gap} (Appendix § 12), costs as much as an equally large coupling between two deep core orbitals, which barely affects the properties of interest. The diagonal-only WALoss responds only to the diagonal and only to first order. Because off-diagonal entries also shift the orbital energies at second order, it can be lowered while the true orbital energies stay wrong, and increasing its weight indeed makes the gap worse (§ 4.4). Density matching uses the exact eigenpairs and focuses on the frontier, but is blind to the sectors of Proposition 3.2.

lossenergies did_iΔOV\Delta_{\mathrm{OV}} (density)ΔOO,ΔVV\Delta_{\mathrm{OO}}, \Delta_{\mathrm{VV}}weightingeigenpairs of H^\hat{H}
element-wise Lelem\mathcal{L}_{\mathrm{elem}}✓✓✓uniform–
WALoss, full (Li et al. [14])✓✓✓uniform–
WALoss, diagonal-only (Li et al. [14])first order––occupied orbitals and LUMO–
density matching Lρ\mathcal{L}_{\rho}–✓–frontier, 1/(εa−εi)1/(\varepsilon_a-\varepsilon_i)✓
cumulative LDOS Lcum\mathcal{L}_{\mathrm{cum}} (ours)✓✓✓frontier and energy window✓

Table 3. Which sectors of the error each loss responds to (first order), how it weights them, and whether it uses the eigenpairs of the prediction. The element-wise loss is uniform up to the overlap metric (Lemma B.1).

Desiderata. A loss that reliably improves eigen-properties should therefore (i) respond to every sector, so that no error goes unpenalized; (ii) weight the sectors by their effect on the quantities of interest, so that model capacity is spent where it matters; and (iii) use the exact eigenpairs of H^\hat{\mathbf{H}} rather than a first-order proxy. No existing loss meets all three requirements. We now construct one that does.

From the density to the cumulative LDOS

The density is blind to orbital energies because it sums the occupied orbitals and discards their energies, as Equation (2) shows. Keeping the energy of each orbital gives the local density of states (LDOS), ρ(r,E)=∑i∣ψi(r)∣2δ(E−εi)\rho(\mathbf{r},E)=\sum_i\lvert\psi_i(\mathbf{r})\rvert^2\delta(E-\varepsilon_i), where EE is an energy coordinate and δ(⋅)\delta(\cdot) is the Dirac delta, placing a peak at each orbital energy εi\varepsilon_i. The LDOS describes how the electrons at point r\mathbf{r} are distributed in energy and is measured directly by scanning tunnelling microscopy [23]. We use its cumulative form, with each peak smoothed by a Gaussian of width σ\sigma, so that each step becomes an error-function step:

N(r,E)=∑i=1n∣ψi(r)∣2Φ(E−εiσ),(7)N(\mathbf{r}, E) = \sum_{i=1}^{n} \lvert\psi_i(\mathbf{r}) \rvert^2 \Phi\left(\frac{E-\varepsilon_i}{\sigma}\right), \tag*{(7)}

where Φ\Phi is the standard normal cumulative distribution function and σ\sigma is a smoothing width. N(r,E)N(\mathbf{r}, E) is the number of electrons per spin at r\mathbf{r} with energy below EE. As a function of EE, it is a smoothed staircase with one step per orbital: the step sits at the orbital energy εi\varepsilon_i, and its height is the orbital density ∣ψi(r)∣2\lvert\psi_i(\mathbf{r})\rvert^2 at that point Figure 9b in the appendix. An error in an orbital energy moves a step (A). An error in an orbital shape changes step heights, whether it mixes occupied with virtual orbitals (B) or orbitals within the occupied or the virtual space (C); Figure 1f shows an example of A and one of C.

Spectral reference quantities for molecule #23470

Figure 9. Spectral reference quantities for molecule #23470. (a) Generalized eigenvalues with the loss window shaded; the energy axis is broken so that the nine core levels are visible. (b) Cumulative LDOS N(r,E)N(\mathbf{r}, E) of Equation (7) at five of the 256 sample points, spanning three orders of magnitude in local density. (c) Proposition B.4 tested pointwise: N(r,μ)N(\mathbf{r}, \mu) against ρ⋆(r)/2\rho^\star(\mathbf{r})/2 at all 256 sample points. (d) The two energy profiles at one sample point, with the constant contribution of the levels below the window removed and each curve normalized by its own maximum. Ticks mark the orbital energies.

The staircase is what a scanning tunnelling microscope traces as its bias voltage is swept. With the tip held above a point r\mathbf{r}, the tunnelling current at bias VV counts the states between the Fermi level EFE_F and EF+eVE_F+eV, so it is proportional to N(r,EF+eV)−N(r,EF)N(\mathbf{r}, E_F+eV)-N(\mathbf{r}, E_F) [23, 19].2 Each time the bias crosses an orbital energy, the current changes by one step, whose height is that orbital’s density at the tip. The density is one value of NN, its level at the Fermi energy. The cumulative LDOS loss also compares how NN changes across the energy window, which is what the bias sweep traces, at many points r\mathbf{r}, much as one would compare two samples by sweeping the bias at many tip positions.

Where the density matrix, and with it the density, keeps only the occupied subspace, NN keeps the energy and the spatial density of every orbital, occupied and virtual: the positions and heights of its steps. These are enough to rebuild the Hamiltonian, H=SCdiag⁡(ε)CTSH = S C \operatorname{diag}(\varepsilon) C^{\mathsf{T}} S, so the map H↦N[H]H \mapsto N[H] discards nothing (Theorem 3.5(iii)). At an energy inside the HOMO–LUMO gap, every occupied step is complete and no virtual step has begun, so that slice of NN is the density, up to exponentially small tails (Theorem 3.5(i)). NN is a single function of the predicted eigenpairs, not a sum of terms for the three sectors: the sectors are only the lens through which Section 3.3 shows that it responds to every part of the error.

Definition 3.4 (Cumulative LDOS loss). Let R\mathcal{R} be a set of sample points, {Ek}k=1K\{E_k\}_{k=1}^{K} an energy grid on the window [μ−E↓,μ+E↑][\mu-E_{\downarrow},\mu+E_{\uparrow}] around the reference Fermi level μ=12(εno∗+εno+1∗)\mu= \frac{1}{2}(\varepsilon_{n_o}^{*}+\varepsilon_{n_o+1}^{*}), and divide the factor in (4). The cumulative LDOS loss is

Lcum(H^)=⟨(N[H^](r,Ek)−N[H∗](r,Ek)div⁡(r))2⟩r∈R, k,(8)\mathcal{L}_{\mathrm{cum}}(\widehat{H}) = \left\langle\left(\frac{N[\widehat{H}](\mathbf{r},E_k)-N[H^{*}](\mathbf{r},E_k)}{\operatorname{div}(\mathbf{r})}\right)^2 \right\rangle_{\mathbf{r}\in\mathcal{R},\,k}, \tag*{(8)}

where N[H^]N[\widehat{H}] is computed from the exact eigenpairs of (H^,S)(\widehat{H},S) and gradients are propagated through the eigensolver.

FermiScope trains with Lelem+w Lcum\mathcal{L}_{\mathrm{elem}}+w\,\mathcal{L}_{\mathrm{cum}}, where Lelem\mathcal{L}_{\mathrm{elem}} is the element-wise loss of Section 2 and the weight w>0w>0 balances the scales of the two terms, selected on the validation split (Table 15); on QHNet, the results change little over a tenfold range of ww (§ 4.4). Two variants serve as ablations: replacing the step Φ\Phi by a Gaussian peak e−x2/2e^{-x^2/2} gives a peak-shaped LDOS loss LLDOS\mathcal{L}_{\mathrm{LDOS}}, and a single grid point at E1=μE_1=\mu recovers density matching (Theorem 3.5(ii)).

QHNetSPHNet / WANet
optimizerAdamW, β=(0.99,0.999)\beta= (0.99, 0.999)native
learning rate1×10−51 \times10^{-5}1×10−51 \times10^{-5}
warm-up steps1,000native
fine-tuning steps30,00030,000
batch size3264
gradient clippingnorm 5.0norm 5.0
molecules per auxiliary step88
energy gridK=64K = 64, σ=0.02\sigma= 0.02 HaK=64K = 64, σ=0.02\sigma= 0.02 Ha
cumulative LDOS weight ww30 (stable-id), 100 (other splits)450
WALoss weight0.10.05

Table 15. Fine-tuning settings. Every method of a given backbone shares all settings except the auxiliary loss and its weight; unlisted settings follow each backbone’s released training recipe (“native”). The cumulative LDOS weight is selected on the validation split; Table 9 reports its test-set sensitivity on QHNet.

Theoretical properties

Theorem 3.5 (Properties of the cumulative LDOS). Let the reference orbital energies be non-degenerate, as in Proposition 3.1, let g=εno+1∗−εno∗g=\varepsilon_{n_o+1}^{*}-\varepsilon_{n_o}^{*} be the reference HOMO–LUMO gap, and let II be any open energy interval for equal to the loss window. Then:

(i) Density matching is a special case. If no orbital energy lies within g/2g/2 of μ\mu, then N(r,μ)=ρ(r)/2N(\mathbf{r},\mu)=\rho(\mathbf{r})/2 up to 12erfc⁡(g/(22σ))\frac{1}{2}\operatorname{erfc}(g/(2\sqrt{2}\sigma)) per orbital, so Lρ\mathcal{L}_{\rho} is the E=μE=\mu slice of Lcum\mathcal{L}_{\mathrm{cum}}.

(ii) No blind sector. The first-order response of NN on R3×I\mathbb{R}^{3}\times I to Δ\Delta is injective: every energy error did_i (sector A) and every off-diagonal entry Δij\Delta_{ij} (sectors B and C) changes NN.

(iii) Identifiability. N[H^]=N[H⋆]N[\hat{H}] = N[H^\star] on R3×I\mathbb{R}^{3} \times I if and only if H^=H⋆\hat{H} = H^\star.

(iv) Non-saturating gradient. If one orbital energy is displaced by δ\delta with its shape fixed, the gradient of the cumulative mismatch with respect to δ\delta is proportional to erf⁡(δ/2σ)\operatorname{erf}(\delta/2\sigma), the Gauss error function3, which saturates at ±1\pm1 as $\lvert\delta\rvert * grows. In contrast, the gradient of the peak-shaped mismatch is proportional to* (δ/σ)e−δ2/4σ2(\delta/\sigma)e^{-\delta^{2}/4\sigma^{2}}, which vanishes for large displacements. Concretely, at ∣δ∣=4σ\lvert\delta\rvert= 4\sigma the cumulative gradient has reached erf⁡(2)>0.99\operatorname{erf}(2) > 0.99 of its asymptotic value while the peak gradient has fallen to 4e−4<0.084e^{-4} < 0.08, a factor of 13 apart, and the ratio grows without bound as $\lvert\delta\rvert * increases.*

Appendix B proves each part (Propositions B.4 and B.6, Theorem B.5) for any linearly independent basis of Gaussian-type orbitals, and Appendix H checks every part numerically on QH9 molecules.

Figure 2 shows why (ii) holds and why the density fails it. To first order, an energy error adds a bump to NN at its level, and a coupling Δij\Delta_{ij} adds a plateau between εi⋆\varepsilon_i^\star and εj⋆\varepsilon_j^\star, shaped in space like ψiψj\psi_i\psi_j. Steps and bumps at different energies are linearly independent functions of EE, and different orbitals are linearly independent functions of r\mathbf{r}, so no combination of errors can cancel. The density reads only the slice E=μE = \mu. Bumps never reach it, and a plateau crosses it only if one of its two orbitals is occupied and the other virtual: this is Proposition 3.2 seen through NN.

Implications. By (i), which holds at every energy inside the gap and hence at the two grid energies next to μ\mu, the cumulative loss keeps everything that density matching sees, including its automatic focus on the frontier orbitals (Proposition 3.1c); the other energies add the orbital-energy information that the density lacks. By (ii) and (iii), all three sectors are visible, and on the loss window NN determines the Hamiltonian, so it cannot be matched by trading one kind of error for another, as the diagonal-only WALoss can. Pairs of orbitals that both lie far outside the window, such as two core orbitals or two high virtual orbitals, enter only through the Gaussian tails of their energy profiles; they barely affect ground-state properties and remain supervised by the element-wise term. The loss therefore concentrates on the valence and low virtual orbitals, the part of the spectrum that governs chemistry. Together, these properties meet the three desiderata of Sec. 3.1, and (iv) makes training robust: unlike a peak-shaped loss, the cumulative loss keeps pulling an orbital energy toward its target once the error exceeds a few σ\sigma, because it compares the local spectra through their cumulative distributions, as a transport distance does, rather than through the overlap of peaks (Proposition B.6 in Appendix § 12).

Finally, because most degrees of freedom of Δ\Delta lie in sectors that barely affect the target properties, a model can lower Lcum\mathcal{L}_{\mathrm{cum}} by moving error out of the sensitive sectors rather than by enlarging it, so the element-wise error need rise only slightly (Proposition B.7 in Appendix § 12).

Experiments

Setup

Datasets. QH9 (Yu et al., [26]) provides B3LYP/def2-SVP Hamiltonians for QM9 molecules (Ramakrishnan et al., [17]) with up to nine heavy atoms. We use its four official splits: stable-id is a random split, stable-ood tests on larger molecules, dynamic-geo on unseen geometries of training molecules and dynamic-mol on unseen molecules. Appendix § 13 gives sizes and statistics.

Backbones. We fine-tune three pretrained Hamiltonian networks that span the development of the field: QHNet (Yu et al., [27]), the original QH9 baseline, and WANet (Li et al., [14]) and SPHNet (Luo et al., [15]), which make equivariant message passing cheaper through SO(2) convolutions and adaptive sparsity.

Baselines and protocol. We compare with WALoss (Li et al., [14]), the state-of-the-art physics-informed loss for Hamiltonian prediction, in its full form. For each backbone, every method fine-tunes the same pretrained checkpoint for 30k steps with the same optimizer, learning-rate schedule, batch size and data. Only the auxiliary loss and its weight differ, and all methods are evaluated with the same code. Appendix § 20 lists all hyper-parameters.

Training objective and cost. We apply Lcum\mathcal{L}_{\mathrm{cum}} when fine-tuning a pretrained model. At each step it is evaluated on eight molecules of the batch, at 256 sample points per molecule drawn once from the PySCF quadrature grid (Sun et al., [21]), whose atomic-orbital values are cached, and on K=64K = 64 energies on [μ−1.5,μ+0.3][\mu- 1.5, \mu+ 0.3] Ha with σ=0.02\sigma= 0.02 Ha, covering the valence occupied orbitals, the LUMO and the low virtual orbitals. The eigenpairs of (H^,S)(\hat{H}, S) are computed in double precision, with gradients through the eigensolver (Appendix § 16). On QHNet the loss adds about 5% to the cost of pretraining, and it costs nothing at inference (Appendix § 17.§ 6).

Metrics. Following QH9, we report the MAE of H^\hat{H} over all entries (HH), over same-atom blocks (diag) and over the remaining blocks (non-diag). We also report the MAE of the HOMO and LUMO energies, of the gap and of all occupied orbital energies (εO\varepsilon_{O}), and the cosine similarity ψ\psi of the occupied orbital coefficients. Energies are in μ\muHa and ψ\psi in % (Appendix § 15).

Main results

Table 1 reports results on the QH9-stable-id test set. On QHNet, SPHNet and WANet, the cumulative LDOS loss gives the best orbital energies and orbital coefficients. It reduces the HOMO–LUMO gap error by 79% on QHNet, 49% on SPHNet and 53% on WANet, and the LUMO error by 56–84%; its gap error is 1.6–2.9 times lower than that of WALoss. These gains come without a cost in element-wise accuracy: the Hamiltonian MAE stays within 0.3% of the pretrained value on SPHNet and WANet, and on QHNet it falls by 3.5%, making our loss the best in every downstream column. WALoss improves the gap by 19–39% but raises the Hamiltonian MAE on all three backbones (by 0.6–2.3%), consistent with the trade-off that Li et al. [14] reported on QH9.

This pattern follows from the analysis of § 3.1. WALoss weights all entries of Δ\Delta equally, so much of its effect goes to the large sectors that barely influence the spectrum, and its spectral gains come at the expense of element-wise accuracy. The cumulative LDOS loss concentrates on the sectors that control the frontier spectrum, and the model can satisfy it by moving error out of these sectors at little cost in total error (Proposition B.7 in Appendix § 12).

Generalization across splits

Figure 3 applies the same protocol to the three shifted splits; Table 6 in Appendix § 17.§ 1 lists all metrics. The gains persist under distribution shift. Across all four splits, the cumulative LDOS loss lowers the gap error of every model, by 36–77% on the shifted splits, and never raises the element-wise error by more than 0.3%, whereas WALoss moves both errors in either direction and increases the gap error on all three shifted splits of QHNet. On dynamic-mol, where the pretrained QHNet is least accurate, our loss lowers its gap error by 77% and raises its orbital similarity from 79.7% to 90.6%. Predicted Hamiltonians are also used to initialize DFT; starting SCF from them saves about a third of the iterations relative to the standard minao guess (Appendix § 17.§ 5).

Reduction of the HOMO–LUMO gap error relative to each pretrained model on the three shifted QH9 splits

Figure 3. Reduction of the HOMO–LUMO gap error relative to each pretrained model on the three shifted QH9 splits (higher is better; negative values mean that the error grew). The cumulative LDOS loss (ours, trained as Lelem+wLcum\mathcal{L}_{\mathrm{elem}} + w\mathcal{L}_{\mathrm{cum}}) lowers the gap error on every backbone and split, and it also improves every other downstream metric; Table 6 in Appendix § 17.§ 1 lists all metrics.

Ablation studies

Energy resolution. The ablation rows of Table 1 isolate the first design choice of the loss, the energy resolution; the second, step versus peak, is in Appendix § 17.§ 4. Density matching alone already lowers the gap error by 35–78%, which confirms the value of its automatic focus on the frontier (Proposition 3.1c). Adding energy resolution helps most where the density is blind to the remaining error: on WANet the gap error falls from 1101 to 791 μ\muHa, and on SPHNet from 970 to 789 μ\muHa. On QHNet, where density matching already captures most of the gap improvement, energy resolution removes its element-wise cost (HH from 76.82 to 74.81 μ\muHa) and further lowers the LUMO and occupied-orbital errors.

Weight sensitivity. On QHNet, the gap error of the cumulative loss stays between 1811 and 2231 μ\muHa as ww varies tenfold, whereas the diagonal-only form of WALoss, which sees orbital energies only to first order, degrades as its weight grows (Appendix § 17.§ 3).

Related Work

Hamiltonian prediction. SchNOrb [18] and PhiSNet [24] predict molecular Hamiltonians and wavefunctions, and DeepH (Li et al., 2022) targets materials. QHNet [27] introduced an efficient equivariant architecture, and QH9 [26] established the benchmark used here. WANet [14] and SPHNet [15] improve accuracy and scalability through SO(2)SO(2) convolutions and adaptive sparsity. All of them are trained with element-wise losses; our loss applies to each of them without modification.

Physics-informed and spectral objectives. Gu et al. (2022) regress eigenvalues directly, which requires differentiating through an eigensolver at every step, supervises the energies but not the orbitals, and was found hard to optimize on large systems [14]. WALoss [14] avoids the eigensolver by evaluating H^\hat{H} in the reference orbital basis. Lemma B.1 shows that its full form is the element-wise error measured in an orthonormal basis, and its perturbation theorem bounds eigenvalue errors by that error. Our analysis refines this bound into a map of which entries matter for which property, and explains the trade-off between matrix error and properties that Li et al. (2025) observed on QH9. Self-consistency training [28] rebuilds a Hamiltonian from the predicted density through the exchange–correlation functional and matches it to the prediction on unlabeled molecules; it enforces the SCF fixed point rather than the spectrum and is complementary to our loss.

Electron density and LDOS in machine learning. DeepDFT [7], ChargE3Net [12] and LAGNet [25] predict the electron density as an output; LAGNet introduced the sampling grid and core suppression that we use. Ellis et al. (2021) predict the LDOS itself as the target of a finite-temperature DFT surrogate for materials. We use the LDOS as a training signal for a predicted Hamiltonian and show why its cumulative form is the one to optimize.

Conclusion

The element-wise error of a predicted Kohn–Sham Hamiltonian is a poor guide to its eigen-properties, because each property depends on a specific part of the error. Representing the error in the reference orbital basis makes this dependence explicit and shows what existing physics-informed losses miss. The cumulative LDOS represents the Hamiltonian in the language of the density without losing the orbital energies: it sees every part of the error, weights it by its effect on the spectrum, and determines the Hamiltonian uniquely. As the drop-in training signal of FermiScope, it reduces the HOMO–LUMO gap error by 49–79% on three architectures, maintains these gains under distribution shift, and leaves the element-wise accuracy intact. Appendix § 19 discusses limitations and future work.

AI Use Statement

In this work, we used generative AI tools to implement methods: AI coding assistants helped write parts of the software implementation, including experiment orchestration scripts and figure-generation code. We have not used generative AI tools to generate synthetic data sets, help develop theoretical models or conceptual frameworks, formulate mathematical claims, provide critical ingredients for proving mathematical claims, propose or refine hypotheses, design or provide feedback on research methodology or experiments, assist with translation, clean and reformat the dataset, support qualitative and thematic data analysis, or interpret results. All mathematical proofs were written by the authors; generative AI tools were subsequently used to polish the exposition, and numerical scripts were used to verify the correctness of every closed-form expression (see Appendix § 18). Additionally, we used generative AI tools to identify and summarize relevant literature during the related-work survey and to edit the paper to improve readability after the authors had written the full draft. We have reviewed all AI-assisted work. AI-generated code was tested for correctness and verified against quantum-chemical reference calculations by the authors. Literature identified by AI was verified through manual inspection of the original sources. All experiments were designed and executed by the authors, and all reported numbers were checked against the DFT reference data. We take responsibility for the final content of this work, including text, claims, and artifacts produced with the aid of generative AI.

Reproducibility Statement

All code for computing the proposed losses, the cached quadrature grids, and the evaluation scripts are provided in the supplementary material. Appendix J lists the fine-tuning settings and the evaluation protocol, and the README of the supplementary code gives the training commands with these settings. Complete proofs of the theoretical results appear in Appendix B, and Appendix H reports numerical checks of every analytical statement against reference data. The three backbone architectures we build on, QHNet, SPHNet and WANet, are publicly available together with the QH9 dataset and its published splits.

Ethics Statement

This work develops auxiliary training objectives for neural-network models of molecular Kohn–Sham Hamiltonians. The research uses only publicly available quantum-chemical datasets (QH9) and involves no human subjects, private data, or dual-use applications. We are not aware of any direct negative societal impact; by improving the physical accuracy of predicted Hamiltonians without requiring additional data or architectural changes, the method may help reduce the computational cost of molecular simulations.

Acknowledgments

This work was partially supported by NSF 2303037, NSF 2312501, NSF 2531008, SRC JUMP 2.0 Center, CDSC Industry Partners, Amazon Research Awards, Snapchat, and Google Gifts.

Kohn–Sham DFT in Brief

This section collects the quantum-chemistry background assumed in the main text: a glossary of terms (Table 2), and the self-consistent-field procedure and its cost (Figure 4).

termmeaning
atomic number ZZNumber of protons of a nucleus; it identifies the element (H 1, C 6, N 7, O 8, F 9).
basis set, basis function, atomic orbitalA fixed set of functions ϕμ\phi_\mu centred on the atoms, in which the molecular orbitals are expanded; each function is called an atomic orbital.
def2-SVPA standard Gaussian basis set of split-valence quality with polarization functions; it gives 5 functions per H atom and 14 per C, N, O or F atom.
molecular orbital ψi\psi_iA one-electron wavefunction of the molecule, a linear combination of basis functions; ∣ψi(r)∣2\lvert\psi_i(\mathbf{r})\rvert^2 is the probability density of an electron in that orbital.
Kohn–Sham DFTDensity functional theory in which the interacting electrons are replaced by non-interacting electrons in an effective potential that depends on the electron density.
exchange–correlation functional, B3LYPThe approximate part of the effective potential that accounts for many-electron effects; B3LYP is a widely used hybrid functional, which mixes in exact exchange.
level of theoryThe functional and basis set of a calculation, here B3LYP/def2-SVP.
Kohn–Sham matrix HThe matrix of the Kohn–Sham operator in the basis, also called the Hamiltonian or Fock matrix.
overlap matrix SThe inner products of the basis functions; it differs from the identity because the basis functions are not orthogonal.
generalized eigenvalue problemHc=εScHc = \varepsilon Sc; its eigenvalues are the orbital energies and its eigenvectors the orbital coefficients.
self-consistent field (SCF)The iteration that makes the Hamiltonian and the density consistent with each other (Figure 4).
initial guess (minao, core)The starting point of SCF: minao superposes atomic densities in a minimal basis; the core guess ignores the interaction between electrons.
DIISThe standard extrapolation scheme that accelerates SCF convergence [16].
closed shellEvery occupied orbital holds two electrons of opposite spin, so no=Ne/2n_o = N_e/2.
occupied, virtual orbitalsThe non_o lowest orbitals hold the electrons; the others, called virtual or unoccupied, are empty.
HOMO, LUMO, gapThe highest occupied and lowest unoccupied molecular orbitals, and the difference of their energies, a common indicator of reactivity and optical excitation.
frontier orbitalsThe orbitals closest in energy to the HOMO–LUMO gap.
core orbitalsThe deep 1s orbitals of the heavy atoms, far below the valence orbitals.
Fermi level μ\muHere, the energy midway between the HOMO and the LUMO; the orbitals below it are occupied.
electron density ρ(r)\rho(\mathbf{r})The expected number of electrons per unit volume at r\mathbf{r}.
density matrix P2CCT2\mathbf{C}\mathbf{C}^{\mathsf{T}}, the matrix that gives the density through ρ(r)=ϕ(r)TPϕ(r)\rho(\mathbf{r}) = \boldsymbol{\phi}(\mathbf{r})^{\mathsf{T}}\mathbf{P}\boldsymbol{\phi}(\mathbf{r}).
local density of states (LDOS)The density at r\mathbf{r} resolved by orbital energy; it is measured by scanning tunnelling microscopy.
unitsHartree (Ha), the atomic unit of energy: 1 Ha = 27.211 eV, 1 μ\muHa = 10−610^{-6} Ha, 1 kcal/mol = 1.594 mHa.

Table 2. Quantum-chemistry terms used in this paper.

Glossary. Table 2 defines the quantum-chemistry terms used in the paper.

The SCF procedure and its cost. The Kohn–Sham operator F[P]\mathcal{F}[\mathbf{P}] depends on the occupied orbitals through their density matrix, and the density matrix is computed from the eigenvectors of its matrix. DFT resolves this circularity by iteration (Figure 4a). Starting from an initial guess of the density matrix, each iteration builds the Kohn–Sham matrix from the current density matrix, solves the generalized eigenvalue problem, Equation (1), occupies the non_o lowest orbitals and forms a new density matrix by Equation (2), until the input and output density matrices agree. Building the matrix requires the Coulomb and, for hybrid functionals such as B3LYP, the exact-exchange contributions, formally O(n4)O(n^4) in the number of basis functions, together with a numerical quadrature of the exchange–correlation potential; the diagonalization costs O(n3)O(n^3). A calculation with TT iterations costs TT times one iteration. On 50 QH9-stable-ood test molecules, PySCF with its default settings (B3LYP/def2-SVP, DIIS ([16]) converges in a median of T=9T = 9 iterations (range 8–10) from its default minao guess and in 17 from the core-Hamiltonian guess, taking a median of about 9 s per molecule on a CPU node. A Hamiltonian network replaces the whole loop (Figure 4b): one forward pass predicts the O(n2)O(n^2) entries of H^\hat{\mathbf{H}}, and one diagonalization gives every downstream quantity. On the same molecules, the QHNet forward pass on a GPU and the eigensolve take a median of 0.1 s together. Used instead as an initial guess, the prediction saves about a third of the SCF iterations (Appendix § 17.§ 5). The loss proposed in this paper changes only training; inference is that of the backbone.

Proofs and Additional Theory

Throughout, P=2Co⋆Co⋆⊤P = 2C^{\star}_{\mathrm{o}}C^{\star\top}_{\mathrm{o}} denotes the density matrix, so that ρ(r)=ϕ(r)⊤Pϕ(r)\rho(\mathbf{r}) = \phi(\mathbf{r})^{\top}P\phi(\mathbf{r}) with ϕ(r)=(ϕ1(r),…,ϕn(r))⊤\phi(\mathbf{r}) = (\phi_1(\mathbf{r}),\ldots,\phi_n(\mathbf{r}))^{\top}; hats denote the same quantities computed from H^\hat{H}. We write g:=εno+1⋆−εno⋆g := \varepsilon^{\star}_{n_{\mathrm{o}}+1}-\varepsilon^{\star}_{n_{\mathrm{o}}} for the reference HOMO–LUMO gap and U:=span⁡{ϕμ}μ=1n\mathcal{U} := \operatorname{span}\{\phi_\mu\}_{\mu=1}^{n} for the functions representable in the basis, which contains every predicted and reference orbital. Gaussian-type basis functions are real-analytic on R3\mathbb{R}^3 and linearly independent, so every nonzero u∈Uu \in\mathcal{U} is a nonzero real-analytic function. Two consequences are used below: a nonzero u∈Uu \in\mathcal{U} does not vanish identically on any nonempty open set, and if u,v∈Uu,v \in\mathcal{U} satisfy uv=0uv = 0 on R3\mathbb{R}^3, then u=0u = 0 or v=0v = 0 (if u≠0u \ne0, vv vanishes on the dense open set where u≠0u \ne0, hence everywhere).

The error in the orbital basis

Whitening a matrix MM means expressing it in an orthonormal basis of the span of the atomic orbitals, M↦S−1/2MS−1/2M \mapsto S^{-1/2}MS^{-1/2} (Löwdin orthogonalization). The error Δ\Delta of Equation (5) is the whitened error rotated into the reference eigenbasis, which gives the following identities.

Lemma B.1 (Whitening). ∥Δ∥F=∥S−1/2δHS−1/2∥F≤∥S−1∥2∥δH∥F=κ(S)∥S∥2∥δH∥F\|\Delta\|_{F} = \|S^{-1/2}\delta H S^{-1/2}\|_{F} \le\|S^{-1}\|_{2}\|\delta H\|_{F} = \frac{\kappa(S)}{\|S\|_{2}}\|\delta H\|_{F}. Moreover C⋆⊤H^C^⋆−diag⁡(ε⋆)=ΔC^{\star\top}\hat{H}\hat{C}^{\star} - \operatorname{diag}(\varepsilon^{\star}) = \Delta, so the full WALoss of Li et al. [14], an average of the absolute or squared entries of this matrix, weights every entry of Δ\Delta alike (its mean-squared form is ∥Δ∥F2/n2\|\Delta\|_{F}^{2}/n^{2}), and the diagonal-only form equals ∑iwidi2\sum_i w_i d_i^2.

Proof. Write C⋆=S−1/2QC^{\star} = S^{-1/2}Q with QQ orthogonal (from C⋆⊤SC⋆=IC^{\star\top}SC^{\star} = I). Then Δ=Q⊤S−1/2δHS−1/2Q\Delta= Q^{\top}S^{-1/2}\delta H S^{-1/2}Q, and the Frobenius norm is orthogonally invariant. The bound follows from submultiplicativity and ∥S−1/2∥22=∥S−1∥2\|S^{-1/2}\|_{2}^{2} = \|S^{-1}\|_{2}. The identity C⋆⊤H^C^⋆−diag⁡(ε⋆)=ΔC^{\star\top}\hat{H}\hat{C}^{\star} - \operatorname{diag}(\varepsilon^{\star}) = \Delta is Equation (5), because C⋆⊤H⋆C⋆=diag⁡(ε⋆)C^{\star\top}H^{\star}C^{\star} = \operatorname{diag}(\varepsilon^{\star}) by Equation (1), and the diagonal of Δ\Delta is (di)(d_i).

The inequality is the core of the perturbation theorem of Li et al. [14]. On QH9 it is loose: Appendix § 14.§ 4 measures a median amplification ∥Δ∥F/∥δH∥F\|\Delta\|_{F}/\|\delta H\|_{F} of 3.0 against a median bound of 1878, so the location of the error, rather than its size, is what determines its effect. Table 3 applies Propositions 3.1 and 3.2 to the losses of § 2; Figure 1e shows the same comparison.

Perturbation theory for each property

Besides Proposition 3.1, the main text uses two second-order facts.

Proposition B.2 (Second-order corrections). Under the assumptions of Proposition 3.1:

(d) ε^i−εi⋆=di+∑j≠iΔij2εi⋆−εj⋆+O(∥Δ∥3)\hat{\varepsilon}_i-\varepsilon_i^{\star}=d_i+\sum_{j\ne i}\frac{\Delta_{ij}^{2}}{\varepsilon_i^{\star}-\varepsilon_j^{\star}}+O(\lVert\Delta\rVert^{3});

(e) the Kohn–Sham total energy is stationary in P\mathbf{P} at the ground state, so its error is second order in ΔOV\Delta_{\mathcal{O}\mathcal{V}} and has no first-order dependence on any sector.

Item (d) is the channel through which off-diagonal errors reach the orbital energies: a coupling Δij\Delta_{ij} between two orbitals close in energy shifts both with weight 1/(εi⋆−εj⋆)1/(\varepsilon_i^{\star}-\varepsilon_j^{\star}), which is largest across the HOMO–LUMO gap. It is also why a loss that sees only the diagonal, and only to first order, such as the diagonal-only WALoss, can be lowered while the true orbital energies stay wrong. Item (e) explains why total-energy errors are a late indicator of the problem [14]: the energy is the least sensitive probe of the occupied subspace and the density the most sensitive one.

Remark B.3 (What the sectors mean for the metrics). To first order, the gap error is dLUMO−dHOMOd_{\mathrm{LUMO}}-d_{\mathrm{HOMO}}, two entries of sector A out of n(n+1)/2n(n+1)/2; the orbital coefficients, and with them the similarity ψ\psi, depend on sectors B and C; and the density depends on sector B alone. The weights in (b) and (c) are inverse orbital-energy differences. On QH9, the HOMO and LUMO are about 0.25 Ha apart and the deepest core orbital lies about 19 Ha below the LUMO (Table 5), so an error coupling the two frontier orbitals changes the LUMO about 75 times more than an equally large error coupling it to the deepest core orbital (median over QH9; 5–95% range 51–109). Item (c) is the first-order form of the Davis–Kahan theorem [3]: the occupied subspace, and with it the density, is rotated only by sector B, with a strength set by the gap (Appendix § 12).

Proof of Propositions 3.1 and B.2. (a), (b) and (d) are Rayleigh–Schrödinger perturbation theory for the pencil (H⋆+δH,S)(\mathbf{H}^{\star}+\delta\mathbf{H},\mathbf{S}) after whitening [9, 20]. For (c), δP=2∑i∈O(δciciT+ciδciT)\delta\mathbf{P}=2\sum_{i\in\mathcal{O}}(\delta\mathbf{c}_i\mathbf{c}_i^{\mathsf{T}}+\mathbf{c}_i\delta\mathbf{c}_i^{\mathsf{T}}); inserting (b) and pairing the terms (i,j)(i,j) and (j,i)(j,i) with i,j∈Oi,j\in\mathcal{O} gives Δji/(εi⋆−εj⋆)+Δij/(εj⋆−εi⋆)=0\Delta_{ji}/(\varepsilon_i^{\star}-\varepsilon_j^{\star})+\Delta_{ij}/(\varepsilon_j^{\star}-\varepsilon_i^{\star})=0 by symmetry of Δ\Delta, which leaves

δP=2∑i∈O∑a∈VΔaiεi⋆−εa⋆(ci⋆ca⋆T+ca⋆ci⋆T)\delta\mathbf{P}=2\sum_{i\in\mathcal{O}}\sum_{a\in\mathcal{V}}\frac{\Delta_{ai}}{\varepsilon_i^{\star}-\varepsilon_a^{\star}}\left(\mathbf{c}_i^{\star}\mathbf{c}_a^{\star\mathsf{T}}+\mathbf{c}_a^{\star}\mathbf{c}_i^{\star\mathsf{T}}\right)

and (6). Part (c) does not need the non-degeneracy assumption. P^/2\hat{\mathbf{P}}/2 is the spectral projector of the pencil onto its nOn_{\mathcal{O}} lowest eigenvalues, which is analytic in Δ\Delta while ∥Δ∥2<g/2\lVert\Delta\rVert_2<g/2 [9]; expanding its resolvent integral to first order gives entries Δai/(εi⋆−εa⋆)\Delta_{ai}/(\varepsilon_i^{\star}-\varepsilon_a^{\star}) between occupied and virtual orbitals and zero elsewhere, whether or not levels within O\mathcal{O} or within V\mathcal{V} coincide. The pairwise cancellation above is the same computation for non-degenerate levels. Beyond first order, the sin Θ\Theta theorem of Davis & Kahan (1970) gives the same picture. In the reference orbital basis, the predicted orbitals are the eigenvectors of C⋆TH^C⋆=diag⁡(ε⋆)+Δ\mathbf{C}^{\star\mathsf{T}}\hat{\mathbf{H}}\mathbf{C}^{\star}=\operatorname{diag}(\varepsilon^{\star})+\Delta, and the occupied reference subspace leaves a residual whose only nonzero block is ΔVO\Delta_{\mathcal{V}\mathcal{O}}; if ∥Δ∥2<g/2\lVert\Delta\rVert_2<g/2, the canonical angles Θ\Theta between the occupied subspaces of the reference and the prediction, which measure how far the occupied subspace, and with it P^\hat{\mathbf{P}} and ρ^\hat{\rho}, has moved, therefore satisfy ∥sin⁡Θ∥F≤∥ΔVO∥F/(g−2∥Δ∥2)\lVert\sin\Theta\rVert_{\mathrm{F}}\leq\lVert\Delta_{\mathcal{V}\mathcal{O}}\rVert_{\mathrm{F}}/(g-2\lVert\Delta\rVert_2) [20]. (e) is the variational principle for the Kohn–Sham energy with respect to occupied–virtual rotations.

Proof of Proposition 3.2. If ΔOV=0\Delta_{\mathcal{O}\mathcal{V}}=0 then C⋆TH^C⋆\mathbf{C}^{\star\mathsf{T}}\hat{\mathbf{H}}\mathbf{C}^{\star} is block diagonal in (O,V)(\mathcal{O},\mathcal{V}), so span⁡{CO⋆}\operatorname{span}\{\mathbf{C}_{\mathcal{O}}^{\star}\} is an S\mathbf{S}-invariant subspace of H^\hat{\mathbf{H}}; if no eigenvalue crosses the gap it is the occupied subspace of H^\hat{\mathbf{H}}, and P^=P⋆\hat{\mathbf{P}}=\mathbf{P}^{\star} because P\mathbf{P} depends only on the subspace. The dimension count is that of symmetric matrices on O\mathcal{O} and on V\mathcal{V}.

Remark (directions versus norm). Proposition 3.2 counts directions, not norm: at the QH9 median, 69% of the parameters of Δ\Delta lie in the two blind sectors (Table 5), and this is the room that density matching leaves unpenalized. How much of an actual residual sits in that room is a separate, empirical question. For the physically realized Hamiltonian ensemble discussed in Appendix D.4, the blind sectors carry 15.6% of ∥Δ∥F2\lVert\Delta\rVert_{\mathrm{F}}^{2} at a displacement of 0.02 Å and 30.3% at 0.30 Å, almost all of the growth in the virtual–virtual block that contains the LUMO energy error. The blind share is therefore smaller in norm than in dimension, but it contains every orbital-energy error and grows under distribution shift.

Properties of the cumulative LDOS loss

Theorem 3.5 collects the following results.

Proposition B.4 (Fermi-level identity; Theorem 3.5(i)). Let (εi,ψi)(\varepsilon_i,\psi_i) be the orbitals of H⋆\mathbf{H}^{\star} or of H^\widehat{\mathbf{H}}, and let the energy EE lie between their HOMO and LUMO energies at a distance of at least tσt\sigma from both. Then, at every point r\mathbf{r}, ∣N(r,E)−ρ(r)/2∣≤12erfc⁡(t/2)∑i∣ψi(r)∣2\left|N(\mathbf{r},E)-\rho(\mathbf{r})/2\right|\leq\frac{1}{2}\operatorname{erfc}(t/\sqrt{2})\sum_i|\psi_i(\mathbf{r})|^2: each orbital deviates by at most a fraction 12erfc⁡(t/2)\frac{1}{2}\operatorname{erfc}(t/\sqrt{2}) of its density. At E=μE=\mu and for the reference, t=g/(2σ)t=g/(2\sigma), and the fraction is 3×10−73\times10^{-7} for g=0.2 Hag=0.2\,\mathrm{Ha} and σ=0.02 Ha\sigma=0.02\,\mathrm{Ha}.

Proof. By (2), N(r,E)−12ρ(r)=−∑i∈O∣ψi(r)∣2[1−Φ((E−εi)/σ)]+∑a∈V∣ψa(r)∣2Φ((E−εa)/σ)N(\mathbf{r},E)-\frac{1}{2}\rho(\mathbf{r})=-\sum_{i\in O}|\psi_i(\mathbf{r})|^2\left[1-\Phi((E-\varepsilon_i)/\sigma)\right]+\sum_{a\in V}|\psi_a(\mathbf{r})|^2\Phi((E-\varepsilon_a)/\sigma). Every bracket and every Φ\Phi in this expression is at most 1−Φ(t)=12erfc⁡(t/2)1-\Phi(t)=\frac{1}{2}\operatorname{erfc}(t/\sqrt{2}), and the two sums have opposite signs, so the total is bounded by the larger of them.

The identity holds at every energy inside the gap, not only at μ\mu. This matters for the training grid: with K=64K=64 points on [μ−1.5,μ+0.3] Ha[\mu-1.5,\mu+0.3]\,\mathrm{Ha}, μ\mu is not a grid point but lies midway between the points μ±0.014 Ha\mu\pm0.014\,\mathrm{Ha}. With t=(g/2−0.014 Ha)/σt=(g/2-0.014\,\mathrm{Ha})/\sigma, both are density slices up to 2×10−82\times10^{-8} per orbital at the median QH9 gap and 1×10−41\times10^{-4} at its 5th percentile, so the loss contains density matching through these two slices (Table 14). Orbitals far below the window contribute a constant step equal to their density, so nothing that density matching sees is lost; the other grid points add how that density is distributed in energy.

Theorem B.5 (No blind sector and identifiability; Theorem 3.5(ii, iii)). Let the reference orbital energies be non-degenerate, and let I⊆RI\subseteq\mathbb{R} be an open energy interval, for example the loss window. Write φ\varphi for the standard normal density, Φi(E):=Φ((E−εi⋆)/σ)\Phi_i(E):=\Phi((E-\varepsilon_i^{\star})/\sigma) and ϕi(E):=φ((E−εi⋆)/σ)\phi_i(E):=\varphi((E-\varepsilon_i^{\star})/\sigma). Then

(i) the first-order response Δ↦δN∣R3×I\Delta\mapsto\delta N|_{\mathbb{R}^3\times I} is injective on symmetric Δ\Delta: energy errors did_i enter through the step positions with weight ∣ψi(r)∣2ϕi(E)/σ|\psi_i(\mathbf{r})|^2\phi_i(E)/\sigma, and every off-diagonal Δij\Delta_{ij}, including the occupied–occupied and virtual–virtual entries invisible to ρ\rho, enters through the step heights with the EE-profile Φi(E)−Φj(E)\Phi_i(E)-\Phi_j(E), a smoothed indicator of the interval between εi⋆\varepsilon_i^{\star} and εj⋆\varepsilon_j^{\star};

(ii) N[H^]=N[H⋆]N[\widehat{\mathbf{H}}]=N[\mathbf{H}^{\star}] on R3×I\mathbb{R}^3\times I if and only if H^=H⋆\widehat{\mathbf{H}}=\mathbf{H}^{\star}, and then ε^i=εi⋆\widehat{\varepsilon}_i=\varepsilon_i^{\star} and c^i=±ci⋆\widehat{c}_i=\pm c_i^{\star} for every ii.

By contrast, Lρ\mathcal{L}_{\rho} vanishes on the blind set of Proposition 3.2, and the diagonal-only WALoss vanishes whenever di=0d_i=0 for every ii with wi>0w_i>0.

Proof. We use one fact about the energy profiles. (F) For distinct λ1,…,λm\lambda_1,\ldots,\lambda_m, the 2m2m functions Φ((E−λk)/σ)\Phi((E-\lambda_k)/\sigma) and φ((E−λk)/σ)\varphi((E-\lambda_k)/\sigma) are linearly independent on II. All of them extend to entire functions of EE, so a combination ∑k[αkΦ((E−λk)/σ)+βkφ((E−λk)/σ)]\sum_k[\alpha_k\Phi((E-\lambda_k)/\sigma)+\beta_k\varphi((E-\lambda_k)/\sigma)] that vanishes on II vanishes on R\mathbb{R}. Differentiating it and multiplying by 2πσeE2/2σ2\sqrt{2\pi}\sigma e^{E^2/2\sigma^2} gives ∑k[αk−βk(E−λk)/σ]e−λk2/2σ2eλkE/σ2=0\sum_k[\alpha_k-\beta_k(E-\lambda_k)/\sigma]e^{-\lambda_k^2/2\sigma^2}e^{\lambda_kE/\sigma^2}=0, and exponential polynomials with distinct exponents vanish only if every polynomial coefficient does, so αk=βk=0\alpha_k=\beta_k=0 for all kk.

(i) By Proposition 3.1(a,b), the first-order change of (7) is

δN(r,E)=∑i=1n[2ψi(r) δψi(r) Φi(E)−diσψi(r)2ϕi(E)],δψi=∑j≠iΔjiεi⋆−εj⋆ψj∈U.\delta N(\mathbf{r},E)=\sum_{i=1}^{n}\left[2\psi_i(\mathbf{r})\,\delta\psi_i(\mathbf{r})\,\Phi_i(E)-\frac{d_i}{\sigma}\psi_i(\mathbf{r})^2\phi_i(E)\right],\qquad \delta\psi_i=\sum_{j\ne i}\frac{\Delta_{ji}}{\varepsilon_i^{\star}-\varepsilon_j^{\star}}\psi_j\in\mathcal{U}.

Collecting the terms (i,j)(i,j) and (j,i)(j,i) gives 2Δijψiψj[Φi(E)−Φj(E)]/(εi⋆−εj⋆)2\Delta_{ij}\psi_i\psi_j[\Phi_i(E)-\Phi_j(E)]/(\varepsilon_i^{\star}-\varepsilon_j^{\star}), the step-height profile of the statement. If δN=0\delta N=0 on R3×I\mathbb{R}^3\times I, then (F), applied at each r\mathbf{r}, gives ψiδψi=0\psi_i\delta\psi_i=0 and diψi2=0d_i\psi_i^2=0 on R3\mathbb{R}^3 for every ii. Since ψi≠0\psi_i\ne0, the product property of U\mathcal{U} gives δψi=0\delta\psi_i=0 and di=0d_i=0; linear independence of the ψj\psi_j then gives Δji=0\Delta_{ji}=0 for all j≠ij\ne i. Hence Δ=0\Delta=0.

(ii) For a Hamiltonian H\mathbf{H} with eigenpairs (εi,ci)(\varepsilon_i,c_i), group (7) by distinct eigenvalues,

N[H](r,E)=∑λwλ(r)Φ((E−λ)/σ)withwλ=∑i: εi=λψi2.N[\mathbf{H}](\mathbf{r},E)=\sum_{\lambda}w_{\lambda}(\mathbf{r})\Phi((E-\lambda)/\sigma)\quad\text{with}\quad w_{\lambda}=\sum_{i:\,\varepsilon_i=\lambda}\psi_i^2.

If N[H^]=N[H⋆]N[\widehat{\mathbf{H}}]=N[\mathbf{H}^{\star}] on R3×I\mathbb{R}^3\times I, (F) applied to the union of the two spectra gives w^λ=wλ⋆\widehat{w}_{\lambda}=w_{\lambda}^{\star} on R3\mathbb{R}^3 for every λ\lambda. For an eigenvalue λ\lambda of H^\widehat{\mathbf{H}}, w^λ\widehat{w}_{\lambda} is a sum of squares of nonzero functions in U\mathcal{U}, so it is not identically zero and λ\lambda is an eigenvalue of H⋆\mathbf{H}^{\star}; the converse holds likewise. H⋆\mathbf{H}^{\star} has nn distinct eigenvalues and H^\widehat{\mathbf{H}} has eigenvalues counted with multiplicity, so every eigenvalue of H^\widehat{\mathbf{H}} is simple and ε^i=εi⋆\widehat{\varepsilon}_i=\varepsilon_i^{\star}. Then ψ^i2=ψi2\widehat{\psi}_i^2=\psi_i^2, that is, (ψ^i−ψi)(ψ^i+ψi)=0(\hat{\psi}_i-\psi_i)(\hat{\psi}_i+\psi_i)=0 on R3\mathbb{R}^3, so ψ^i=±ψi\hat{\psi}_i=\pm\psi_i and c^i=±ci⋆\hat{c}_i=\pm c_i^\star. Finally, Equation (1) gives H=SCdiag⁡(ε)C⊤S\mathbf{H}=\mathbf{S}\mathbf{C}\operatorname{diag}(\varepsilon)\mathbf{C}^{\top}\mathbf{S} for either Hamiltonian, and the signs cancel, so H^=H⋆\hat{\mathbf{H}}=\mathbf{H}^\star; the converse is immediate. The statements about Lρ\mathcal{L}_{\rho} and the diagonal-only WALoss are Proposition 3.2 and Lemma B.1.

The theorem concerns the representation NN over all of space; the loss is its sample estimate at 256 points and K=64K=64 energies per molecule (§ 4.1). It needs nothing of the basis beyond linear independence and the analyticity of Gaussian-type functions. We state it on all of space rather than on a finite point set because the natural finite-sample condition, linear independence of the products ϕμϕν\phi_{\mu}\phi_{\nu} on the points, fails in def2-SVP: on an atom with two pp shells of radial parts R1R_1, R2R_2, p1xp2y=xyR1R2=p1yp2xp_{1x}p_{2y}=xyR_1R_2=p_{1y}p_{2x} identically. Because II may be any interval, the theorem applies to the loss window, but orbital pairs far outside the window enter only through the Gaussian tails of their profiles, which is the energy-window weighting of Table 3. Table 14 checks both statements on QH9 molecules. On the level-0 quadrature grid, the first-order response is injective over the full energy range, and on the loss window it resolves every direction that involves an orbital inside the window, although some only weakly. The theorem does not carry over to the 256 points sampled per molecule: there, some directions on the loss window remain unresolved, mostly couplings between occupied orbitals and virtual orbitals above the window, whose energy profiles are nearly constant over the window, and less than 1% of their weight lies on pairs of orbitals inside the window. The element-wise term supervises these directions, and a denser sample resolves them.

statementwhat is checkedresultreference
generalized eigenbasis∥C^TSC^−I∥∞\lVert\hat{C}^{\mathsf{T}}S\hat{C}-I\rVert_{\infty}4.8×10−144.8 \times10^{-14}–
cache consistencyrecomputed vs. released SS2.2×10−72.2 \times10^{-7}App. C
cache consistency∫ρ∗ dV\int\rho^{*}\,dV vs. Ne=60N_e=6059.97859.978App. C
Prop. B.4N(r,μ)N(r,\mu) vs. ρ∗(r)/2\rho^{*}(r)/2, all 256 points6.4×10−86.4 \times10^{-8} rel. (float32 cache)Figure 9c
Prop. B.6closed forms g(δ)g(\delta), c(δ)c(\delta) vs. quadrature9.3×10−169.3 \times10^{-16} rel.Figure 12b
energy-only perturbationinduced Δεi\Delta\varepsilon_i2.000 mHa (exact)Figure 12a
energy-only perturbationeigenvector overlap deviation≤4.4×10−16\le4.4 \times10^{-16}Figure 12a
shape-only perturbationmax⁡i∣Δεi∣\max_i|\Delta\varepsilon_i|2.4×10−132.4 \times10^{-13} HaFigure 12a
Prop. 3.2Lρ\mathcal{L}_{\rho} response to a 2 mHa energy shift6.26.2–6.6×10−316.6 \times10^{-31} (machine zero)Figure 12a
Prop. 3.1(c)Lρ\mathcal{L}_{\rho} response to a 0.05 rad rotation2.7×10−72.7 \times10^{-7}Figure 12a
Gaussian saturation∣g′∣|g^{\prime}| at δ=4σ\delta=4\sigma, 6σ6\sigma, rel. to its peak8.6×10−28.6 \times10^{-2}, 8.7×10−48.7 \times10^{-4}Figure 12c
Prop. 3.1(a,b), first-order δN\delta Nexact minus first-order change, perturbation scale t=10−5t=10^{-5}, 10−610^{-6}, 10−710^{-7}rel. error ∝t\propto t (3.8×10−4→3.8×10−63.8 \times10^{-4}\rightarrow3.8 \times10^{-6})Thm. B.5(i)
Prop. 3.1(c), degenerate levelssame for δρ\delta\rho, two occupied and two virtual levels degeneraterel. error ∝t\propto t (6.5×10−5→7.3×10−76.5 \times10^{-5}\rightarrow7.3 \times10^{-7})App. B
Prop. B.4 at the grid energies μ±0.014\mu\pm0.014 Hamax⁡∣N−ρ/2∣/max⁡(ρ/2)\max|N-\rho/2|/\max(\rho/2) on the grid; ratio to the bound≤8.5×10−8\le8.5 \times10^{-8}; ≤0.22\le0.22App. B
Thm. B.5(i), full energy rangesmallest relative singular value of the first-order response≥6.1×10−6\ge6.1 \times10^{-6}, no null directionApp. B
Thm. B.5(i), loss window (K=64K=64)directions with an orbital inside the window / with both outsideall resolved, ≥2.5×10−7\ge2.5 \times10^{-7}/below round-offApp. B
Thm. B.5(ii), recoverymax orbital-energy error after minimizing Lcum\mathcal{L}_{\mathrm{cum}} (or Lρ\mathcal{L}_{\rho}), three random starts0.03 mHa (Lρ\mathcal{L}_{\rho}: 10 mHa)App. B
Davis–Kahan bound∥sin⁡Θ∥F\lVert\sin\Theta\rVert_F over the bound, 600 random Δ\Delta with ∥Δ∥2<g/2\lVert\Delta\rVert_2<g/2≤0.22\le0.22App. B
restoring force on the K=64K=64 grid∣c′−erf⁡(δ/2σ)∣|c^{\prime}-\operatorname{erf}(\delta/2\sigma)|, ∣δ∣≤0.1|\delta|\le0.1 Ha, levels ≥0.18\ge0.18 Ha inside≤7.2×10−3\le7.2 \times10^{-3}Prop. B.6
gradient of Lcum\mathcal{L}_{\mathrm{cum}}Daleckii–Krein form vs. central differences1.9×10−91.9 \times10^{-9} rel.App. B
two pp shells on one atommax⁡∣p1xp2y−p1yp2x∣/max⁡∣p1xp2y∣\max|p_{1x}p_{2y}-p_{1y}p_{2x}|/\max|p_{1x}p_{2y}|2.9×10−162.9 \times10^{-16} (identically zero)App. B

Table 14. Numerical checks. Molecule #12345 and #23470 are the two QH9-stable geometries used in the appendix figures; the lower block also uses molecule #18. “Machine zero” means the response is at or below the double-precision noise floor of the quantity being differenced.

Proposition B.6 (Non-saturating restoring force; Theorem 3.5(iv)). Displace one orbital energy by δ\delta with its shape fixed. Per sample point and up to the factor ∣ψi(r)∣4|\psi_i(\mathbf{r})|^4, the mismatch integrated over EE is, for a unit-height Gaussian peak, g(δ)=2πσ(1−e−δ2/4σ2)g(\delta)=2\sqrt{\pi}\sigma(1-e^{-\delta^2/4\sigma^2}), which saturates at 2πσ2\sqrt{\pi}\sigma with g′(δ)=(πδ/σ)e−δ2/4σ2→0g'(\delta)=(\sqrt{\pi}\delta/\sigma)e^{-\delta^2/4\sigma^2}\to0; and, for the cumulative step, c(δ)=δerf⁡(δ2σ)+2σπ(e−δ2/4σ2−1)c(\delta)=\delta\operatorname{erf}\left(\frac{\delta}{2\sigma}\right)+\frac{2\sigma}{\sqrt{\pi}}(e^{-\delta^2/4\sigma^2}-1), with c′(δ)=erf⁡(δ2σ)→sign⁡δc'(\delta)=\operatorname{erf}\left(\frac{\delta}{2\sigma}\right)\to\operatorname{sign}\delta. As σ→0\sigma\to0, Lcum\mathcal{L}_{\mathrm{cum}} becomes the Cramér–von Mises distance between the local spectral measures ∑i∣ψi(r)∣2δεi\sum_i|\psi_i(\mathbf{r})|^2\delta_{\varepsilon_i} of H^\hat{\mathbf{H}} and H⋆\mathbf{H}^\star.

Proof. For any square-integrable ff, ∫(f(E−δ)−f(E))2dE=2∥f∥22−2(f⋆f)(δ)\int(f(E-\delta)-f(E))^2dE=2\|f\|_2^2-2(f\star f)(\delta) with f⋆ff\star f the autocorrelation. For the unit-height Gaussian f(E)=e−E2/2σ2f(E)=e^{-E^2/2\sigma^2}, ∥f∥22=σπ\|f\|_2^2=\sigma\sqrt{\pi} and (f⋆f)(δ)=σπe−δ2/4σ2(f\star f)(\delta)=\sigma\sqrt{\pi}e^{-\delta^2/4\sigma^2}, giving g(δ)g(\delta). For the step, differentiate c(δ)=∫(Φ((E−δ)/σ)−Φ(E/σ))2dEc(\delta)=\int(\Phi((E-\delta)/\sigma)-\Phi(E/\sigma))^2dE under the integral: c′(δ)=2σ∫(Φ(E/σ)−Φ((E−δ)/σ))φ((E−δ)/σ)dE=erf⁡(δ/2σ)c'(\delta)=\frac{2}{\sigma}\int(\Phi(E/\sigma)-\Phi((E-\delta)/\sigma))\varphi((E-\delta)/\sigma)dE=\operatorname{erf}(\delta/2\sigma), the last step being the Gaussian convolution identity ∫Φ(x)φ(x−a)dx\int\Phi(x)\varphi(x-a)dx evaluated in closed form; integrating from c(0)=0c(0)=0 gives the stated c(δ)c(\delta). Both closed forms agree with numerical quadrature to machine precision (Table 14). As σ→0\sigma\to0, c(δ)→∣δ∣c(\delta)\to|\delta|, the W1W_1 distance between two unit point masses, and for general spectra ∫(N[H^]−N[H⋆])2dE\int(N[\hat{\mathbf{H}}]-N[\mathbf{H}^\star])^2dE is the Cramér–von Mises statistic between the two local spectral measures.

A peak stops pulling once it no longer overlaps its target; a step does not, as long as the displaced level stays inside the energy window (Figure 12b,Figure 12c). At σ=0.02\sigma=0.02 Ha and an energy error of 0.1 Ha, the peak gradient has fallen to 1% of its maximum, while the cumulative gradient is at 99.96% of its limit. On a window [a,b][a,b], the part of the integral for c′(δ)c'(\delta) that the window omits is bounded by 2σ∫φ((x−δ)/σ)dx\frac{2}{\sigma}\int\varphi((x-\delta)/\sigma)dx over x∉[εi⋆,εi⋆]x\notin[\varepsilon_i^\star,\varepsilon_i^\star], so

∣c[a,b]′(δ)−erf⁡(δ2σ)∣≤2Φ(a−εi⋆−δσ)+2Φ(εi⋆+δ−bσ).\left|c'_{[a,b]}(\delta)-\operatorname{erf}\left(\frac{\delta}{2\sigma}\right)\right| \leq2\Phi\left(\frac{a-\varepsilon_i^\star-\delta}{\sigma}\right)+2\Phi\left(\frac{\varepsilon_i^\star+\delta-b}{\sigma}\right).

The restoring force is therefore that of the proposition, up to an exponentially small error, while the displaced level is a few σ\sigma inside the window, and it vanishes, like the peak’s, once the level has left the window. The step is also wide in EE, so the coarse training grid does not alias it: on the K=64K=64 grid, whose spacing is 1.43σ1.43\sigma, the gradient stays within 0.010.01 of erf⁡(δ/2σ)\operatorname{erf}(\delta/2\sigma) for ∣δ∣≤0.1|\delta|\leq0.1 Ha and every level at least 0.180.18 Ha inside the window (Table 14).

Error reallocation

Proposition B.7 (Error reallocation). Let M∌0\mathcal{M} \not\ni0 be the set of errors a model can reach and WW a sector weighting with large entries on Δi\Delta_i and ΔOV\Delta_{\mathrm{OV}}. If Δiso\Delta_{\mathrm{iso}} minimizes ∥Δ∥F2\lVert\Delta\rVert_F^2 over M\mathcal{M} and Δw\Delta_w minimizes ∥Δ∥F2+w∥W∘Δ∥F2\lVert\Delta\rVert_F^2 + w\lVert W\mathbin{\circ}\Delta\rVert_F^2, then ∥Δw∥F≥∥Δiso∥F\lVert\Delta_w\rVert_F \ge\lVert\Delta_{\mathrm{iso}}\rVert_F and ∥W∘Δw∥F≤∥W∘Δiso∥F\lVert W\mathbin{\circ}\Delta_w\rVert_F \le\lVert W\mathbin{\circ}\Delta_{\mathrm{iso}}\rVert_F, both strictly unless the two objectives share a minimizer.

Proof. Δw\Delta_w is feasible for the first problem, so ∥Δiso∥2≤∥Δw∥2\lVert\Delta_{\mathrm{iso}}\rVert^2 \le\lVert\Delta_w\rVert^2; Δiso\Delta_{\mathrm{iso}} is feasible for the second, so ∥Δw∥2+w∥W∘Δw∥2≤∥Δiso∥2+w∥W∘Δiso∥2\lVert\Delta_w\rVert^2 + w\lVert W\mathbin{\circ}\Delta_w\rVert^2 \le\lVert\Delta_{\mathrm{iso}}\rVert^2 + w\lVert W\mathbin{\circ}\Delta_{\mathrm{iso}}\rVert^2; combining the two gives both inequalities, and equality in either forces a common minimizer.

Every eigen-derived metric is a function of the WW-weighted sectors, while the complementary sectors ΔOO,ΔVV\Delta_{\mathrm{OO}}, \Delta_{\mathrm{VV}} hold most of the degrees of freedom. A spectral loss can therefore lower every eigen-derived metric at the price of at most a small increase in the element-wise error. The two losses also push on H^\hat{H} differently. With fE(x):=Φ((E−x)/σ)f_E(x) := \Phi((E-x)/\sigma), the Daleckii–Krein formula for the derivative of a spectral function [2] gives ∇H^Lcum=C^GC^⊤\nabla_{\hat{H}}\mathcal{L}_{\mathrm{cum}} = \hat{C}G\hat{C}^{\top} with

Gij=2∣R∣K∑r∈R∑k=1KN[H^](r,Ek)−N[H⋆](r,Ek)div⁡(r)2fij[1](Ek)ψ^i(r)ψ^j(r),G_{ij} = \frac{2}{\lvert R\rvert K}\sum_{r\in R}\sum_{k=1}^{K}\frac{N[\hat{H}](r,E_k)-N[H^\star](r,E_k)}{\operatorname{div}(r)^2}f_{ij}^{[1]}(E_k)\hat{\psi}_i(r)\hat{\psi}_j(r),

where fij[1](E)=(fE(ε^i)−fE(ε^j))/(ε^i−ε^j)f_{ij}^{[1]}(E) = (f_E(\hat{\varepsilon}_i)-f_E(\hat{\varepsilon}_j))/(\hat{\varepsilon}_i-\hat{\varepsilon}_j) for i≠ji\ne j and fii[1](E)=fE′(ε^i)f_{ii}^{[1]}(E) = f_E'(\hat{\varepsilon}_i). The divided difference is bounded by min⁡{1/(2πσ),1/∣ε^i−ε^j∣}\min\{1/(\sqrt{2\pi}\sigma),1/\lvert\hat{\varepsilon}_i-\hat{\varepsilon}_j\rvert\} and is exponentially small unless a grid energy lies between ε^i\hat{\varepsilon}_i and ε^j\hat{\varepsilon}_j or within a few σ\sigma of them. The gradient of Lcum\mathcal{L}_{\mathrm{cum}} is thus concentrated on close and frontier pairs of predicted orbitals inside the window, whereas the gradient of the mean-absolute element-wise loss, sign⁡(δH)/n2\operatorname{sign}(\delta H)/n^2, weights every entry of δH\delta H alike. Read in reverse, the proposition also explains why continuing to minimize the element-wise loss alone on a converged model can move error into the sensitive sectors (Appendix G.2).

The QH9 Datasets and Splits

Provenance and quantum-chemical settings

Every experiment in this paper uses QH9 (Yu et al., [26]), which supplies converged Kohn–Sham Hamiltonians for QM9 (Ramakrishnan et al., [17]) molecules. The reference calculations are B3LYP with the def2-SVP basis, carried out in PySCF (Sun et al., [21]); each record stores the converged Fock matrix H⋆H^{\star} in the atomic-orbital basis together with the overlap matrix SS, the nuclear charges and the geometry. Because H⋆H^{\star} is the converged operator, the label is a fixed point of the self-consistency map and not a single SCF iterate, so a model that reproduces it reproduces the entire converged electronic structure of that geometry.

Two families are released. QH9-stable holds one equilibrium geometry for each of 130,831 molecules. QH9-dynamic holds ab initio molecular-dynamics trajectories; we use the 100k release, which is 999 molecules sampled at 100 geometries each, 99,900 records in total. The dynamic family is the harder of the two: consecutive frames of a trajectory visit distorted, off-equilibrium geometries whose Hamiltonians are not close to any equilibrium structure in the stable set.

The basis is small enough to state completely. In def2-SVP a hydrogen carries five atomic orbitals (2s2s, 1p1p) and each of C, N, O and F carries fourteen (3s3s, 2p2p, 1d1d), so the matrix dimension is determined by the composition alone: n=5nH+14nheavyn = 5n_{\mathrm{H}} + 14n_{\mathrm{heavy}}. The two molecules used for the figures below check this exactly: molecule #12345 is C7H10OC_7H_{10}O with n=7⋅14+1⋅14+10⋅5=162n = 7 \cdot14 + 1 \cdot14 + 10 \cdot5 = 162, and molecule #23470 is C8H5NC_8H_5N with n=9⋅14+5⋅5=151n = 9 \cdot14 + 5 \cdot5 = 151.

Splits

The four splits used in this paper are given in Table 4. They probe different kinds of generalization, which matters for the interpretation of Table 6: stable-id is an interpolation test, stable-ood extrapolates in molecule size, dynamic-geo extrapolates to unseen geometries of molecules the model has seen, and dynamic-mol extrapolates to unseen molecules altogether. The size split is a substantial shift. Measured on a uniform 4,000-molecule sample of QH9-stable, the training side has a median of 17 atoms and n=166n = 166, while the test side has a median of 23 atoms and n=196n = 196, and the median gap moves from 6.43 to 8.10 eV: the test molecules are systematically larger, and have wider HOMO–LUMO gaps, than the training molecules.

splitselection ruletrainvaltesttests
stable-idrandom 80/10/10104,66413,08313,084interpolation
stable-ood≤20\leq20 / 21–22 / ≥23\geq23 atoms104,00117,4959,335molecule size
dynamic-geogeometries within a molecule79,9209,9909,990unseen geometry
dynamic-moldisjoint molecules79,9009,90010,100unseen molecule

Table 4. The four QH9 splits. Sizes are the exact record counts read from the released split masks. The size split thresholds are on the total atom count, hydrogens included; the random split uses a fixed permutation with seed 43.

Composition, spectra, and the size of the blind subspace

Table 5 and Figure 5 summarize the sample. Two entries matter for the rest of the paper. First, the occupied fraction is small: the median molecule has nocc=33n_{\mathrm{occ}} = 33 occupied orbitals out of n=171n = 171 basis functions, so f=nocc/n≈0.19f = n_{\mathrm{occ}}/n \approx0.19. Second, the dimension count of Proposition 3.2 is therefore severe. A symmetric residual Δ\Delta has n(n+1)/2n(n+1)/2 free parameters, of which nO(nO+1)/2+nV(nV+1)/2n_{\mathrm{O}}(n_{\mathrm{O}}+1)/2+n_{\mathrm{V}}(n_{\mathrm{V}}+1)/2 lie in the occupied–occupied and virtual–virtual blocks that the density cannot resolve. At the QH9 median that is a fraction of 0.690, and the 5–95% range across the sample is [0.661, 0.709]: roughly seven of every ten directions in which a predicted Hamiltonian can be wrong are directions in which density matching is exactly blind, and this holds for every molecule in the sample.

QH9-stable statistics: basis size, occupied orbitals, HOMO–LUMO gap, and density-blind residual sectors

Figure 5. QH9-stable statistics from a uniform 4,000-molecule sample. (a) Basis size. (b) Number of occupied orbitals. (c) Reference HOMO–LUMO gap. (d) Exact partition of the n(n+1)/2n(n+1)/2 parameters of a symmetric residual Δ\Delta into the three sectors of Proposition 3.1, at fixed n=171n = 171, as a function of the occupied fraction ff. Only the occupied–virtual slice changes the density; at the QH9 median occupied fraction it accounts for 31% of the parameters, and the remaining 69% is invisible to Lρ\mathcal{L}_{\rho}.

The spectra are also wide. The median molecule has its lowest eigenvalue at −19.1 Ha and its highest at +3.7 Ha, while the quantities we care about live in a window of order 1 Ha around the Fermi level. Nine deep core levels of molecule #23470 sit below the loss window and thirty-two levels lie inside it; the cumulative form is defined so that the levels below the window contribute a constant step and drop out of any difference (Appendix § 20).

Figure 6 shows the reference density of twelve molecules drawn at even spacing through the QH9-stable index range, on a common length scale. The sample is chemically diverse: saturated and conjugated skeletons, three- to six-membered rings, one to three heteroatoms, planar and strongly non-planar geometries, nn from 100 to 191 and reference gaps from 0.14 to 0.30 Ha. A single auxiliary loss with a single weight has to be useful across all of it.

Reference electron density of twelve QH9-stable molecules

Figure 6. Reference electron density for twelve QH9-stable molecules, on the best-fit plane through the nuclei, logarithmic colour scale, all panels on the same length scale and the same colour scale. Bonds are drawn from covalent-radius criteria; nuclei more than 0.7 a0a_0 off the plane are drawn open, so a panel with many open markers is a non-planar molecule seen in projection. Molecular formulae are in Hill notation.

The cached auxiliary quantities

The auxiliary losses need real-space and spectral quantities that the released dataset does not contain, so we precompute them once per geometry and cache them. Each cache record holds the level-0 atom-centred radial–Lebedev quadrature grid of PySCF (14,112 points for molecule #23470) with its weights, the reference density ρ⋆\rho^\star on that grid, the geometry-only core-suppression factor div, the fixed random subset R\mathcal{R} of 256 sample points, and the atomic-orbital values at those points. Caching the orbital values is what makes the loss cheap: evaluating N(r,E)N(\mathbf{r}, E) during training costs one eigendecomposition and two small matrix products, with no basis-function evaluation in the training loop.

Two checks confirm the cache is consistent with the released labels. Rebuilding the def2-SVP molecule from the stored geometry and recomputing the overlap integrals reproduces the released SS to 2.2×10−72.2 \times10^{-7}, and integrating the cached density against the cached weights gives 59.978 electrons for a molecule with Ne=60N_e = 60, the expected accuracy of a level-0 grid.

Visualizing the Reference Data

This section shows what the objects in Sections 2 and 3 actually look like. Everything plotted here is reference DFT data: no learned model enters any panel. The purpose is to make the structural claims of the sector analysis concrete, and to make the scale of the quantities the losses compare explicit.

The Hamiltonian and overlap matrices

Figure 7 shows the two matrices for molecule #12345. Three features shape the metrics reported throughout the paper. The dynamic range is large: max⁡∣Hμν⋆∣=19.1\max|H^\star_{\mu\nu}| = 19.1 Ha, carried by the core diagonal, against a median magnitude three orders of magnitude smaller. The matrices are strongly local: the median ∣Hμν⋆∣|H^\star_{\mu\nu}| is 3.0×10−23.0 \times10^{-2} Ha for basis functions on the same atom, 9.1×10−39.1 \times10^{-3} Ha for atoms 4–6 a0a_0 apart, and 1.9×10−51.9 \times10^{-5} Ha beyond 9 a0a_0. And the same-atom blocks dominate, which is why the diagonal-block MAE is roughly twice the off-diagonal-block MAE in every table in this paper; the split into “diag” and “non-diag” columns is a split by magnitude as much as by position.

Anatomy of a reference Kohn–Sham Hamiltonian

Figure 7. Anatomy of a reference Kohn–Sham Hamiltonian, molecule #12345 (C7_7H10_{10}O, n=162n = 162, nocc=30n_{\mathrm{occ}} = 30). (a) ∣Hμν⋆∣|H^\star_{\mu\nu}| and (b) ∣Sμν∣|S_{\mu\nu}| on a logarithmic colour scale; thin white rules mark heavy-atom block boundaries. Entries below 10−510^{-5} are shown at the floor of the scale. (c) Magnitude of the Hamiltonian elements against the distance between the atoms carrying the two basis functions, with same-atom pairs placed at zero and jittered. The orange curve is the binned median and the orange marker the same-atom median. The decay over six orders of magnitude is what local message-passing architectures exploit.

This is also why element-wise accuracy is a weak proxy for spectral accuracy. An error budget dominated by a few large core entries can be reduced substantially while leaving the frontier of the spectrum untouched, and the element-wise-only control of Appendix G.2 does exactly that.

Density, frontier orbitals, and core suppression

Figure 8 shows the real-space side for molecule #23470, a planar molecule chosen so that the frontier orbitals can be drawn without projection artefacts. Both frontier orbitals are of π\pi symmetry: their amplitude in the nuclear plane is 1.8×10−61.8 \times10^{-6}, numerically zero, so they are sampled 1 a01\,a_0 above it. The HOMO is the bonding π\pi combination delocalized over the ring and both substituents; the LUMO adds a nodal plane across the ring. These are the objects that the occupied–virtual sector controls, and the reason the sector matters physically: an error in ΔOV\Delta_{\mathrm{OV}} mixes the two pictures and moves both the gap and the frontier shapes.

Real-space reference quantities for molecule #23470

Figure 8. Real-space reference quantities for molecule #23470, 2,5-diethynyl-1H-pyrrole (C8_8H5_5N, n=151n = 151, nocc=30n_{\mathrm{occ}} = 30), which is exactly planar. (a) Electron density in the nuclear plane, logarithmic scale, with the molecular skeleton overlaid and the nitrogen drawn open. (b,c) HOMO and LUMO amplitudes sampled 1 a01\,a_0 above the nuclear plane and normalized by their own maxima; both vanish identically in the plane itself. (d) Upper envelope (99.5th percentile per radial bin) of ρ⋆\rho^\star and of the core-suppressed target ρ⋆/div⁡\rho^\star/\operatorname{div} against distance to the nearest nucleus; the two coincide beyond 2 a02\,a_0, where div⁡=1\operatorname{div} = 1. (e) The 256 sampled points reproduce the radial distribution of the full 14,112-point quadrature grid. (f) Relative error of the atomic-superposition density against distance to the nearest nucleus.

Panel d explains the core-suppression factor. The reference density spans eighteen orders of magnitude, from 10−1610^{-16} in the tails to 182 e a0−3182\,e\,a_0^{-3} at the nuclei, and an unweighted squared residual would be a cusp-fitting objective. Dividing by the geometry-only factor div⁡\operatorname{div} of Ushenin et al. (2025), which reaches 148 at the nuclei and decays to exactly one beyond about 2 a02\,a_0, compresses the peak by a factor of 139 and leaves the valence region untouched. Panel f records how far an uninformed start is from the converged density: the atomic-superposition guess has a whole-grid NMAE of 13%, with the error concentrated in the bonding region around 1.51.5–2 a02\,a_0 where the atomic picture has nothing to say. Closing that gap is what buys the SCF savings in Table 12.

methodSCF iterationsSCF timetotal time
pretrained0.67320.81150.8619
element-wise loss only (control)0.67350.81390.8655
density only (w=100w = 100)0.67100.81710.8682
cumulative LDOS (w=100w = 100)0.67130.80280.8505

Table 12. SCF acceleration on 50 QH9-stable-id test molecules: ratio of SCF iterations and of wall time relative to the minao initial guess (lower is better; total time includes model inference).

The spectral picture and the Fermi-level identity

Figure 9 shows the spectral side. Panel a places the energy window in context: nine core levels sit far below it, the valence occupied levels and the low virtuals lie inside, and the window width of 1.8 Ha is an order of magnitude larger than the gap it straddles. Panel b shows the cumulative LDOS at five sample points. Each curve is a staircase whose risers are the orbital weights ∣ψi(r)∣2|\psi_i(\mathbf{r})|^2 at that point, and the curves differ by orders of magnitude between points, which is why the loss is informative: a single molecule supplies 256 independent spectral fingerprints rather than one.

Panel c is a pointwise test of Proposition B.4 on real data. Evaluating N(r,μ)N(\mathbf{r}, \mu) and ρ⋆(r)/2\rho^\star(\mathbf{r})/2 independently at all 256 sample points agrees to a maximum relative deviation of 6×10−86 \times10^{-8}, which is the precision of the single-precision cached orbital values rather than of the identity. The cumulative loss therefore contains density matching as its E=μE=\mu slice, and the ablation between Lρ\mathcal{L}_\rho and Lcum\mathcal{L}_{\mathrm{cum}} in the main text compares one slice with the full profile.

Panel d shows why the extra slices help. At a fixed sample point the Gaussian-peak profile is a set of isolated bumps separated by intervals where it is numerically zero; a frontier orbital whose energy is wrong by more than a few σ\sigma falls into one of those intervals and receives no gradient, which is the saturation of Proposition B.6 and the mechanism behind the deep-orbital drift in Table 11. The staircase has no such intervals: it is monotone in EE and its plateaus still record how many states lie below, so the mismatch integrated over the window grows with the displacement instead of saturating.

lossLUMO+2LUMO+1LUMOHOMOHOMO−5HOMO−19HOMO−21HOMO−23
pretrained345538389593100540363510291049
peak LDOS228716987685105359359551136420979
cumulative LDOS10329941567690235195251367

Table 11. Per-orbital energy error on QHNet (1,000 test molecules, μ\muHa) for the peak-shaped and the cumulative loss at the same weight (w=30w = 30), window and σ\sigma. The peak-shaped loss corrects the virtual orbitals inside the window but lets the deep occupied orbitals drift; the cumulative loss improves every orbital.

Where a real residual lives

The sector analysis of § 3.1 is a statement about an arbitrary residual. It is worth asking where a physically realized residual actually sits, and the dynamic trajectories answer this without involving a model: taking two frames of the same molecule, δH=H⋆(frame k)−H⋆(frame 0)\delta H = H^\star(\mathrm{frame}\ k) - H^\star(\mathrm{frame}\ 0) is a genuine change of the converged Kohn–Sham operator caused by a geometric displacement, and Δ=C0⋆⊤δHC0⋆\Delta= C_0^{\star\top}\delta H C_0^\star is its whitened form in the eigenbasis of the reference frame. It is the kind of error a model makes when it fails to track a change of geometry, which is what the dynamic splits test. Figure 10 reports the decomposition over 640 frame pairs drawn from 214 trajectories.

Sector decomposition and amplification statistics

Figure 10. Sector content of a physically realized Hamiltonian change, and two numerical properties of the estimator. (a) ∣Δ∣|\Delta| for one pair of QH9-dynamic frames of the same molecule separated by 0.30 Å RMSD, in the eigenbasis of the reference frame; red rules mark the occupied/virtual boundary at nocc=34n_{\mathrm{occ}} = 34, and values are clipped to the colour range at both ends. (b) Median share of ∥Δ∥F2\lVert\Delta\rVert_F^2 per sector against displacement, over 640 frame pairs from 214 trajectories. The virtual–virtual share, which contains the LUMO energy error and is invisible to Lρ\mathcal{L}_{\rho}, doubles from 15% to 30% as the displacement grows. (c) Relative standard error of the per-molecule loss estimate when ∣R∣|\mathcal{R}| of the 256 cached sample points are used, over 400 draws; solid lines are a random 75 μ\muHa element-wise residual, dashed lines a 10 mHa LUMO shift, and the grey guide is the ∣R∣−1/2|\mathcal{R}|^{-1/2} rate. (d) Observed amplification ∥Δ∥F/∥δH∥F\lVert\Delta\rVert_F/\lVert\delta H\rVert_F against the bound ∥S−1∥2\lVert S^{-1}\rVert_2 of Lemma B.1, same frame pairs.

Three findings matter for the argument of this paper. First, the occupied–virtual sector dominates the magnitude: it carries a median of 70–84% of ∥Δ∥F2\lVert\Delta\rVert_F^2 while occupying only 31% of the parameters. Density matching is therefore well aimed, which is why Lρ\mathcal{L}_{\rho} alone already achieves a large share of the gap improvement in Table 1.

Second, the blind part is not negligible and it grows with the shift. At a displacement of 0.02 Å the two density-blind sectors hold 15.6% of ∥Δ∥F2\lVert\Delta\rVert_F^2; at 0.30 Å they hold 30.3%, and essentially all of the growth is in the virtual–virtual block. That block is exactly where the frontier eigenvalue errors live: by Proposition 3.1(a) the LUMO energy error is ΔLUMO,LUMO\Delta_{\mathrm{LUMO,LUMO}}, a virtual–virtual entry, which Proposition 3.2 shows the density cannot resolve at any weight. The virtual–virtual share therefore grows exactly where a density-only signal becomes less informative, under geometric shift, which is the setting of the dynamic splits in Table 6.

Third, the whitening bound of Lemma B.1 is loose by a wide margin on real data. The observed amplification ∥Δ∥F/∥δH∥F\lVert\Delta\rVert_F/\lVert\delta H\rVert_F has a median of 3.0 with a 5–95% range of [2.3, 5.2], while the bound ∥S−1∥2\lVert S^{-1}\rVert_2 has a median of 1878: the certificate overstates the true amplification by a median factor of 580. Such a loose bound cannot certify that a small element-wise error implies a small spectral error; the looseness reflects the conditioning of def2-SVP overlap matrices, whose condition number has a median of 1.0×1041.0 \times10^4 across QH9-stable. This is the quantitative version of the paper’s starting observation: element-wise accuracy and spectral accuracy are only weakly coupled, so the spectrum has to be supervised directly.

Metric Definitions

All reported errors are test-set means over molecules, and all energies are converted to μHa\mu\mathrm{Ha}. Let H^\hat{H} and H⋆H^\star be the predicted and reference Hamiltonians of a molecule with nn basis functions and noccn_{\mathrm{occ}} occupied orbitals, and let ε^\hat{\varepsilon}, C^\hat{C} and ε⋆\varepsilon^\star, C⋆C^\star solve the generalized eigenproblems H^c=ε^Sc\hat{H}c=\hat{\varepsilon}Sc and H⋆c=ε⋆ScH^\star c=\varepsilon^\star Sc with the reference overlap SS in both cases.

Element-wise errors. HH is the mean absolute error over all matrix entries, 1n2∑μν∣H^μν−Hμν⋆∣\frac{1}{n^2}\sum_{\mu\nu}\lvert\hat{H}_{\mu\nu}-H^\star_{\mu\nu}\rvert. The diag column restricts the average to entries whose two basis functions sit on the same atom, and non-diag to the remaining entries; the two subsets partition the matrix, and by the locality shown in Figure 7c the diagonal subset carries the larger entries. All three are invariant to any permutation of the basis, so they are comparable across code bases that order the atomic orbitals differently.

Orbital energies. HOMO, LUMO and gap are the absolute errors of ε^nocc\hat{\varepsilon}_{n_{\mathrm{occ}}}, ε^nocc+1\hat{\varepsilon}_{n_{\mathrm{occ}}+1} and their difference against the reference values. εO\varepsilon_O is the mean absolute error over all occupied orbitals, 1nocc∑i≤nocc∣ε^i−εi⋆∣\frac{1}{n_{\mathrm{occ}}}\sum_{i\le n_{\mathrm{occ}}}\lvert\hat{\varepsilon}_i-\varepsilon^\star_i\rvert, which is dominated by the deep levels and is therefore the column in which the deep-orbital drift of the peak-shaped loss (Table 11) is visible. The per-orbital table (Table 11) reports the same quantity resolved by orbital index relative to the frontier.

Orbital shapes. ψ\psi is the mean cosine similarity between predicted and reference occupied orbitals, 1nocc∑i≤nocc∣C^i†SCi⋆∣\frac{1}{n_{\mathrm{occ}}}\sum_{i\le n_{\mathrm{occ}}}\lvert\hat{C}_i^\dagger S C^\star_i\rvert, reported as a percentage; the overlap metric is the natural inner product for the generalized problem, and the absolute value removes the sign ambiguity of an eigenvector. Values are high in absolute terms for every model, so the informative comparison is between methods within a backbone rather than against zero.

Downstream cost. The SCF columns of Table 12 are ratios against a minao initialization on the same molecules and the same convergence threshold: iteration count, SCF wall time, and total wall time including the forward pass of the model. Ratios below one are savings.

Comparisons across backbones. Each backbone is evaluated with its own code base. All comparisons in this paper are made within a backbone, between methods that share a checkpoint, a data split, an evaluation code and a step budget.

The Losses as Implemented

This section states the auxiliary terms in the form the training code evaluates them.

Whitening and eigensolve. For each selected molecule the code assembles the full predicted Hamiltonian from the model’s diagonal and off-diagonal blocks, permutes it from the backbone’s basis ordering into the PySCF ordering, and casts to float64 on the CPU. With the Cholesky factorization S=LLTS = LL^{\mathsf{T}} it forms L−1H^L−TL^{-1}\hat{H}L^{-\mathsf{T}}, calls a symmetric eigensolver, and back-transforms with C^=L−TCw\hat{C} = L^{-\mathsf{T}}C_w, so that C^TSC^=I\hat{C}^{\mathsf{T}}S\hat{C} = I holds to roundoff. Gradients flow through the Cholesky factorization and the eigensolver. The reference spectrum ε⋆,C⋆\varepsilon^\star, C^\star is obtained by the identical code path applied to the reference blocks, which guarantees that prediction and target are compared under the same conventions and the same precision.

Sample average and core suppression. Writing R\mathcal{R} for the cached set of ∣R∣=256|\mathcal{R}| = 256 sample points and div⁡\operatorname{div} for the geometry-only suppression factor, the density term is

Lρ=1∣R∣∑r∈R(ρ^(r)−ρ⋆(r)div⁡(r))2,ρ^(r)=2∑i≤nocc∣ψ^i(r)∣2,\mathcal{L}_{\rho} = \frac{1}{|\mathcal{R}|}\sum_{\mathbf{r}\in\mathcal{R}}\left(\frac{\hat{\rho}(\mathbf{r})-\rho^\star(\mathbf{r})}{\operatorname{div}(\mathbf{r})}\right)^2,\qquad\hat{\rho}(\mathbf{r}) = 2\sum_{i\le n_{\mathrm{occ}}}|\hat{\psi}_i(\mathbf{r})|^2,

and the two energy-resolved terms replace the single residual by a mismatch averaged over the energy grid as well,

L=1∣R∣K∑r∈R∑k=1K(G^(r,Ek)−G⋆(r,Ek)div⁡(r))2,G(r,E)=∑i=1n∣ψi(r)∣2s(E−εiσ),\mathcal{L} = \frac{1}{|\mathcal{R}|K}\sum_{\mathbf{r}\in\mathcal{R}}\sum_{k=1}^{K}\left(\frac{\hat{G}(\mathbf{r},E_k)-G^\star(\mathbf{r},E_k)}{\operatorname{div}(\mathbf{r})}\right)^2,\qquad G(\mathbf{r},E) = \sum_{i=1}^{n}|\psi_i(\mathbf{r})|^2s\left(\frac{E-\varepsilon_i}{\sigma}\right),

with s=Φs=\Phi, the standard normal distribution function, for Lcum\mathcal{L}_{\mathrm{cum}} and s(x)=e−x2/2s(x)=e^{-x^2/2}, the unit-height Gaussian, for LLDOS\mathcal{L}_{\mathrm{LDOS}}. The same div⁡\operatorname{div} appears in all three terms, so the core region is suppressed identically and no term is a cusp-fitting objective. The orbital sum runs over all nn orbitals, not only those inside the window.

Window anchoring. The grid is Ek=μ⋆−1.5+(k−1)⋅1.8/(K−1)E_k=\mu^\star-1.5+(k-1)\cdot1.8/(K-1) with K=64K=64 and σ=0.02\sigma=0.02 Ha, where μ⋆=12(εnocc⋆+εnocc+1⋆)\mu^\star=\frac{1}{2}(\varepsilon^\star_{n_{\mathrm{occ}}}+\varepsilon^\star_{n_{\mathrm{occ}+1}}) is the reference Fermi level. Anchoring the window to the reference rather than to the prediction is what keeps the objective from drifting: a model cannot reduce the loss by moving its own Fermi level out of the window, and the identity of Proposition B.4 at E=μ⋆E=\mu^\star holds against a fixed target.

Batching and cost. Eight molecules per optimizer step contribute to the auxiliary term, drawn uniformly at random from the batch; the element-wise term uses the whole batch. This subsampling is the only randomness that the auxiliary term adds, and Figure 10c bounds the resulting per-molecule estimator noise. The auxiliary term has no clipping or rescaling of its own; the gradient-norm clipping of Table 15 applies to the gradient of the total loss.

SCF acceleration protocol. For Table 12 the predicted Hamiltonian of each test molecule is used to build an initial guess: we solve the generalized eigenproblem for H^\hat{H} with the reference overlap, form the density matrix from the resulting occupied orbitals, and hand it to PySCF as the starting density for an otherwise unmodified B3LYP/def2-SVP calculation with the default DIIS [16] and the default convergence threshold. The baseline is the same calculation started from minao. Reported ratios are over the same 50 molecules, and the total-time column includes the model forward pass and the eigensolve, so a ratio below one is a net saving after paying for inference.

Additional Results

All metrics on the shifted splits

Table 6 lists every metric for the shifted splits summarized in Figure 3.

Element-wise-only control

Setting. Every fine-tuning run in this paper starts from the same pretrained checkpoint and trains for 30k steps with the same optimizer, learning-rate schedule, batch size and data (Table 15); the runs differ only in the auxiliary loss. The element-wise-only run is the control that removes the auxiliary loss altogether: it continues training the pretrained model with its own element-wise loss Lelem\mathcal{L}_{\mathrm{elem}} (the mean entry-wise error between H^\hat{H} and H⋆H^{\star}, exactly the objective used in pretraining) for the same 30k steps, so it simply keeps minimizing the Hamiltonian MAE and nothing else. It isolates the effect of the additional training itself, so that any difference between the WALoss or cumulative-LDOS runs and this control is due to the auxiliary signal and not to the extra steps. Table 7 and Table 8 repeat the rows of Table 1 and Table 6 with this control added, for all three backbones on stable-id and for QHNet on all four splits.

backbonemethodHHdiagnon-diagHOMO ↓LUMO ↓gap ↓εO\varepsilon_O ↓ψ\psi ↑
QHNetpretrained77.56129.2573.68104194459632120696.28
QHNet+ element-wise loss only (control)74.44108.1171.901280149461476986895.57
QHNet+ WALoss78.04119.0374.958475458583557096.79
QHNet+ cumulative LDOS (ours)74.81109.5472.196781482202734197.91
SPHNetpretrained36.6044.7935.383451309155438099.06
SPHNet+ element-wise loss only (control)36.5544.6735.353491311155538199.05
SPHNet+ WALoss37.2846.0335.98341957125928899.17
SPHNet+ cumulative LDOS (ours)36.6444.8335.4229257278913799.25
WANetpretrained40.0751.2838.423351454168428898.98
WANet+ element-wise loss only (control)40.0851.2538.433351603182729298.95
WANet+ WALoss40.9953.2639.193281025130615799.13
WANet+ cumulative LDOS (ours)40.1951.5938.5228757379113799.22

Table 7. QH9-stable-id, all three backbones (Table 1 with the element-wise-only control added; test set, μ\muHa, ψ\psi in %). Bold marks the best downstream metric per backbone.

splitmethodHHdiagnon-diagHOMO ↓LUMO ↓gap ↓εO\varepsilon_O ↓ψ\psi ↑
stable-idpretrained77.56129.2573.68104194459632120696.28
stable-id+ element-wise loss only (control)74.44108.1171.901280149461476986895.57
stable-id+ WALoss78.04119.0374.958475458583557096.79
stable-id+ cumulative LDOS (ours)74.81109.5472.196781482202734197.91
stable-oodpretrained73.53122.3270.785614632452274095.54
stable-ood+ element-wise loss only (control)70.86109.2568.70783158011563858294.35
stable-ood+ WALoss72.70115.0070.304755511567139395.04
stable-ood+ cumulative LDOS (ours)71.10110.8168.874421420150629096.17
dynamic-geopretrained98.4161.493.69605561609084096.66
dynamic-geo+ element-wise loss only (control)95.1146.491.31503206552046877094.51
dynamic-geo+ WALoss100.0162.295.39766950744159796.06
dynamic-geo+ cumulative LDOS (ours)95.6148.591.67711517213240097.85
dynamic-molpretrained173.5420.1153.776626856862262969679.74
dynamic-mol+ element-wise loss only (control)172.1415.8152.5914582180742141134376.80
dynamic-mol+ WALoss174.5419.4154.881017405767285928079.10
dynamic-mol+ cumulative LDOS (ours)172.3415.9152.824941510514356484290.57

Table 8. QHNet on all four QH9 splits (the QHNet rows of Tables 1 and 6 with the element-wise-only control added; test sets, μ\muHa, ψ\psi in %). Bold marks the best downstream metric per split.

Finding. Continued element-wise training does what it is asked to do and no more. The element-wise error goes down or stays put, while the eigen-derived quantities do not improve and, on QHNet, deteriorate sharply. On QHNet the Hamiltonian MAE falls on every split (by 4.0%, 3.6%, 3.4% and 0.8% on stable-id, stable-ood, dynamic-geo and dynamic-mol), while the gap error rises by 53%, 246%, 236% and 19%, ψ\psi falls on every split, and on dynamic-mol the occupied-orbital error rises as well. On SPHNet every metric changes by less than 1.5% (the gap error by 0.1%); on WANet the Hamiltonian MAE is unchanged while the LUMO and gap errors rise by 10% and 8%. A matrix that is more accurate entry by entry therefore does not by itself give a better spectrum. The same decoupling has been reported independently: Li et al. [14] found that on larger molecules matrices with tiny relative errors gave unusable total energies, and Kaniselvan et al. [8] measured only a weak correlation between matrix-element errors and eigenvalue errors across the test splits of ∇2\nabla^{2}DFT. This is Proposition B.7 read in reverse: the element-wise loss does not distinguish the sectors of the error, so without a spectral signal the optimizer is free to move error into the sectors that the properties are sensitive to.

Two directions of generalization. Table 7 holds the dataset fixed (stable-id) and varies the model: the control behaves the same way on three architectures of very different accuracy, so the effect is a property of the training signal rather than of one network. Table 8 holds the model fixed (QHNet) and varies the data: the same pattern appears on the random, size-extrapolation and molecular-dynamics splits, so it is not tied to one distribution either. In both tables the cumulative LDOS loss, which shares every setting with the control except the auxiliary term, improves every eigen-derived metric while keeping the Hamiltonian MAE at most 0.3% above the pretrained value.

Weight sensitivity on QHNet

WALoss as used in this paper. Throughout the paper, WALoss means the full form of Li et al. [14]: the prediction is expressed in the basis of reference orbitals and every entry of C⋆⊤HC^⋆−diag⁡(ε⋆)C^{\star\top}H\hat{C}^{\star}-\operatorname{diag}(\varepsilon^{\star}) is penalized. On SPHNet and WANet, the loss is the mean absolute plus the mean squared entry of this matrix, with weight 0.05. On QHNet, it is the mean absolute entry, evaluated on eight molecules per batch like our own loss, and we report two weights: w=0.03w=0.03, at which the WALoss term is about as large as the element-wise term, and w=0.1w=0.1, at which it dominates; both are in Table 9 and give similar gap errors (6072 and 5835 μ\muHa).

methodHHdiagnon-diagHOMOLUMOgapEO\mathcal{E}_Oψ\psi
pretrained77.56129.2573.68104194459632120696.28
element-wise loss only (control)74.44108.1171.901280149461476986895.57
WALoss w=0.03w=0.0376.01112.5173.268235728607259396.81
WALoss w=0.1w=0.178.04119.0374.958475458583557096.79
density only w=1w=177.72126.9374.027801923237657197.44
density only w=10w=1079.01138.4474.558022500289637397.43
density only w=100w=10076.82118.7073.657191575208135697.87
cumulative LDOS w=10w=1074.88109.6672.266751693223134897.80
cumulative LDOS w=30w=3074.81109.5472.196781482202734197.91
cumulative LDOS w=100w=10074.85109.9072.216551300181133697.98

Table 9. QHNet on QH9-stable-id: all metrics against the auxiliary weight ww (test set, μ\muHa). WALoss is the full form used throughout the paper; the weight of the cumulative loss, w=30w=30, is selected on the validation split.

Figure 11 plots the density-only and cumulative rows of Table 9 and the diagonal-only rows of Table 10 against ww, with the pretrained model, the control and WALoss (w=0.1w=0.1) as horizontal references. Across all tested weights, the density-only and cumulative losses give 2–3 times lower gap error than WALoss, so the ranking does not depend on the choice of ww. The cumulative loss responds only mildly to its weight (gap error 2231, 2027 and 1811 μ\muHa at w=10w=10, 30 and 100) and its element-wise error stays essentially constant: at the selected weight, w=30w=30, its element-wise error is within 0.6% of the lowest value among all runs, that of the control, while its gap error is 7.3 times lower.

methodHHdiagnon-diagHOMOLUMOgapεO\varepsilon_{\mathit{O}}ψ\psi
pretrained77.56129.2573.68104194459632120696.28
diagonal-only WALoss w=1w=174.48108.2971.931130125041237379795.88
diagonal-only WALoss w=10w=1075.20110.0372.581090142081370197795.59
diagonal-only WALoss w=100w=10077.84117.4474.8618622828226813157393.66

Table 10. QHNet on QH9-stable-id with the diagonal-only form of WALoss at three weights (test set, μ\muHa).

Weight sensitivity plots on QHNet

Figure 11. Weight sensitivity on QHNet (entries of Table 9 and Table 10). (a) Gap error and (b) occupied-orbital energy error against the auxiliary weight ww, with the pretrained checkpoint, the element-wise-only control and WALoss (w=0.1w=0.1) as horizontal references. The diagonal-only WALoss gets worse as its weight grows; the density-only and cumulative losses improve or stay flat, and the cumulative loss is the lowest at every weight.

The diagonal-only form. Li et al. [14] also propose a second form of WALoss that keeps only the diagonal of the projected matrix, ∑iwi(ci⋆H^ci⋆−εi⋆)2\sum_i w_i(\mathbf{c}_i^\star\hat{\mathbf{H}}\mathbf{c}_i^\star-\varepsilon_i^\star)^2, with large weights wiw_i on the occupied orbitals and the LUMO. Each term is the first-order estimate of one orbital energy (Proposition 3.1a), so this form sees sector A only, and only to first order. We implemented it on QHNet (wi=1w_i=1 on the occupied orbitals and the LUMO, 0.010.01 elsewhere) to test the prediction of § 3.1 that such an objective can be lowered by rotating orbitals instead of correcting their energies. Table 10 confirms it: as the weight grows, the gap and occupied-orbital errors get monotonically worse, from 12,373 to 26,813 μ\muHa and from 797 to 1573 μ\muHa, while ψ\psi falls.

Peak-shaped LDOS variants

The peak-shaped loss LLDOS\mathcal{L}_{\mathrm{LDOS}} of Sec. 3.2 replaces the cumulative step by a unit-height Gaussian; everything else (window, σ\sigma, sample points) is shared with the cumulative loss. On SPHNet and WANet at w=150w = 150 it reaches gap errors of 805 and 813 μ\muHa (HOMO 281 and 270, LUMO 588 and 613, εO\varepsilon_O 235 and 140, ψ\psi 99.22 and 99.19%), close to the cumulative loss at w=450w = 450 (789 and 791 μ\muHa), so on these two backbones the two forms perform similarly. On QHNet, whose initial orbital-energy errors are the largest, the peak-shaped loss is unreliable: two runs with identical settings end at gap errors of 6917 and 1994 μ\muHa, and in the first run the occupied-orbital error doubles relative to the pretrained model. The three cumulative runs of Table 9, by contrast, vary smoothly with ww (gap error 2231, 2027 and 1811 μ\muHa). Per-orbital errors (Table 11) show why: the deep occupied orbitals, whose errors are largest, drift away from their targets (for HOMO−23, the 23rd orbital below the HOMO, the error grows from 1,049 to 20,979 μ\muHa), whereas the cumulative loss, with the same window, σ\sigma and weight, shows no drift and gives the best εO\varepsilon_O and ψ\psi of all variants at the same element-wise error.

The mechanism is Theorem 3.5(iv): once an orbital’s energy error exceeds a few σ\sigma, the predicted and reference peaks no longer overlap, the mismatch saturates and its gradient vanishes (Figure 12b,Figure 12c), so the orbital is no longer pulled back; the step of the cumulative form keeps a constant restoring force at any distance. This is the failure mode of overlap-based divergences between distributions with disjoint supports, whose gradients vanish while a transport (Wasserstein) distance keeps a usable one [1]; the cumulative form compares the local spectra through their distribution functions, as a transport distance does, and tends to their Cramér–von Mises distance as σ→0\sigma\to0 (Proposition B.6). The deep occupied orbitals, whose initial errors on QHNet are the largest, are the first to be released.

SCF acceleration

A predicted Hamiltonian can also initialize a conventional DFT calculation (the protocol is in Appendix § 16). On 50 stable-id test molecules, every model in Table 12 saves about a third of the iterations and 13–15% of the total time relative to the minao guess, and the models differ little (0.671–0.674 in iterations, 0.80–0.82 in SCF time). The loss improves the eigen-properties without changing what the model offers as an SCF starting point.

Training cost

With the cached orbital values, evaluating NN costs one eigendecomposition and two small matrix products per molecule; QH9 matrices are at most 226×226226 \times226. On QHNet the auxiliary term adds 0.72 s to each training step and no GPU memory, because the eigendecompositions run on the CPU (Table 13); over the 30k fine-tuning steps this amounts to about 6 hours, roughly 5% of the cost of pretraining QHNet for 300k steps. The loss is used only in training, so inference costs exactly what it costs for the backbone.

auxiliary lossseconds/stepoverheadpeak GPU memory (GB)
none (element-wise only)1.47–31.2
density only1.92+0.45 s (+30%)31.2
peak LDOS2.28+0.81 s (+55%)31.2
cumulative LDOS2.19+0.72 s (+49%)31.2

Table 13. Training cost of the auxiliary losses on QHNet (QH9-stable-id), measured on one NVIDIA L40S with the same code, data order and batch size (32). Seconds per step are averaged over steps 50–300 without validation; memory is the peak reserved CUDA memory. The eigendecompositions run on the CPU in double precision.

Numerical Verification

Every analytical statement in Sections 2 and 3 was checked numerically on reference data. Table 14 collects the checks and their outcomes. The Fermi-level identity holds to the single precision in which the orbital values are cached: the residual scales with the float32 unit round-off. The two perturbations used in Figure 12a are exact by construction: the energy-only shift moves the intended orbital energy by 2.000 mHa with an eigenvector overlap deviation at the level of double-precision round-off, and the shape rotation leaves every eigenvalue fixed to 2.4×10−132.4 \times10^{-13} Ha, so the sector test cleanly separates energy errors from shape errors.

The lower block of Table 14 checks Theorem B.5 and the statements around it on the reference Hamiltonians of three QH9-stable molecules, #18 (n=81n = 81), #12345 (n=162n = 162) and #23470 (n=151n = 151), with orbital values evaluated on the level-0 quadrature grid. For injectivity, we form the first-order response of NN to every entry of a symmetric Δ\Delta, one column per entry, normalize the columns, and report the smallest singular value relative to the largest. For recovery, we start from random symmetric errors with ∥Δ∥2=50\lVert\Delta\rVert_2 = 50 mHa on molecule #18 and minimize the mismatch in NN over the full energy range, or in ρ\rho, over Δ\Delta. Minimizing the mismatch in NN recovers every orbital energy to 0.03 mHa and shrinks the error among orbitals inside the window about 30-fold; the residual, 20–30% of the initial ∥Δ∥F\lVert\Delta\rVert_F, lies mostly in couplings between core and virtual orbitals, the directions to which NN is least sensitive. Minimizing the density mismatch instead leaves the orbital energies wrong by 10 mHa. The supplementary code contains the scripts for these checks (tests/check.py and tests/verify_theory.py).

Limitations and Future Work

The analysis is exact within its assumptions: first-order perturbation theory in the basis of reference orbitals, with non-degenerate reference energies for the statements about orbital energies and shapes and an open HOMO–LUMO gap for the statement about the density. Under these assumptions the sector picture is a change of basis rather than an approximation. What the analysis does not do is predict how a given network moves along the sectors during training, so the sector picture is best read as a diagnostic rather than a guarantee.

The loss has been tested where Hamiltonian prediction is currently benchmarked: on QH9 (B3LYP/def2-SVP), with three architectures that span the development of the field, on all four official splits, and against the strongest published physics-informed loss. Its ingredients, the predicted Hamiltonian, the overlap matrix and orbital values at a few hundred points, exist for any basis set, functional or system, so the same construction should carry over to larger molecules, other levels of theory and periodic systems, where the LDOS is resolved per kk-point and is the quantity that scanning tunnelling microscopy measures; these are the settings in which we plan to test it next. Two design choices should be noted: the energy window covers the valence and low virtual orbitals, the right choice for ground-state properties, and would be widened for excited-state targets; and the smoothing width σ\sigma was fixed rather than tuned.

The cost is one eigendecomposition per sampled molecule and training step, the same operation that reads any property from a predicted Hamiltonian; on QH9 it adds 0.72 s per step on QHNet (Appendix § 17.§ 6), and inference is untouched. At the scale of thousands of basis functions the dense solver would give way to the iterative and fragment-based solvers that DFT codes already use.

Two directions follow from the analysis itself. The cumulative LDOS can be used from the start of training rather than as a fine-tuning signal, where its non-vanishing gradients should matter most while the spectrum is still far from the reference. And the sector representation can serve as a diagnostic in its own right: computed on a validation set, it tells which part of the residual a model still carries and therefore which training signal will help, turning the choice of loss from trial and error into a measurement.

Implementation Details and Protocol

Sample points and core suppression. Each molecule’s sample set R\mathcal{R} is a fixed random subset of 256 points of the atom-centred radial–Lebedev quadrature grid of PySCF at level 0, cached once. The core-suppression factor div⁡(r)\operatorname{div}(\mathbf{r}) is the element-wise fit of Ushenin et al. (2025), which depends only on the geometry.

Eigensolve. For each of the eight molecules per step we form L−1H^L−T\mathbf{L}^{-1}\hat{\mathbf{H}}\mathbf{L}^{-\mathsf{T}} with S=LLT\mathbf{S} = \mathbf{L}\mathbf{L}^{\mathsf{T}}, call a symmetric float64 eigensolver on the CPU, and back-transform; gradients flow through the eigensolver.

Energy grids and weights. K=64K = 64 points on [μ−1.5,μ+0.3][\mu- 1.5, \mu+ 0.3] Ha with σ=0.02\sigma= 0.02 Ha for all backbones. The loss weights are listed in Table 15. The sum in Equation (7) runs over all orbitals, so orbitals below the window contribute a constant step and N(r,E)=ρ/2N(\mathbf{r}, E) = \rho/2 holds at every energy inside the gap, up to the bound of Proposition B.4.

Evaluation. Element-wise MAE is basis-permutation invariant. Eigen-derived metrics are computed from the generalized eigenproblem of H^\hat{\mathbf{H}} with the DFT overlap S\mathbf{S}. All comparisons are made within a backbone using the backbone’s own evaluator and matched settings. For SPHNet and WANet, whose evaluator runs on the GPU, TF32 matrix multiplication is disabled and the generalized eigenproblem is solved in float64, matching the CPU float64 evaluation of QHNet.

Optimization. Table 15 lists the settings. Every fine-tuning run of a given backbone starts from the same released checkpoint and differs only in the auxiliary term and its weight; the optimizer, learning rate, schedule, batch size, gradient clipping, step budget and data split are held fixed across runs.

Verification scripts. A sensitivity script perturbs the reference Hamiltonian of one molecule by an eigenvalue-only shift H⋆+dSciciT\mathbf{H}^{\star} + d\mathbf{S}\mathbf{c}_{i}\mathbf{c}_{i}^{\mathsf{T}} (which moves εi\varepsilon_i by dd and no eigenvector) and by a rotation in the HOMO/LUMO plane, and evaluates each loss (Figure 12a). A second script checks the identity of Prop. B.4, the closed forms of Prop. B.6 against numerical quadrature, and the sector sensitivities of both LDOS forms. Appendix § 18 reports the outcome of every check.

References

  1. [1]Martin Arjovsky, Soumith Chintala, and Léon Bottou. Wasserstein generative adversarial networks. In International Conference on Machine Learning (ICML), 2017.
  2. [2]Rajendra Bhatia. Matrix Analysis, volume 169 of Graduate Texts in Mathematics. Springer, New York, 1997.
  3. [3]Chandler Davis and W. M. Kahan. The rotation of eigenvectors by a perturbation. III. SIAM Journal on Numerical Analysis, 7(1):1–46, 1970.DOI
  4. [6]Pierre Hohenberg and Walter Kohn. Inhomogeneous electron gas. Physical Review, 136(3B):B864–B871, 1964.
  5. [7]Peter Bjørn Jørgensen and Arghya Bhowmik. Equivariant graph neural networks for fast electron density estimation of molecules, liquids, and solids. npj Computational Materials, 8:183, 2022.
  6. [8]Manasa Kaniselvan, Benjamin Kurt Miller, Meng Gao, Juno Nam, and Daniel S. Levine. Learning from the electronic structure of molecules across the periodic table. In International Conference on Learning Representations (ICLR), 2026.arxiv.org/abs/2510.00224
  7. [9]Tosio Kato. Perturbation Theory for Linear Operators. Classics in Mathematics. Springer, Berlin, 1995.
  8. [10]Walter Kohn. Nobel lecture: Electronic structure of matter—wave functions and density functionals. Reviews of Modern Physics, 71(5):1253–1266, 1999.DOI
  9. [11]Walter Kohn and Lu Jeu Sham. Self-consistent equations including exchange and correlation effects. Physical Review, 140(4A):A1133–A1138, 1965.DOI
  10. [12]Teddy Koker, Keegan Quigley, Eric Taw, Kevin Tibbetts, and Lin Li. Higher-order equivariant neural networks for charge density prediction in materials. npj Computational Materials, 10:161, 2024.arxiv.org/abs/2312.05388
  11. [14]Yunyang Li, Zaishuo Xia, Lin Huang, Xinran Wei, Samuel Harshe, Han Yang, Erpai Luo, Zun Wang, Jia Zhang, Chang Liu, Bin Shao, and Mark Gerstein. Enhancing the scalability and applicability of Kohn-Sham Hamiltonians for molecular systems. In International Conference on Learning Representations (ICLR), 2025.arxiv.org/abs/2502.19227
  12. [15]Erpai Luo, Xinran Wei, Lin Huang, Yunyang Li, Han Yang, Zaishuo Xia, Zun Wang, Chang Liu, Bin Shao, and Jia Zhang. Efficient and scalable density functional theory Hamiltonian prediction through adaptive sparsity. In International Conference on Machine Learning (ICML), 2025.arxiv.org/abs/2502.01171
  13. [16]Péter Pulay. Convergence acceleration of iterative sequences. The case of SCF iteration. Chemical Physics Letters, 73(2):393–398, 1980.DOI
  14. [17]Raghunathan Ramakrishnan, Pavlo O. Dṙal, Matthias Rupp, and O. Anatole von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific Data, 1:140022, 2014.
  15. [18]Kristof T. Schütt, Michael Gastegger, Alexandre Tkatchenko, Klaus-Robert Müller, and Reinhard J. Maurer. Unifying machine learning and quantum chemistry with a deep neural network for molecular wavefunctions. Nature Communications, 10:5024, 2019.
  16. [19]Annabella Selloni, Paolo Carnevali, Erio Tosatti, and C. D. Chen. Voltage-dependent scanning-tunneling microscopy of a crystal surface: Graphite. Physical Review B, 31(4):2602–2605, 1985.
  17. [20]Gilbert W. Stewart and Ji-guang Sun. Matrix Perturbation Theory. Academic Press, 1990.
  18. [21]Qiming Sun, Timothy C. Berkelbach, Nick S. Blunt, George H. Booth, Sheng Guo, Zhendong Li, Junzi Liu, James D. McClain, Elvira R. Sayfutyarova, Sandeep Sharma, Sebastian Wouters, and Garnet Kin-Lic Chan. PySCF: the Python-based simulations of chemistry framework. WIRES Computational Molecular Science, 8(1):e1340, 2018.arxiv.org/abs/1701.08223
  19. [22]Attila Szabo and Neil S. Ostlund. Modern Quantum Chemistry: Introduction to Advanced Electronic Structure Theory. Dover, Mineola, NY, 1996.
  20. [23]Jerry Tersoff and Donald R. Hamann. Theory of the scanning tunneling microscope. Physical Review B, 31(2):805–813, 1985.
  21. [24]Oliver T. Unke, Mihail Bogojeski, Michael Gastegger, Mario Geiger, Tess Smidt, and Klaus-Robert Müller. SE(3)-equivariant prediction of molecular wavefunctions and electronic densities. In Advances in Neural Information Processing Systems (NeurIPS), 2021.arxiv.org/abs/2106.02347
  22. [25]Konstantin Ushein, Kuzma Khrabrov, Artem Tsypin, Anton Ber, Egor Rumiantsev, and Artur Kadurin. LAGNet: better electron density prediction for LCAO-based data and drug-like substances. Journal of Cheminformatics, 17:65, 2025.
  23. [26]Haiyang Yu, Meng Liu, Youzhi Luo, Alex Strasser, Xiaofeng Qian, Xiaoning Qian, and Shuiwang Ji. QH9: A quantum Hamiltonian prediction benchmark for QM9 molecules. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2023a.arxiv.org/abs/2306.09549
  24. [27]Haiyang Yu, Zhao Xu, Xiaofeng Qian, Xiaoning Qian, and Shuiwang Ji. Efficient and equivariant graph networks for predicting quantum Hamiltonian. In International Conference on Machine Learning (ICML), 2023b.arxiv.org/abs/2306.04922
  25. [28]He Zhang, Chang Liu, Zun Wang, Xinran Wei, Siyuan Liu, Nanning Zheng, Bin Shao, and Tie-Yan Liu. Self-consistency training for density-functional-theory Hamiltonian prediction. In International Conference on Machine Learning (ICML), 2024.arxiv.org/abs/2403.09560

Paper details

vlnc:W_zfqunez4
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Physics and Astronomy

generative AI tools · View statement →

Looking for related papers…
Contents