Javier Junquera Code structure: calculation of matrix elements of H and S. Direct diagonalization José M. Soler Most important reference followed in this lecture Goal: solve…