introduction to computational chemistry nsf computational nanotechnology and molecular engineering...
TRANSCRIPT
Introduction to Computational Chemistry
NSF Computational Nanotechnology and Molecular Engineering Pan-American Advanced Studies Institutes (PASI) Workshop
January 5-16, 2004
California Institute of Technology, Pasadena, CA
Andrew S. Ichimura
For the Beginner…
There are three main problems:
1. Deciphering the language.
2. Technical implementation.
3. Quality assessment.
Focus on…
Calculating molecular structures and relative energies.
1. Hartree-Fock (Self-Consistent Field)
2. Electron Correlation
3. Basis sets and performance
Ab initio electronic structure theoryHartree-Fock (HF)
Electron Correlation (MP2, CI, CC, etc.)
Molecular properties
Geometry prediction
Benchmarks for parameterization
Transition StatesReaction coords.
Spectroscopicobservables
ProddingExperimentalists
Goal: Insight into chemical phenomena.
Setting up the problem…
What is a molecule?
A molecule is “composed” of atoms, or, more generally as a collection of charged particles, positive nuclei and negative electrons.
The interaction between charged particles is described by;
Coulomb Potential
Coulomb interaction between these charged particles is the only important physical force necessary to describe chemical phenomena.
€
Vij = V (rij ) =qiq j
4πε0rij
=qiq j
rij
rij
qi
qj
But, electrons and nuclei are in constant motion…
In Classical Mechanics, the dynamics of a system (i.e. how the system evolves in time) is described by Newton’s 2nd Law:
€
F = maF = forcea = accelerationr = position vectorm = particle mass
€
−dV
dr= m
d2r
dt 2
In Quantum Mechanics, particle behavior is described in terms of a wavefunction, .
€
ˆ H Ψ = ih∂Ψ
∂t
Hamiltonian Operator
€
ˆ H
Time-dependent Schrödinger Equation
€
i = −1;h = h 2π( )
Time-Independent Schrödinger Equation
If H is time-independent, the time-dependence of may be separated out as a simple phase factor.
€
ˆ H (r, t) = ˆ H (r)
Ψ(r, t) = Ψ(r)e−iEt / h
€
ˆ H (r)Ψ(r) = EΨ(r) Time-Independent Schrödinger Equation
Describes the particle-wave duality of electrons.
Hamiltonian for a system with N-particles
Sum of kinetic (T) and potential (V) energy
€
ˆ H = ˆ T + ˆ V
€
ˆ T = ˆ T i = −h2
2mii=1
N
∑i=1
N
∑ ∇ i2 = −
h2
2mii=1
N
∑ ∂ 2
∂x i2
+∂ 2
∂y i2
+∂ 2
∂zi2
⎛
⎝ ⎜
⎞
⎠ ⎟
€
∇i2 =
∂ 2
∂x i2
+∂ 2
∂y i2
+∂ 2
∂zi2
⎛
⎝ ⎜
⎞
⎠ ⎟ Laplacian operator
Kinetic energy
€
ˆ V = Vij
j>1
N
∑i=1
N
∑ =qiq j
rijj>1
N
∑i=1
N
∑ Potential energy
When these expressions are used in the time-independent Schrodinger Equation, the dynamics of all electrons and nuclei in a molecule or atom are taken into account.
Born-Oppenheimer Approximation
• Since nuclei are much heavier than electrons, their velocities are much smaller. To a good approximation, the Schrödinger equation can be separated into two parts:
– One part describes the electronic wavefunction for a fixed nuclear geometry.– The second describes the nuclear wavefunction, where the electronic energy
plays the role of a potential energy.
• So far, the Hamiltonian contains the following terms:
€
ˆ H = ˆ T n + ˆ T e + ˆ V ne
+
+ ˆ V ee + ˆ V nn
€
ˆ
T n
Kinetic energy of nuclei, n
€
ˆ
T e
Kinetic energy of electrons, e
€
ˆ
V ne
Electron-nuclear attraction
€
ˆ
V ee
Electron-electron repulsion
€
ˆ
V nn
Internuclear repulsion
Born-Oppenheimer Approx. cont.
• In other words, the kinetic energy of the nuclei can be treated separately. This is the Born-Oppenheimer approximation. As a result, the electronic wavefunction depends only on the positions of the nuclei.
• Physically, this implies that the nuclei move on a potential energy surface (PES), which are solutions to the electronic Schrödinger equation. Under the BO approx., the PES is independent of the nuclear masses; that is, it is the same for isotopic molecules.
• Solution of the nuclear wavefunction leads to physically meaningful quantities such as molecular vibrations and rotations.
0
E
H H
H. + H.
Limitations of the Born-Oppenheimer approximation• The total wavefunction is limited to one electronic surface, i.e. a particular
electronic state.
• The BO approx. is usually very good, but breaks down when two (or more) electronic states are close in energy at particular nuclear geometries. In such situations, a “ non-adiabatic” wavefunction - a product of nuclear and electronic wavefunctions - must be used.
• In writing the Hamiltonian as a sum of electron kinetic and potential energy terms, relativistic effects have been ignored. These are normally negligible for lighter elements (Z<36), but not for the 4th period or higher.
• By neglecting relativistic effects, electron spin must be introduced in an ad hoc fashion. Spin-dependent terms, e.g., spin-orbit or spin-spin coupling may be calculated as corrections after the electronic Schrödinger equation has been solved.
The electronic Hamiltonian becomes,
€
ˆ H = ˆ T e + ˆ V ne + + ˆ V ee + ˆ V nn B.O. approx.; fixed nuclear coord.
Self-consistent Field (SCF) Theory
GOAL: Solve the electronic Schrödinger equation, He=E.
PROBLEM: Exact solutions can only be found for one-electron systems, e.g., H2
+.
SOLUTION: Use the variational principle to generate approximate solutions.Variational principle - If an approximate wavefunction is used in He=E, then the energy must be greater than or equal to the exact energy. The equality holds when is the exact wavefunction.In practice: Generate the “best” trial function that has a number of adjustable parameters. The energy is minimized as a function of these parameters.
SCF cont.
The energy is calculated as an expectation value of the Hamiltonian operator:
€
E =Ψ∗∫ ˆ H eΨdτ
Ψ∗Ψdτ∫Introduce “bra-ket” notation,
€
∗∫ ˆ H eΨdτ = Ψ | ˆ H e | Ψ
€
∗dτ∫ = Ψ | Ψ
bra
€
n complex conjugate , left
ket
€
m right
Combined bracket denotes integration over all coordinates.
€
E =Ψ | ˆ H e | Ψ
Ψ | Ψ
If the wavefunctions are orthogonal and normalized (orthonormal),
€
i | Ψ j = δ ij
€
δij = 1
δij = 0
Then,
€
E = Ψ | ˆ H e | Ψ
(Kroenecker delta)
SCF cont.
Antisymmetric wavefunctions can be written as
Slater determinants.
Since electrons are fermions, S=1/2, the total electronic wavefunction must be antisymmetric (change sign) with respect to the interchange of any two electron coordinates. (Pauli principle - no two electrons can have the same set of quantum numbers.)
Consider a two electron system, e.g. He or H2. A suitable antisymmetric wavefunction to describe the ground state is:
€
Φ 1,2( ) = φ1α (1)φ2β(2) − φ1α (2)φ2β (1)
Each electron resides in a spin-orbital, a product of spatial and spin functions.
€
(Spin functions are orthonormal: α | α = β | β =1; α | β = β | α = 0)
€
Φ 2,1( ) = φ1α (2)φ2β(1) − φ1α (1)φ2β (2)
Φ 2,1( ) = −Φ 1,2( )
Interchange the coordinates of the two electrons,
(He: =2 = 1s)(H2: 1 = 2 = bonding MO)
A more general way to represent antisymmetric electronic wavefunctions is in the form of a determinant. For the two-electron case,
€
Φ 1,2( ) =φ1α (1) φ2β(1)
φ1α (2) φ2β(2)= φ1α (1)φ2β(2) − φ1α (2)φ2β (1)
For an N-electron N-spinorbital wavefunction,
€
ΦSD =
φ1 1( ) φ2(1) L φN (1)
φ1 2( ) φ2(2) L φN (2)
L L L L
φ1 N( ) φ2(N) L φN (N)
, φi |φ j = δij
A Slater Determinant (SD) satisfies the antisymmetry requirement.Columns are one-electron wavefunctions, molecular orbitals.Rows contain the electron coordinates.
One more approximation: The trial wavefunction will consist of a single SD.
Now the variational principle is used to derive the Hartree-Fock equations...
SCF cont.
Hartree-Fock Equations
(1) Reformulate the Slater Determinant as,
€
Φ = ˆ A φ1(1)φ2(2)L φN (N)[ ] = ˆ A Π
€
Π is the diagonal product
€
ˆ A the antisymmetrizer
€
ˆ A =1
N!(−1) p ˆ P
p =0
N −1
∑ =1
N!1− ˆ P ij + ˆ P ijk −L
ijk∑
ij∑
⎡
⎣ ⎢ ⎢
⎤
⎦ ⎥ ⎥
€
ˆ P is the permutation operator. ˆ P ij permutes two electron coordinates.
(2)
€
ˆ H e = ˆ T e + ˆ V ne + + ˆ V ee + ˆ V nn
€
ˆ T e = −1
2∇ i
2
i
N
∑
ˆ V ne = −Za
Ra − ria∑
i
N
∑
€
ˆ V ee =1
ri − rjj >i
N
∑i
N
∑
€
ˆ V nn =ZaZb
Ra − Rbb >a∑
a∑
One electron terms
€
}Depends on two electrons
€
ˆ h i = −1
2∇ i
2 −Za
Ra − ria∑
ˆ g ij =1
ri − rj
ˆ H e = ˆ h ii =1
N
∑ + ˆ g ijj >i
N
∑i
N
∑ + ˆ V nn
One-electron operator - describes electron i, moving in the field of the nuclei.
Two-electron operator - interelectron repulsion.
Hamiltonian
Expectation value over Slater Determinant
€
Ee = Φ | ˆ H e | Φ
Ee = ˆ A Π | ˆ H e | ˆ A Π = (−1)p
p= 0
N −1
∑ Π | ˆ H e | ˆ P Π
(3) Calculation of the energy.
Examine specific integrals:
€
Φ | ˆ V nn | Φ = Vnn
Nuclear repulsion does not depend on electron coordinates.
The one-electron operator acts only on electron 1 and yields an energy, h1, that depends only on the kinetic energy and attraction to all nuclei.
For coordinate 1,
€
Π | ˆ h 1 | Π = φ1(1)φ2(2)L φN (N)[ ] | ˆ h 1 | φ1(1)φ2(2)L φN (N)[ ]
= φ1(1) | ˆ h 1 | φ1(1) φ2(2) |φ2 (2) L φN (N ) | φN (N ) = h1
€
Π | ˆ g 12 | Π = φ1(1)φ2(2)L φN (N)[ ] | ˆ g 12 | φ1(1)φ2(2)L φN (N )[ ]
= φ1(1)φ2 (2) | ˆ g 12 | φ1(1)φ2 (2) φ3 (3) |φ3 (3) L φN (N ) | φN (N )
= φ1(1)φ2 (2) | ˆ g 12 | φ1(1)φ2 (2) = J12
Coulomb integral, J12: represents the classical repulsion between two charge distributions 1
2(1) and 22(2).
€
Π | ˆ g 12 | ˆ P 12Π = φ1(1)φ2(2)L φN (N)[ ] | ˆ g 12 | φ2(1)φ1(2)L φN (N)[ ]
= φ1(1)φ2 (2) | ˆ g 12 | φ2 (1)φ1(2) φ3 (3) |φ3 (3) L φN (N ) | φN (N )
= φ1(1)φ2 (2) | ˆ g 12 | φ2 (1)φ1(2) = K12
Exchange integral, K12: no classical analogue. Responsible for chemical bonds.
The expression for the energy can now be written as:
Sum of one-electron, Coulomb, and exchange integrals, and Vnn.
To apply the variational principle, the Coulomb and Exchange integrals are written as operators,
€
Ee = φi | ˆ h i | φii =1
N
∑ +1
2φ j | ˆ J i |φ j − φ j | ˆ K i |φ j( )
j
N
∑i
N
∑ + Vnn
ˆ J i |φ j(2) = φi(1) | ˆ g 12 | φi(1) φ j (2)
ˆ K i |φ j (2) = φi(1) | ˆ g 12 | φ j(1) φi(2)
€
Ee = hii =1
N
∑ +12
(J ij − Kij )j
N
∑i
N
∑ + Vnn
The objective now is to find the best orbitals (i, MOs) that minimize the energy (or at least remain stationary with respect to further changes in i), while maintaining orthonormality of i.
• Employ the method of Langrange Multipliers:
€
f (x1,x2,L xN )
g(x1,x2,L xN ) = 0
L(x1,x2,L xN ,λ ) = f (x1, x2,L xN ) − λ g(x1,x2,L xN )
Optimize L such that ∂L∂xi
= 0, ∂L∂λ i
= 0
Function to optimize.
Rewrite in terms of another function.
Define Lagrange function.
Constrained optimization of L.
€
L = E − λ ij φi | φ j −δ ij( )ij
N
∑
δL = δE − λ ij δφi | φ j + φi |δφ j( )ij
N
∑ = 0
• In terms of molecular orbitals, the Langrange function is:
Change in L with respect to small changes in i should be zero.
€
δE = δφi | ˆ h i |φi + φi | ˆ h i | δφi( )i =1
N
∑ + δφi | ˆ J j − ˆ K j | φi + φi | ˆ J j − ˆ K j | δφi( )ij
N
∑• Change in the energy with respect changes in i.
Define the Fock Operator, Fi
€
ˆ F i = ˆ h i + ˆ J j − ˆ K j( )j
N
∑ Effective one-electron operator, associated with the variation in the energy.
€
δE = δφi | ˆ F i | φi + φi | ˆ F i | δφi( )i =1
N
∑ Change in energy in terms of the Fock operator.
€
δL = δφi | ˆ F i |φi + φi | ˆ F i |δφi( )i=1
N
∑ − λ ij δφi | φ j + φi |δφ j( )ij
N
∑ = 0
According to the variational principle, the best orbitals, i, will make δL=0.
€
ˆ F iφi = λ ijφ jj
N
∑
After some algebra, the final expression becomes:
Hartree-Fock Equations
After a unitary transformation, ij0 and iii.
€
ˆ F iφi '= ε iφi ' HF equations in terms of Canonical MOs and diagonal Lagrange multipliers.
€
i = φi ' |ˆ F i |φi ' Lagrange multipliers can be interpreted as
MO energies.
Note:1. The HF equations cast in this way, form a set of pseudo-eigenvalue
equations. 2. A specific Fock orbital can only be determined once all the other
occupied orbitals are known. 3. The HF equations are solved iteratively. Guess, calculate the
energy, improve the guess, recalculate, etc.4. A set of orbitals that is a solution to the HF equations are called
Self-consistent Field (SCF) orbitals.5. The Canonical MOs are a convenient set of functions to use in the
variational procedure, but they are not unique from the standpoint of calculating the energy.
Koopman’s Theorem
The ionization energy is well approximated by the orbital energy, i.
* Calculated according to Koopman’s theorem.
Basis Set Approximation• For atoms and diatomic molecules, numerical HF methods are available.• In most molecular calculations, the unknown MOs are expressed in terms of a
known set of functions - a basis set.
Two criteria for selecting basis functions.I) They should be physically meaningful.ii) computation of the integrals should be tractable.
• It is common practice to use a linear expansion of Gaussian functions in the MO basis because they are easy to handle computationally.
• Each MO is expanded in a set of basis functions centered at the nuclei and are commonly called Atomic Orbitals.
(Molecular orbital = Linear Combination of Atomic Orbitals - LCAO).
MO Expansion
€
φi = cαiχαα
M
∑
€
ˆ F i cα iχαα
M
∑ = ε i cαiχ αα
M
∑
€
FC = SCε
Fαβ = χα | ˆ F | χ β
Sαβ
= χ α | χβ
LCAO - MO representationCoefficients are variational parameters
HF equations in the AO basis
Matrix representation of HF eqns.Roothaan-Hall equations (closed shell)F - element of the Fock matrixS - overlap of two AOs
Roothaan-Hall equations generate M molecular orbitals from M basis functions.• N-occupied MOs • M-N virtual or unoccupied MOs (no physical interpretation)
Total Energy in MO basis
One-electron integrals, M2 Two-electron integrals, M4
Computed at the start; do not change
Products of AO coeff form Density Matrix, D
€
E = φi | ˆ h i | φii =1
N
∑ +12
φiφ j | ˆ g |φiφ j − φiφ j | ˆ g | φ jφi( )j
N
∑i
N
∑ +Vnn
€
E = cα icβiαβ
M
∑ χα | ˆ h i | χ βi =1
N
∑ +12
cαicγjcβicδj χα χ γ | ˆ g | χ β χδ − χα χ γ | ˆ g | χδ χ β( ) + Vnnα βγδ
M
∑ij
N
∑
Total Energy in AO basis
€
Dγδ = cγjcδjj
occ.MO
∑ ; Dα β = cα icβii
occ.MO
∑
General SCF Procedure
Obtain initial guess for coeff., ci,formthe initial Dδ
Form the Fock matrix
Diagonalize the Fock Matrix
Form new Density Matrix
Two-electronintegrals
Iterate
Computational Effort
Accuracy
• As the number of functions increases, the accuracy of the Molecular Orbitals improves.
• As M, the complete basis set limit is reached Hartree-Fock limit.
• Result: The best single determinant wavefunction that can be obtained. (This is not the exact solution to the Schrodinger equation.)
Practical Limitation• In practice, a finite basis set is used; the HF limit is never reached.• The term “Hartree-Fock” is often used to describe SCF calculations with
incomplete basis sets.
• Formally, the SCF procedure scales as M4 (the number of basis functions to the 4th power).
Restricted and Unrestricted Hartree-Fock
1
2
3
4
5
RHFSinglet
ROHFDoublet
UHFDoublet
Energy
Restricted Hartree-Fock (RHF)For even electron, closed-shell singlet states, electrons in a given MO with and spin are constrained to have the same spatial dependence.
Restricted Open-shell Hartree-Fock (ROHF)The spatial part of the doubly occupied orbitals are restricted to be the same.
Unrestricted Hartree-fock (UHF) and spinorbitals have different spatial parts.
€
} Spinorbitals
i(n)
Comparison of RHF and UHF
R(O)HF• and spins have same spatial
part
• Wavefunction, Φ, is an eigenfunction of S2 operator.
• For open-shell systems, the unpaired electron () interacts differently with and spins. The optimum spatial orbitals are different. Restricted formalism is not suitable for spin dependent properties.
• Starting point for more advanced calculations that include electron correlation.
UHF• and spins have different
spatial parts
• Wavefunction is not an eigenfunction of S2. Φ may be contaminated with states of higher multiplicity (2S+1).
• EUHF ≤ ER(O)HF
• Yields qualitatively correct spin densities.
• Starting point for more advanced calculations that include electron correlation.
Ab Initio (latin, “from the beginning”) Quantum Chemistry Summary of approximations
• Born-Oppenheimer Approx.• Non-relativistic Hamiltonian• Use of trial functions, MOs, in the variational procedure• Single Slater determinant• Basis set, LCAO-MO approx.• RHF, ROHF, UHF
Consequence of using a single Slater determinant and the Self-consistent Field equations:
Electron-electron repulsion is included as an average effect. The electron repulsion felt by one electron is an average potential field of all the others, assuming that their spatial distribution is represented by orbitals. This is sometimes referred to as the Mean Field Approximation.
Electron correlation has been neglected!!!