In a system of electrons, there is a map connecting any external potential v with its electron density ρ v . In this work, we describe a procedure for inverting this potentialto-density map, so that potentials (if any) corresponding to a target density ρ t can be obtained. We give the trial external potential v α , an analytic expression depending on a number of parameters α = (α 1 , …) and then minimize the leastsquares integral Ð (ρ α − ρ t ) 2 dr by the conjugate gradient method, where ρ α is the density corresponding to v α . The implementation takes advantage of the analytic nature of v α . The procedure can be applied to any system and quantum chemistry model, and works both for ground and excited states, as well as for ensembles of states. The method is tested with some excited states of the particle-in-a-box model, confirming the lack of a Hohenberg-Kohn theorem for excited states. It is also applied to the first singlet excited state of the helium atom, where, apart from the nucleus-electron attraction potential, some generalized external potentials are found.density-functional theory, Hohenberg-Kohn theorem, inverse problems, Kohn-Sham effective potential, potential-to-density map
| INTRODUCTIONDensity-functional theory (DFT) is nowadays, more than 50 years after its origin, [1,2] an essential tool in many fields of physics and chemistry.The cornerstone of DFT is the Hohenberg-Kohn theorem, [1] which states that, in a system of electrons, two external potentials differing by more than a constant cannot yield the same ground-state electron density (an "external" potential is one not caused by the electrons, for instance, the electrostatic potential due to the nuclear charges).The Hohenberg-Kohn theorem is an existence theorem in the sense that, although there is only one external potential mapped to a given ground-state density, this map is not known explicitly. In practice, to get the potential, one can take advantage of the techniques used to solve inverse problems. [3] Developing a procedure for inverting the potential-to-density map, although far from trivial, is a worthwhile undertaking because of the fundamental nature of the information than can be obtained. In particular:• Given an accurate ground-state electron density, one can compute, by means of an inverting procedure, the effective Kohn-Sham potential, [2] and from it obtain [4][5][6] some properties such as Kohn-Sham kinetic energies, orbitals, or exchange-correlation potentials. The knowledge of these properties will help to assess the quality of existing DFT functionals or to design new ones.