Download Mathematica notebook · Manual, chapter 6
Start a fresh Mathematica kernel with SNEG installed. Evaluate the cells in order.
Needs["sneg`"]
Hartree-Fock energy. In a Slater determinant, the expectation value of the two-particle operator splits into the direct (Hartree) and the exchange (Fock) terms, :
snegfermionoperators[c];
ordering[c] = SEA;
snegfreeindexes[k1, k2, k3, k4, s1, s2];
SimplifyKD[vevwick[nc[c[CR, k1, s1], c[CR, k2, s2], c[AN, k3, s2], c[AN, k4, s1]]]]
![(Subscript[\[Delta], k1,k4] Subscript[\[Delta], k2,k3]-Subscript[\[Delta], k1,k3] Subscript[\[Delta], k2,k4] Subscript[\[Delta], s1,s2]) UnitStep[-k1] UnitStep[-k2]](output-1.png)
For the electron gas with , the direct term requires (it cancels against the positive background), and the exchange term gives .