Machine learning electronic structure and atomistic properties from the external potential Jigyasa Nigam, Tess Smidt, Geneviève Dusson Abstract Electronic structure calculations remain a major bottleneck in atomistic simulations and, not surprisingly, have attracted significant attention in machine learning (ML). Most existing approaches learn a direct map from molecular geometries, typically represented as graphs or encoded local environments, to molecular properties or use ML as a surrogate for electronic structure theory by targeting quantities such as Fock or density matrices expressed in an atomic orbital (AO) basis. Inspired by the Hohenberg–Kohn theorem, in this work, we propose an operator-centric framework in which the external (nuclear) potential, expressed in an AO basis, serves as the model input. From this operator, we construct hierarchical, body-ordered representations of atomic configurations that closely mirror the principles underlying several popular atom-centered descriptors. At the same time, the matrix-valued nature of the external potential provides a natural connection to equivariant message-passing neural networks. In particular, we show that successive products of the external potential provide a scalable route to equivariant message passing and enable an efficient description of long-range effects. We demonstrate that this approach can be used to model molecular properties, such as energies and dipole moments, from the external potential, or learn effective operator-to-operator maps, including mappings to the Fock matrix from which multiple molecular observables can be simultaneously derived. I Introduction Machine learning (ML) is reshaping the modeling of complex physical systems, enabling faster and more accurate simulations and new approaches to predicting quantum mechanical properties. In atomistic modeling, this progress spans the development of accurate interatomic potentials 5 ; 2 ; 4 ; 3 ; 44 ; 47 ; 13 ; 6 ; 34 , surrogate models for individual properties such as dipole moments 54 ; 49 or excitation energies 56 ; 10 , and more recently, models that learn elements of electronic structure directly. By targeting the fundamental ingredients of quantum mechanics, such as self-consistent electronic densities, effective single-particle Hamiltonians, or density matrices, ML models provide a route to unified prediction/optimization of multiple observables within a single framework, in addition to accelerating underlying electronic structure calculations. Within these workflows, ML can interact with electronic structure in multiple ways. Some approaches take ingredients such as effective one-electron Hamiltonians as inputs to predict a wide range of molecular properties 15 ; 55 ; 41 , while others bypass traditional QM calculations altogether by directly predicting electronic density coefficients 21 ; 42 ; 30 , Fock matrices 25 ; 45 ; 38 ; 53 ; 60 ; 58 ; 62 ; 24 ; 9 , density matrices 16 ; 59 ; 31 , or density functionals 29 ; 32 . Several complementary strategies integrate ML into a modular hybrid QM-ML pipeline, where electronic operators serve as intermediate optimizable representations, rather than final targets 10 ; 48 ; 51 ; 17 . Despite these conceptual differences, atomic configurations are commonly represented as graphs or point clouds across these workflows, whether the target is a molecular property, such as energy or dipole moment, or a converged electronic operator, such as a Fock or density matrix. While these approaches have been demonstrably successful, they face the challenge of learning complex nonlinear correlations between inputs and outputs, especially in the latter case, where the outputs are high-dimensional matrix representations of quantum operators on a basis, typically chosen to comprise atom-centered orbitals. Inspired by the Hohenberg–Kohn (HK) theorems 26 , which establish that the external potential uniquely determines ground-state electronic quantities and atomistic properties, we reformulate the learning problem by considering the external (nuclear attraction) potential, \hat{V}_{\text{ext}} , as the fundamental input. Rather than operating on the continuous (real-space) potential field, we consider its finite-basis AO discretization, \mathbf{V}_{\text{ext}} (which we denote as \mathbf{V} for ease of notation), and learn the map from \mathbf{V} to atomistic properties and self-consistent electronic operators. We show that in this discretized form, \mathbf{V} is structurally similar to several commonly used geometric descriptors, allowing a hierarchy of body-ordered features to be derived from it through procedures underlying the construction of atom-centered density descriptors 35 and equivariant message-passing neural networks (MPNNs) 52 ; 18 . In this work, we show that the external potential can serve as a unified input for learning both atomistic properties and electronic operators. We refer to the model types as Operator-to-Property ( Op2Prop ) and Operator-to-Operator ( Op2Op ) respectively. For the latter model type, \mathbf{V} naturally shares structural properties with the target operators, including rotational symmetry and algebraic constraints such as Hermiticity. Prior work 8 ; 46 has previously tackled a similar problem of mapping the external potential matrices to the density matrix, using kernel-based models, and a recent work 43 even examines the role of kernel choice in model accuracy and transferability. While these models achieve remarkable accuracy within small data regimes, due to their formulation as kernels of finite discretizations of the operators, they are restricted to systems of similar stoichiometry and do not explicitly enforce the algebraic relations and constraints that characterize the targets, such as rotation and permutation symmetries, Hermiticity, etc. Implicit in the approach of using \mathbf{V} as an input is the electronic resolution at which the problem is posed. In the simplest case, and as is routinely done 46 , the input \mathbf{V} is expressed in the same AO basis as the one used to compute reference properties, or to express target electronic operators. Generally, however, the AO basis used to discretize the input external potential matrix need not coincide with the basis in which the target electronic operators are expressed, and instead can be treated as a tunable model hyperparameter. In addition to decoupling the resolutions of the input and output bases representations, there is flexibility in how the model is supervised. When tasked with predicting electronic operators (i.e. in the Op2Op case), the model can either optimize its matrix elements in a specified basis, or infer an effective operator that reproduces a prescribed set of reference observables, potentially obtained from a higher level of theory or more accurate, larger basis-set calculations 56 ; 10 ; 51 . In the latter case (which we term as effective Op2Op ), the model is constrained only through physical quantities, such as eigenvalues obtained by solving the generalized eigenvalue problem, or expectation values of selected operators, rather than the reference matrix elements themselves. In the following, we first develop the theoretical framework, showing how the matrix representation of the external potential connects to popular geometric descriptors and how matrix operations can implement equivariant message-passing. We then present examples illustrating that \mathbf{V} matches or exceeds the performance of established descriptors for property prediction and can overcome their limitation in describing long-range interactions. Finally, we use \mathbf{V} to learn electronic operators (Fock and density matrices), and examine how basis resolution, model architecture, and supervision strategies influence learnability. Figure 1 : Schematic overview of different models considered in this work. For each molecular configuration, A , we aim to predict target properties whose reference values are computed using a quantum mechanical (QM) calculation (top red) in an AO basis set \mathcal{B}_{\mathbf{y}} . This calculation produces underlying Fock and density matrices (collectively denoted as \mathbf{M} ), as well as \mathbf{V} in the top row. \mathbf{V} can serve as a physically meaningful, naturally symmetry-adapted representation from which target properties may be predicted Op2Prop (green). Unlike these property-specific models, Op2Op models (dark blue) can map \mathbf{V} to \mathbf{M} in the target \mathcal{B}_{\mathbf{y}} basis, from which properties of interest may be derived through simple analytic operations. Instead of restricting \mathbf{V} to the basis of reference calculation, we treat it as a tunable hyperparameter and instead use as input, \mathbf{V} computed in a richer basis set \mathcal{B}_{\mathbf{V}} (red dashed). Similarly, instead of supervising the AO matrices underlying the calculation directly, one can predict a compressed effective representation of the operator on a (usually smaller) basis set \mathcal{B}_{\mathbf{M}} , which learns an effective projection of the QM calculation on a reduced basis (cyan). II Theory and methods For a given atomic configuration, A , specified by the positions \{\mathbf{R}_{i}\} and chemical identities of its atoms \{Z_{i}\} , the nuclear attraction potential operator, \hat{V} is defined as, \hat{V}(A)=\sum_{a\in A}\frac{-Z_{a}}{\left|\mathbf{r}-\mathbf{R}_{a}\right|}, (1) where a enumerates the atoms in the configuration with corresponding atomic number Z_{a} . Throughout this work, we restrict our attention to this special case of the external Coulomb potential. The associated matrix representation of the operator when projected in an atomic orbital (AO) basis will be denoted by \mathbf{V} . In the following, we consider AOs, usually expressed as a product of radial ( n ) and angular functions where real-valued spherical harmonics ( lm ) are used for the latter, and denote the triplet indices (nlm) as \alpha . When AOs \chi_{\alpha},\chi_{\beta} are centered on atoms i , j of structure A , the corresponding matrix element of \mathbf{V} is denoted by \mathbf{V}^{\alpha\beta}(A_{ij}) , and evaluates to \mathbf{V}^{\alpha\beta}(A_{ij})=\sum_{a\in A}-Z_{a}\int\frac{\chi_{\alpha}^{*}(\mathbf{r}-\mathbf{R}_{i})\chi_{\beta}(\mathbf{r}-\mathbf{R}_{j})}{\left|\mathbf{r}-\mathbf{R}_{a}\right|}d\mathbf{r}. (2) Note that these matrix elements correspond to the projection of \hat{V} for a structure A on basis functions \alpha and \beta respectively centered on atoms i and j , that is \mathbf{V}^{(i\alpha)(j\beta)}(A) , which, for ease of readability, we have denoted by \mathbf{V}^{\alpha\beta}(A_{ij}) . For a fixed particle number and a nondegenerate ground state, the first HK theorem (HK1) guarantees that the external potential uniquely determines the many-body ground state wavefunction, and therefore all ground state observables, even though this dependence is not known in closed form. Although the theorem is commonly expressed as a one-to-one correspondence between \hat{V} and the electron density, it implies that both ground state properties and one-particle operators, including the Fock matrix and the one-particle reduced density matrix, can be expressed as functionals of the external potential. In the following, we use the matrix elements of \hat{V} , ( 2 ) as inputs to two complementary modeling strategies that share the same symmetry-adapted external potential inputs but differ in targets, Op2Prop models (Fig. 1 , green) that predict molecular properties and Op2Op models (Fig. 1 , blue) that learn effective single-particle matrices (Fock or density matrix), treating the input and output basis resolutions as tunable hyperparameters. Note that HK1 need not be limited to the nuclear potential we consider in Eq. ( 1 ), but also apply to scalar potentials that are not purely nuclear contributions and may account for additional fields or perturbations. On the other hand, the second HK theorem (HK2) establishes a variational principle for the ground state energy as a functional of the density. While we do not explicitly construct such an energy functional, we invoke its spirit in effective Op2Op models (Fig. 1 , cyan), which infer an effective density matrix or Fock matrix that are trained to reproduce reference observables from the underlying QM calculation. Local descriptors from \mathbf{V} : Although the nuclear potential is a global operator, and its matrix representation resembles a global atomic descriptor (such as Coulomb matrices), in a localized atomic orbital basis, this representation is sparse and dominated by contributions from spatially local nuclear interactions. Matrix elements decay rapidly with the separation of the atoms on which basis functions are centered (more details in Supplementary Material (SM) section ). In addition to the sparsity inherited as a consequence of the spatial decay of orbitals, a stricter notion of locality can be explicitly imposed, for example, by setting matrix elements associated with orbital pairs separated by distances r_{ij}>r_{\text{cut}} to zero if desired. The choice of AO basis set controls the radial and angular resolution, closely paralleling the construction and tunability of local geometric descriptors such as atom-centered density correlations 57 ; 37 , the Atomic Cluster Expansion (ACE) 13 ; 14 , the Smooth Overlap of Atomic Positions (SOAP) 1 . Even when targeting specific AO representations of electronic operators or properties resulting from reference calculations performed in another basis, the basis used for \mathbf{V} can be chosen independently and treated as a tunable hyperparameter, akin to how the radial and angular resolutions of atom-centered geometric features are selected in conventional point cloud ML models. Using a larger basis for the input operator provides additional spatial resolution of the potential, and therefore more expressive features for learning, while remaining computationally inexpensive since \mathbf{V} requires only non-self-consistent one-electron integral evaluations of Eq. 2 . At the same time, the matrix elements of \mathbf{V} can be understood through the lens of these body-ordered descriptors. Each matrix element \mathbf{V}^{\alpha\beta}(A_{ij}) encodes one-neighbor correlations around the atom pair (i,j) , corresponding to a three-body interaction (see SM Section for a detailed derivation). Euclidean symmetries of AO representations: A single-particle operator expressed in an atom-centered basis \mathbf{M} transforms under rotations \hat{R} of the associated structure as, \mathbf{M}(\hat{R}A)=D(\hat{R})\mathbf{M}(A)D(\hat{R})^{\dagger}, (3) where D(\hat{R}) , the Wigner-D matrix, is the appropriate representation of the rotation within the angular-momentum subspace of the atomic-orbital basis. In particular, the matrix elements associated with each pair of orbitals centered on atoms i and j in structure A , characterized by radial quantum numbers ( n_{i} , n_{j} ), angular momenta (l_{i},l_{j}) , and magnetic quantum numbers \{-l_{i}\leq m_{i}\leq l_{i},-l_{j}\leq m_{j}\leq l_{j}\} , \mathbf{M}^{(Z_{i}n_{i}l_{i})(Z_{j}n_{j}l_{j})}_{m_{i},m_{j}}(A_{ij})\equiv\bra*{i \,n_i l_i m_i }\hat{M}\ket*{ j \,n_j l_j m_j}, transform according to the tensor product of Wigner-D matrices, \bra*{i \nlm_i }\hat{R}\hat{M}\hat{R}^{\dagger}\ket*{ j n_j l_j m_j}=\sum_{m_{i}^{\prime}=-l_{i}}^{l_{i}}\sum_{m_{j}^{\prime}=-l_{j}}^{l_{j}}D^{(l_{i})}_{m_{i}m_{i}^{\prime}}(\hat{R})\\ \times\bra*{i nl m_i' }\hat{R}\hat{M}\hat{R}^{\dagger}\ket*{ j n_j l_j m_j'}D^{\dagger(l_{j})}_{m_{j}^{\prime}m_{j}}(\hat{R}). (4) This transformation holds when \mathbf{M} corresponds to the external potential \mathbf{V} , as well as when it represents the electronic Hamiltonian \mathbf{H} or the density matrix \mathbf{P} . We refer to these elements using the shorthand \mathbf{M}^{\mathbf{b}}_{m_{i}m_{j}}(A_{ij}) where \mathbf{b}=(Z_{i}n_{i}l_{i},Z_{j}n_{j}l_{j}) labels the chemical species of i and j and the radial and angular quantum numbers. Note that we use the chemical species to label the orbitals and distinguish orbitals with the same (n,l) quantum numbers on different atom types, which are not equivalent. For example, a 1s orbital on carbon is functionally distinct from a 1s orbital on hydrogen, despite sharing the same quantum numbers. Following Ref. 38 , we transform the product in Eq. ( 4 ) to irreducible representations (irreps) of rotations indexed by \lambda\in\{|l_{i}-l_{j}|,|l_{i}-l_{j}|+1,\ldots,l_{i}+l_{j}\},\sigma\in\{-1,1\},\mu\in\{-\lambda,\lambda+1,\ldots,\lambda\} , \displaystyle\mathbf{M}^{\mathbf{b},\lambda\sigma}_{\mu}(A_{ij})=\sum_{m_{i}m_{j}}\innerproduct*{l_i m_i; l_j m_j}{\glm}\mathbf{M}^{\mathbf{b}}_{m_{i}m_{j}}(A_{ij}) \displaystyle\times\delta_{\sigma,(-1)^{l_{i}+l_{j}+\lambda}}, (5) where \innerproduct*{\lm; l'm'}{\glm} are the Clebsch-Gordan coefficients, \sigma denotes inversion parity, i.e., whether the resulting irrep behaves as a polar or pseudotensor under spatial inversion (improper rotations). Furthermore, the matrix elements transform equivariantly under permutations \bm{\pi} of atom-labels of identical chemical species, as elements corresponding to \mathbf{b}=(Z_{i}n_{i}l_{i},Z_{j}n_{j}l_{j}) , \mathbf{M}^{\mathbf{b}}_{m_{i}m_{j}}(A_{ij}) are, in general, distinct from \mathbf{M}^{\mathbf{b}}_{m_{i}m_{j}}(A_{ji}) (note the exchange of atom labels, while keeping the orbitals fixed) since they depend on the local environments associated with the ordered atom pair. A permutation exchanges the atomic indices i and j while keeping the associated orbital channels \left(Z_{i}n_{i}l_{i}\right) and \left(Z_{j}n_{j}l_{j}\right) fixed, but because such relabelings leave the underlying physical structure unchanged, the corresponding matrix elements must be related by symmetry. We enforce this consistency by constructing symmetric and antisymmetric combinations of Eq. ( II ) that transform equivariantly under permutations 38 . \mathbf{M}^{\mathbf{b},\lambda\sigma,\eta_{\bm{\pi}}}_{\mu}(A_{ij})=\mathbf{M}^{\mathbf{b},\lambda\sigma}_{\mu}\left(A_{ij}\right)+\eta_{\bm{\pi}}\mathbf{M}^{\mathbf{b},\lambda\sigma}_{\mu}(A_{\bm{\pi}(i)\bm{\pi}(j)}) where \eta_{\bm{\pi}}=\pm 1 labels the symmetric and antisymmetric permutation irreps. Algebraic/physical constraints of targets: For Op2Prop models, where model targets are molecular properties y , such as energies and dipole moments, we consider only symmetry-based constraints. For example, energies are rotational invariants (scalar, \lambda=0,\sigma=1 ), while dipole moments transform as polar vectors ( \lambda=1,\sigma=1 ). These symmetries are preserved when the properties are predicted from the corresponding irrep blocks of \mathbf{V} , as explained in the next section. On the other hand, when targeting electronic operators, in addition to basis-dependent rotational symmetries of matrix representations, we must also account for algebraic constraints. For instance, all the electronic matrices considered in this work (including \mathbf{V} ) are Hermitian (even symmetric, as the basis functions are real-valued), that is, \mathbf{M}=\mathbf{M}^{\top} , or in terms of elements \mathbf{M}^{\mathbf{b}}_{m_{i}m_{j}}(A_{ij})=\mathbf{M}^{(Z_{j}n_{j}l_{j},Z_{i}n_{i}l_{i})}_{m_{j}m_{i}}(A_{ji}) (note the exchange of both atom labels and orbitals, unlike in the previous subsection). For the electronic Hamiltonian \mathbf{H} , Hermiticity ensures a real eigenvalue spectrum obtained through the generalized eigenvalue equation, \mathbf{H}\mathbf{C}=\mathbf{S}\mathbf{C}\operatorname{diag}\bm{\varepsilon}, (6) where each column of \mathbf{C} specifies the AO basis coefficients for the eigenvectors (molecular orbitals or MO), \bm{\varepsilon} is the vector of corresponding eigenvalues (MO energies), and \mathbf{S} is the matrix describing the overlap of AOs, which are typically non-orthogonal. The eigenvectors \mathbf{C} , on the other hand, satisfy the condition \mathbf{C}^{\dagger}\mathbf{S}\mathbf{C}=\bm{1} . In fact, these quantities underpin all other electronic observables. The single-particle density matrix is first constructed as, \mathbf{P}=\mathbf{C}\operatorname{diag}(\mathbf{f})\mathbf{C}^{\dagger} (7) with \mathbf{f}\in\{0,1\} denoting the occupation of each MO. As a consequence of the orthonormality of the MOs, the density matrix satisfies the idempotency relation \mathbf{P}\mathbf{S}\mathbf{P}=2\mathbf{P} (see SM Section for the derivation) and lies on a Grassmannian manifold. Observables corresponding to an operator \hat{O} can then be computed as \Tr(\mbf{P} \mbf{O}) . Within mean-field theories, the electronic structure problem reduces to solving Eq. ( 6 ) self-consistently, as \mathbf{H} depends on \mathbf{C} . In this work, we focus on predicting the converged solutions ( \mathbf{H} or \mathbf{P} ), thereby bypassing the iterative self-consistent procedure that constitutes the main computational cost of conventional mean-field methods. This imposes the additional algebraic constraint that the commutator [\mathbf{H},\mathbf{P}] be identically zero, which is automatically satisfied when \mathbf{P} is constructed following Eq. ( 7 ). Having described the structure and symmetries of molecular properties and converged mean-field operators, we now turn to the problem of learning these quantities from data. We use y to denote the target when it is a property output from a converged mean-field calculation, and \mathbf{M} to denote the target when it is a converged single-particle matrix (corresponding to either the electronic Hamiltonian \mathbf{H} or the density matrix \mathbf{P} ). To clearly separate chemical elements, AO basis discretization and the O(3) symmetry indices associated with the inputs and outputs, we rewrite \mathbf{M}^{\mathbf{b},\lambda\sigma}_{\mu}(A_{ij}) as \mathbf{M}^{\bm{\gamma}}_{q,\mu}(A_{ij}) where \bm{\gamma} denotes the tuple of chemical species of the pair and the symmetry ( Z_{i}Z_{j},\lambda\sigma ) and q indexes the basis labels (n_{i}l_{i}n_{j}l_{j}) that take on the role of features, as we will be explained below. II.1 Linear models Although the HK theorems establish the ground-state density as a functional of the external potential, and this mapping may, in general, be highly nonlinear, we begin by considering the simplest class of models. For Op2Op models, as both the input \mathbf{V} and output matrices ( \mathbf{H} or \mathbf{P} ) can be decomposed into irreducible representations (irrep) of O(3) as described above, we consider linear models that leverage the shared structure of the inputs and outputs, and map each irrep of the input to the corresponding irrep of the output (Fig. 2 ). Consider, for example, an \text{H}{\vphantom{\text{X}}}_{\smash[t]{\text{2}}}\text{O} molecule, for which we represent \mathbf{V} in the def2-SVP basis and the target \mathbf{H} in the smaller STO-3G basis. The invariant matrix elements associated with orbitals on the oxygen atom, \bm{\gamma}=(\text{8},\text{8},0,1) in \mathbf{H} receive contributions from pairs of orbitals q\in\{(1s,1s),(1s,2s),(2s,2s),(2p,2p)\} . In contrast, the same block ( \bm{\gamma}=(\text{8},\text{8},0,1) in the input external potential is significantly richer as basis pairs corresponding to higher angular and radial quantum numbers, such as (3p,3p),(3d,3d) contribute to this block, in addition to those present in the STO-3G basis. The linear ansatz takes the form, \displaystyle\mathbf{M}^{\bm{\gamma}}_{q,\mu}(A_{ij})=\mathbf{w}^{(\bm{\gamma})}_{qq^{\prime}}\mathbf{V}^{\bm{\gamma}}_{q^{\prime},\mu}(A_{ij}), (8) where \mathbf{w}^{(\bm{\gamma})}_{qq^{\prime}} are block specific weights, indicated by the superscript {(\bm{\gamma})} , that act independently within each species and symmetry block. As illustrated in the example above, the basis used to represent \mathbf{V} is usually larger than that used for the target operator, so the dimensionality of the input feature q^{\prime} is generally larger than the output index q . While these models perfectly preserve the symmetry constraints by construction, they remain limited in expressivity as the linear dependence on blocks of \mathbf{V} does not capture the global, nonlinear interactions between different species channels or between different atom-pairs, inherent in the self-consistent dependence of \mathbf{M} on \mathbf{V} . Nevertheless, linear models remain a valuable conceptual starting point, as they delineate the roles of symmetry, basis resolution, and block structure transparently. In what follows, we build on this construction by incorporating many-body interactions, message passing, and nonlinearities. Figure 2 : Decomposition of AO matrix representations of atomistic properties and electronic operators into symmetry-adapted blocks. For Op2Op models, both the input external potential \mathbf{V} and output matrices \mathbf{M} are decomposed into irreducible representations (irreps) of O(3) , indexed by angular momentum \lambda and parity \sigma . To ease visualization, we represent \mathbf{V} and \mathbf{M} on the same basis, although this is not necessary for the models presented in this work. For each species pair, the multiplicity of each irrep depends on the orbital pairs that can contribute to the symmetry block, as determined by angular momentum coupling, while the number of such elements in each block is set by the distinct atom pairs ij corresponding to the species. For example, for the species pair (O,H), contributions arise from the atom pairs (O, \text{H}_{1} ) and (O, \text{H}_{2} ), while for the species pair (H,H), ij corresponds to atom pairs ( \text{H}_{1} , \text{H}_{1} ), ( \text{H}_{1} , \text{H}_{2} ) and ( \text{H}_{2} , \text{H}_{2} ). A linear model (blue) maps each irrep block of the input to the corresponding irrep block of the output, with block-specific weights. For Op2Prop models (green), symmetry-adapted blocks of the external potential are summed over all atom pairs and species blocks are concatenated to produce structure-level features for property prediction. Similarly, in Op2Prop models, each symmetry irrep of target property \mathbf{y}^{\lambda\sigma}_{\mu}(A) can be predicted from the corresponding symmetry-adapted block of \mathbf{V} . For a linear model, this takes the form \displaystyle\mathbf{y}^{\lambda\sigma}_{\mu}(A) \displaystyle=\sum_{\bm{\gamma}}\sum_{ij\in A}\mathbf{w}^{(\bm{\gamma})}_{q}\mathbf{V}^{\bm{\gamma}}_{q,\mu}(A_{ij}) (9) \displaystyle=\sum_{\bm{\gamma}}\mathbf{w}^{(\bm{\gamma})}_{q}\left(\sum_{ij\in A}\mathbf{V}^{\bm{\gamma}}_{q,\mu}(A_{ij})\right), (10) where the sum over \bm{\gamma} is restricted to the blocks of \mathbf{V} corresponding to the target irrep (\lambda\sigma) , A_{ij} runs over all atom pairs in the molecule, q indexes the features arising from AO basis used to represent \mathbf{V} , and \mathbf{w}^{(\bm{\gamma})}_{q} are learnable weights specific to each block. However, as these models are property-specific, they can not be used to derive other observables of interest. Noting that Op2Prop models can be viewed as a special case of Op2Op models by restricting the output irreps and aggregating over appropriate input blocks, we only present equations for Op2Op models in what follows. II.2 Matrix products and message-passing To approximate the nonlinear dependence of the target on the external potential, we consider truncated polynomial expansions of the form, \mathbf{M}=f(\mathbf{V})\approx w_{1}\mathbf{V}+w_{2}\mathbf{V}^{2}+\ldots=\sum_{\kappa=1}^{\kappa_{\text{max}}}w_{\kappa}\mathbf{V}^{\kappa} (11) where the coefficients are tunable parameters, as is the expansion order \kappa_{\text{max}} , which controls the expressivity of the model. The motivation for this choice is twofold. First, the powers of \mathbf{V} systematically introduce cross-block couplings, since matrix multiplication naturally mixes elements corresponding to different orbital and atom labels, absent in purely linear models ( 8 ). Second, matrix products provide a minimal symmetry-preserving basis to describe these nonlinear effects. Although it may seem counterintuitive, products of matrices in the AO basis transform as equivariants themselves. For instance, consider the transformation of the product of matrices on the same AO basis, \mathbf{M}^{2}=\mathbf{M}\mathbf{M} . Using Eq. ( 3 ), we obtain D(\hat{R})\mathbf{M}D(\hat{R})^{\dagger}D(\hat{R})\mathbf{M}D(\hat{R})^{\dagger}=D(\hat{R}){\mathbf{M}^{2}}D(\hat{R})^{\dagger}. (12) Therefore, \mathbf{M}^{\kappa} undergoes the same transformation as \mathbf{M} and thus can be similarly decomposed into irreducible blocks. As before, the input \mathbf{V} and \mathbf{M} do not need to share the same AO basis, since in practice we do not map matrices to matrices, but rather linearly map blocks of \mathbf{M} to the symmetry-adapted blocks obtained from each power of the \mathbf{V} , as \displaystyle\mathbf{M}^{\bm{\gamma}}_{q,\mu}(A_{ij}) \displaystyle=\sum_{\kappa=1}^{\kappa_{\text{max}}}\mathbf{w}^{(\bm{\gamma},\kappa)}_{qq^{\prime}}(\mathbf{V}^{\kappa})^{\bm{\gamma}}_{q^{\prime}\mu}(A_{ij}), (13) which is also equivalent to a single linear map on the concatenation of all the blocks \displaystyle\mathbf{M}^{\bm{\gamma}}_{q,\mu}(A_{ij}) \displaystyle=\mathbf{w}^{(\bm{\gamma},\kappa)}_{qq^{\prime}}\left(\mathbf{V}^{\bm{\gamma}}\oplus(\mathbf{V}^{2})^{\bm{\gamma}}\oplus\ldots\right)_{q^{\prime}\mu}(A_{ij}). (14) It must, however, be noted that repeated matrix multiplication can lead to more delocalized representations of the input as information is propagated across multiple orbitals and atomic centers (Fig. ) without increasing its dimensionality. This delocalization arises naturally as matrix products implement message passing 27 with each matrix multiplication introducing a sum over intermediate atomic and orbital indices, thereby propagating information through successive symmetry-adapted matrix blocks. For non-equivariant message passing in graph-based models, such as graph-convolutional networks 28 , it is already well established that repeated multiplications of the adjacency matrix propagate information between connected nodes. Within our framework, \mathbf{V} plays an analogous role to the adjacency matrix, but with the distinction that it is rotationally equivariant, and thus enables symmetry-aware message passing. Successive matrix powers can be similarly understood as correlations mediated through a chain of atoms over which information is contracted, directly mimicking multi-step message passing on an atomic graph. See SM Sections , for a detailed derivation of equivariance of matrix products and their link to message-passing. II.3 Hierarchical correlation features from AO basis matrices An alternative route to increase the expressive capacity of the input \mathbf{V} is to generalize matrix products and construct higher-order features using tensor products of symmetry-adapted blocks, analogous to the hierarchical body-order expansions used in atom-centered descriptors or equivariant message-passing neural networks. Note that the symmetrization of matrix elements from Eq. ( 4 ), which correspond to coefficients of an operator expansion in a finite, discrete AO basis, to Eq. ( II ), which represent the symmetry-adapted coefficients of the same expansion, closely parallels the symmetrization of atom-density expansions 36 ; 14 ; 13 widely used in atomistic models. We can similarly construct higher-order tensor products to encode many-body correlations at the level of operators. For instance, second-order correlations of \mathbf{V} can be constructed as, (\mathbf{V}^{\otimes 2})^{\bm{\Gamma}}_{q_{1}q_{2},M}=\sum_{\mu_{1}\mu_{2}}\innerproduct*{\lambda_1 \mu_1; \lambda_2 \mu_2}{\Lambda M}\mathbf{V}_{q_{1},\mu_{1}}^{\bm{\gamma_{1}}}\mathbf{V}_{q_{2},\mu_{2}}^{\bm{\gamma_{2}}}, (15) where the label \bm{\Gamma}=(Z_{1}Z_{2}Z_{3}Z_{4},\Lambda S) specifies the species, total angular momentum ( \Lambda ) and parity ( S ) of the block resulting from the combination of blocks of the external potential matrix corresponding to \bm{\gamma}_{1}=(Z_{1}Z_{2},\lambda_{1}\sigma_{1}) and \bm{\gamma}_{2}=(Z_{3}Z_{4},\lambda_{2}\sigma_{2}) , that is \Lambda\in\{|\lambda_{1}-\lambda_{2}|,\ldots,\lambda_{1}+\lambda_{2}\},S\in\{-1,1\},M\in\{-\Lambda,\Lambda+1,\ldots,\Lambda\} . Formally, this corresponds to computing the tensor product \mathbf{V}\otimes\mathbf{V} , thus expanding both along the AO index dimension, as well as the atom indices, as can be seen by expanding the matrix elements on the right-hand side of Eq. ( 15 ) to include atomic indices \mathbf{V}_{q_{1},\mu_{1}}^{\bm{\gamma_{1}}}(A_{ij}) and \mathbf{V}_{q_{2},\mu_{2}}^{\bm{\gamma_{2}}}(A_{i^{\prime}j^{\prime}}) . Consequently, the features resulting from ( 15 ) depend on four atomic centers iji^{\prime}j^{\prime} , in contrast to the two-center nature of the original matrix elements, and may be used to approximate two-electron operators. Since the targets considered in this work are one-body operators, we restrict the tensor product to the orbital degrees of freedom, and fix the atomic indices to preserve the two-center structure of the resulting representation, i.e. only consider the contributions from \mathbf{V}_{q_{1},\mu_{1}}^{(Z_{1}Z_{2}\lambda_{1}\sigma_{1})}(A_{ij}) and \mathbf{V}_{q_{2},\mu_{2}}^{(Z_{1}Z_{2}\lambda_{2}\sigma_{2})}(A_{ij}) . As with higher-order tensor products of atomic densities, a hierarchy of such operator tensor products may be systematically constructed to form a controllable and systematically improvable set of inputs to model functions of \mathbf{V} . Matrix products correspond to a specific contraction within the full tensor product space, which is obtained by rearranging the coupling in Eq. ( 15 ). The tensor product in Eq. ( 15 ) involves the coupling of the two input irreps \lambda_{1} and \lambda_{2} to form the total angular momentum \Lambda , through \innerproduct*{\lambda_1 \mu_1; \lambda_2 \mu_2}{\Lambda M} . In contrast, rather than first forming equivariant blocks and subsequently coupling them, the matrix product first computes rotational invariants associated with the intermediate atomic center and then combines them with the equivariant orbitals on the pair of atoms indexing the matrix element (derivation in the SM Sec. ). II.4 Global nonlinear scaling To introduce simple nonlinearities, we apply nonlinear activations to the invariants obtained from all species and orbital pairs. Specifically, we apply a nonlinear function, such as a neural network, to the set of all invariants \left\{\mathbf{V}_{q,0}^{\bm{\gamma^{\prime}}}\right\} , where \bm{\gamma}^{\prime} enumerates all blocks with \lambda=0 and \sigma=1 . For each equivariant block with \lambda>0 , we multiply the output of this nonlinear function with the corresponding linear equivariant prediction, allowing the invariant features to gate (scale) the equivariant components as, \mathbf{M}^{\bm{\gamma}}_{q,\mu}(A_{ij})=g^{(\bm{\gamma})}\left(\left\{\mathbf{V}^{\bm{\gamma^{\prime}}}_{q^{\prime},0}\right\}\right)\mathbf{w}^{(\bm{\gamma})}_{qq^{\prime}}\mathbf{V}^{\bm{\gamma}}_{q^{\prime},\mu}(A_{ij}), (16) where g is a nonlinear function implemented through a multilayer perceptron (MLP) and can depend on the species output block type {\bm{\gamma}} . Although it is possible to construct more sophisticated nonlinear coupling schemes, we only demonstrate this simple gating approach and do not particularly optimize the architecture for simplicity. II.5 Optimizing effective operators Finally, we consider the effective Op2Op models that do not directly optimize the matrix elements of the target operator in the basis of reference calculations ( \mathcal{B}_{\mathbf{y}} ), but instead learns an effective representation (also termed intermediate, shadow, or down-folded representations in other contexts) in basis \mathcal{B}_{\mathbf{M}} , from which target observables are recovered. Refs. 10 ; 48 ; 51 , for instance, map symmetry-adapted geometric inputs to a latent effective Hamiltonian \mathbf{H} whose eigenspectrum or derived quantities are optimized to reproduce those computed in a larger basis set or at a higher level of theory. Within the effective Op2Op framework, these approaches can be interpreted in the spirit of the Hohenberg–Kohn theorems previously discussed. Although HK1 guarantees that the observables are uniquely determined functionals of \mathbf{V} , the matrix representation of the operators that reproduce these observables need not be unique. Effective operators exploit this non-uniqueness by learning matrix representations that reproduce a desired subset of desired observables (e.g., eigenvalues, expectation values of operators) without necessarily corresponding to the density or matching the reference operator. Here, this learnt functional (representation of \mathbf{H} or \mathbf{P} ) is data-driven and not constrained to arise from a universal density functional or from an underlying variational minimization. We first obtain an optimal projection of the target operator by downfolding \mathbf{M} from the large basis \mathcal{B}_{\mathbf{y}} into a minimal effective basis \mathcal{B}_{\mathbf{M}} , following the analytic projection derived in SM Section . This effective representation reproduces a subset of target observables of the original matrix, and the model is first trained to recover this downfolded representation. Training then proceeds by minimizing a loss defined over a set of target properties \mathcal{Y} , such as eigenvalues or other response functions, \mathcal{L}=\sum_{\mathbf{y}\in\mathcal{Y}}\omega_{\mathbf{y}}\left\|\tilde{\mathbf{y}}\left[\mathbf{\tilde{M}}\right]-\mathbf{y}\right\|^{2}, (17) where \mathbf{y} is the reference value of the target property, \tilde{\mathbf{M}} is the effective matrix output by the model, \tilde{\mathbf{y}} is the property evaluated from the predicted matrix, and \omega_{\mathbf{y}} controls the relative contribution of each term in the loss. While any of the modeling strategies discussed so far can be used to predict an effective \mathbf{H} or \mathbf{P} , by supervising the derived observables rather than the matrix elements of the predicted operators, we restrict the examples to an effective \mathbf{H} as a demonstration. III Examples and results This section presents illustrative examples of the framework on selected datasets and using simple model architectures to highlight the role of \mathbf{V} , matrix products, and basis resolution in modeling. Before examining a few examples of our Op2Prop and Op2Op models, we empirically examine the expressivity and body-orderedness of \mathbf{V} and compare it to three-body atom-centered descriptors (denoted as \rho^{\otimes 2}(A_{i}) ) that have been used extensively for predictive modeling of both atomic properties 12 and electronic operators 60 ; 38 . III.1 Basis resolution, body-orderedness of the external potential and message-passing (a) Distinguished? Configuration s s{+}p s{+}p{+}d randomly distorted octahedra No Yes Yes regular octahedra No No Yes (b) (c) \kappa_{\max} 1 2 Distinguished? No Yes (d) Figure 3 : Examples demonstrating the role of basis resolution and matrix products in distinguishing molecular structures. (a) Distorted octahedral geometries, showing a reference atom pair i,j separated by distance r and neighboring atoms placed on a circle in the equatorial plane. (b) Table summarizing whether matrix elements \mathbf{V}(A_{ij}) and \mathbf{V}(A^{\prime}_{ij}) are distinguishable for basis sets truncated at the listed orbitals for the pair of configurations. Randomly distorted octahedra become distinguishable when p orbitals are included, while regular octahedra require d orbitals due to their higher symmetry. (c) Pair of structures adapted from Ref. 39 with \theta=\pi/4 radians, which have identical three-body correlations and lead to degenerate matrix elements in an s -only basis. (d) Table showing that these structures become distinguishable when matrix products ( \kappa_{\max}=2 ) are included, as information from multiple atom pairs is combined through matrix multiplication. The external potential operator in Eq. ( 1 ), in principle, uniquely specifies the atomic geometry, up to symmetry (rigid rotations, translations, and permutation of identical atoms). Equivalently, in the limit of a complete one-particle basis, the matrix representation in ( 2 ) contains all geometric information and is itself unique. In practice, however, the operator is represented on a finite basis, whose expressive power is limited by its angular and radial resolution. Together with the fact that, in an AO basis, each matrix element of \mathbf{V} corresponding to the atom pair A_{ij} encodes only one-neighbor correlations relative to the specific pair (SM Section for a detailed derivation), this finite representation can lead to systematic information loss and to degenerate elements even when pair environments are unrelated by symmetry. We now consider two complementary examples that disentangle these effects and clarify the role of angular resolution and effective body order in determining the distinguishability of matrix elements. The first example isolates the effect of basis truncation for a fixed reference pair of atoms. Consider an octahedral structure A , consisting of a reference atom pair A_{ij} and a set of neighboring atoms placed on a circle in the equatorial plane perpendicular to the line connecting i and j , such that they have the same radial distance relative to the pair, as shown in Fig 3 a). A second octahedron A^{\prime} is obtained by randomly varying the angular positions of the atoms on the circle, changing their relative angular arrangement with respect to the pair and mutual radial separation, but preserving their distances to the specified pair. In an AO basis set consisting of only s (l=0) orbitals (as is the case for Hydrogen atoms in the STO-3G basis), the matrix element \mathbf{V}(A_{ij}) effectively describes a weighted histogram of functions of pairwise distances of the neighbors relative to the reference pair. Since both distorted octhedra A and A^{\prime} both have identical radial distributions relative to the pair by construction, the corresponding matrix elements are degenerate, \mathbf{V}(A_{ij})=\mathbf{V}(A^{\prime}_{ij}) , despite the fact that the underlying atomic arrangements are geometrically distinct. Extending the basis to include p (l=1) orbitals introduces sensitivity to the dipolar components of the neighbor distribution relative to the pair, which lifts this degeneracy. Note that the construction described above need not be restricted to an octahedral arrangement, as the number of atoms on the circle can be varied without affecting the conclusions. However, for a pair of special configurations, such as when the four neighbors on the circle form a square with inversion symmetry in the plane perpendicular to the pair axis (forming a regular octahedron), the l=1 contributions vanish by symmetry, causing the degeneracy of elements \mathbf{V}(A_{ij}) and \mathbf{V}(A^{\prime}_{ij}) to persist even in the larger basis. (In this case, the degeneracy reflects a cylindrical symmetry of the neighbor distribution about the axis joining the pair, rather than the body-ordered resolution insufficiency of the descriptor itself.) Including d orbitals in the basis set, however, distinguishes the quadrupolar angular moments. Generally, while the inclusion of higher angular momentum orbitals improves the sensitivity of the matrix elements to higher-order directional moments of the neighbor distribution, for any finite angular truncation, it is possible to construct an example that would lead to degeneracy. The degeneracy, however, is localized to the chosen reference atom pair; matrix elements associated with other pairs of atoms need not be degenerate. We now turn to a qualitatively different source of degeneracy, which arises from the three-body (two-center, one-neighbor) nature of the matrix elements and demonstrate how it can be resolved through matrix products, even in the minimal s -only basis. Returning to the distorted octhedra in Fig 3 a) and restricting the basis to only s orbitals, tensor products of \mathbf{V} remain functions only of the pairwise distances of neighboring atoms relative to that pair and inherit the same degeneracy as \mathbf{V} . In contrast, matrix powers propagate information through other pairs involving atoms i and j , thereby incorporating interatomic distances between neighbors in the equatorial plane that differ between the two structures and resolving the degeneracy. As a second example, we consider the pair of structures introduced in Ref. 39 , which are known to be pathologically degenerate under the three-body atom-centered, \rho^{\otimes 2}(A_{i}) (SOAP) description (Fig. 3 c), enabling a direct comparison between \mathbf{V} and SOAP. In these configurations, two atoms lie at diametrically opposite ends of a circle, while the remaining atoms are distributed at different angular positions on the circumference, as shown in Fig. 3 b), yielding A and A^{\prime} that are distinct (cannot be mapped onto each other by symmetry) but share identical three-body correlations around the central atom. In this case, we focus on the pair of atoms located at opposite ends of the circle. As before, restricting to the s orbital basis, the matrix element encodes the dependence of the neighbor on their relative distances to the pair center (i.e. the atom at the center). Since these distances are identical for both structures by construction, we obtain matrix elements \mathbf{V}(A_{ij}) equal to \mathbf{V}(A^{\prime}_{ij}) . However, the degeneracy can be lifted without needing to increase the angular resolution, through matrix products, which effectively bring in information from other atom pairs (Fig. 3 d)). III.2 Datasets and computational details In this and the following subsections, we will consider two datasets. The first comprises 1000 distorted water molecules 23 ; 22 , which is randomly split into 800 training structures and 200 validation structures. The second dataset we consider is a subset of 1000 molecules, containing C, H, N, and O atoms, from the QM7b dataset 33 . For both datasets, we compute the total energies and dipole moments using PySCF 50 at the density functional theory (DFT)/LDA level using the def2-TZVP basis. For each structure, we construct the SOAP descriptor, \rho^{\otimes 2}(A_{i}) (hyperparameter details in the SM), along with \mathbf{V} in the cc-PVTZ basis, chosen to produce a comparable basis discretization as the density correlations. Even with this relatively large basis, we obtain roughly six times fewer features from \mathbf{V} than from SOAP. We drop the explicit structure dependence (A_{i}) or (A_{ij}) from the notation when it is clear from context, to ease readability. III.3 Reconstructing representations To assess and compare the expressive power of our operator-valued descriptor \mathbf{V} and \rho^{\otimes 2} independently of any particular supervised learning task, we ask whether one representation can be used to recover the other, and to what extent this reconstruction is possible. We pursue this analysis through a feature reconstruction experiment, similar to Ref. 19 . To make this comparison as transparent as possible, we restrict the analysis to reconstructions of one representation from another through linear models, as any nonlinearity would effectively introduce infinite body order and obscure the structural difference between them that we aim to probe. Within this linear setting, the reconstruction error effectively conveys how much of one representation lies outside the linear span of the other. Below, we report a normalized reconstruction error \Delta({\text{X}\to\text{Y}}) , which quantifies the relative error incurred in predicting descriptor Y from input X (where \text{X},\text{Y} in \{\rho^{\otimes 2},\mathbf{V}\} ), \displaystyle\Delta(\text{X}\rightarrow\text{Y})=\frac{\sqrt{\frac{1}{N_{\text{test}}}\displaystyle\sum_{A\in\text{test}}\left|\tilde{\text{Y}}(\text{X};A)-\text{Y}(A)\right|^{2}}}{\sigma(\text{Y})}, (18) where \tilde{\text{Y}}(\text{X};A) denotes the optimal linear least-squares reconstruction of \text{Y}(A) from \text{X}(A) , and \sigma(\text{Y}) is the standard deviation of the target features over the dataset. Note the asymmetry in \Delta({\text{X}\rightarrow\text{Y}})\neq\Delta({\text{Y}\rightarrow\text{X}}) , which reflects the difference in expressivity of the two representations. As explained in Section II.2 , computing algebraic powers of \mathbf{V} corresponds to message-passing and progressively richer many-body information. To verify that this indeed leads to a change in expressive power of \mathbf{V} , we analyze how the reconstruction errors \Delta({\mathbf{V}^{\kappa_{\text{max}}}\to\rho^{\otimes 2}}) and \Delta({\rho^{\otimes 2}\to\mathbf{V}^{\kappa_{\text{max}}}}) vary as additional matrix powers are included. Figure 4 : Considering only the invariant features ( \lambda=0,\sigma=1 ), for water molecules (a), organic molecules from the QM7 dataset (b), we plot the error of constructing atom-centered density correlations \rho^{\otimes 2} using input \mathbf{V}^{\kappa_{\text{max}}} (blue) and vice-versa (red). The reconstruction error is reported as a function of the matrix power, which makes the representation of the external potential increasingly nonlocal. In Fig. 4 , we see that in the absence of higher matrix powers, \rho^{\otimes 2} reconstructs \mathbf{V} more accurately than vice-versa (although it should be noted that we recover about six times fewer features using \mathbf{V} than SOAP due to the basis discretization). Although both SOAP and \mathbf{V} both encode three-body information (SM Section ), they do so in markedly different ways. SOAP describes three-body correlations via products of atom-centered neighbor densities, whereas \mathbf{V} captures weighted three-body interactions mediated by the Coulomb kernel. Moreover, the radial and angular bases in which these two representations are expressed are different, and the descriptors are not explicitly normalized, resulting in features that reside on different numerical scales. Despite these differences, \mathbf{V} becomes increasingly expressive as higher matrix powers are included. As higher powers of \mathbf{V} are included and concatenated, we observe a systematic decay in \Delta({\mathbf{V}^{\kappa_{\max}}\rightarrow\rho^{\otimes 2}}) , indicating that it becomes increasingly easier to construct \rho^{\otimes 2} from \mathbf{V} . At the same time, \Delta({\rho^{\otimes 2}\rightarrow\mathbf{V}^{\kappa_{\max}}}) increases, reflecting the growing structural complexity of \mathbf{V} as additional message-passing pathways are included. III.4 Predicting molecular properties from external potential As discussed in Section II.1 , Op2Prop models predict each symmetry irrep of the target property from the corresponding symmetry-adapted block of \mathbf{V} . For energies, which are rotational invariants, we isolate the \lambda=0,\sigma=1 blocks from the symmetry-adapted decomposition (Eq. ( II )), concatenate the pairwise species blocks, and sum over all the corresponding atom pairs to produce a structure-level feature vector, \mathbf{V}^{\lambda=0,\sigma=1}(A) . We enrich the representation by concatenating symmetry-adapted blocks from successive powers of the external potential matrix (Section II.2 ), corresponding to features from Eq. ( 11 ) truncated at the third power. Similarly, we obtain a structure-wise SOAP \rho^{\otimes 2,\lambda=0,\sigma=1}(A) feature by summing over all atom-centered contributions. For convenience of notation, we will drop the index names from the superscript, as well as the structure label, and denote these features as \mathbf{V}^{\kappa_{\text{max}},01} and \rho^{\otimes 2,01} . Dipole moments can be analogously modeled, with the exception that they transform as \lambda=1,\sigma=1 O(3) irreps, so we accordingly use \mathbf{V}^{\kappa_{\text{max}},11}(A) , \rho^{\otimes 2,11}(A) as inputs. Using these structural features, we train linear models on the corresponding target properties. Despite its compactness, \mathbf{V} matches or exceeds the predictive performance of SOAP across both datasets. We report the root-mean-square error (RMSE) computed as \text{RMSE}=\sqrt{\frac{1}{N_{\text{test}}}\sum_{A\in\text{test}}\left\|\tilde{\mathbf{y}}(A)-\mathbf{y}(A)\right\|^{2}}, (19) where \tilde{\mathbf{y}}(A) and \mathbf{y}(A) denote the predicted and reference property values for structure A , respectively, and N_{\text{test}} is the number of test structures. For the water dataset, the resulting RMSEs on the validation set are approximately 2.03 meV for total energies and 1.7 mD for dipole moments when using SOAP, and 1.53 meV for energies and 2.1 mD for dipoles when using \mathbf{V} . For the QM7b subset, \mathbf{V} achieves roughly an order of magnitude lower error than SOAP for energies, 152 meV compared to 2.01 eV, but a similar error of 140 mD on dipole moments. Finally, to demonstrate the effective message passing implemented through matrix products of \mathbf{V} , we construct a dataset of water dimers by selecting 50 random pairs of molecules from the water dataset described above. For each dimer, we generate a one-dimensional trajectory by systematically increasing the intermolecular separation between the two monomers from 3.5 Å to 12 Å in twenty steps, and for each configuration, compute the total energy at the DFT/PBE level using the def2-TZVP basis. The dataset is partitioned such that configurations with intermolecular separations up to 8 Å are used for training, and the remaining portion of each trajectory is reserved for validation, resulting in 600 dimers in the training set and 400 in the validation set. Atom-centered descriptors are constructed with a cutoff radius of 4 Å, and the sum over atoms to construct the feature per structure is restricted to only oxygen atoms. As a consequence, when the intermolecular separation exceeds the cutoff distance, the local atomic environments become indistinguishable, and a model based on \rho^{\otimes 2} is unable to capture the long-range decay of the interaction energy (Fig. 5 , red). On the other hand, for \mathbf{V} , we construct features from polynomials truncated at the third power (corresponding to symmetry-adapted blocks from \mathbf{V} , \mathbf{V}^{2} , and \mathbf{V}^{3} as described in Section II.2 ), where the sum over atom pairs is restricted such that i indexes only oxygen atoms, while j runs over all allowed neighbors. Even linear models using these inputs are able to reproduce the long-range tail of the interaction energy (Fig. 5 , blue). Figure 5 : Interaction energy for water dimers (total energy baselined by the mean \overline{E} ) as a function of the distance d between the two monomers. The shaded region shows distances incorporated in the training set. Reference values (black dashed) compared against predictions from the atom-centered descriptors \rho^{\otimes 2} and products of the external potential matrix up to maximum algebraic power \kappa_{\text{max}} (blue). Building on our analysis of \mathbf{V} , its algebraic powers, and their connection to geometric descriptors, as well as its performance in predicting molecular properties, we proceed to the task of learning electronic-structure operators, namely the Fock matrix \mathbf{H} and the density matrix \mathbf{P} , within our Op2Op models. For the examples in the following subsections, we define the mean square error associated with the overall prediction \tilde{M} of the target matrices over a given test set as \text{MSE}_{\text{$\mathbf{M}$}}=\frac{1}{N_{\text{test}}}\sum_{A\in\text{test}}\frac{1}{N_{\mathbf{M}(A)}}\sum_{i\alpha j\beta}\lvert\mathbf{M}^{\alpha\beta}(A_{ij})-\tilde{\mathbf{M}}^{\alpha\beta}(A_{ij})\rvert^{2} (20) where N_{\text{test}} is the number of structures in the test set, A enumerates the molecular structures in this set, and N_{\mathbf{M}(A)} indicates the size of the corresponding output matrix. The MSE on other properties is similarly defined. In several examples below, we report the relative MSE, which is obtained by normalizing the MSE by the standard deviation of the reference values. III.5 Fock and density matrix predictions for water molecules For the water dataset described above, we compute the Fock, overlap, and density matrices using DFT/LDA level with the STO-3G and def2-TZVP basis sets using PySCF 50 . In addition, the external potential operator \mathbf{V} is evaluated in multiple atomic orbital bases, including STO-3G, def2-SVP, def2-TZVP, and cc-pVTZ. To systematically assess the effect of the input basis resolution on model performance, we train a simple linear model mapping symmetry-adapted blocks of \mathbf{V} to the target operator matrices and report the resulting RMSEs in Fig. 6 . Figure 6 : Relative RMSE per matrix element (Eq. ( 20 ), normalized by the standard deviation of the target) for the \text{H}{\vphantom{\text{X}}}_{\smash[t]{\text{2}}}\text{O} dataset as a function of the basis \mathcal{B}_{\mathbf{V}} used for the input \mathbf{V} in the linear model Eq. ( 8 ). The target operator \mathbf{M} (Fock and density) matrices are in STO-3G (a) and def2-TZVP (b) bases, respectively. As expected, the errors on the Fock matrix are generally lower than those on the density matrix, as \mathbf{V} and \mathbf{H} are similarly local operators ( ), while a linear model built on \mathbf{V} struggles to capture the nonlocality of \mathbf{P} elements. The accuracy is further improved by considering matrix products as inputs (dashed lines in Fig. 6 show that incorporating the third power yields an improvement of almost five times with the largest input basis set). III.5.1 Op2Op models We now consider nonlinear models that incorporate matrix products and nonlinear gating as described in Section II.4 . For these models, we use cc-pVTZ as the input basis \mathcal{B}_{\mathbf{V}} to express the external potential, and employ the same architectures for models targeting both \mathbf{H} and \mathbf{P} , without attempting to optimize hyperparameters. We supervise the symmetry-adapted matrix elements directly using Eq. ( 20 ) as the loss in the model. Models trained on the Fock matrix, incur an RMSE of 119.7 meV and 8.7 \times 10^{-3} respectively on the Fock and the density matrix in the STO-3G basis (Fig. 7 ) and 144.5 meV, 1.4 \times 10^{-2} for the def2-TZVP basis. In comparison, models trained on the density matrix, incur an RMSE of 416.6 meV, 3.1 \times 10^{-2} on the Fock and density matrix in the STO-3G basis, 1.14 eV and 9.5 \times 10^{-3} on the two matrices in the def2-TZVP basis. (Note that the elements of the Fock matrix have the units of energy, but the density matrix is dimensionless). In addition to errors on the matrix elements themselves, we compute errors on quantities derived from the predicted matrices following diagonalization as in Eq. ( 6 ), including eigenvalues and expectation values of selected operators. We report relative errors by normalizing the RMSE by the standard deviation of the target quantities, as shown in Fig. 7 for molecular properties including total energy ( E ), atomic Löwdin charges ( \mathbf{q} ), eigenvalues ( \mathbf{\varepsilon} ), and dipole moments ( \mathbf{\mu} ). Models trained on the Fock matrix consistently show lower errors in derived properties than models trained directly on the density matrix. The predicted matrices are always Hermitian by construction, as we only predict matrix elements in the upper triangular portion and enforce Hermiticity through symmetry. When \tilde{\mathbf{P}} is constructed from the predicted \tilde{\mathbf{H}} using Eq. ( 7 ), it lies on the Grassmannian manifold and commutes with \mathbf{H} by construction. In contrast, when the model is trained to directly predict the density matrix, Grassmannianity is not enforced as a constraint. As a result, the predicted \tilde{\mathbf{P}} can deviate from the Grassmannian manifold. We quantify this deviation through the relative violations of idempotency, \delta_{\text{Grassman}}=\left\lVert\tilde{\mathbf{P}}\mathbf{S}\tilde{\mathbf{P}}-2\tilde{\mathbf{P}}\right\rVert/\left\lVert 2\tilde{\mathbf{P}}\right\rVert . \delta_{\text{Grassman}} takes values of 1.4 \times 10^{-2} for the STO-3G basis and 0.99 for the def2-TZVP basis, indicating that the predicted density matrix is close to projector-like in the minimal basis but deviates strongly from the Grassmann manifold in the larger basis. We find that this deviation correlates with the errors in derived properties, and projecting predicted density matrices back onto the Grassmannian manifold, by enforcing idempotency, systematically improves the accuracy of derived properties (SM Sec. ). This indicates that enforcing this constraint may be important for accurate property prediction, as was similarly observed in Ref. 59 . Figure 7 : Relative RMSE for the validation set on molecular properties, namely total energy (E), atomic Löwdin charges (\mathbf{q}) , eigenvalues ( \bm{\varepsilon} ) and dipole moments ( \bm{\mu} ) for models trained on the Fock (blue) and density (red) matrices for \text{H}{\vphantom{\text{X}}}_{\smash[t]{\text{2}}}\text{O} dataset in STO-3G basis (top) and def2-TZVP basis (bottom). It is also possible to relax the Hermiticity constraint as a hard inductive bias 40 , and it would be interesting to explore its consequences on the resulting properties, but we leave this investigation for future work. III.5.2 Effective Op2Op models As discussed in Section II.5 , we can model the Fock operator on an effective basis \mathcal{B}_{\mathbf{M}} even though the target properties are computed with a larger basis \mathcal{B}_{\mathbf{y}} , allowing the choice of basis set representation of \mathbf{M} to be treated as a model hyperparameter. To do so requires a differentiable evaluation of the properties from the predicted matrices during training, so that the loss on these derived observables can be propagated back to \mathbf{M} . Our models interface seamlessly with differentiable electronic structure codes, such as PySCFAD 61 , which can then be used to evaluate molecular properties such as Löwdin charges, dipole moments from the predicted matrices. As a demonstration, we consider learning an effective Fock matrix optimized to reproduce eigenvalues, Löwdin charges and dipole moments. When projecting from the \mathcal{B}_{\mathbf{y}}= def2-TZVP basis to the \mathcal{B}_{\mathbf{M}}= STO-3G basis, we can only describe 7 states, corresponding to the size of the matrix in the STO-3G basis. These seven states are obtained through the selection described in SM Section . Figure 8 reports the relative RMSE for the subset of observables that are optimized. Despite the severe basis reduction, the error in the predicted eigenvalues is reduced by approximately a factor of two compared to training directly on the def2-TZVP Fock matrix. While the errors in dipole moments and Löwdin charges are slightly larger than those obtained by direct def2-TZVP training, they reflect the limited expressivity of the current architecture. Figure 8 : Relative RMSE on Löwdin charges ( \mathbf{q} ), eigenvalues ( \bm{\varepsilon} ) and dipole moments ( \bm{\mu} ) from the effective Op2Op model. The reference observable values were computed using the \mathcal{B}_{\mathbf{y}}= def2-TZVP basis set, while the model predicted the downfolded Fock matrix in the \mathcal{B}_{\mathbf{M}}= STO-3G basis. The input \mathbf{V} in the cc-PVTZ basis, with matrix powers ( 11 ) truncated at \kappa_{\text{max}}=2 . The RMSEs have been normalized by the standard deviation of each observable. III.6 Fock matrix predictions for organic molecules Finally, we consider the prediction of the Fock matrices for the QM7b dataset, which poses a substantially more challenging example due to its chemical diversity, varying stoichiometries, and heterogeneous local environments. For the previously mentioned QM7b dataset, we compute the Fock, density, and overlap matrices at the LDA/def2-SVP and LDA/def2-TZVP levels, and use the cc-PVQZ basis to represent the external potential. As density matrix predictions are highly sensitive to deviations from their Grassmannian structure, causing the derived observables to degrade rapidly, especially as matrix size increases (larger basis, number of atoms in the atomic configuration), we restrict our examples to models where the target is the Fock matrix. III.6.1 Op2Op models Rather than directly predict the full Fock matrix \mathbf{H} , we target only the nonlocal exchange-correlation correction, which is obtained as the difference of \mathbf{H} and the non-interacting Hamiltonian \mathbf{H}_{\text{core}}=\mathbf{T}+\mathbf{V} , where \mathbf{T} is the kinetic energy operator. This decomposition allows the model to focus on learning the exchange-correlation effects, which are the most challenging to approximate, while the core Hamiltonian can be computed exactly and easily from the geometry through a non-self-consistent evaluation of one-electron integrals. Even when the target is expressed in the minimal STO-3G basis, the blockwise decomposition requires almost 57 separate models of type ( 16 ) to be trained for the possible values of \bm{\gamma} corresponding to the combinations of species pairs and symmetry labels. A more expressive target basis, such as def2-SVP, increases this burden to 126, while the def2-TZVP basis representation requires 180 models to be trained, leading to a significant increase in the training complexity. For the STO-3G targets, the model achieves 0.37 eV error on the Fock matrix elements, 1.8 eV on the eigenvalues including virtual states, 0.34 eV on the HOMO-LUMO gaps, and 0.33 Debye on the dipole moment. The density matrix computed from the predicted Fock matrix incurs an RMSE of 3.5 \times 10^{-2} with respect to the reference values. When targeting the Fock matrix in the def2-SVP basis, on the other hand, a similar architecture achieves comparable accuracy on the Fock matrix elements with an RMSE of 0.55 eV, while the error on the density matrix computed from these predictions rises dramatically to the 1.5 \times 10^{2} . This sharp increase underscores the strong sensitivity of the derived observables to small inaccuracies in the prediction of matrix elements owing to the nonlinear nature of the generalized eigenvalue problem and diagonalization ( 7 ). Figure 9 : Relative RMSE on the total energy ( E ), Löwdin charges ( \mathbf{q} ), eigenvalues ( \bm{\varepsilon} ), and HOMO-LUMO gaps ( \delta ) normalized by the standard deviation of the reference values for the QM7 dataset. The observables are derived from the prediction of an Op2Op model that was trained to optimize the elements of the Fock matrix in the STO-3G basis (top) and def2-SVP basis (bottom). In both cases, the model inputs were the symmetry-adapted blocks up to the third power of the \mathbf{V} expressed on the cc-PVQZ basis. For a larger basis, the performance decreases further. In the most challenging case, when the target Fock matrix is expressed in the def2-TZVP basis, we observe the highest errors of 0.75 eV per matrix element of the Fock matrix. The HOMO-LUMO gap predictions similarly become worse with basis size, with RMSE values of around 4.4 eV error in both the SVP and TZVP representations. Figure 10 : Relative RMSE on Löwdin charges ( \mathbf{q} ), eigenvalues ( \bm{\varepsilon} ) and HOMO-LUMO gaps ( \delta ) from the effective Op2Op model. The reference observable values were computed using the \mathcal{B}_{\mathbf{y}}= def2-SVP basis set (top) and def2-TZVP (bottom). The model predicts the downfolded Fock matrix in the \mathcal{B}_{\mathbf{M}}= STO-3G basis in each case. The input \mathbf{V} in the cc-PVQZ basis, with matrix powers ( 11 ) truncated at \kappa_{\text{max}}=3 . The RMSEs have been normalized by the standard deviation of each observable. III.6.2 Effective Op2Op models The benefit of the effective Op2Op models becomes most apparent for this example. As previously observed, for identical \mathbf{V} inputs and network architectures, the accuracy of Op2Op models degrades systematically as the target basis expands from STO-3G to def2-TZVP, and derived observables are especially sensitive to these errors. Instead of targeting the Fock matrix in the bases of reference calculations ( \mathcal{B}_{\mathbf{y}} ), we learn an effective matrix in the fixed basis size corresponding to \mathcal{B}_{\mathbf{M}} = STO-3G. To do so, we first obtain the analytical projection of the matrix from the original, larger \mathcal{B}_{\mathbf{y}} basis in the STO-3G basis following SM Section . Using these projected matrices as an initial point for training, we optimize the model to reproduce derived observables corresponding to a subset of reference eigenvalues and Löwdin charges. As shown in Fig. 10 , this approach leads to an improvement of nearly two orders of magnitude in the accuracy of the eigenvalue, while the RMSE of the HOMO–LUMO gap is reduced to approximately 0.5 eV. These results demonstrate that operating on a compact latent basis and optimizing projected observables substantially alleviates the nonlinear error amplification encountered in the direct Op2Op Fock predictions in larger bases. Finally, we note that these RMSEs are obtained without extensive architectural tuning, and further improvements in accuracy are likely possible through model optimization, which we do not pursue here. IV Discussion and Conclusions Although the external potential formally describes the Coulomb attraction between electrons and nuclei, when expressed on a basis of atom-centered orbitals, its representation \mathbf{V} is localized. This local structure leads to several similarities with atom-centered descriptors and provides a route to widely used atomistic descriptors from a shared underlying operator. Each matrix element \mathbf{V}^{\alpha\beta}(A_{ij}) encodes one-neighbor correlations around the pair of atoms (i,j) , corresponding to a three-body interaction, much like body-ordered expansions used in traditional descriptors such as SOAP, ACE, and N -atom-centered density correlations. Likewise, the symmetry-adapted decomposition of \mathbf{V} into irreducible representations of O(3) parallels the symmetrization procedures used for atom-centered density expansions. At the same time, we show that with a specific choice of basis, \mathbf{V} relates to the Coulomb matrix, indicating that descriptors often viewed as global can, in fact, be decomposed into local contributions depending on the representation used to express them. Complementing this local nature of matrix elements is the simultaneous ability of \mathbf{V} to describe global structure. Its matrix form provides a particularly favorable and straightforward way to implement equivariant message passing through simple repeated matrix multiplications, bypassing the need for symmetrization at every message-passing step. Eq. ( 11 ) mimics the operations underlying message-passing graph neural networks, with messages passed between edges (matrix blocks) rather than atoms, but at a much reduced cost. In the product form, every atom interacts with all others. However, a notion of local neighborhoods can be enforced by zeroing matrix elements for atom pairs separated beyond a cutoff, providing a closer connection to equivariant GNNs that operate on local neighborhoods. This local-global duality of \mathbf{V} not only simplifies the construction and operations underlying popular descriptors and GNNs, but also allows it to overcome the limitations of strictly local descriptions and finite basis set discretizations that affect atom-centered descriptors, and describe nonlocal behavior. In this work, we propose a framework to predict both molecular properties and electronic structure operators from the external potential operator and refer to these approaches as Op2Prop and Op2Op models, respectively. The choice between these modeling approaches reflects a tradeoff between models optimized for specific property prediction and unified models that learn an electronic operator from which multiple properties can be derived. We demonstrate that linear Op2Prop models based on \mathbf{V} match or exceed the performance of SOAP descriptors of comparable body order when predicting energies and dipole moments. In contrast, Op2Op models aim to predict electronic operators that encapsulate a richer physical description of the system, but at the cost of increased complexity. Within this setting, we briefly explore the choice between targeting the Fock matrix \mathbf{H} and the density matrix \mathbf{P} . Although these quantities are formally related, their matrix representations differ in conditioning and constraints, resulting in distinct learning problems in practice. Our results demonstrate that models trained on the Fock matrix consistently incur lower errors on molecular properties computed from them than models trained directly on the density matrix. We attribute the ease of learning the Fock matrix to its more local nature compared to the density matrix, as well as to the physical and mathematical constraints on \mathbf{P} that make it particularly sensitive to numerical errors. A deeper investigation of target choice, numerical stability, and downstream usability within electronic structure workflows remains an important direction for future work. We further demonstrate the applicability of Op2Op models across multiple datasets, target basis sets, and supervision strategies. In terms of the latter, we compare models that target matrix elements of the operators in a specified basis set and models that infer an implicit effective representation through supervision of properties derived from it. We find that learning this compact latent basis representation provides a practical safeguard against nonlinear error amplifications during diagonalization of the generalized eigenvalue problem, especially when the target matrices are expressed in a large basis. All these examples point towards a broader integration of machine learning with electronic structure, which has traditionally been treated separately from descriptor design and modeling strategies. By incorporating several components of electronic structure as inputs, outputs, and intermediate quantities in the model workflow, our framework elevates basis sets and operators to tunable parameters of model design. Electronic structure theory provides a natural hierarchy of body-ordered quantities: three-center integrals correspond to three-body descriptors (as demonstrated and used in this work), two-center integrals (such as overlap or kinetic energy operators) to two-body contributions, and so on. Moreover, these quantities are routinely computed in any self-consistent field calculation and thus provide compact and physically meaningful model inputs at essentially no additional cost. Equally importantly, this allows atomistic machine learning models to leverage species-specific basis sets that have already been carefully optimized within quantum chemistry, instead of requiring the explicit construction of bespoke ML-specific bases 7 ; 11 ; 20 , but the relative advantage of doing so remains an open question. Although this work is motivated by the Hohenberg–Kohn theorems and centers on \mathbf{V} as the primary input, it naturally extends to alternative inputs and targets that encode the same underlying physics but may be numerically easier to learn, including operators other than the Fock and density matrices, analytic matrix functions, or spectral observables. Finally, the connection between matrix products and message passing suggests that related ideas could be transferred back to geometry-based message-passing schemes, enabling efficient higher-order message passing without the cost of explicit symmetrization at every update step, which is a direction we plan to explore in future work. Supplementary Material Detailed derivations, additional experiments, as well as details and tabulated results for some figures in the main text, are reported in the accompanying supplementary material. Acknowledgements. JN is grateful for funding from the MIT Postdoctoral Fellowship for Excellence in Engineering and thanks the MIT Center for Computational Science and Engineering and the Schwarzman College of Computing for support. JN and TS acknowledge support from the National Science Foundation under Cooperative Agreement PHY-2019786 (The NSF AI Institute for Artificial Intelligence and Fundamental Interactions). GD acknowledges support from the ANR project NUMERIQ (ANR-24-CE46-2255), as well as the support of the region Bourgogne Franche-Comté. We thank Andrey Bryutkin and Youssef Marzouk for insightful discussions. Conflict of interest statement The authors have no competing interests to declare. Data and materials availability All the code used in this study will be made publicly available on publication. Author contributions JN conceived the project and designed the research methodology and code infrastructure. JN and GD discussed the mathematical foundations of the methods as well as the overall research direction. JN wrote the first draft of the manuscript. All authors discussed the results and reviewed the final version of the manuscript. See pages {},- of SM