14.09.2014 Views

CASINO manual - Theory of Condensed Matter

CASINO manual - Theory of Condensed Matter

CASINO manual - Theory of Condensed Matter

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

18 Wave-function updating<br />

Consider the Slater wave function<br />

Ψ S (R) = D ↑ (r 1 , . . . , r N↑ )D ↓ (r N↑ +1, . . . , r N ) , (83)<br />

where D ↑ and D ↓ are Slater determinants for the spin-up and spin-down electrons respectively. We<br />

will need to calculate the ratio <strong>of</strong> the new wave function to the old when, for example, the ith spin-up<br />

electron is moved from r old<br />

i to r new<br />

i . The wave-function ratio can be written as<br />

q ↑ = D↑ (r 1 , r 2 , . . . , r new<br />

i , . . . , r N )<br />

D ↑ (r 1 , r 2 , . . . , r old<br />

i , . . . , r N ) . (84)<br />

A direct calculation <strong>of</strong> the determinants in q ↑ at every move by LU decomposition is time-consuming,<br />

and instead we use an updating method. We define the Slater matrix D ↑ via<br />

D ↑ jk = ψ j(r k ) , (85)<br />

where ψ j is the jth one-electron orbital <strong>of</strong> the spin-up Slater determinant and r k is the position <strong>of</strong><br />

the kth spin-up electron. The transpose <strong>of</strong> the inverse <strong>of</strong> D ↑ , which we call D ↑ , may be expressed in<br />

terms <strong>of</strong> the c<strong>of</strong>actors and determinant <strong>of</strong> D ↑ ,<br />

D ↑ jk = c<strong>of</strong>(D↑ jk )<br />

det(D ↑ ) . (86)<br />

The move <strong>of</strong> electron i changes only the ith column <strong>of</strong> D ↑ and so does not affect any <strong>of</strong> the c<strong>of</strong>actors<br />

associated with this column. The new Slater determinant may be expanded in terms <strong>of</strong> these c<strong>of</strong>actors<br />

and the result divided by the old Slater determinant to obtain<br />

q ↑ = det(D↑,new )<br />

det(D ↑,old ) = ∑ j<br />

ψ j (r new<br />

i )D ↑,old<br />

ji . (87)<br />

If the D ↑ matrix is known, one can compute q ↑ in a time proportional to N.<br />

Evaluating D ↑ using LU decomposition takes <strong>of</strong> order N 3 operations; but once the initial D ↑ matrix<br />

has been calculated it can be updated at a cost proportional to N 2 using the formulae<br />

in the case where k = i, and<br />

when k ≠ i.<br />

D ↑,new<br />

jk<br />

= D ↑,old<br />

jk<br />

D ↑,new<br />

ji<br />

= 1 q ↑ D↑,old ji , (88)<br />

− 1 q ↑ D↑,old ji<br />

∑<br />

m<br />

ψ m (r new<br />

i )D ↑,old<br />

mk , (89)<br />

19 Evaluating the local energy<br />

The local energy is given by<br />

E L (R) =<br />

N∑<br />

− 1 N∑<br />

N∑<br />

2 Ψ−1 (R)∇ 2 i Ψ(R)+ V (R)+ Ψ −1 ps<br />

(R) ˆV<br />

nl,i Ψ(R)+V CPP(R)+<br />

i=1<br />

i=1<br />

i=1<br />

N∑<br />

v e−e (R) , (90)<br />

where the terms are the kinetic energy, the local part <strong>of</strong> the external potential energy, the nonlocal part<br />

<strong>of</strong> the potential energy, the core polarization potential energy (if present) and the electron–electron<br />

interaction energy. The evaluation <strong>of</strong> the kinetic energy is discussed in Sec. 19.1. The evaluation <strong>of</strong><br />

the nonlocal energy is discussed in Sec. 19.2, while the core-polarization potential energy is discussed<br />

in Sec. 19.3. The local part <strong>of</strong> the external potential energy is divided into a short range part around<br />

each ion, which is evaluated directly, and a long range Coulomb part which is evaluated using the<br />

Ewald potential in periodic systems (see Sec. 19.4) or simply as a sum <strong>of</strong> 1/r potentials in finite<br />

systems. The electron–electron interaction energy is evaluated either using the Ewald interaction or<br />

the MPC interaction (see Sec. 19.4.4) in periodic systems, or simply as a sum <strong>of</strong> 1/r potentials in<br />

finite systems.<br />

i>j<br />

137

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!