27.09.2014 Views

PDF (double-sided) - Physics Department, UCSB - University of ...

PDF (double-sided) - Physics Department, UCSB - University of ...

PDF (double-sided) - Physics Department, UCSB - University of ...

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.

This can be expressed as a tri-diagonal matrix operating on the vector ψ r n, here:<br />

⎡<br />

d 2<br />

dx = D = 2 ⎢<br />

⎢<br />

⎣<br />

−2 1<br />

1 −2 1<br />

1 −2 1<br />

1 −2 1<br />

1 −2 1<br />

1 −2 1<br />

1 −2<br />

⎤<br />

⎥<br />

⎦<br />

(3.21)<br />

Note that if x is discretized in steps <strong>of</strong> dx ≠ 1, D will need to be divided by<br />

dx 2 . Now we can rewrite the time independent Schrödinger equation as a matrix<br />

equation:<br />

E n ψ r n =<br />

(− 2<br />

2m D + I V )<br />

ψ r n (3.22)<br />

where I in this case is the 7 × 7 identity. To solve this equation, one needs to<br />

find the eigenvectors <strong>of</strong> the matrix M = (I V − 2 D). This can be done using<br />

2m<br />

the “eig” function <strong>of</strong> the “LAPACK” s<strong>of</strong>tware routines, e.g. via Matlab (eig) or<br />

Python (numpy.linalg.eig). For m = 2 , M in our example becomes:<br />

4<br />

⎡<br />

M = (I V − 2D) =<br />

⎢<br />

⎣<br />

13 −2<br />

−2 8 −2<br />

−2 5 −2<br />

−2 4 −2<br />

−2 5 −2<br />

−2 8 −2<br />

−2 13<br />

⎤<br />

⎥<br />

⎦<br />

(3.23)<br />

The eigenvalues <strong>of</strong> this matrix are:<br />

1.35, 3.91, 6.04, 8.34, 8.85, 13.75, 13.76<br />

43

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

Saved successfully!

Ooh no, something went wrong!