Sie sind auf Seite 1von 12

A Method to Calculate Correlation for Density Functional Theory on a Quantum Processor

Ryan Hatcher, Jorge A. Kittl and Christopher Bowen


Advanced Logic Laboratory, Samsung Semiconductor Inc., Austin, Texas, 78754 USA
An extension of the Variational Quantum Eigensolver (VQE) method is presented where a quantum
computer generates an accurate exchange-correlation potential for a Density Functional Theory (DFT)
simulation on classical hardware. The method enables efficient simulations of quantum systems by
interweaving calculations on classical and quantum resources. DFT is implemented on classical hardware,
which enables the efficient representation of and operation on quantum systems while being formally exact.
The portion of the simulation operating on quantum hardware produces an accurate exchange-correlation
potential but only requires relatively short depth quantum circuits.

I. INTRODUCTION vehicle for the classical portion of the simulation given the
Since the quantum computer was first proposed, tremendous existing infrastructure that can be leveraged. In
numerous quantum algorithms have been developed to addition, the DFT formalism is both exact and tractable to
solve many different kinds of problems [1]. However, it simulate quantum mechanics on classical hardware [10].
may be that the first practical application of quantum The DFT formalism casts the usual many-body problem
computing could be to solve that first problem for which it where the state space is exponential in the number of
was proposed: the simulation of many-body quantum particles being simulated instead to a system of non-
systems [2]. Subsequent approaches have been proposed to interacting particles that can be described by a set of single-
efficiently simulate the exponential state space of both time- particle states that grows linearly with the number of
dependent and time-independent quantum systems [3, 4]. particles being simulated. All the many-body effects are
However, quantum computing platforms available to date swept into a single approximation, known as the exchange-
have imposed significant constraints on simulations due to correlation energy, which is a functional of the density alone.
both the limited number of qubits available for the Although the exact exchange-correlation functional is not
calculations as well as the relatively short qubit coherence known, approximations have improved significantly over
times and modest gate fidelity. Therefore, a useful quantum the last 70+ years and proven to be surprisingly accurate for
computing application must be able to demonstrate many systems (see [11] for an overview of the depth and
superiority (i.e. quantum supremacy) over a classical breadth of exchange-correlation functionals). Still, DFT
simulation using relatively few qubits with a short depth. fails spectacularly for a number of systems of interest [12]
For example, Quantum Phase Estimation (QPE) [5, 6, 7] can and while improvements to exchange up to and including
be employed to find the ground state or even excited states exact exchange can be introduced, in general it is not
of quantum systems but requires a machine that can tractable to systematically correct errors in the
maintain coherence for many more sequential gate approximation to correlation effects. In the proposed
operations than have been achievable in practice for approach, the quantum portion of the simulation provides
nontrivial problems. The goal for the proposed approach is the classical portion with just such a systematic means to
to harness the ability of quantum computers to efficiently include accurate correlation effects via a corrected
represent and operate on the exponential state space of a exchange-correlation functional.
many-body quantum state without relying on deep quantum
circuits for which no hardware is available nor likely to be
II. BACKGROUND
In this section, relevant quantities from the second
available for many years or even decades.
quantization formalism are defined and a brief overview of
To that end, a hybrid quantum/classical simulation of the VQE method is presented. The second quantized form
quantum mechanics is proposed where the strengths of each of the time-independent Schrodinger equation is defined in
computational platform offsets the weakness of its a basis of orthonormal single particle functions, |𝜓𝑖 ⟩. An 𝑁-
counterpart. This approach is an extension of the particle state corresponding to the single particle basis with
Variational Quantum Eigensolver (VQE) method [8, 9], 𝑀 basis functions can be described by the occupation
which has been demonstrated for small molecules. Unlike number vector:
previous VQE instantiations, the classical portion of the
simulation proposed here is largely executed within a |𝑛⃗⟩ = |𝑛1 , 𝑛2 , … , 𝑛𝑀 ⟩ (1)
Density Functional Theory (DFT) framework along with
some limited pre- and post-processing. DFT is an attractive
Each labelled occupation, 𝑛𝑖 , corresponds to a single mapping the fermionic creation/annihilation operators to
particle basis function, 𝜓𝑖 , and is either unoccupied or operators that can be implemented directly in hardware.
occupied by one particle, 𝑛𝑖 = {0, 1} . For an 𝑁 -particle Fortunately, gate-based quantum computers support Pauli
state there is the constraint: spin operators directly and several methods to efficiently
map fermionic annihilation/creation operators to Pauli
∑𝑀
𝑖=1 𝑛𝑖 = 𝑁 (2)
operators have been proposed and demonstrated [9, 13, 14,
The many-body wavefunction can be constructed from a 15, 16]. Each of the one- and two-body reduced density
linear combination of 𝑃 states in the occupation basis. matrix elements (5) and (6) can then be cast as a sum of
tensored single-qubit Pauli operators and can be estimated
|Ψ⟩ = ∑𝑃𝛼=1 𝑐𝛼 |𝑛⃗𝛼 ⟩ (3) by measuring the expectation value of the individual terms
For 𝑁 particles in a basis of 𝑀 states, the number of terms qubit by qubit.
in the many-body wavefunction is: The process is repeated iteratively with a new guess for
𝑀! the set of wavefunction parameters from a classical
𝑃= (4)
𝑁!(𝑀−𝑁)! minimization algorithm. This approach has the advantage
of enabling calculations of the total energy that formally
Define the one-body reduced density matrix:
include the exchange and correlation effects of a second
𝜌𝑖𝑗 ≡ ⟨Ψ|𝑎̂𝑖† 𝑎̂𝑗 |Ψ⟩ (5) quantized many-body wavefunction. Moreover, only
relatively short-depth quantum circuits are required to
𝑎̂𝑖† (𝑎̂𝑗 ) are creation (annihilation) operators. The two-body calculate each term in the expectation value. Finally,
reduced density matrix is defined as: although one doesn’t have access to the wavefunction
directly, the parameters to prepare the lowest energy
Γ𝑖𝑗𝑘𝑙 ≡ ⟨Ψ|𝑎̂𝑖† 𝑎̂𝑘† 𝑎̂𝑙 𝑎̂𝑗 |Ψ⟩ (6) wavefunction are available and thus any property can be
calculated for which there exists a known operator.
The second quantized Hamiltonian for a set of 𝑁 electrons
in an external field 𝑉̂𝑒𝑥𝑡 is:
III. METHOD
̂ = ∑𝑀 𝑒𝑥𝑡 † A hybrid approach is described below that is an
𝐻 𝑖,𝑗=1(𝑡𝑖𝑗 + 𝑣𝑖𝑗 )𝑎̂𝑖 𝑎̂𝑗 +
extension of the VQE method. The key difference is that the
1 𝑀
∑ 𝑣 𝑒𝑒 𝑎̂† 𝑎̂† 𝑎̂ 𝑎̂
2 𝑖,𝑗,𝑘,𝑙=1 𝑖𝑗𝑘𝑙 𝑖 𝑘 𝑙 𝑗
(7) method maintains both a set of non-interacting
wavefunctions on a classical platform as well as a set of
𝑒𝑥𝑡
𝑡𝑖𝑗 is the kinetic energy matrix element, 𝑣𝑖𝑗 is the single- interacting wavefunctions on a quantum platform that both
particle external potential matrix element (e.g. due to nuclei map to the same density upon convergence. This enables
𝑒𝑒 one to take full advantage of the DFT formalism on the
or an external magnetic field) and 𝑣𝑖𝑗𝑘𝑙 is the electron-
electron potential matrix element (see Appendix B). classical side, where it is tractable to represent and operate
on a set of non-interacting wavefunctions. It is an iterative
Given a wavefunction, the energy is the expectation method where calculations on a classical platform are
value of the Hamiltonian, which can be expressed as the interweaved with calculations on quantum hardware.
trace of the reduced density matrices:
DFT provides an exact treatment of the many-body
1
ℰ = ∑𝑀 𝑒𝑥𝑡 𝑀 𝑒𝑒
𝑖,𝑗=1(𝑡𝑖𝑗 + 𝑣𝑖𝑗 )𝜌𝑖𝑗 + 2 ∑𝑖,𝑗,𝑘,𝑙=1 𝑣𝑖𝑗𝑘𝑙 Γ𝑖𝑗𝑘𝑙 (8) quantum ground state given the exact exchange-correlation
energy functional, 𝐸𝑥𝑐 [𝜌] [10]. The advantage of DFT on
Aspuru-Guzik et al [8] first proposed the VQE method classical platforms is that it requires only the storage of and
where the single-particle matrix elements are calculated operation on the electronic density and a small set of
classically and the reduced one- and two-body density fictitious non-interacting wavefunctions, which can be
matrices are calculated on a quantum computer. The stored efficiently. Once a ground state DFT simulation has
wavefunction is not known explicitly but instead prepared converged, any ground state quantity for which an operator
on the quantum computer by applying a sequence of can be defined can be calculated relatively efficiently as
parametrized operations on a well-defined reference state. long as the exact 𝐸𝑥𝑐 is provided and the DFT density is
Note that the parameters are essentially the settings on the equal to the many-body ground state density. However, only
“knobs” of the machine that can be stored classically. To approximations to 𝐸𝑥𝑐 have been available and DFT
find the ground state, a classical optimization algorithm is simulations tend to perform poorly for systems where
applied to the parameters where the objective function is to correlation effects are significant [12].
minimize the total energy. The expectation value of the
Hamiltonian can be calculated for a trial wavefunction by
There is an exponential increase in computation enabled quantum computer with 50 qubits can represent the state
by a quantum computer in the size of the many-body basis space of a system with 25 fermions in 50 states efficiently,
in which the Hamiltonian is diagonalized. Consider a which corresponds to 1.26 × 1014 terms in the many-body
many-body system with 𝑁 electrons occupying a subset of wavefunction. Furthermore, as described above, provided
𝑀 total states ( 𝑁 ≤ 𝑀) where the number of possible the matrix elements of the Hamiltonian from a classical
occupation number vectors for such a system is given by (4). simulation it is possible to efficiently map the second
In the second quantized formulation, one can represent the quantized Hamiltonian to Pauli operators that are then
occupation of each state with a qubit thereby efficiently applied to a many-body wavefunction with an exponential
encoding all 2𝑀 possible occupations for 𝑁 = 0. . 𝑀 number of occupation states. Following the VQE method, a
particles with only 𝑀 qubits. Even for quantum computers classical optimization algorithm is then applied to find the
with a relatively modest number of qubits, there can be a parameters that generate a wavefunction that minimizes the
substantial computational advantage. For example, a total energy.

Figure 1. Flow diagram of the proposed scheme. It is an iterative scheme with the classical portion of the calculation shown on the
right and the quantum tasks on the left. The corrected KS kinetic energy operator, 𝑇̂, and the matrix elements in the corrected local
𝑙𝑜𝑐
exchange-correlation potential 𝑣̂𝑥𝑐 are given in Appendix B.

A. Tasks for the Classical Platform The Kohn-Sham (KS) Hamiltonian is then diagonalized in
There are three steps in the classical portion of the loop. order to find the eigenvectors and eigenvalues, which are
The first step is to construct the exchange-correlation the KS wavefunctions, 𝜓𝑖𝐾𝑆 and energies 𝜀𝑖𝐾𝑆 .
potential. The simulation is initiated by choosing an
̂ 𝐾𝑆 𝜓𝑖𝐾𝑆 = 𝜀𝑖𝐾𝑆 𝜓𝑖𝐾𝑆
ℋ (10)
approximation to the exchange-correlation potential [11].
For all subsequent iterations, there is a set of reduced one- Based on the KS eigenvalues, 𝜀𝑖𝐾𝑆 , the occupations, 𝑓𝑖 , of
and two-body matrix elements that are passed in from the the KS wavefunctions are then calculated with which the
quantum portion of the simulation. The exchange- density, 𝜌𝐾𝑆 (𝒓), can be constructed.
correlation potential is then constructed directly. Appendix
2
B contains the derivation of and expression for the many- 𝜌𝐾𝑆 (𝒓) = ∑𝑖 𝑓𝑖 |𝜓𝑖𝐾𝑆 (𝒓)| (11)
body corrected exchange-correlation potential (B48).
Although the KS wavefunctions and eigenvalues are
The second step is a DFT simulation. First, a non- fictitious, the density is exact in the limit that the exchange-
interacting Hamiltonian is constructed as the sum of the 𝐾𝑆
correlation functional, 𝐸𝑥𝑐 , is exact (𝑣̂𝑒𝑓𝑓 is constructed in
kinetic energy operator and an effective potential.
part from the 𝐸𝑥𝑐 ).
̂ 𝐾𝑆 = 𝑇̂ 𝐾𝑆 + 𝑣̂𝑒𝑓𝑓
ℋ 𝐾𝑆
(9)
The third step is to form a single particle basis set, 𝜙𝑖 , 2
Δ𝜌(𝒓) ≡ 𝑁 ∑𝑀
𝑖<𝑗 𝑅𝑒 (𝜌𝑖𝑗 𝑒
𝑖(𝜉𝑗 −𝜉𝑖 )
) (15)
with which the interacting wavefunctions will be
constructed in the quantum portion of the loop and calculate Note that by constraining the basis to satisfy (12), the many-
the Hamiltonian matrix elements associated with this new body correction to the density will have an oscillatory term
basis. One option would be to use the KS states as the basis. that should result in significant cancellation in the limit of
However, the many-body density could be quite different large 𝑀 . Furthermore, in the limit that the exact 𝑣𝑥𝑐 is
from the DFT density for such a basis and this may prevent applied, the correction term will vanish identically since the
convergence between the quantum and classical portions of KS density and the many-body density will be equal. It is
the calculation. Instead, the single particle basis is conjectured though not proven here that as the simulation
constructed so that each state is constrained to reproduce the progresses, the many-body correction to the density (15) be
density calculated from the occupied KS orbitals: reduced and the approximation to the exchange-correlation
1 potential will improve as the big loop converges. It may
|𝜙𝑖 (𝒓)|2 = 𝜌𝐾𝑆 (𝒓) (12)
𝑁 even be that the magnitude of the density correction could
Since the volume integral of the density in (11) is equal to be a reasonable quantity to test for convergence. Or perhaps
1 the density correction itself can be cleverly leveraged to
the number of electrons, 𝑁, the factor of 𝑁 in (12) ensures
improve convergence directly.
that ⟨𝜙𝑖 |𝜙𝑖 ⟩ = 1. Consider the following form of such a
basis: IV. DISCUSSION
An extension of the VQE method has been described
𝜌𝐾𝑆 (𝒓) 𝑖𝜉 (𝒓 )
𝜙𝑖 (𝒓) = √ 𝑁
𝑒 𝑖 (13) where a quantum computer efficiently generates an accurate
exchange-correlation potential for a DFT simulation on
𝜉𝑖 (𝒓 ) is a real function that enforces orthonormality classical hardware. Both the VQE method and the method
between the states [17, 18, 19]. Several bases of this form described here seek to enable accurate and efficient
have been proposed [19, 20, 21]. The basis proposed by simulations of quantum systems in a complementary
Zumbach and Maschke [20] is presented in Appendix A fashion by leveraging the strengths and offsetting the
along with functional derivatives required to construct the weaknesses of quantum and classical computing platforms.
exchange-correlation potential. The exchange-correlation The key difference is that the method described here
potential is derived in Appendix B. invokes the DFT formalism in the classical portion of the
The last part of the classical portion of the calculation is to simulation, which enables the efficient representation of and
form and store the matrix elements that are needed to form operation on quantum systems while being formally exact.
the many-body Hamiltonian corresponding to this basis. Moreover, this method harnesses significant functionality
Note that the density-constrained basis will not necessarily and infrastructure of existing DFT codes. The weakness of
span the space of the occupied KS states. DFT is that many-body correlation effects must be
approximated and there are no known tractable methods to
B. Tasks for the Quantum Platform improve these approximations systematically. On the
The goal of the quantum portion of the simulation is to quantum side, the weakness of the DFT simulation is
take as input the single particle basis set, 𝜙𝑖 , and mitigated by implementing a second quantized formalism
𝑒𝑥𝑡 𝑒𝑒
corresponding matrix elements, 𝑡𝑖𝑗 , 𝑣𝑖𝑗 , and 𝑣𝑖𝑗𝑘𝑙 , from enabling the efficient representation of and operation on an
the classical calculation, find the lowest energy eigenstate. exponential number of terms in the occupation basis, which
The one- and two-body reduced density matrices, 𝜌𝑖𝑗 and in turn enables the efficient calculation of many-body
Γ𝑖𝑗𝑘𝑙 , are then passed back to the classical portion of the correlation effects. The weakness on the quantum side is
simulation. Given a single-particle basis, 𝜙𝑖 , that is both that the hardware currently available (and perhaps for the
orthonormal and whose square modulus is the Kohn-Sham foreseeable future) is limited to a modest number of qubits
density, the density of any 𝑁 particle many body and the coherence times and gate fidelities limit the depth
wavefunction has the following form: of the quantum circuits that can be executed. Interweaving
classical calculations reduces the depth of the circuits that
𝜌(𝒓) = (1 + Δ𝜌(𝒓))𝜌𝐾𝑆 (𝒓) (14) must be performed during the quantum portion thus
mitigating the limitation on the depth that the quantum
Δ𝜌 is the exact expression for the many-body correction to
computer needs to support.
the KS density, which depends on the exact form of the
single-particle basis set. For the constrained basis of the It may seem unnecessary and perhaps even
form given in (13), the many-body correction (from counterproductive to construct the constrained single-
appendix B) is: particle basis from the DFT density. As noted in the
previous section, it is conjectured that as the exchange- for the quality of the constructed basis is to compare the
correlation potential improves, the many-body correction ground state energy calculated in this single-particle basis
(15) to the density will get smaller. The justification for against the energy of the ground state calculated with a
constructing a constrained basis is that it should always single-particle basis of DFT eigenstates.
result in a relatively small many-body correction due to the
Acknowledgements.
oscillatory term in the sum in and should help speed up
convergence in the overall calculation. However, there is no The authors would like to thank Dr. Jay Gambetta and Dr.
guarantee that the constructed basis will span the space of Kristen Temme for fruitful discussions.
the original DFT eigenstates, nor is it guaranteed that this
basis will span the space required for the system. One test
References Review of Modern Physics, vol. 80, no. 1, pp. 3-60,
[1] S. Jordan, "NIST Quantum Algorithm Zoo," 2008.
[Online]. Available: [13] G. Ortiz, J. Gubernatis, E. Knill and R. Laflamme,
https://math.nist.gov/quantum/zoo/. "Quantum algorithms for fermionic simulations,"
[2] R. P. Feynman, "Simulating Physics with Physical Review A, vol. 64, p. 022319, 2001.
Computers," International Journal of Theoretical [14] S. Bravyi and A. Kitaev, "Fermionic Quantum
Physics, vol. 21, no. 6/7, pp. 467-488, 1982. Computation," Annals of Physics, vol. 298, no. 1, pp.
[3] J. Vartiainen, M. Mottonen and M. Salomaa, 210-226, 2002.
"Efficient Decomposition of Quantum Gates," [15] R. Ball, "Fermions without Fermion Fields,"
Physical Review Letters, vol. 92, no. 17, p. 177902, Physical Review Letters, vol. 95, p. 176407, 2005.
2004. [16] F. Verstraete and J. Cirac, "Mapping local
[4] S. Lloyd, "Universal Quantum Simulators," Science, Hamiltonians of fermions to local Hamiltonians of
vol. 273, pp. 1073-1078, 1996. spins," Journal of Statistical Mechanics: Theory and
[5] D. Poulin and P. Wocjan, "Sampling from the Experiment, p. 09012, 2005.
Thermal Quantum Gibbs State and Evlauating [17] W. Macke, "Zur wellenmechanischen Behandlung
Partition Functions with a Quantum Computer," von Vielkörperproblemen," Annalen der Physik, vol.
Physical Review Letters, vol. 103, p. 220502, 2009. 452, no. 1, 1955.
[6] E. Bilgin and S. Boixo, "Prepearing Thermal States [18] T. Gilbert, "Hohenberg-Kohn theorem for nonlocal
of Quantum Systems by Dimension Reduction," external potentials," Physical Review B, vol. 12, no.
Physical Review Letters , vol. 105, p. 170405, 2010. 6, pp. 2111-2120, 1975.
[7] A. Riera, C. Gogolin and J. Eisert, "Thermalization [19] J. Harriman, "Orthonormal orbitals for the
in Nature and on a Quantum Computer," Physical representation of an arbitrary density," Physical
Review Letters, vol. 108, p. 080402, 2012. Review A, vol. 24, no. 2, pp. 680-682, 1981.
[8] A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, [20] G. Zumbach and K. Maschke, "New approach to the
X.-Q. Zhou, P. Love, A. Aspuru-Guzik and J. calculation of density functionals," Physical Review
O'Brien, "A variational eigenvalue solver on a A, vol. 28, no. 2, pp. 544-554, 1983.
photonic quantum processor," Nature [21] S. Ghosh and R. Parr, "Density-determined
Communications, vol. 5, p. 4213, 2014. orthonormal orbital approach to atomic energy
[9] A. Kandala, A. Mezzacapo, K. Temme, M. Takita, functionals," Journal of Chemical Physics, vol. 82,
M. Brink, J. Chow and J. Gambetta, "Hardware- no. 7, pp. 3307-3315, 1985.
efficient variational quantum eigensolver for small [22] J.-S. Xu, M.-H. Yung, X.-Y. Xu, S. Boixo, Z.-W.
molecules and quantum magnets," Nature, vol. 549, Zhou, C.-F. Li, A. Aspuru-Guzik and G.-C. Guo,
pp. 242-246, 2017. "Nature Photonics," Demon-like algorithmic
[10] P. Hohenberg and W. Kohn, "Inhomogeneous quantum cooling and its realization with quantum
Electron Gas," Physical Review , vol. 136, pp. 864- optics, vol. 8, pp. 113-118, 2014.
871, 1964. [23] J. Bang, S.-W. Lee, C.-W. Lee and H. Jeong, "A
[11] M. Marques, M. Oliveira and T. Burnus, "LIBXC: A quantum algorithm for obtaining the lowest
library of exchange and correlation functionals for eigenstate of a Hamiltonian assisted with an ancillary
density functional theory," Computer Physics qubit system," Quantum Information Processing,
Communications, vol. 183, pp. 2272-2281, 2012. vol. 14, no. 1, pp. 103-118, 2015.
[12] S. Kummel and L. Kronik, "Orbital-dependent
density functionals: Theory and Applications,"
Appendix A Zumbach Maschke Basis and Functional Derivative
Zumbach and Mashke (ZM) [20] proposed a density constrained basis with the form given by (13):
𝜌(𝒓) 𝑖𝜉 (𝒓)
𝜙𝑖 (𝒓) = √ 𝑁
𝑒 𝑖 (A1)

The phase factor, 𝜉𝑖 , for the 𝑖 𝑡ℎ basis vector is real-valued and enforces orthogonality between different basis states:
𝜉𝑖 (𝒓) = 𝒌𝑖 ∙ 𝒇(𝒓) (A2)
𝑥,𝑦,𝑧
𝒌𝑖 is a 3-vector of integers, 𝑘𝑖 ∈ {0, ±1, ±2, … }, that uniquely specify a basis state. 𝒇(𝒓) is a 3-vector function over
space that is the same for all the basis states:
2𝜋 𝑥 2𝜋 𝑦 2𝜋 𝑧
𝒇(𝒓) = ∫ 𝑑𝑥 ′
𝑁 𝑥1
𝜌̿ (𝑥 ′ ) 𝑥̂ + 𝜌̿(𝑥) ∫𝑦 𝑑𝑦 ′ 𝜌̅ (𝑥, 𝑦 ′ ) 𝑦̂ + ∫ 𝑑𝑧 ′
̅ (𝑥,𝑦) 𝑧1
𝜌
𝜌(𝑥, 𝑦, 𝑧 ′ ) 𝑧̂ (A3)
1

The limits of integration are (𝑥1 , 𝑥2 ), (𝑦1 , 𝑦2 ), 𝑎𝑛𝑑 (𝑧1 , 𝑧2 ). The planar and linear densities are defined as:
𝑦 ,𝑧
𝜌̿ (𝑥) ≡ ∬𝑦 2,𝑧 2 𝜌(𝑥, 𝑦, 𝑧)𝑑𝑦 𝑑𝑧 (A4)
1 1

𝑧
𝜌̅ (𝑥, 𝑦) ≡ ∫𝑧 2 𝜌(𝑥, 𝑦, 𝑧) 𝑑𝑧 (A5)
1

Note there is freedom to choose the orientation of the axes and for every orientation there are six independent permutations.
This basis is normalized by construction. To show that it is orthogonal consider the overlap for two states 𝒌𝑖 ≠ 𝒌𝑗 .
1
⟨𝜙𝑖 |𝜙𝑗 ⟩ = ∫ 𝑑𝒓 𝜌(𝒓)𝑒 𝑖(𝒌𝑗−𝒌𝑖)∙𝒇(𝒓) (A6)
𝑁

Defining 𝒌𝑗𝑖 ≡ 𝒌𝑗 − 𝒌𝑖 and substituting in (A3)


𝑥 𝑦 𝑧
1 𝑖𝑘𝑗𝑖 𝑓𝑦 (𝑥,𝑦)
⟨𝜙𝑖 |𝜙𝑗 ⟩ = ∫ 𝑑𝑥 𝑒 𝑖𝑘𝑗𝑖𝑓𝑥 (𝑥) ∫ 𝑑𝑦 𝑒 ∫ 𝑑𝑧 𝜌(𝑥, 𝑦, 𝑧)𝑒 𝑖𝑘𝑗𝑖𝑓𝑧
(𝑥,𝑦,𝑧)
(A7)
𝑁

It can be shown that the integral over z is:


𝑧 (𝑥,𝑦,𝑧)
𝑖𝑘𝑗𝑖 𝑓𝑧
𝜌̅ (𝑥, 𝑦) , 𝑘𝑗𝑖𝑧 = 0
∫ 𝑑𝑧 𝜌(𝑥, 𝑦, 𝑧)𝑒 = { (A8)
0 , 𝑘𝑗𝑖𝑧 ≠ 0

The integral over y is:


𝑦
𝑦
𝑖𝑘𝑗𝑖 𝑓𝑦 (𝑥,𝑦) 𝜌̿ (𝑥) , 𝑘𝑗𝑖𝑧 = 𝑘𝑗𝑖 = 0
∫ 𝑑𝑦 𝜌̅ (𝑥, 𝑦) 𝑒 ={ (A9)
0 , 𝑒𝑙𝑠𝑒
Finally the integral over x is:
1 𝑥 1 , 𝒌𝑗𝑖 = 0
∫ 𝑑𝑥 𝜌̿ (𝑥)𝑒 𝑖𝑘𝑗𝑖𝑓𝑥 (𝑥) = { (A10)
𝑁 0 , 𝒌𝑗𝑖 ≠ 0

The functional derivative of the phase factors will be required to derive the exchange correlation matrix elements in
Appendix B. Note that the following derivation works for the phase factor of a single state 𝜉𝑖 or the product form, 𝜉𝑗𝑖 . The
functional derivative of the general form of an exponentiated function is:
𝑖𝜉 (𝒓′ )
𝛿𝑒 𝑗𝑖 ′ 𝛿𝜉𝑗𝑖 (𝒓′ )
𝛿𝜌(𝒓)
= 𝑒 𝑖𝜉𝑗𝑖 (𝒓 ) 𝛿𝜌(𝒓)
(A11)

The functional derivative of the ZM phase factor is


𝑥 𝑦
𝛿𝜉𝑗𝑖 (𝒓′ ) 2𝜋𝑘𝑗𝑖 𝛿 𝑥′ 𝛿 2𝜋𝑘 𝑦′ 𝛿 2𝜋𝑘 𝑧 𝑧′
𝛿𝜌(𝒓)
= 𝑁

𝛿𝜌(𝒓) 𝑥1
𝑑𝑥 ′′ 𝜌̿ (𝑥 ′′ ) + 𝛿𝜌(𝒓) 𝜌̿(𝑥 ′𝑗𝑖) ∫𝑦 𝑑𝑦 ′′ 𝜌̅ (𝑥 ′ , 𝑦 ′′ ) + 𝛿𝜌(𝒓) 𝜌̅(𝑥 ′ ,𝑦𝑗𝑖′ ) ∫𝑧 𝑑𝑧 ′′ 𝜌(𝑥 ′ , 𝑦 ′ , 𝑧 ′′ ) (A12)
1 1
The first term is trivial to evaluate observing that:
𝑥′ ̿ (𝑥 ′′ )
𝛿𝜌 𝑥′ 𝑦 𝑧 𝛿𝜌(𝒓′′ ) 𝑥′ 𝑦 𝑧
∫𝑥 𝑑𝑥 ′′ 𝛿𝜌(𝒓)
= ∫𝑥 ∫𝑦 2 ∫𝑧 2 𝑑𝒓′′
𝛿𝜌(𝒓)
= ∫𝑥 ∫𝑦 2 ∫𝑧 2 𝑑𝒓′′ 𝛿(𝒓 − 𝒓′′ ) = Θ(𝑥 ′ − 𝑥) (A13)
1 1 1 1 1 1 1

The Heaviside function is defined as:


1 , 𝑥≥0
Θ(𝑥) = { (A14)
0 , 𝑥<0
The second term requires the quotient rule for functional derivatives:
𝑦′
′′ ̅ (𝑥 ′ ,𝑦 ′′ ) 𝑦′
𝛿 ∫𝑦1 𝑑𝑦 𝜌 1 𝛿 𝑦′ ∫𝑦 𝑑𝑦 ′′ 𝜌
̅ (𝑥 ′ ,𝑦 ′′ ) 𝛿𝜌
̿ (𝑥 ′ )
̿ (𝑥 ′ )
= ∫
̿ (𝑥 ) 𝛿𝜌(𝒓) 𝑦1
′ 𝑑𝑦 ′′ ′
𝜌̅ (𝑥 , 𝑦 ′′ )
− 1
̿ 2 (𝑥 ′ )
(A15)
𝛿𝜌(𝒓) 𝜌 𝜌 𝜌 𝛿𝜌(𝒓)

Given that any function, 𝑔(𝑥), can be written as a functional 𝑔(𝑥) = ∫ 𝑑𝑥 ′ 𝑔(𝑥 ′ )𝛿(𝑥 − 𝑥 ′ ), the functional derivatives above
can be evaluated as:
𝛿 𝑦′ 𝑥 𝑦′ 𝑧 𝛿𝜌(𝒓′′ )
∫𝑦
𝑑𝑦 ′′ 𝜌̅ (𝑥 ′ , 𝑦 ′′ ) = ∫𝑥 2 ∫𝑦 ∫𝑧 2 𝑑𝒓′′ 𝛿(𝑥 ′ − 𝑥 ′′ ) = 𝛿(𝑥 ′ − 𝑥)Θ(𝑦 ′ − 𝑦) (A16)
𝛿𝜌(𝒓) 1 1 1 1 𝛿𝜌(𝒓)

̿ (𝑥 ′ )
𝛿𝜌 𝑥 𝑦 𝑧 𝛿𝜌(𝒓′′ )
= ∫𝑥 2 ∫𝑦 2 ∫𝑧 2 𝑑𝒓′′ 𝛿(𝑥 ′ − 𝑥 ′′ ) = 𝛿(𝑥 ′ − 𝑥) (A17)
𝛿𝜌(𝒓) 1 1 1 𝛿𝜌(𝒓)

Similarly, the third term in (A12) evaluates to:


′′ 𝑧′ ′ ′ ′′ 𝑧′
𝛿 ∫𝑧1 𝑑𝑧 𝜌(𝑥 ,𝑦 ,𝑧 ) 𝑧′ ′ ′ ′′ ∫𝑧 𝑑𝑧 ′′ 𝜌(𝑥 ′ ,𝑦 ′ ,𝑧 ′′ ) 𝛿𝜌
̅ (𝑥 ′ ,𝑦 ′)
1 ′′ 𝛿𝜌(𝑥 ,𝑦 ,𝑧 )
̅ (𝑥 ′ ,𝑦′ )
= ∫
̅ (𝑥 ′ ,𝑦′ ) 𝑧1
𝑑𝑧 − 1
̅ 2 (𝑥 ′ ,𝑦′ )
(A18)
𝛿𝜌(𝒓) 𝜌 𝜌 𝛿𝜌(𝒓) 𝜌 𝛿𝜌(𝒓)

The functional derivative in the first term is:


𝑧′ 𝛿𝜌(𝑥 ′ ,𝑦 ′ ,𝑧 ′′ ) 𝑥 𝑦 𝑧′ 𝛿𝜌(𝒓′′ )
∫𝑧 𝑑𝑧 ′′ 𝛿𝜌(𝒓)
= ∫𝑥 2 ∫𝑦 2 ∫𝑧 𝑑𝒓′′ 𝛿𝜌(𝒓)
𝛿(𝑥 ′ − 𝑥 ′′ )𝛿(𝑦 ′ − 𝑦 ′′ ) = 𝛿(𝑥 ′ − 𝑥)𝛿(𝑦 ′ − 𝑦)Θ(𝑧 ′ − 𝑧) (A19)
1 1 1 1

The functional derivative in the second term is:


̅ (𝑥 ′ ,𝑦 ′ )
𝛿𝜌 𝑥 𝑦 𝑧 𝛿𝜌(𝒓′′ )
𝛿𝜌(𝒓)
= ∫𝑥 2 ∫𝑦 2 ∫𝑧 2 𝑑𝒓′′ 𝛿𝜌(𝒓)
𝛿(𝑥 ′ − 𝑥 ′′ )𝛿(𝑦 ′ − 𝑦 ′′ ) = 𝛿(𝑥 ′ − 𝑥)𝛿(𝑦 ′ − 𝑦) (A20)
1 1 1

The functional derivative of the phase factor is then:


𝑦′
𝛿𝜉𝑗𝑖 (𝒓′ ) 2𝜋𝑘𝑗𝑖𝑥 ′ ′
𝑦 𝛿(𝑥 − 𝑥)Θ(𝑦 − 𝑦)
∫𝑦 𝑑𝑦 ′′ 𝜌̅ (𝑥 ′ , 𝑦 ′′ )

= Θ(𝑥 − 𝑥) + 2𝜋𝑘𝑗𝑖 ( − 1 𝛿(𝑥 ′ − 𝑥))
𝛿𝜌(𝒓) 𝑁 𝜌̿ (𝑥 ′ ) 𝜌̿ 2 (𝑥 ′ )

′′ 𝑧′
′ ′ ′′
𝛿(𝑥 ′ − 𝑥)𝛿(𝑦 ′ − 𝑦)Θ(𝑧 ′ − 𝑧) ∫𝑧1 𝑑𝑧 𝜌(𝑥 , 𝑦 , 𝑧 )
+ 2𝜋𝑘𝑗𝑖𝑧 ( − 𝛿(𝑥 ′ − 𝑥)𝛿(𝑦 ′ − 𝑦))
𝜌̅ (𝑥 ′ , 𝑦 ′ ) 𝜌̅ 2 (𝑥 ′ , 𝑦 ′ )

(A21)

Appendix B Density and Exchange-Correlation Matrix Elements


In this section, the density and exchange-correlation matrix elements are derived assuming a constrained basis as in (13).
The many-body density can be written as a function of the Kohn-Sham density and the one-body reduced density matrix.
Start with the second quantized wavefunction for 𝑁 particles in 𝑀 states:
|Ψ⟩ = ∑𝑃𝛼=1 𝑐𝛼 |𝑛⃗𝛼 ⟩ (B1)
𝑀!
𝑃 ≡ 𝑁!(𝑀−𝑁)! and ∑𝑃𝛼=1|𝑐𝛼 |2 = 1. Note that sums over Roman letters are sums over 𝑀 single-particle basis states while
sums over Greek letters are sums over 𝑃 terms in the many-body wavefunction. The density operator in the second quantized
formulation is:
𝜌̂ = ∑𝑀 ∗
̂𝑖† 𝑎̂𝑗
𝑖𝑗=1 𝜙𝑖 (𝒓)𝜙𝑗 (𝒓)𝑎 (B2)
The many-body density is then
𝜌(𝒓) = ⟨Ψ|𝜌̂|Ψ⟩ = ∑𝑀 ∗
𝑖𝑗=1 𝜙𝑖 (𝒓)𝜙𝑗 (𝒓)𝜌𝑖𝑗 (B3)

Rewrite this expression by separating the diagonal and off-diagonal terms in the wavefunction:
𝜌(𝒓) = ∑𝑀 ∗ 𝑀 ∗
𝑖=1 𝜙𝑖 (𝒓)𝜙𝑖 (𝒓)𝜌𝑖𝑖 + ∑𝑖≠𝑗 𝜙𝑖 (𝒓)𝜙𝑗 (𝒓)𝜌𝑖𝑗 (B4)

Assuming a constrained basis of the form (13), the diagonal terms can be simplified substituting ∑𝑀
𝑖=1 𝜌𝑖𝑖 = 𝑁 and
2 1 𝐾𝑆
|𝜙𝑖 (𝒓)| = 𝜌 (𝒓).
𝑁

∑𝑀 ∗ 𝐾𝑆
𝑖=1 𝜙𝑖 (𝒓)𝜙𝑖 (𝒓)𝜌𝑖𝑖 = 𝜌 (𝒓) (B5)
The off-diagonal terms do not vanish identically.
𝜌𝐾𝑆 (𝒓) 𝑀
∑𝑀 ∗
𝑖≠𝑗 𝜙𝑖 (𝒓)𝜙𝑗 (𝒓)𝜌𝑖𝑗 = ∑𝑖≠𝑗 𝑒 𝑖(𝜉𝑗 −𝜉𝑖) 𝜌𝑖𝑗 (B6)
𝑁

The many-body density can then be written in the following form:


𝜌(𝒓) = (1 + Δ𝜌(𝒓))𝜌𝐾𝑆 (𝒓) (B7)

The correction due to the off-diagonal terms is defined as:


2 𝑀 (𝒓)−𝜉𝑖 (𝒓))
Δ𝜌(𝒓) ≡ ∑ 𝑅𝑒 (𝜌𝑖𝑗 𝑒 𝑖(𝜉𝑗 ) (B8)
𝑁 𝑖<𝑗


Note that the one-body reduced density matrix is Hermitian, 𝜌𝑖𝑗 = 𝜌𝑗𝑖 . The many-body correction to the density (B8) will
vanish in the limit as the exchange-correlation potential is exact.
Here the exchange-correlation potential is derived first for the generalized form of the constrained basis (13) and then
assuming the ZM basis described in Appendix A as the single particle basis. In order to construct the many-body corrected
exchange-correlation potential, set the KS energy equal to the many-body energy (8) and solve for 𝐸𝑥𝑐 :
𝐸𝐾𝑆 = 𝑇𝐾𝑆 + 𝐸𝑒𝑥𝑡 + 𝐸𝐻 + 𝐸𝑥𝑐 = ℰ (B9)
𝐸𝑥𝑐 = ℰ − 𝑇𝐾𝑆 − 𝐸𝑒𝑥𝑡 − 𝐸𝐻 (B10)
𝑇𝐾𝑆 is the kinetic energy, 𝐸𝑒𝑥𝑡 is the energy due to external interactions and 𝐸𝐻 is the Hartree energy of the non-interacting
Kohn Sham (KS) wavefunctions, which can be calculated directly in a DFT framework. By following the usual variational
approach to deriving the KS equation where the functional derivative of the KS energy wrt the KS auxiliary wavefunctions,
𝜙𝑖 , is set to zero. The wavefunctions are constrained to be normalized by the method of undetermined multipliers:
𝛿
[𝐸𝐾𝑆 − 𝜆𝑖 (⟨𝜙𝑖∗ |𝜙𝑖 ⟩ − 1)] = 0 (B11)
𝛿𝜙𝑖∗

Plugging in the expression for the KS energy (B9) yields:


𝛿𝑇𝐾𝑆 𝛿𝐸𝑒𝑥𝑡 𝛿𝐸𝐻𝑎𝑟𝑡𝑟𝑒𝑒 𝛿𝐸𝑥𝑐
𝛿𝜙𝑖∗
+ 𝛿𝜙𝑖∗
+ 𝛿𝜙𝑖∗
+ 𝛿𝜙𝑖∗
− 𝜆 𝑖 𝜙𝑖 = 0 (B12)

𝛿𝜌
Noting that 𝛿𝜙𝑖∗
= 𝜙𝑖 , the following components of the potential can be identified including the exchange-correlation
𝛿𝐸𝑥𝑐 𝛿𝐸𝑥𝑐 𝛿𝐸𝑥𝑐 𝛿𝜌
potential 𝑣𝑥𝑐 ≡ 𝛿𝜌
and thus the fourth term above is 𝛿𝜙𝑖∗
= 𝛿𝜌 𝛿𝜙𝑖∗
= 𝑣𝑥𝑐 𝜙𝑖 . Similarly, the Hartree potential is defined
𝛿𝐸𝐻𝑎𝑟𝑡𝑟𝑒𝑒 𝜌(𝒓′ ) (1) 𝛿𝐸𝑒𝑥𝑡
as 𝑣𝐻 ≡ 𝛿𝜌
= ∫ 𝑑𝒓′ |𝒓−𝒓′ | and the one-body external potential is 𝑣𝑒𝑥𝑡 = 𝛿𝜌
. Finally, the Lagrange multipliers are
the KS eigenvalues, 𝜀𝑖 ≡ 𝜆𝑖 . With these substitutions, (B12) yields the familiar KS equation:
1 (1)
− 2 ∇2 𝜙𝑖 + (𝑣𝑒𝑥𝑡 (𝒓) + 𝑣𝐻 (𝒓) + 𝑣𝑥𝑐 (𝒓)) 𝜙𝑖 = 𝜀𝑖 𝜙𝑖 (B13)

Where atomic units were chosen such that ℏ = 𝑚𝑒 = 1. The Hamiltonian can be defined as
̂ = − 1 ∇2 + 𝑣𝑒𝑥𝑡
𝐻
(1)
(𝒓) + 𝑣𝐻 (𝒓) + 𝑣𝑥𝑐 (𝒓) (B14)
2

Given the expression for 𝐸𝑥𝑐 in (B10), the exchange-correlation potential is then:
𝛿ℰ 1 (1)
𝑣𝑥𝑐 𝜙𝑖 = + ∇2 𝜙𝑖 − 𝑣𝑒𝑥𝑡 𝜙𝑖 − 𝑣𝐻 𝜙𝑖 (B15)
𝛿𝜙𝑖∗ 2

To construct the exchange-correlation potential the functional derivative of the many-body energy must be evaluated
𝛿ℰ 𝛿𝑇 𝛿𝐸𝑒𝑥𝑡 𝛿𝐸𝑒𝑒
𝛿𝜙𝑖∗
= 𝛿𝜙∗ + 𝛿𝜙𝑖∗
+ 𝛿𝜙𝑖∗
(B16)
𝑖

Note these are many-body terms from (8), not Kohn-Sham energy terms. The many-body kinetic energy is given by:
𝑇 = ∑𝑀
𝑘,𝑗=1 𝜌𝑘𝑗 𝑡𝑘𝑗 (B17)

Where the many-body kinetic energy matrix element is defined as:


1
𝑡𝑘𝑗 = ⟨𝜙𝑘 |− 2 ∇2 |𝜙𝑗 ⟩ (B18)

The functional derivative of the many-body kinetic energy is then:


𝛿𝑇 𝛿𝑡𝑘𝑗
𝛿𝜙𝑖∗
= ∑𝑀
𝑘,𝑗=1 𝜌𝑘𝑗 𝛿𝜙∗ (B19)
𝑖

𝛿𝑇 1
This evaluates trivially to = − ∑𝑀 2
𝑗=1 𝜌𝑖𝑗 ∇ 𝜙𝑗 . This expression results in an orbital-dependent exchange-correlation
𝛿𝜙𝑖∗ 2
potential as can be observed when substituting (B16) into (B15).
Next evaluate the second term on the rhs of (B16)
𝑒𝑥𝑡
𝛿𝐸𝑒𝑥𝑡 𝛿𝑣𝑖𝑗

𝛿𝜙𝑘
= ∑𝑀
𝑖,𝑗=1 𝜌𝑖𝑗 ∗
𝛿𝜙𝑘
(B20)

(1)
The external potential matrix element for a one-body external potential, 𝑣𝑒𝑥𝑡 , is:
𝑒𝑥𝑡 (1)
𝑣𝑖𝑗 = ⟨𝜙𝑖 |𝑣𝑒𝑥𝑡 |𝜙𝑗 ⟩ (B21)

The functional derivative in (B20) can be evaluated trivially:


𝛿𝐸𝑒𝑥𝑡 (1) (1)
∗ = ∑𝑀 𝑀
𝑖,𝑗=1 𝜌𝑖𝑗 𝛿𝑖𝑘 𝑣𝑒𝑥𝑡 (𝒓)𝜙𝑗 (𝒓) = 𝑣𝑒𝑥𝑡 (𝒓) ∑𝑗=1 𝜌𝑘𝑗 𝜙𝑗 (𝒓) (B22)
𝛿𝜙𝑘

𝑒𝑥𝑡
Alternatively, because the one-body matrix element, 𝑣𝑖𝑗 , can be written in terms of the density explicitly assuming the
density constrained basis (13), the chain rule can be applied to (B20):
𝑒𝑥𝑡
𝛿𝐸𝑒𝑥𝑡 𝛿𝑣𝑖𝑗 𝛿𝜌

𝛿𝜙𝑘
= ∑𝑀
𝑖,𝑗=1 𝜌𝑖𝑗 𝛿𝜌 𝛿𝜙𝑘∗
= 𝑣𝑒𝑥𝑡 𝜙𝑘 (B23)

Where the many-body external potential is defined as:


𝛿𝑣 𝑒𝑥𝑡
𝑣𝑒𝑥𝑡 (𝒓) ≡ ∑𝑀 𝑖𝑗
𝑖,𝑗=1 𝜌𝑖𝑗 𝛿𝜌(𝒓) (B24)

𝑒𝑥𝑡
To evaluate the potential start with the expression for the 𝑣𝑖𝑗 matrix element assuming the generalized form (13):
𝑒𝑥𝑡 1 ′ (1)
𝑣𝑖𝑗 = 𝑁 ∫ 𝑑𝒓′ 𝜌(𝒓′ )𝑒 𝑖𝜉𝑗𝑖 (𝒓 ) 𝑣𝑒𝑥𝑡 (𝒓′ ) (B25)

Define 𝜉𝑗𝑖 (𝒓) ≡ 𝜉𝑗 (𝒓) − 𝜉𝑖 (𝒓). To evaluate the functional derivative apply the product rule:
𝑒𝑥𝑡 𝑖𝜉 (𝒓′ )
𝛿𝑣𝑖𝑗 1 𝛿𝜌(𝒓′ ) ′ 𝛿𝑒 𝑗𝑖 (1)
𝛿𝜌
= 𝑁 ∫ 𝑑𝒓′ ( 𝛿𝜌(𝒓) 𝑒 𝑖𝜉𝑗𝑖(𝒓 ) + 𝜌(𝒓′ ) 𝛿𝜌(𝒓)
) 𝑣𝑒𝑥𝑡 (𝒓′ ) (B26)
𝛿𝜌(𝒓′ )
Noting that 𝛿𝜌(𝒓)
= 𝛿(𝒓′ − 𝒓)
𝑒𝑥𝑡
𝛿𝑣𝑖𝑗 1 (1) ′ 𝛿𝜉𝑗𝑖 (𝒓′ ) (1)
𝛿𝜌(𝒓)
= 𝑁 𝑒 𝑖𝜉𝑗𝑖(𝒓) 𝑣𝑒𝑥𝑡 (𝒓) + ∫ 𝑑𝒓′ 𝜌(𝒓′ )𝑒 𝑖𝜉𝑗𝑖 (𝒓 ) 𝛿𝜌(𝒓)
𝑣𝑒𝑥𝑡 (𝒓′ ) (B27)

To evaluate the functional derivative in the second term requires an explicit form of 𝜉𝑗𝑖 (𝒓′ ). In the ZM basis, this matrix
element can be evaluated substituting in (A21)
𝑥 𝑦2 𝑧2
𝛿𝑣𝑖𝑗𝑒𝑥𝑡 1 𝑍𝑀 (1) 2𝜋𝑘𝑥𝑗𝑖 𝑍𝑀 ′ ′ ′ (1)
= 𝑒 𝑖𝜉𝑗𝑖 (𝒓) 𝑣𝑒𝑥𝑡 (𝒓) + ∫ 𝑑𝑥′ ∫ 𝑑𝑦′ ∫ 𝑑𝑧′ 𝜌(𝑥′, 𝑦 ′ , 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖 (𝑥 ,𝑦 ,𝑧 ) 𝑣𝑒𝑥𝑡 (𝑥, 𝑦 ′ , 𝑧 ′ )
𝛿𝜌(𝒓) 𝑁 𝑁
𝑥1 𝑦1 𝑧1

𝑦 𝑧2 𝑦2 𝑧2

𝑦
1 𝑍𝑀 ′ ′ (1) 1 𝑍𝑀 (𝑥,𝑦 ′ ′ ) (1)
+
𝑦
2𝜋𝑘𝑗𝑖 ( ∫ 𝑑𝑦 ∫ 𝑑𝑧 𝜌(𝑥, 𝑦
′ ′ ′
, 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖 (𝑥,𝑦 ,𝑧 ) 𝑣𝑒𝑥𝑡 (𝑥, 𝑦 ′ , 𝑧 ′ ) − ∫ 𝑑𝑦 ∫′
𝑑𝑦′′ 𝑖𝜉
𝜌̅ (𝑥, 𝑦′′ ) ∫ 𝑑𝑧′ 𝜌(𝑥, 𝑦 ′ , 𝑧 ′ )𝑒 𝑗𝑖
,𝑧
𝑣𝑒𝑥𝑡 (𝑥, 𝑦 ′ , 𝑧 ′ ))
𝜌̿ (𝑥) 𝜌̿ (𝑥)
2
𝑦1
𝑦1 𝑧1 𝑦1 𝑧1

𝑧 𝑧 ′
𝑧
1 𝑍𝑀
(𝑥,𝑦,𝑧 ′ ) (1) 1 𝑍𝑀
(𝑥,𝑦,𝑧 ′ ) (1)
+ 2𝜋𝑘𝑧𝑗𝑖 ( ∫ 𝑑𝑧′ 𝜌(𝑥, 𝑦, 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖 𝑣𝑒𝑥𝑡 (𝑥, 𝑦, 𝑧 ′ ) − ∫ 𝑑𝑧′ 𝜌(𝑥, 𝑦, 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖 𝑣𝑒𝑥𝑡 (𝑥, 𝑦, 𝑧 ′ ) ∫ 𝑑𝑧′′ 𝜌(𝑥, 𝑦, 𝑧′′ ))
𝜌̅ (𝑥, 𝑦) 𝜌̅ (𝑥, 𝑦)
2
𝑧1
𝑧1 𝑧1

(B28)
Substituting back into (B24) and splitting into diagonal (𝑖 = 𝑗) and off-diagonal (𝑖 ≠ 𝑗) components over the sum:
𝑒𝑥𝑡
(1) 1 𝛿𝑣̂𝑖𝑗
𝑣𝑒𝑥𝑡 (𝒓) = 𝑣𝑒𝑥𝑡 (𝒓) + 𝑁 ∑𝑀
𝑖≠𝑗 𝜌𝑖𝑗 𝛿𝜌(𝒓) (B29)

The sum over the diagonal components results in a factor of 𝑁. It can be seen that the diagonal component of the many-
body external potential is equal to the KS external potential, which is equal to the one-body external potential. The off-
diagonal component is therefore due to correlation effects and is included in the full expression for the exchange-correlation
potential. It should be noted that the external potential was assumed to be local in this derivation. For the case of non-local
external potentials (e.g. non-local pseudopotential representations of nuclei), the expressions both in (B25) and (B28) must
be modified accordingly.
Finally, consider the third term on the rhs of (B16).
𝑒𝑒
𝛿𝐸𝑒𝑒 1 𝛿𝑣𝑖𝑗𝑘𝑙
∗ = ∑𝑀
𝑖,𝑗,𝑘,𝑙=1 ∗ Γ𝑖𝑗𝑘𝑙 (B30)
𝛿𝜙𝑚 2 𝛿𝜙𝑚

𝑒𝑒
The electron-electron matrix element 𝑣𝑖𝑗𝑘𝑙 is:

𝑒𝑒 𝜙𝑖∗ (𝒓′ )𝜙𝑘


∗ ′′
(𝒓 )𝜙𝑗 (𝒓′ )𝜙𝑙 (𝒓′′ )
𝑣𝑖𝑗𝑘𝑙 = ∬ 𝑑𝒓′ 𝑑𝒓′′ |𝒓′ −𝒓′′ |
(B31)

𝛿𝜙𝑖∗ (𝒓′ )
The functional derivative of this matrix element is trivial to evaluate given that = 𝛿𝑖𝑗 𝛿(𝒓 − 𝒓′ ):
𝛿𝜙𝑗∗ (𝒓)
𝑒𝑒
𝛿𝑣𝑖𝑗𝑘𝑙 ∗ ′′
𝜙𝑘 (𝒓 )𝜙𝑗 (𝒓)𝜙𝑙 (𝒓′′ ) 𝜙𝑖∗ (𝒓′ )𝜙𝑗 (𝒓′ )𝜙𝑙 (𝒓)

𝛿𝜙𝑚
= 𝛿𝑖𝑚 ∫ 𝑑𝒓′′ |𝒓−𝒓′′ |
+ 𝛿𝑗𝑚 ∫ 𝑑𝒓′ |𝒓′ −𝒓|
(B32)

Since the sum is over all 𝑖, 𝑗 and the variables of integration are arbitrary, the functional derivative of the electron-electron
energy (B30) is
∗ ′
𝛿𝐸𝑒𝑒 𝜙𝑘 (𝒓 )𝜙𝑙 (𝒓′ )
∗ (𝒓)
𝛿𝜙𝑚
= ∑𝑀
𝑗,𝑘,𝑙=1 Γ𝑚𝑗𝑘𝑙 (∫ 𝑑𝒓

|𝒓−𝒓′ |
) 𝜙𝑗 (𝒓) (B33)

𝑒𝑒
Alternatively, apply the chain rule so that the functional derivative of the matrix element 𝑣𝑖𝑗𝑘𝑙 is taken wrt the density
𝑒𝑒
𝛿𝐸𝑒𝑒 1 𝛿𝑣𝑖𝑗𝑘𝑙 𝛿𝜌

𝛿𝜙𝑚
= 2 ∑𝑀
𝑖,𝑗,𝑘,𝑙=1 Γ𝑖𝑗𝑘𝑙 𝛿𝜌 𝛿𝜙𝑚 ∗ (B34)

𝛿𝐸𝑒𝑒
∗ (𝒓)
𝛿𝜙𝑚
= 𝑣 𝑒𝑒 (𝒓)𝜙𝑚 (𝒓) (B35)
𝑒𝑒
1 𝛿𝑣𝑖𝑗𝑘𝑙
𝑣 𝑒𝑒 (𝒓) = 2 ∑𝑀
𝑖,𝑗,𝑘,𝑙=1 Γ𝑖𝑗𝑘𝑙 𝛿𝜌
(B36)
Where the matrix element can be expressed explicitly in terms of the density assuming the generalized constrained basis
from (13)

′ 𝑖𝜉𝑗𝑖 (𝒓 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘 (𝒓′′ )
𝑒𝑒 [𝜌] 1 ′ ′′ 𝜌(𝒓 )𝑒
𝑣𝑖𝑗𝑘𝑙 = 𝑁2
∬ 𝑑𝒓 𝑑𝒓 |𝒓′ −𝒓′′ |
(B37)

The functional derivative wrt the density


𝑒𝑒 𝑖𝜉 (𝒓 ) ′′′
𝛿𝑣𝑖𝑗𝑘𝑙 1 𝛿 𝜌(𝒓′ )𝑒 𝑗𝑖 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘 (𝒓 )
𝛿𝜌(𝒓)
= 𝑁2 ∬ 𝑑𝒓′ 𝑑𝒓′′ 𝛿𝜌(𝒓) ( |𝒓′ −𝒓′′ |
) (B38)

Applying the product rule results in four terms:


𝑒𝑒 ′ ′′ ′ ′′
𝛿𝑣𝑖𝑗𝑘𝑙 1 𝛿𝜌(𝒓′ ) 𝑒 𝑖𝜉𝑗𝑖 (𝒓 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘 (𝒓 ) 𝜌(𝒓′ )𝑒 𝑖𝜉𝑗𝑖 (𝒓 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘 (𝒓 ) 𝛿𝜉𝑗𝑖 (𝒓′ )
= 2 ∬ 𝑑𝒓′ 𝑑𝒓′′ [ ( )+( )
𝛿𝜌(𝒓) 𝑁 𝛿𝜌(𝒓) |𝒓 − 𝒓 |
′ ′′ |𝒓′ − 𝒓′′ | 𝛿𝜌(𝒓)
′ ′′ ′ ′′
𝛿𝜌(𝒓′′ ) 𝜌(𝒓′ )𝑒 𝑖𝜉𝑗𝑖 (𝒓 ) 𝑒 𝑖𝜉𝑙𝑘 (𝒓 ) 𝜌(𝒓′ )𝑒 𝑖𝜉𝑗𝑖 (𝒓 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘 (𝒓 ) 𝛿𝜉𝑙𝑘 (𝒓′′ )
+ ( ) + ( ) ]
𝛿𝜌(𝒓) |𝒓′ − 𝒓′′ | |𝒓′ − 𝒓′′ | 𝛿𝜌(𝒓)
(B39)
𝛿𝜌(𝒓′ ) 𝛿𝜌(𝒓′′ )
The first and third terms are trivial to evaluate given that = 𝛿(𝒓′ − 𝒓) and = 𝛿(𝒓′′ − 𝒓).
𝛿𝜌(𝒓) 𝛿𝜌(𝒓)

𝑖𝜉 (𝒓′ ) ′′ 𝑖𝜉 (𝒓) ′′
𝛿𝜌(𝒓′ ) 𝑒 𝑗𝑖 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘 (𝒓 ) 𝑒 𝑗𝑖 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘 (𝒓 )
∬ 𝑑𝒓′ 𝑑𝒓′′ 𝛿𝜌(𝒓)
( |𝒓′ −𝒓′′ |
) = ∫ 𝑑𝒓′′ |𝒓−𝒓′′ |
(B40)


𝑖𝜉 (𝒓 ) 𝑖𝜉 (𝒓′′ ) ′
𝑖𝜉 (𝒓 ) 𝑖𝜉 (𝒓)
𝛿𝜌(𝒓′′ ) 𝜌(𝒓′ )𝑒 𝑗𝑖 𝑒 𝑙𝑘 𝜌(𝒓′ )𝑒 𝑗𝑖 𝑒 𝑙𝑘
∬ 𝑑𝒓′ 𝑑𝒓′′ 𝛿𝜌(𝒓)
( ′ ′′
|𝒓 −𝒓 |
) = ∫ 𝑑𝒓′ ′
|𝒓 −𝒓|
(B41)

Because the variables of integration are arbitrary, the first term with indices 𝑖𝑗𝑘𝑙 is equal to the third term with indices 𝑘𝑙𝑖𝑗
and thus the sum of the first and third terms are equal. To evaluate the second and fourth terms requires an explicit form of
the phase factor. For the ZM basis substitute (A21) into the second term:

′ ′′
𝜌(𝒓′ )𝑒 𝑖𝜉𝑗𝑖(𝒓 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓 ) 𝛿𝜉𝑗𝑖 (𝒓′ )
∬ 𝑑𝒓′ 𝑑𝒓′′ ( )
|𝒓′ − 𝒓′′ | 𝛿𝜌(𝒓)
𝑥 𝑦2 𝑧2 ′ ′′ 𝑦 𝑦 𝑧2 ′ ′ ′′
2𝜋𝑘𝑗𝑖𝑥 𝜌(𝒓′ )𝑒 𝑖𝜉𝑗𝑖(𝒓 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓 ) 2𝜋𝑘𝑗𝑖 𝜌(𝑥, 𝑦 ′ , 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖(𝑥,𝑦 ,𝑧 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓 )
= ∫ 𝑑𝑥 ′ ∫ 𝑑𝑦 ′ ∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′ ( )+ ∫ 𝑑𝑦 ′ ∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′ ( )
𝑁 |𝒓′ − 𝒓′′ | 𝜌̿ (𝑥) |(𝑥, 𝑦 ′ , 𝑧 ′ ) − 𝒓′′ |
𝑥1 𝑦1 𝑧1 𝑦1 𝑧1
𝑦 𝑦2 𝑧2 ′ ′ ′′ ) 𝑦′
𝑧 ′ ′′ )
2𝜋𝑘𝑗𝑖 𝜌(𝑥, 𝑦 ′ , 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖(𝑥,𝑦 ,𝑧 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓 2𝜋𝑘𝑗𝑖𝑧 𝜌(𝑥, 𝑦, 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖(𝑥,𝑦,𝑧 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓
− 2 ∫ 𝑑𝑦 ′ ∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′ ∫ 𝑑𝑦 𝜌̅ (𝑥, 𝑦 ′′ ) +
′′
∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′
𝜌̿ (𝑥) |(𝑥, 𝑦 ′ , 𝑧 ′ ) − 𝒓′′ | 𝑦1 𝜌̅ (𝑥, 𝑦) |(𝑥, 𝑦, 𝑧 ′ ) − 𝒓′′ |
𝑦1 𝑧1 𝑧1
𝑧2
2𝜋𝑘𝑗𝑖𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖 (𝑥,𝑦,𝑧 ′ ) ′′ )𝑒 𝑖𝜉𝑙𝑘 (𝒓′′ ) 𝑧′
𝜌(𝑥, 𝑦, 𝑧 𝜌(𝒓
− ∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′ ∫ 𝑑𝑧 ′′ 𝜌(𝑥, 𝑦, 𝑧 ′′ )
𝜌̅ 2 (𝑥, 𝑦) |(𝑥, 𝑦, 𝑧 ′ ) − 𝒓′′ | 𝑧1
𝑧1

(B42)
The fourth term with indices 𝑖𝑗𝑘𝑙 is equal to the second term with indices 𝑘𝑙𝑖𝑗. Given the symmetry over the indices, the
functional derivative of the electron-electron energy for the ZM basis can be written as:
𝑒𝑒
𝛿𝑣𝑖𝑗𝑘𝑙
𝛿𝜌(𝒓)
= 𝕍𝑒𝑒 𝑒𝑒
𝑖𝑗𝑘𝑙 (𝒓) + 𝕍𝑘𝑙𝑖𝑗 (𝒓) (B43)

The function 𝕍𝑒𝑒


𝑖𝑗𝑘𝑙 (𝒓) is defined:
𝑥 𝑦2 𝑧2 ′
2𝜋𝑘𝑗𝑖𝑥
′′ ) ′′
𝑖𝜉𝑗𝑖 (𝒓)
𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘 (𝒓 𝜌(𝒓′ )𝑒 𝑖𝜉𝑗𝑖 (𝒓 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓 )
𝕍𝑒𝑒
𝑖𝑗𝑘𝑙 (𝒓) ≡𝑒 ∫ 𝑑𝒓 ′′
+ ∫ 𝑑𝑥 ∫ 𝑑𝑦 ∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′ (
′ ′
)
|𝒓 − 𝒓′′ | 𝑁 |𝒓′ − 𝒓′′ |
𝑥1 𝑦1 𝑧1
𝑦 𝑦 𝑧2
2𝜋𝑘𝑗𝑖 ′ )𝑒 𝑖𝜉𝑗𝑖 (𝑥,𝑦 ′ ,𝑧 ′ ) ′′
𝜌(𝑥, 𝑦 , 𝑧 ′
𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓 )
+ ∫ 𝑑𝑦 ′ ∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′ ( )
𝜌̿ (𝑥) |(𝑥, 𝑦 ′ , 𝑧 ′ ) − 𝒓′′ |
𝑦1 𝑧1
𝑦 𝑦2 𝑧2 ′ ′ ′′ ) 𝑦′
2𝜋𝑘𝑗𝑖 𝜌(𝑥, 𝑦 ′ , 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖 (𝑥,𝑦 ,𝑧 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓
− ∫ 𝑑𝑦 ′ ∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′ ∫ 𝑑𝑦 ′′ 𝜌̅ (𝑥, 𝑦 ′′ )
𝜌̿ 2 (𝑥) |(𝑥, 𝑦 ′ , 𝑧 ′ ) − 𝒓′′ | 𝑦1
𝑦1 𝑧1
𝑧 ′
2𝜋𝑘𝑗𝑖𝑧
′′
𝜌(𝑥, 𝑦, 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖 (𝑥,𝑦,𝑧 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓 )
+ ∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′
𝜌̅ (𝑥, 𝑦) |(𝑥, 𝑦, 𝑧 ′ ) − 𝒓′′ |
𝑧1
𝑧2 ′
2𝜋𝑘𝑗𝑖𝑧
′′ ) 𝑧′
𝜌(𝑥, 𝑦, 𝑧 ′ )𝑒 𝑖𝜉𝑗𝑖 (𝑥,𝑦,𝑧 ) 𝜌(𝒓′′ )𝑒 𝑖𝜉𝑙𝑘(𝒓
− 2 ∫ 𝑑𝑧 ′ ∫ 𝑑𝒓′′ ∫ 𝑑𝑧 ′′ 𝜌(𝑥, 𝑦, 𝑧 ′′ )
𝜌̅ (𝑥, 𝑦) |(𝑥, 𝑦, 𝑧 ′ ) − 𝒓′′ | 𝑧1
𝑧1
(B44)
For the case where 𝑖 = 𝑗 and 𝑘 = 𝑙, the functional derivative above reduces to the Hartree potential:
𝑒𝑒
𝛿𝑣𝑖𝑖𝑘𝑘 2 𝜌(𝒓′ ) 2
= ∫ 𝑑𝒓′ |𝒓′ = 𝑣 (𝒓) (B45)
𝛿𝜌(𝒓) 𝑁 2 −𝒓| 𝑁2 𝐻

The many-body electron-electron potential (B36) can be written as the sum of terms diagonal in the two pairs 𝑖 = 𝑗 and 𝑘 =
𝑙 and the off-diagonal components:
𝑒𝑒
𝑣𝐻 (𝒓) 𝑀 1 𝛿𝑣𝑖𝑗𝑘𝑙
𝑣𝑒𝑒 (𝒓) = 𝑁2
∑𝑖,𝑘=1 Γ𝑖𝑖𝑘𝑘 + 2 ∑𝑀
𝑖≠𝑗,𝑘≠𝑙=1 𝛿𝜌
Γ𝑖𝑗𝑘𝑙 (B46)

For 𝑁 electrons in 𝑀 states, it can be shown that ∑𝑀


𝑖,𝑘=1 Γ𝑖𝑖𝑘𝑘 = 𝑁(𝑁 − 1). Substituting this into the above equation leaves
the following expression for the many-body electron-electron potential:
𝑒𝑒
1 1 𝛿𝑣𝑖𝑗𝑘𝑙
𝑣𝑒𝑒 (𝒓) = 𝑣𝐻 (𝒓) (1 − 𝑁) + 2 ∑𝑀
𝑖≠𝑗,𝑘≠𝑙 𝛿𝜌
Γ𝑖𝑗𝑘𝑙 (B47)

The many-body corrected exchange-correlation operator applied to state 𝜙𝑚 can then be obtained by substituting (B16),
(B19), (B29), and (B47) into (B15)
1
𝑣𝑥𝑐 𝜙𝑚 = 2 ∑𝑀 2 𝑙𝑜𝑐
𝑗=1(𝛿𝑚𝑗 − 𝜌𝑚𝑗 )∇ 𝜙𝑗 + 𝑣𝑥𝑐 (𝒓)𝜙𝑚 (B48)
𝑙𝑜𝑐
𝑣𝑥𝑐 is the local exchange-correlation potential (again, assuming a local external potential) for the ZM basis:
𝑒𝑥𝑡 𝑒𝑒
1 𝛿𝑣𝑖𝑗 1 𝛿𝑣𝑖𝑗𝑘𝑙 1
𝑙𝑜𝑐 (𝒓)
𝑣𝑥𝑐 ≡ 𝑁 ∑𝑀
𝑖≠𝑗 𝜌𝑖𝑗 𝛿𝜌
+ 2 ∑𝑀
𝑖≠𝑗,𝑘≠𝑙=1 𝛿𝜌
Γ𝑖𝑗𝑘𝑙 − 𝑁 𝑣𝐻 (𝒓) (B49)
𝑒𝑥𝑡 𝑒𝑒
𝛿𝑣𝑖𝑗 𝛿𝑣𝑖𝑗𝑘𝑙
The matrix elements 𝛿𝜌
and 𝛿𝜌
are basis/density dependent and can be calculated according to (B28) and (B43). The
many-body corrected Hamiltonian operator applied to a state 𝜙𝑚 is:
̂ |𝜙𝑚 ⟩ = − 1 ∑𝑀
𝐻
(1)
𝜌 𝛻 2 |𝜙𝑗 ⟩ + 𝑣̂𝑒𝑥𝑡 |𝜙𝑚 ⟩ + 𝑣̂𝐻 |𝜙𝑚 ⟩ + 𝑣̂𝑥𝑐
𝑙𝑜𝑐 |𝜙 ⟩
(B50)
2 𝑗=1 𝑚𝑗 𝑚

Note that that only the first term depends on the basis. The remaining terms are local and basis independent and can therefore
be applied to an arbitrary state in the DFT framework. In order to apply the first term to an arbitrary state, |𝜓⟩, in the DFT
framework it is necessary to expand in the basis of the constructed basis |𝜓⟩ = ∑𝑚|𝜙𝑚 ⟩⟨𝜙𝑚 |𝜓⟩:
̂ |𝜓⟩ = − 1 ∑𝑀
𝐻 2
𝑚𝑗=1 𝜌𝑚𝑗 ⟨𝜙𝑚 |𝜓⟩𝛻 |𝜙𝑗 ⟩ + 𝑣
(1) 𝑙𝑜𝑐 |𝜓⟩
̂𝑒𝑥𝑡 |𝜓⟩ + 𝑣̂𝐻 |𝜓⟩ + 𝑣̂𝑥𝑐 (B51)
2

Das könnte Ihnen auch gefallen