Skip to main content
Nature Communications logoLink to Nature Communications
. 2019 Oct 3;10:4497. doi: 10.1038/s41467-019-12467-0

Exact exchange-correlation potentials from ground-state electron densities

Bikash Kanungo 1, Paul M Zimmerman 2, Vikram Gavini 1,3,
PMCID: PMC6776552  PMID: 31582755

Abstract

The quest for accurate exchange-correlation functionals has long remained a grand challenge in density functional theory (DFT), as it describes the many-electron quantum mechanical behavior through a computationally tractable quantity—the electron density—without resorting to multi-electron wave functions. The inverse DFT problem of mapping the ground-state density to its exchange-correlation potential is instrumental in aiding functional development in DFT. However, the lack of an accurate and systematically convergent approach has left the problem unresolved, heretofore. This work presents a numerically robust and accurate scheme to evaluate the exact exchange-correlation potentials from correlated ab-initio densities. We cast the inverse DFT problem as a constrained optimization problem and employ a finite-element basis—a systematically convergent and complete basis—to discretize the problem. We demonstrate the accuracy and efficacy of our approach for both weakly and strongly correlated molecular systems, including up to 58 electrons, showing relevance to realistic polyatomic molecules.

Subject terms: Density functional theory, Quantum chemistry, Electronic properties and materials, Computational science


The inverse DFT problem of mapping the ground-state density to its exchange correlation potential has been numerically challenging so far. Here, the authors propose an approach for an accurate solution to the inverse DFT problem, enabling the evaluation of exact exchange and correlation potential from an ab initio density.

Introduction

Density functional theory (DFT)1,2 is an essential method for describing electronic states in all manner of nanoscale phenomena, including chemical bonds in molecules, band structures of materials, electron transfer, and reactive metal clusters of proteins. In principle, an exact theory, DFT in practice38, has remained far from exact due to the unavailability of exact exchange-correlation (xc) potentials (vxc), which are responsible for describing the quantum mechanical behavior of electrons. Fortunately, vxc is a unique functional of the electron density (ρ(r)), so there exists a one-to-one relationship from vxc(r) to ρ(r) and vice versa. This observation presents a possible route forward to construct accurate xc functionals via the transformation of the electron density into vxc(r) through the so-called inverse DFT problem913 (refer to the schematic in Fig. 1). The inverse problem not only provides a route for finding the sole unknown quantity in DFT, it is also central for describing quantum mechanics without resorting to complicated multi-electron wave functions.

Fig. 1.

Fig. 1

Schematic of the inverse DFT problem. The exact ground-state many-body wavefunction (Ψ(r1,r2,,rNe)) and, hence, the ground-state electron density (ρ(r)) is obtained from configuration interaction calculation. The inverse DFT calculation evaluates the exact exchange-correlation potential (vxc(r)) that yields the given ρ(r). The ability to accurately solve the inverse DFT problem, presented in this work, presents a powerful tool to construct accurate density functionals (vxc[ρ(r)]), either through conventional approaches or via machine learning. The schematic shows the ground-state density and the exact exchange-correlation potential for H2O obtained in this work

Given the large importance of this problem, there have been several attempts to solve the inverse DFT problem, employing either iterative updates10,11,1416 or constrained optimization approaches9,12,17,18. However, these approaches have suffered from ill-conditioning, thereby resulting in non-unique solutions or causing spurious oscillations in the resultant vxc(r). This ill-conditioning has been largely attributed to the incompleteness of the Gaussian basis sets that were employed to solve the inverse DFT problem1820. Recent efforts2123 have presented a different approach, which utilizes the two-electron reduced density matrix to remedy the non-uniqueness and the spurious oscillations in the obtained vxc(r). However, this does not represent the solution of the inverse DFT problem, i.e., the vxc obtained from this approach is not guaranteed to yield the input electron density23. Thus, the inverse DFT problem has, heretofore, remained an open challenge.

In this work, we present an advance that provides an accurate solution to the inverse DFT problem, enabling the evaluation of the exact vxc from an ab-initio density. Specifically, the approach uses a finite-element (FE) basis that is systematically convergent and complete, thereby eliminating ill-conditioning in the discrete solution of the inverse DFT problem. Our approach is tested on a range of molecular systems, both weakly and strongly correlated, showing robustness and efficacy in treating realistic polyatomic molecules. The proposed approach therefore unlocks the door to constructing accurate xc functionals that provide precise energies and electronic properties of a huge range of chemical, materials, and biological systems. To elaborate, we envisage the inverse DFT problem to be instrumental in generating {ρ(i),vxc(i)} pairs, using ρ(i)’s from correlated ab-initio calculations. Subsequently, these can be used as training data to model vxc[ρ] through machine-learning algorithms24,25, which are designed to preserve the functional derivative requirement on vxc[ρ]26. Furthermore, the xc energy (Exc[ρ]) can be directly evaluated through line integration on vxc[ρ].

Results

Constrained optimization for inverse DFT

We cast the inverse DFT problem of finding the vxc(r) that yields a given density ρdata(r) as the following partial differential equation (PDE)-constrained optimization:

argminvxc(r)w(r)ρdata(r)ρ(r)2dr, 1

subject to

122+vext(r)+vH(r)+vxc(r)ψi=ϵiψi, 2
ψi(r)2dr=1. 3

In the above equation, w(r) is an appropriately chosen weight to expedite convergence, vext(r) represents the nuclear potential, vH(r) is the Hartree potential corresponding to ρdata(r), and ψi and ϵi denote the Kohn–Sham orbitals and eigenvalues, respectively. For simplicity, we restrict ourselves to only closed-shell systems and, hence, the Kohn–Sham density ρ(r)=2i=1Ne2ψi(r)2. Equivalently, the above PDE-constrained optimization can be solved by minimizing the following Lagrangian,

Lvxc,{ψi},{pi},{ϵi},{μi}=w(r)ρdata(r)ρ(r)2dr+i=1Ne2pi(r)Ĥϵiψidr+i=1Ne2μiψi(r)2dr1, 4

with respect to all its constituent variables—pi, μi, ψi, ϵi and vxc. In the above equation, Ĥ=122+vext(r)+vH(r)+vxc(r) is the Kohn–Sham Hamiltonian, pi is the adjoint function that enforces the Kohn–Sham eigenvalue equation corresponding to ψi, and μi is the Lagrange multiplier corresponding to the normality condition of ψi. The optimality of L with respect to pi, μi, ψi, and ϵi are given by:

Ĥψi=ϵiψi, 5
ψi(r)2dr=1, 6
(Ĥϵi)pi(r)=gi(r), 7
pi(r)ψi(r)dr=0, 8

where gi(r)=8w(r)(ρdata(r)ρ(r))ψi2μiψi. We remark that the operator Ĥϵi in Eq. 7 is singular with ψi as its null vector. However, the orthogonality of gi and ψi (consequence of Eq. 7) along with the orthogonality of pi and ψi (Eq. 8) guarantee a unique solution for pi. Having solved the above optimality conditions in Eqs. 58, the variation (gradient) of L with respect to vxc is given by

δLδvxc=i=1Ne2piψi. 9

This constitutes the central equation for updating vxc(r) via any gradient-based optimization technique.

Summing up, the proposed approach involves: (i) obtaining ρdata(r) from correlated ab-initio calculations (i.e., configuration interaction (CI) calculations); (ii) using an initial guess for vxc(r); (iii) solving Eqs. 58 using the current iterate of vxc; (iv) updating vxc using Eq. 9 as the gradient; (v) repeating (iii)–(iv) until ρ(r) converges to ρdata(r). We note that the general idea of PDE-constrained optimization has been explored recently in ref. 13. However, its utility had only been demonstrated on non-interacting model systems in one dimension.

Verification with LDA-based densities

To assess the accuracy and robustness of the proposed approach, we use ρdata obtained from local density approximation (LDA)27,28-based DFT calculations, discretized using the FE basis—a systematically improvable and complete basis constructed from piecewise polynomials. This verification test allows us to compare the vxc obtained from the inverse DFT calculation against vxcLDA[ρdata]. As remarked earlier, most of the previous attempts at this verification test have suffered from either non-unique solutions or had resulted in unphysical oscillations in vxc, owing to the incompleteness of the Gaussian basis employed in these works. Figure 2 presents the comparison of vxcLDA[ρdata] against the vxc obtained from the inverse calculation, for various atomic systems (also see Supplementary Fig. 2). We also provide, in Fig. 3, the vxc for 1,3-dimethylbenzene (C8H10) obtained from the inverse calculation with LDA-based ρdata (cf. Supplementary Fig. 3 for the error in vxc), highlighting the efficacy of our approach in accurately treating large systems. We note that all the inverse DFT calculations have been performed in three dimensions and the L2 norm error in the density, ρdataρL2, is driven below 105. As evident from these figures, the vxc determined from the inverse DFT calculation is devoid of any spurious oscillations and is in excellent agreement with vxcLDA[ρdata]. In addition, the Kohn–Sham eigenvalues computed using the inverted vxc are in excellent agreement (i.e., ϵiLDAϵi<1 mHa), further validating the accuracy of the method. Although we have reported the verification of our method for LDA-based densities, similar accuracy was obtained using generalized gradient approximation (GGA)-based densities. We refer to the Supplementary Discussion for a comparison of these verification results against similar studies conducted using existing methods.

Fig. 2.

Fig. 2

Verification study on atomic systems using LDA-based density. The density (ρdata) is obtained from a ground-state DFT calculation using an LDA functional. The solid line corresponds to the direct evaluation of the LDA exchange-correlation potential corresponding to ρdata, i.e., vxcLDA[ρdata]. The dashed line corresponds to the exchange-correlation potential obtained from the inverse DFT calculation using ρdata as the input. The atomic systems considered are as follows: (a) He; (b) Be; (c) Ne

Fig. 3.

Fig. 3

Inverse DFT calculation on C8H10. The exchange-correlation potential (in a.u.) determined from the inverse DFT algorithm, using an LDA-based density, is displayed on the plane of the benzene ring. Refer to Supplementary Table 3 for the coordinates

Removing Gaussian basis-set artifacts

We next turn to employing the proposed method with input densities generated from CI calculations. All the CI calculations reported in this work are performed using the incremental full-CI approach presented in ref. 29 and discretized using the universal Gaussian basis set (UGBS)30 or polarized triple zeta (cc-PVTZ) Gaussian basis set31. It is known that Gaussian basis-set densities, owing to their lack of cusp at the nuclei as well as incorrect far-field decay, induce highly unphysical features in the vxcs obtained from inverse calculations. To this end, we provide two numerical strategies, which, for all practical purposes, remedy the Gaussian basis-set artifacts and thereby allow for accurate evaluation of the exact vxcs from CI densities. It is to be noted that the following numerical strategies are only necessitated due to the unphysical asymptotics in the Gaussian basis-set densities and not due to any inadequacy of the proposed inverse DFT algorithm.

To begin with, the CI density obtained from a Gaussian basis has wrong decay characteristics away from the nuclei (i.e., Gaussian decay instead of exponential decay). This, in turn, results in incorrect asymptotics in the vxc obtained from an inverse DFT calculation. Thus, to ensure the correct asymptotics in vxc, we employ the following approach. First, we use an initial guess for vxc that satisfies the correct 1r decay. In particular, we use the Fermi–Amaldi potential (vFA)32. Next, we enforce homogeneous Dirichlet boundary condition on the adjoint function (pi) in the low-density region (i.e., ρdata<106), while solving Eq. 7. In effect, this fixes the vxc to its initial value in the low-density region, thereby ensuring correct far-field asymptotics in the vxc. This approach is also crucial to obtaining an agreement between the highest occupied Kohn–Sham eigenvalue (ϵH) and the negative of the ionization potential (Ip), as mandated by the Koopmans’ theorem33,34.

Furthermore, the Gaussian basis-set-based CI densities lack the cusp at the nuclei, which, in turn, leads to undesirable oscillations in the vxc near the nuclei in any inverse DFT calculation3537. We demonstrate this in the case of equilibrium H2 molecule (bond-length RH-H=1.4 a.u.), henceforth denoted as H2(eq). Figure 4 shows the vxc profile for H2(eq) corresponding to the ρdata(r) obtained from a CI calculation, discretized using UGBS. As evident, we observe large unphysical oscillations in the vxc near the nuclei. We remedy these oscillations by adding a small correction, Δρ(r) to ρdata(r), so as to correct for the missing cusp at the nuclei. The Δρ(r) is given by

Δρ(r)=ρFEDFT(r)ρGDFT(r), 10

where ρFEDFT(r) is the ground-state density obtained from a forward DFT calculation using a known xc functional (e.g., LDA and GGA) and discretized using the FE basis, and ρGDFT(r) denotes the same, albeit obtained using the Gaussian basis employed in the CI calculation. The key idea here is that ρFEDFT(r), obtained from the FE basis, contains the cusp. Thus, one can expect Δρ to reasonably capture the Gaussian basis-set error near the nuclei. In addition, Δρ(r)dr=0, preserving the number of electrons. A conceptually similar approach has been explored in ref. 37, wherein one post-processes the vxc instead of pre-processing the ρdata, to remove the oscillations arising from the lack of cusp in ρdata. We illustrate the efficacy of the Δρ correction with the H2(eq) molecule as an example. Figure 5 presents the vxc corresponding to the cusp-corrected density (i.e., ρdata+Δρ) for H2(eq), with two different Δρ: ΔρLDA evaluated using an LDA functional27,28 and ΔρGGA evaluated using a GGA functional38. As evident, both ΔρLDA- and ΔρGGA-based cusp correction generate smooth vxc profiles. More importantly, both the profiles are nearly identical, except for small differences in the bonding region between the H atoms. Further, a comparison of both these vxcs against the LDA-based xc potential (vxcLDA) elucidates the significant difference between the exact vxc and vxcLDA even for a simple system that is not strongly correlated. Lastly, for both the vxcs, we obtain the same ϵH of 0.601 Ha, which, in turn, is in excellent agreement with the Ip (listed in Table 1). We remark that the agreement of ϵH with Ip is a stringent test of the accuracy of the inversion and is particularly sensitive to the vxc in the far field.

Fig. 4.

Fig. 4

Artifact of Gaussian basis-set-based density. The exchange-correlation potential (vxc) is evaluated from inverse DFT, using ρdata obtained from a Gaussian basis-set-based configuration interaction (CI) calculation for the equilibrium hydrogen molecule (H2(eq)). The lack of cusp in ρdata at the nuclei induces wild oscillations in the vxc obtained through inversion. The two atoms are located at r=±0.7 a.u

Fig. 5.

Fig. 5

Exchange-correlation potentials (vxc) for equilibrium H2. A comparison is provided between the exact and the LDA-based vxc potential. The exact exchange-correlation potential is evaluated using the cusp-corrected configuration interaction (CI) density. The effect of the choice of the functional used in evaluating the cusp correction is demonstrated using two different functionals—LDA (exactΔρLDA) and GGA (exactΔρGGA)

Table 1.

Comparison of the highest occupied Kohn–Sham eigenvalue (ϵH) and the negative of the ionization potential (Ip) (all in Ha)

H2(eq) H2(2eq) H2(d) H2O C6H4
ϵH 0.601 0.482 0.479 0.452 0.354
Ip 0.604 0.484 0.498 0.454 0.355

Exact vxc from CI densities for molecules

We now combine the above numerical strategies to evaluate the exact vxc for four other benchmark systems—two stretched H2 molecules and two polyatomic systems (water and ortho-benzyne molecules). The CI calculations for all the molecules, excepting ortho-benzyne, are performed using the UGBS. For ortho-benzyne, we used the cc-PVTZ basis. Given the weak sensitivity of the inverted vxc to the choice of xc functional used in Δρ, we employ ΔρLDA for performing the cusp correction in all our calculations. Further, for all the systems, the inverse problem is deemed to have converged when ρdataρL2<104. We remark that the L2 error norm is a natural convergence criterion, given the form of the objective function in Eq. 1. However, given that previous works on this inverse problem have reported the L1 error, we provide the same in the Supplementary Table 2, for all the benchmark systems considered. Figure 6 compares the vxc for two stretched H2 molecules—H2(2eq) (RH-H=2.83 a.u., roughly twice the equilibrium bond length) and H2(d) (RH-H=7.56 a.u., at dissociation). We emphasize that these are prototypical systems where all existing xc approximations perform poorly, owing to their failure in handling strong correlations. We could successfully solve the inverse DFT problem for these systems (ρdataρL2~8×105), thereby suggesting that our approach works equally well for strongly correlated systems. As indicated in Table 1, we get remarkable agreement between ϵH and Ip for H2(2eq). However, for H2(d), we obtain ϵH within 19 mHa of Ip. We attribute this larger difference between ϵH and Ip (as compared with H2(eq) and H2(2eq)) to the use of vFA as the boundary condition for vxc in the low-density region. To elaborate, for a single-orbital system, vFA is the exact vx (exchange-only potential) and, hence, represents the exact vxc in regions where the correlations are negligible. Although for the H2(eq) and H2(2eq) molecules the correlations are short-ranged, they are relatively longer-ranged for H2(d). We highlight this in Fig. 7 by comparing the vxc against vx for H2(eq), H2(2eq), and H2(d). As evident, H2(d) has strong correlations extending to a significantly larger domain (in the far-field) in comparison with H2(eq) and H2(2eq). Thus, for H2(d), the use of vFA is warranted only in regions of much lower density (i.e., ρdata106) than considered here. However, at such low densities, the wrong far-field asymptotics of a Gaussian basis-set density produces spurious oscillations in the far-field vxc. Thus, for the want of more accurate densities, we are restricted to using vFA in regions where ρdata<106, at the cost of incurring some error in ϵH.

Fig. 6.

Fig. 6

Exact vxc for stretched H2 molecules. The exact vxc is provided for two stretched hydrogen molecules: one at twice the equilibrium bond length (H2(2eq)) and the other at dissociation (H2(d)). The H atoms for H2(2eq) and H2(d) are located at r=±1.415 a.u. and r=±3.78 a.u., respectively

Fig. 7.

Fig. 7

Nature and extent of electronic correlations in H2 molecules. A comparison of the exact exchange-correlation (vxc) and the exchange-only (vx) potentials is provided for H2 molecules at three different bond lengths: (a) equilibrium bond length (H2(eq)); (b) twice the equilibrium bond length (H2(2eq)); (c) at dissociation (H2(d)). The relative difference between vxc and vx indicates the nature and extent of electronic correlations. The correlations become stronger with bond stretching

We now turn to a polyatomic system—the H2O molecule. Figure 8 compares the exact vxc against vxcLDA, on the plane of the H2O molecule. In particular, Fig. 8c provides the comparison along the O–H bond. For the exact vxc, we observe an atomic inter-shell structure—marked by a yellow ring around the O atom in Fig. 8b (as well as the local maxima and minima at around r=±0.4 a.u. in Fig. 8c). This atomic inter-shell structure is a distinctive feature of the exact vxc39,40 and is absent in the standard xc approximations, as evident from vxcLDA. Further, we observe a deeper potential around the O atom, as compared with vxcLDA, thereby suggesting a higher electronegativity on the O atom than that predicted by LDA. Moreover, we observe a distinct local maximum at the H atom, as opposed to a local minimum in vxcLDA. Lastly, as indicated in Table 1, we obtain striking agreement between ϵH and Ip for this polyatomic system.

Fig. 8.

Fig. 8

Comparison of exchange-correlation potentials (vxc) for H2O. a LDA-based exchange-correlation potential. b Exact exchange-correlation potential. c Comparison of the LDA-based and the exact exchange-correlation potential along the O–H bond. In a and b, the vxc (in a.u.) is presented on the plane of the molecule. Refer to Supplementary Table 3 for the coordinates

Finally, we evaluate the exact vxc for the singlet state of the ortho-benzyne radical (C6H4)—a strongly correlated species that has previously served as a test for accurate wavefunction theories41. Figure 9 compares the exact vxc against vxcLDA, on the plane of the benzyne molecule. This example underscores the efficacy of our approach in handling both large and strongly correlated systems. As expected for the exact vxc, we observe an atomic inter-shell structure—marked by a yellow ring around the C atoms, which, on the other hand, are absent in the case of vxcLDA. As is the case with H2O, we observe a deeper potential around the C atom, as compared with vxcLDA, suggesting a higher electronegativity on the C atom than that predicted by LDA. Furthermore, as indicated in Table 1, we obtain remarkable agreement between ϵH and Ip.

Fig. 9.

Fig. 9

Comparison of exchange-correlation potentials (vxc) for C6H4. a LDA-based exchange-correlation potential. b Exact exchange-correlation potential. In both the cases, the vxc (in a.u.) is presented on the plane of the molecule. Refer to Supplementary Table 3 for the coordinates

Discussion

We have presented an accurate and robust method to evaluate the exact vxc, solely from the ground-state electron density. The key ingredients in our approach are—(a) the effective use of FE basis, which is a systematically convergent and complete basis, and, in turn, results in a well-posed inverse DFT problem; (b) the use of Δρ correction and appropriate far-field boundary conditions to alleviate the unphysical artifacts associated with Gaussian basis-set densities. We emphasize that the proposed approach can easily drive the error in the target densities, i.e., ρdataρL2, to tight tolerances of O(105104)—which represents a stringent accuracy (see the Supplementary Discussion for a comparison with existing methods). Notably, as demonstrated through the 1,3-dimethylbenzene and the ortho-benzyne molecules, our approach can competently handle system sizes, which have, heretofore, remained challenging for other inverse DFT methods. Furthermore, for all the exact vxcs obtained from CI densities, we obtain excellent agreement between ϵH and Ip (excepting in the case of H2(d)), further validating the accuracy and robustness of the approach. We remark that the larger discrepancy between ϵH and Ip in the case of H2(d) is a consequence of long-range (static) correlations in this system coupled with incorrect far-field asymptotics of Gaussian basis-set densities and can be remedied with the availability of more accurate densities. The ability to evaluate the exact xc potentials from ground-state electron densities, enabled by this method, will provide a powerful tool in the future testing and development of approximate xc functionals. Further, it paves the way for using machine learning to construct the functional dependence of vxc on ρ, i.e., vxc[ρ], providing another avenue to develop density functionals24,42,43 that can systematically improve both ground-state densities and energies44 as well as satisfy the known conditions on the exact functional4547.

Methods

Discretization

We employ spectral FE basis to discretize all the spatial fields—vxc, {ψi}, {pi}. The FE basis is constructed from piecewise polynomials on non-overlapping subdomains called elements. The basis, thus constructed, can be systematically improved to completeness by reducing the element size and/or increasing the polynomial order48. We remark that the spectral FE basis are not orthogonal and, hence, result in a generalized eigenvalue problem as opposed to the more desirable case of standard eigenvalue problem. To this end, we use special reduced-order quadrature (Gauss–Legendre–Lobatto quadrature rule) to render the overlap matrix diagonal and, thereby, trivially transform the generalized eigenvalue problem into a standard one. For all the H2 molecules, we used adaptively refined quadratic FEs to discretize the {ψi} and {pi}, whereas for all other systems we used adaptively refined fourth-order FEs. The vxc, in all the calculations, is discretized using linear FEs. Most importantly, the form of the FE basis is chosen carefully, so as to guarantee the cusp in ψis (and hence in ρ) at the nuclei, which in turn is critical to obtaining accurate vxcs near the nuclei (refer to the Supplementary Note 1 for more information).

Solvers

In order to efficiently solve the Kohn–Sham eigenvalue problem in Eq. 5, we employ the Chebyshev polynomial-based filtering technique4850. We remark that, compared with a forward ground-state DFT calculation, the inverse DFT calculation warrants much tighter accuracy in solving the Kohn–Sham eigenvalue equation(s). However, the use of a very high polynomial degree Chebyshev filter can generate an ill-conditioned subspace, akin to any power iteration-based eigen solver. To circumvent the ill conditioning and attain higher accuracy, we employ multiple passes of a low polynomial degree Chebyshev filter (polynomial order ~1000) and orthonormalize the Chebyshev-filtered vectors between two successive passes. The number of passes is determined adaptively so as to guarantee an accuracy of 109 in ĤψiϵiψiL2.

The discrete adjoint function (pi) is solved by, first, projecting Eq. 7 onto a space orthogonal to the corresponding ψi (or degenerate ψis) and then employing the conjugate-gradient method to compute the solution. The discrete adjoint problem is solved to an accuracy of 1012 in (Ĥϵi)pigiL2.

The update for vxc is computed using limited-memory Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm, a memory-efficient quasi-Newton solver, which constructs approximate Hessian matrices using the history of the gradients51. In all the calculations, we used a history of size 100 to construct the approximate Hessian. We refer to Supplementary Discussion for details on the rate of convergence and the factors affecting it.

Weights

To expedite the convergence of the nonlinear solver, we make use of two different weights, w(r)=1 and w(r)=1ρdataα (1α2), in sequence. The latter penalizes the objective function in the low-density region.

Ab initio densities

Accurate electron densities were generated using the incremental full CI (iFCI) method29 in the Q-Chem software package52. This method solves the electronic Schrödinger equation via a many-body expansion and asymptotically produces the exact electronic energy and density as the number of bodies in the expansion approaches the all-electron limit. For this study, electron densities were provided in the all-valence-electron limit of iFCI, i.e., where the full valence set is fully correlated and the core orbitals of H2O and C6H4 are treated as uncorrelated electron pairs. Reference ionization energies were obtained at the same level of theory, for each system with one less electron.

Supplementary information

Supplementary Information (526.6KB, pdf)
Peer Review File (383KB, pdf)

Acknowledgements

We thank O. Ghattas for fruitful discussions. We are grateful for the support of Toyota Research Institute under the auspices of which this work was conducted. We also acknowledge the support of Department of Energy, Office of Science, under grant number DE-SC0017380, which supported the development of all-electron DFT calculations using the finite-element basis that was instrumental in this work. V.G. also acknowledges the support of Air Force Office of Scientific Research under grant number FA-9550-17-1-0172, which supported the development of some aspects of the computational framework used in this work. This research used resources of the National Energy Research Scientific Computing Center, a DOE Office of Science User Facility supported by the Office of Science of the US Department of Energy under Contract Number DE-AC02-05CH11231. This work used the Extreme Science and Engineering Discovery Environment (XSEDE), which is supported by National Science Foundation Grant number ACI-1053575. V.G. also gratefully acknowledges the support of the Army Research Office through the DURIP grant W911NF1810242, which also provided computational resources for this work.

Author contributions

V.G. designed the research. B.K. performed the inverse DFT calculations. P.M.Z. performed the CI calculations. B.K. and V.G. analyzed the data. All authors contributed to the manuscript.

Data availability

The authors declare that all the data supporting the results of this study are available upon reasonable request to the corresponding author.

Code availability

The code used to perform inverse DFT calculations is available upon reasonable request to the corresponding author.

Competing interests

The authors declare no competing interests.

Footnotes

Peer review information Nature Communications thanks Jason D. Goodpaster and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Supplementary information is available for this paper at 10.1038/s41467-019-12467-0.

References

  • 1.Hohenberg P, Kohn W. Inhomogeneous electron gas. Phys. Rev. 1964;136:B864–B871. doi: 10.1103/PhysRev.136.B864. [DOI] [Google Scholar]
  • 2.Kohn W, Sham LJ. Self-consistent equations including exchange and correlation effects. Phys. Rev. 1965;140:A1133–A1138. doi: 10.1103/PhysRev.140.A1133. [DOI] [Google Scholar]
  • 3.Kohn W, Becke AD, Parr RG. Density functional theory of electronic structure. J. Phys. Chem. 1996;100:12974–12980. doi: 10.1021/jp960669l. [DOI] [Google Scholar]
  • 4.Cohen AJ, Mori-Sánchez P, Yang W. Challenges for density functional theory. Chem. Rev. 2012;112:289–320. doi: 10.1021/cr200107z. [DOI] [PubMed] [Google Scholar]
  • 5.Burke K. Perspective on density functional theory. J. Chem. Phys. 2012;136:150901. doi: 10.1063/1.4704546. [DOI] [PubMed] [Google Scholar]
  • 6.Becke AD. Perspective: fifty years of density-functional theory in chemical physics. J. Chem. Phys. 2014;140:18A301. doi: 10.1063/1.4869598. [DOI] [PubMed] [Google Scholar]
  • 7.Jones RO. Density functional theory: Its origins, rise to prominence, and future. Rev. Mod. Phys. 2015;87:897–923. doi: 10.1103/RevModPhys.87.897. [DOI] [Google Scholar]
  • 8.Mardirossian N, Head-Gordon M. Thirty years of density functional theory in computational chemistry: an overview and extensive assessment of 200 density functionals. Mol. Phys. 2017;115:2315–2372. doi: 10.1080/00268976.2017.1333644. [DOI] [Google Scholar]
  • 9.Zhao Q, Morrison RC, Parr RG. From electron densities to Kohn-Sham kinetic energies, orbital energies, exchange-correlation potentials, and exchange-correlation energies. Phys. Rev. A. 1994;50:2138–2142. doi: 10.1103/PhysRevA.50.2138. [DOI] [PubMed] [Google Scholar]
  • 10.van Leeuwen R, Baerends EJ. Exchange-correlation potential with correct asymptotic behavior. Phys. Rev. A. 1994;49:2421–2431. doi: 10.1103/PhysRevA.49.2421. [DOI] [PubMed] [Google Scholar]
  • 11.Peirs K, VanNeck D, Waroquier M. Algorithm to derive exact exchange-correlation potentials from correlated densities in atoms. Phys. Rev. A. 2003;67:012505. doi: 10.1103/PhysRevA.67.012505. [DOI] [Google Scholar]
  • 12.Wu Q, Yang W. A direct optimization method for calculating density functionals and exchange-correlation potentials from electron densities. J. Chem. Phys. 2003;118:2498–2509. doi: 10.1063/1.1535422. [DOI] [Google Scholar]
  • 13.Jensen DS, Wasserman A. Numerical methods for the inverse problem of density functional theory. Int. J. Quant. Chem. 2018;118:e25425. doi: 10.1002/qua.25425. [DOI] [Google Scholar]
  • 14.Wang Y, Parr RG. Construction of exact Kohn-Sham orbitals from a given electron density. Phys. Rev. A. 1993;47:R1591–R1593. doi: 10.1103/PhysRevA.47.R1591. [DOI] [PubMed] [Google Scholar]
  • 15.Gritsenko OV, van Leeuwen R, Baerends EJ. Molecular Kohn-Sham exchange-correlation potential from the correlated ab initio electron density. Phys. Rev. A. 1995;52:1870–1874. doi: 10.1103/PhysRevA.52.1870. [DOI] [PubMed] [Google Scholar]
  • 16.Ryabinkin IG, Staroverov VN. Determination of Kohn-Sham effective potentials from electron densities using the differential virial theorem. J. Chem. Phys. 2012;137:164113. doi: 10.1063/1.4763481. [DOI] [PubMed] [Google Scholar]
  • 17.Tozer DJ, Ingamells VE, Handy NC. Exchange-correlation potentials. J. Chem. Phys. 1996;105:9200–9213. doi: 10.1063/1.472753. [DOI] [Google Scholar]
  • 18.Jacob CR. Unambiguous optimization of effective potentials in finite basis sets. J. Chem. Phys. 2011;135:244102. doi: 10.1063/1.3670414. [DOI] [PubMed] [Google Scholar]
  • 19.Heaton-Burgess T, Bulat FA, Yang W. Optimized effective potentials in finite basis sets. Phys. Rev. Lett. 2007;98:256401. doi: 10.1103/PhysRevLett.98.256401. [DOI] [PubMed] [Google Scholar]
  • 20.Bulat FA, Heaton-Burgess T, Cohen AJ, Yang W. Optimized effective potentials from electron densities in finite basis sets. J. Chem. Phys. 2007;127:174101. doi: 10.1063/1.2800021. [DOI] [PubMed] [Google Scholar]
  • 21.Ryabinkin IG, Kohut SV, Staroverov VN. Reduction of electronic wave functions to Kohn-Sham effective potentials. Phys. Rev. Lett. 2015;115:083001. doi: 10.1103/PhysRevLett.115.083001. [DOI] [PubMed] [Google Scholar]
  • 22.Cuevas-Saavedra R, Ayers PW, Staroverov VN. Kohn-Sham exchange-correlation potentials from second-order reduced density matrices. J. Chem. Phys. 2015;143:244116. doi: 10.1063/1.4937943. [DOI] [PubMed] [Google Scholar]
  • 23.Ospadov E, Ryabinkin IG, Staroverov VN. Improved method for generating exchange-correlation potentials from electronic wave functions. J. Chem. Phys. 2017;146:084103. doi: 10.1063/1.4975990. [DOI] [PubMed] [Google Scholar]
  • 24.Brockherde F, et al. Bypassing the Kohn-Sham equations with machine learning. Nat. Commun. 2017;8:872. doi: 10.1038/s41467-017-00839-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Nagai R, Akashi R, Sasaki S, Tsuneyuki S. Neural-network Kohn-Sham exchange-correlation potential and its out-of-training transferability. J. Chem. Phys. 2018;148:241737. doi: 10.1063/1.5029279. [DOI] [PubMed] [Google Scholar]
  • 26.vanLeeuwen R, Baerends EJ. Energy expressions in density-functional theory using line integrals. Phys. Rev. A. 1995;51:170–178. doi: 10.1103/PhysRevA.51.170. [DOI] [PubMed] [Google Scholar]
  • 27.Slater JC, Johnson KH. Self-consistent-field Xα cluster method for polyatomic molecules and solids. Phys. Rev. B. 1972;5:844–853. doi: 10.1103/PhysRevB.5.844. [DOI] [Google Scholar]
  • 28.Perdew JP, Wang Y. Accurate and simple analytic representation of the electron-gas correlation energy. Phys. Rev. B. 1992;45:13244–13249. doi: 10.1103/PhysRevB.45.13244. [DOI] [PubMed] [Google Scholar]
  • 29.Zimmerman PM. Incremental full configuration interaction. J. Chem. Phys. 2017;146:104102. doi: 10.1063/1.4977727. [DOI] [PubMed] [Google Scholar]
  • 30.de Castro EVR, Jorge FE. Accurate universal Gaussian basis set for all atoms of the Periodic Table. J. Chem. Phys. 1998;108:5225–5229. doi: 10.1063/1.475959. [DOI] [Google Scholar]
  • 31.Dunning TH. Gaussian basis sets for use in correlated molecular calculations. I. The atoms boron through neon and hydrogen. J. Chem. Phys. 1989;90:1007–1023. doi: 10.1063/1.456153. [DOI] [Google Scholar]
  • 32.Ayers PW, Morrison RC, Parr RG. Fermi-Amaldi model for exchange-correlation: atomic excitation energies from orbital energy differences. Mol. Phys. 2005;103:2061–2072. doi: 10.1080/00268970500130183. [DOI] [Google Scholar]
  • 33.Perdew JP, Levy M. Comment on “significance of the highest occupied Kohn-Sham eigenvalue”. Phys. Rev. B. 1997;56:16021–16028. doi: 10.1103/PhysRevB.56.16021. [DOI] [Google Scholar]
  • 34.Casida ME. Correlated optimized effective-potential treatment of the derivative discontinuity and of the highest occupied Kohn-Sham eigenvalue: a Janak-type theorem for the optimized effective-potential model. Phys. Rev. B. 1999;59:4694–4698. doi: 10.1103/PhysRevB.59.4694. [DOI] [Google Scholar]
  • 35.Mura ME, Knowles PJ, Reynolds CA. Accurate numerical determination of Kohn-Sham potentials from electronic densities: I. Two-electron systems. J. Chem. Phys. 1997;106:9659–9667. doi: 10.1063/1.473838. [DOI] [Google Scholar]
  • 36.Schipper PRT, Gritsenko OV, Baerends EJ. Kohn-Sham potentials corresponding to Slater and Gaussian basis set densities. Theor. Chem. Acc. 1997;98:16–24. doi: 10.1007/s002140050273. [DOI] [Google Scholar]
  • 37.Gaiduk AP, Ryabinkin IG, Staroverov VN. Removal of basis-set artifacts in Kohn-Sham potentials recovered from electron densities. J. Chem. Theory Comput. 2013;9:3959–3964. doi: 10.1021/ct4004146. [DOI] [PubMed] [Google Scholar]
  • 38.Perdew JP, Burke K, Ernzerhof M. Generalized gradient approximation made simple. Phys. Rev. Lett. 1996;77:3865–3868. doi: 10.1103/PhysRevLett.77.3865. [DOI] [PubMed] [Google Scholar]
  • 39.Gritsenko O, vanLeeuwen R, Baerends EJ. Analysis of electron interaction and atomic shell structure in terms of local potentials. J. Chem. Phys. 1994;101:8955–8963. doi: 10.1063/1.468024. [DOI] [Google Scholar]
  • 40.Gritsenko OV, Leeuwen Rv, Baerends EJ. Molecular exchange-correlation Kohn-Sham potential and energy density from ab initio first- and second-order density matrices: Examples for XH (X=Li, B, F) J. Chem. Phys. 1996;104:8535–8545. doi: 10.1063/1.471602. [DOI] [Google Scholar]
  • 41.Zimmerman PM. Singlet-triplet gaps through incremental full configuration interaction. J. Phys. Chem. A. 2017;121:4712–4720. doi: 10.1021/acs.jpca.7b03998. [DOI] [PubMed] [Google Scholar]
  • 42.Snyder JC, Rupp M, Hansen K, Müller K-R, Burke K. Finding density functionals with machine learning. Phys. Rev. Lett. 2012;108:253002. doi: 10.1103/PhysRevLett.108.253002. [DOI] [PubMed] [Google Scholar]
  • 43.Li L, Baker TE, White SR, Burke K. Pure density functional for strong correlation and the thermodynamic limit from machine learning. Phys. Rev. B. 2016;94:245129. doi: 10.1103/PhysRevB.94.245129. [DOI] [Google Scholar]
  • 44.Medvedev MG, Bushmarinov IS, Sun J, Perdew JP, Lyssenko KA. Density functional theory is straying from the path toward the exact functional. Science. 2017;355:49–52. doi: 10.1126/science.aah5975. [DOI] [PubMed] [Google Scholar]
  • 45.Sun J, Ruzsinszky A, Perdew JP. Strongly constrained and appropriately normed semilocal density functional. Phys. Rev. Lett. 2015;115:036402. doi: 10.1103/PhysRevLett.115.036402. [DOI] [PubMed] [Google Scholar]
  • 46.Li C, Zheng X, Su NQ, Yang W. Localized orbital scaling correction for systematic elimination of delocalization error in density functional approximations. Natl Sci. Rev. 2017;5:203–215. doi: 10.1093/nsr/nwx111. [DOI] [Google Scholar]
  • 47.Su NQ, Li C, Yang W. Describing strong correlation with fractional-spin correction in density functional theory. Proc. Natl Acad. Sci. USA. 2018;115:9678–9683. doi: 10.1073/pnas.1807095115. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Motamarri, P., et al. DFT-FE - A massively parallel adaptive finite-element code for large-scale density functional theory calculations. Comput. Phys. Commun. (in press).
  • 49.Zhou Y, Saad Y, Tiago ML, Chelikowsky JR. Parallel self-consistent-field calculations via Chebyshev-filtered subspace acceleration. Phys. Rev. E. 2006;74:066704. doi: 10.1103/PhysRevE.74.066704. [DOI] [PubMed] [Google Scholar]
  • 50.Motamarri P, Nowak M, Leiter K, Knap J, Gavini V. Higher-order adaptive finite-element methods for Kohn-Sham density functional theory. J. Comput. Phys. 2013;253:308–343. doi: 10.1016/j.jcp.2013.06.042. [DOI] [Google Scholar]
  • 51.Nocedal J. Updating quasi-Newton matrices with limited storage. Math. Comput. 1980;35:773–782. doi: 10.1090/S0025-5718-1980-0572855-7. [DOI] [Google Scholar]
  • 52.Shao Y, et al. Advances in molecular quantum chemistry contained in the Q-Chem 4 program package. Mol. Phys. 2015;113:184–215. doi: 10.1080/00268976.2014.952696. [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Information (526.6KB, pdf)
Peer Review File (383KB, pdf)

Data Availability Statement

The authors declare that all the data supporting the results of this study are available upon reasonable request to the corresponding author.

The code used to perform inverse DFT calculations is available upon reasonable request to the corresponding author.


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES