Task 3: Expectation values#
There are two main quantities that we wish to compute for the ground state in this project. They are the full many-body ground state energy \(E\) from the restricted Hartree-Fock method, and the particle density (also known as the one-body density or the electron density) \(\rho(x)\).
The restricted Hartree-Fock energy#
We wish to compute the ground state energy from the Hartree-Fock ansatz, \(| \Phi \rangle = |\phi_1\dots\phi_N\rangle\). This is done by
where the molecular orbitals are the optimized Hartree-Fock orbitals. Inserting the basis expansion the energy can be found as a function of the coefficient matrices and the atomic orbital matrix elements.
The particle density#
The particle density can be computed from the single-particle functions evaluated on a grid, and the one-body density matrix. We have already found the one-body density matrix when constructing the Fock matrix, it is given by \(D_{\nu \mu} = \sum_{i = 1}^{n} C^{*}_{\mu i} C_{\nu i}\). We can then compute the particle density from