BSc Final Year Report - Mat<strong>the</strong>w Holmes1.E-071.E-171.E-27Overlap1.E-371.E-471.E-571.E-671.E-772345671.E-871 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18No. of IterationsFig. 4 Orthogonality between successive <strong>Lanczos</strong> basis states. Above N=4, orthogonality islost, whereas below N=4 it improves. <strong>The</strong> data were obtained using 18 place precision.Finite precision arithmetic [14] was felt to be of no importance for <strong>the</strong> smaller systems under study. Toestablish its influence, <strong>the</strong> overlap in <strong>the</strong> N=7 system, which from Fig. 4 increases throughout, wasplotted for different precisions as shown in Fig. 5.Overlap1.E-031.E-051.E-071.E-091.E-11Loss of Orthoganality in <strong>The</strong> <strong>Lanczos</strong> BasisFig. 5 <strong>The</strong> effect offinite precision onoverlap in <strong>the</strong><strong>Lanczos</strong> basis.Using 18 places ofprecision reducesoverlap but fails tohalt its growth.1.E-131.E-157 Place Precision1.E-1718 Place Precision1.E-191 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18No. of IterationsFrom Fig. 5, <strong>the</strong> overlap grows throughout <strong>and</strong> <strong>the</strong> effect of <strong>the</strong> different precision is slight. We willsee shortly that purely numerical errors have little impact when using <strong>the</strong> <strong>Lanczos</strong> method in smallersystems.Ground State DivergenceWhilst <strong>the</strong> overlap may seem small, it has a dramatic effect on eigenvalue calculations. Fig. 6 showshow <strong>the</strong> ground state eigenvalue, computed in <strong>the</strong> <strong>Lanczos</strong> basis, differs from that obtained directlyfrom <strong>the</strong> original Hamiltonian. To obtain <strong>the</strong> eigenvalues directly, a complete diagonalisation wasperformed using <strong>the</strong> Jacobi method. Obtaining eigenvalues is one <strong>the</strong> fundamental problems inquantum mechanics, due to <strong>the</strong> complexity of evaluating <strong>the</strong> whole matrix. Comparison with <strong>the</strong>10
BSc Final Year Report - Mat<strong>the</strong>w HolmesJacobi results are for illustrative purposes <strong>and</strong>, in general, methods such as <strong>the</strong> <strong>Lanczos</strong> schemeconsidered here are preferred, <strong>and</strong> often essential.<strong>The</strong> ground state energy should be roughly linear with N [7]. Our direct evaluation is reassuringly ontrack. <strong>The</strong> observed divergence of <strong>the</strong> <strong>Lanczos</strong> values however, requires fur<strong>the</strong>r analysis. <strong>The</strong>influence of finite precision is also seen to be negligible.Ground State Energy, J0-10-20-30Original Hamiltonian-40 <strong>Lanczos</strong> Hamiltonian: 18 Place Precision<strong>Lanczos</strong> Hamiltonian: 7 Place Precision-502 3 4 5 6 7System Size, NFig. 6 Divergence of<strong>the</strong> ground stateenergies. If overlapis ignored, <strong>the</strong> valuescomputed from <strong>the</strong><strong>Lanczos</strong> matrixbegin, very quickly,to diverge from <strong>the</strong>true ground states.<strong>The</strong> N=4 estimate is~0.1J in error for 18place precision,where J are units ofexchange energy.<strong>The</strong> negligibleinfluence of finiteprecision arithmeticis clear.If accurate eigenstates are to be obtained, <strong>the</strong> overlap must improve. Simply increasing <strong>the</strong> precision isinsufficient. Ano<strong>the</strong>r option is to suspend <strong>the</strong> procedure when <strong>the</strong> overlap becomes too large. We <strong>the</strong>nuse <strong>the</strong> current eigenvalue of interest k to construct a new vector, with greater projection along <strong>the</strong>desired state, with which to restart <strong>the</strong> procedure. <strong>The</strong> flow scheme below shows how this may beimplemented.DO1. Start with normalised vector, v 12. Find next state v 23. Calculate eigenvalues <strong>and</strong>eigenvectors of current matrix4. Calculate overlap5. If overlap > <strong>the</strong>n build new v 1 from k <strong>and</strong> cycle to 1.Fig. 7 Flow scheme forevolving <strong>the</strong> <strong>Lanczos</strong>basis whilst maintainingorthogonality.We terminate before <strong>the</strong>overlap reaches , <strong>the</strong>value at whichunacceptable errorsappear. Using <strong>the</strong> currenteigenvalue of interest k anew vector v 1 isconstructed for restarting<strong>the</strong> procedure.DO until: new k ~ old kWe need not store <strong>the</strong> <strong>Lanczos</strong> basis [19,13], when running <strong>the</strong> procedure. If step 5 of Fig. 7, isrequired, we select f k (<strong>the</strong> kth column of <strong>the</strong> transformation matrix found in step 3) corresponding to k .f k is <strong>the</strong>n used to initiate a separate run, building a new starting vector v 1 for step 1. of Fig. 7.<strong>The</strong> Variational Approach: Modified <strong>Lanczos</strong><strong>The</strong> idea just introduced may be taken to its extreme by continually restarting after just one iteration[13,12]. In this way we only ever evaluate 2x2 matrices <strong>and</strong> <strong>the</strong> current ground state is always in <strong>the</strong>memory. This approach, known as <strong>the</strong> modified <strong>Lanczos</strong> method, is a variational technique [8].Although more pedestrian than <strong>the</strong> regular routine [13], for smaller systems it is convenient foreliminating overlap, confining it to ~10 -20 for all system sizes. Fig. 8 shows how this effects <strong>the</strong> groundstate calculations.11