Quick viewing(Text Mode)

Hartree-Fock Method

Hartree-Fock Method

KH Computational Physics- 2009 Hartree-Fock Method

Hartree-Fock

It is probably the simplest method to treat the many-particle system. The dynamic many particle problem is replaced by an effective one- problem: electron is moving in an effective static potential field.

It can be viewed as a variational method where the full many-body is replaced by a single Slater . The elements of the determinant are one electron orbitals with orbital and spin part.

It can also be viewed as the lowest order term in perturbative expansion (linear in U) with respect to interaction between .

These two views will be substantiated below by equations. But first we will use decoupling method to derive the Hartree-Fock equations.

Kristjan Haule, 2009 –1– KH Computational Physics- 2009 Hartree-Fock Method

In the , the many electron problem takes the form

1 2 1 H = drΨ†(r)[ +V (r)]Ψ(r)+ drdr′Ψ†(r)Ψ†(r′)v (r r′)Ψ(r′)Ψ(r) −2∇ ext 2 c − Z Z (1) where Ψ(r) is the field operator of electron, Vext(r) is the potential of nucleous and v (r r′) is the Coulomb interaction 1/ r r′ . We assumed Born-Oppenheimer c − | − | approximation for nuclei motion (freezing them since their kinetic is of the order of

Mnuclei/me). The Hartree-Fock approximation replaces the two-body interaction term by an effective one body term

Ψ†(r)Ψ†(r′)Ψ(r′)Ψ(r) Ψ†(r)Ψ(r) Ψ†(r′)Ψ(r′)+ Ψ†(r′)Ψ(r′) Ψ†(r)Ψ(r) (2) → h i h i Ψ†(r)Ψ(r′) Ψ†(r′)Ψ(r) Ψ†(r′)Ψ(r) Ψ†(r)Ψ(r′) (3) −h i − h i With the generalized density ρ(r, r′)= Ψ†(r)Ψ(r′) the effective Hartree-Fock h i Hamiltonian takes the form

eff 1 2 H = drdr′Ψ†(r) + V (r)+ dr′′ρ(r′′, r′′)v (r′′ r) δ(r r′) −2∇ ext c − − Z  Z  ρ(r′, r)vc(r′ r) Ψ(r′) (4) Kristjan Haule, 2009 − − } –2– KH Computational Physics- 2009 Hartree-Fock Method

H is a one-particle Hamiltonian • eff The effective potential is non-local (very different from the LDA approximation) • Higher order terms in perturbative expansion are completely neglected (so-called • correlation part in Density Functional Theory)

If we write the field operator Ψ in one electron basis

Ψ(r)= ψα(r)cα (5) α X where cα creates an electron in one electron state ψα(r) we get

eff eff H = Hαβ cα† cβ (6) Xαβ where eff H = H0 + (U U )n (7) αβ αβ aαbβ − aαβb ab Xab with n = c† c and matrix elements ab h a bi 1 H0 = ψ 2 + V ψ (8) αβ h α|− 2∇ ext| βi Kristjan Haule, 2009 –3– KH Computational Physics- 2009 Hartree-Fock Method

U = ψ (r)ψ (r′) v (r r′) ψ (r)ψ (r′) (9) αβγδ h α β | c − | γ δ i

If the one electron orbitals ψα are othogonal, we are done. First, we need to calculate matrix elements of H0 and U . Then we can proceed to eff eff construct Hαβ according to Eq. (7) and finally we can diagonalize the matrix Hαβ . In Eq. (7) the sum over a and b runs over all occupied states only (since nab = δabna is 0 for unoccupied and 1 for occupied eigenstates). Weather the orbital is occupied or not, we eff know only after we calculate the one-electron levels, i.e., diagonalize Hαβ by ψ Heff ε ψ =0. Hence, the system of equations needs to be solved h α| − | βi self-consistently by iteration.

Kristjan Haule, 2009 –4– KH Computational Physics- 2009 Hartree-Fock Method

Interpretation in terms of electron self-energy

In many-body problems, one usually defines the so-called self-energy. It is the quantity that needs to be added to non-interacting Hamiltonian to get the interacting effective Hamiltonian

eff 0 H = drdr′Ψ†(r) H (r)δ(r r′)+Σ(r, r′) Ψ(r′) (10) − Z From Eq. (4) we can see that 

Σ(r, r′)= δ(r r′) dr′′ρ(r′′, r′′)v (r′′ r) ρ(r′, r)v (r′ r) (11) − c − − c − Z This term is just the lowest order term in perturbation expansion of self-energy in powers of Coulomb repulsion and its diagrammatic representation in terms of Feyman diagrams is

Kristjan Haule, 2009 –5– KH Computational Physics- 2009 Hartree-Fock Method

Derivation for beginners

We mentioned in the previous chapter (second quantization) that Hartree Fock approximation corresponds to the approximation where one finds single ”properly symmetrized” Slater determinant that minimizes the total energy for the interacting Hamiltonian

E = Φn1n2, nN H Φn1n2, nN (12) h ··· | | ··· i We can vary one-electron basis functions with constraint that they are normalized.

In previous chapter we called one-electron basis functions uk(x). Here, we called them ψ(x) therefore we will stick to later definition. We remember from previous lecture

0 1 E = ψ∗ (x)H (x)ψ (x)dx + dxdx′ψ∗ (x)ψ∗ (x′)v (x x′)ψ (x)ψ (x′) α α 2 α β C − α β α X Xαβ Z 1 dxdx′ψ∗ (x)ψ∗ (x′)v (x x′)ψ (x)ψ (x′) −2 α β C − β α Xαβ Z

Kristjan Haule, 2009 –6– KH Computational Physics- 2009 Hartree-Fock Method

We would like to minimize

E ǫ dxψ∗ (x)ψ (x)= min (15) − α α α α X Z We look for the best ψβ, so we will vary the functional with respect to ψβ∗

δE 0 0= = H (x)ψ (x)+ dx′ψ∗(x′)v (x x′)ψ (x′) ψ (x) (16) δψ β γ C − γ β β∗ " γ # X Z

dx′ψ∗(x′)v (x x′)ψ (x′)ψ (x) ǫ ψ (x) (17) − γ C − β γ − β β γ X Z We can multiply the equation by ψα(x) and integrate over x to get

0 ψ∗ (x)H (x)ψ (x)dx + dxdx′ψ∗ (x)ψ∗(x′)v (x x′)ψ (x′)ψ (x) (18) α β α γ C − γ β γ Z X Z

dxdx′ψ∗ (x)ψ∗(x′)v (x x′)ψ (x′)ψ (x) ǫ ψ∗ (x)ψ (x)dx (19) − α γ C − β γ − β α β γ X Z Z

Kristjan Haule, 2009 –7– KH Computational Physics- 2009 Hartree-Fock Method

or

H0 + (U U )= ǫ δ (20) αβ γαγβ − γαβγ α αβ γ occupied ∈ X This is equivalent to Eq.(7). One needs to be carefull and sum only over occupied states γ. This is because in this derivation we worked with fixed number of particles N and all states of the Slater determinant must be occupied. This is hardly a surprise since the minimization gives only, thus, this is zero temperature analog of the above more general perturbation formalism.

Kristjan Haule, 2009 –8– KH Computational Physics- 2009 Hartree-Fock Method

Nonorthogonal base

In actual calculation, the one electron orbitals are choosen very carefully because we would like to get (at least) the ground state with only few orbitals (The computation time increases as N 3, where N is the number of orbitals - solving eigenvalue problem). Those optimally chosen orbitals are almost never orthogonal!

One way around would be to orthogonalize basis functions first. This is a time consuming task and also leads to basis functions which are less localized. It is more convenient to generalize the equations to non-orthogonal basis functions than to orthogonalize basis functions.

Let us call the non-orthogonal basis functions Φp(r). Further, let us write the transformation from non-orthogonal base to eigenbase-base as

ψα(r)= ApαΦp(r) (21) p X We want to solve ψ Heff ε ψ =0 (22) h α| − | βi

Kristjan Haule, 2009 –9– KH Computational Physics- 2009 Hartree-Fock Method and using Eq. (21) we get

eff A∗ (H εO )A =0 (23) pα pq − pq qβ where O is the overlap matrix O = Φ Φ . This is the generalized eigenvalue pq pq h p| qi problem Heff A = εOA, where H is Hermitian and O is positive definite matrix. The

eigenvectors A are not orthogonal, but rather satisfy the relation A†OA =1 which can be deduced from the relation ψ ψ = δ . h α| βi αβ We also need the in the non-orthogonal base. It follows from

ρ(r, r′)= Ψ†(r)Ψ(r′) = ψ∗ (r)n ψ (r′)= Φ∗(r)A∗ n A Φ (r′), h i α αβ β p pα αβ qβ q αβ pq,αβ X X (24) and since n = δ f(ε µ) we conclude ρ = A∗ A f(ε µ). αβ αβ α − qp pα qα α − The total energy of the system is not α εα! The right total energy in the eigen-base is 1 P 1 E = H0 n + (U U )n n = Tr[(Heff + H0)n] (25) αα α 2 aαaα − aααa a α 2 α αa X X

Kristjan Haule, 2009 –10– KH Computational Physics- 2009 Hartree-Fock Method

In the non-orthogonal basis, the total energy takes the form

1 1 0 1 1 0 E = ε n + (A†H A) n = ε n + H ρ (26) 2 α α 2 αα α 2 α α 2 pq qp α α α pq X X X X Now we sketch algorithm to solve the general Hartree-Fock problem

1 Pick a set of one electron orbitals φp(r) and add them the spin part of the wave function to get Φ (r)= φ (r) s . p p | i 2 Calculate H0 and U matrix elements from 1 H0 = Φ 2 + V Φ (27) pq h p|− 2∇ ext| qi U = Φ (r)Φ (r′) v (r r′) Φ (r)Φ (r′) (28) pqrs h p q | c − | r s i

Kristjan Haule, 2009 –11– KH Computational Physics- 2009 Hartree-Fock Method

3 Calculate Heff by

Heff = H0 + (U U )ρ (29) pq pq rpsq − rpqs rs rs X (30)

4 Solve the generalized eigenvalue problem

(Heff ε O )A =0 pq − α pq qα q X with normalization A†OA =1 5 Determin the chemical potential µ by requiring N = f(ε µ). α α − 6 Calculate the new density matrix and new total energyP by

ρ = A f(ε µ)A∗ (31) pq pα α − qα α X 1 1 E = ε f(ε µ)+ H0 ρ (32) 2 α α − 2 pq qp α qq X X 7 Return to 3 with updated ρpq as long as total energy is changing

Kristjan Haule, 2009 –12– KH Computational Physics- 2009 Hartree-Fock Method

Every index p corresponds to spin and orbital index. Treating spin index explicitely results in more tractable equations for computation. We have

′ σσ σσ 0 0 ′ 0 ′ Hpq = Hpq δσσ = Hpqδσσ (33) σ1,σ2,σ3,σ4 σ1,σ2,σ1,σ2 Upqrs = Upqrs δσ1,σ3 δσ2,σ4 = Upqrsδσ1,σ3 δσ2,σ4 (34)

σσ Heff = H0 + U (ρσ + ρσ¯ ) U ρσ (35) pq pq rpsq rs rs − rpqs rs rs X   Two methods can be used

Restricted Hartree-Fock : ρσ = ρσ¯ • Non-Restricted Hartree-Fock: ρσ = ρσ¯ • 6 Restricted HF is better if the number of electrons is even the symmetry between and → ↑ ↓ is preserved. For Restricted HF we simply have

Heff = H0 + [2U U ] ρ (36) pq pq rpsq − rpqs rs rs X where p and q run over orbital index only and not over spin. The algorithm for restricted HF is simplified to Kristjan Haule, 2009 –13– KH Computational Physics- 2009 Hartree-Fock Method

1 Pick a set of one electron orbitals φp(r) 2 Calculate H0 and U matrix elements from 1 H0 = φ 2 + V φ (37) pq h p|− 2∇ ext| qi U = φ (r)φ (r′) v (r r′) φ (r)φ (r′) (38) pqrs h p q | c − | r s i 3 Calculate Heff by

Heff = H0 + (2U U )ρ (39) pq pq rpsq − rpqs rs rs X (40)

4 Solve the generalized eigenvalue problem

(Heff ε O )A =0 pq − α pq qα q X with normalization A†OA =1 5 Determin the chemical potential µ by requiring N = 2f(ε µ) where N is the α α − number of all electrons. P

Kristjan Haule, 2009 –14– KH Computational Physics- 2009 Hartree-Fock Method

6 Calculate the new density matrix and total energy by

ρ = A f(ε µ)A∗ (41) pq pα α − qα α X E = ε f(ε µ)+ H0 ρ (42) α α − pq qp α qq X X 7 Return to 3 with updated ρpq until the total energy is changing Example: He and H2 molecule For practical computation, we need to specify basis functions. One possible choice are the -like orbitals (Slater Type Orbitals - STO) of the form

m ξ r φ(r)= r Pl(x,y,z)e− | |. (43)

They are less practical for molecule calculations. A better choice are Gaussian Type Orbitals (GTO) 2 αr φ(r)= Pl(x,y,z)e− . (44) since the product of Gaussian functions is Gaussian. The polinomials Pl are the same as for hydorgen atom, i.e.

Kristjan Haule, 2009 –15– KH Computational Physics- 2009 Hartree-Fock Method

s:1 • p : x,y,z • d: xy,yz,xz,x2 y2,3z2 r2 • − − . The exponents α need to be determined by minimization of the total energy. For the moment, we will take coefficients α from literature. For Hydrogen and He we need only few (four) 1s-like orbitals with coefficients

H : 13.00773,1.962079,0.444529,0.1219492 • He: 0.298073,1.242567,5.782948,38.47497 • With the basis functions of the form

2 αpr φp(r)= e− (45)

or in Dirac notation 2 αp(r R) α R φ (r R)= e− − (46) | p i≡ p − the matrix elements become

Kristjan Haule, 2009 –16– KH Computational Physics- 2009 Hartree-Fock Method

3/2 2 π αpq (R1 R2) O α R α R = e− − p1,q2 ≡h p 1| q 2i α + α  p q  1 α R 2 α R = O α [3 2α (R R )2] h p 1|− 2∇ | q 2i p1,q2 pq − pq 1 − 2 1 α + α α R α R =2 O p q F [(α + α )(R R )2] h p 1| r R | q 2i p1,q2 π 0 p q N − pq,12 | − N | r

1 α α R α R α R α R =2 O O pr,qs F [α (R R ) h p 1 q 2|r r | r 3 s 4i p1,r3 q2,s4 π 0 pr,qs pr,13 − qs,24 − ′ r α α α R1+α R2 (α +α )(α +α ) where α = p q , R = p q and α = p r q s pq αp+αq pq,12 αp+αq pr,qs αp+αq +αr +αs

√ x 2 1 y √πerf(√x) F [x]= dye− = (47) 0 √x 2√x Z0

Kristjan Haule, 2009 –17– KH Computational Physics- 2009 Hartree-Fock Method

With the above described Hartee-Fock method we get for the ground state energy of He atom -2.85516 Hartree while the exact ground state energy is -2.86166 Hartree.

The equlibrium distance for the Hydrogen molecule H2 in the Hartee-Fock calculation is R0 =1.388, while the exact one is 1.401.

-0.4

-0.6 [Ry] 2 -0.8 Enery-H Equlibrium = 1.388

-1

0 0.5 1 1.5 2 2.5 3 Distance [au]

Figure 1: The energy versus distance for H2 molecule Kristjan Haule, 2009 –18– KH Computational Physics- 2009 Hartree-Fock Method Untitled−1 1

1

0.5

0

-0.5

-1

-1 -0.5 0 0.5 1

Figure 2: The of H2 molecule at equilibrium distance

Kristjan Haule, 2009 –19– KH Computational Physics- 2009 Hartree-Fock Method

Homework:

The Python implementation of Hartree-Fock Eq. for He and H2 were started in our lecture. Finish one of the two projects.

Kristjan Haule, 2009 –20–