Q-Chem 5.1 User’s Manual

4.2 Theoretical Background

4.2.1 SCF and LCAO Approximations

The fundamental equation of non-relativistic quantum chemistry is the time-independent Schrödinger equation,

  \begin{equation} \label{eq400} \hat{H}({\rm {\bf R}},{\rm {\bf r}}) \;  \Psi ({\rm {\bf R}},{\rm {\bf r}}) = E({\rm {\bf R}}) \;  \Psi ({\rm {\bf R}},{\rm {\bf r}}) \;  . \end{equation}   (4.1)

In quantum chemistry, this equation is solved as a function of the electronic variables ($\ensuremath{\mathbf{r}}$), for fixed values of the nuclear coordinates ($\ensuremath{\mathbf{R}}$). The Hamiltonian operator in Eq. eq400, in atomic units, is

  \begin{equation} \label{eq:Hamiltonian} \hat{H}=-\frac{1}{2}\sum \limits _{i=1}^ N {\nabla _ i^2 } -\frac{1}{2}\sum \limits _{A=1}^ M {\frac{1}{M_ A }\nabla _ A^2 } -\sum \limits _{i=1}^ N {\sum \limits _{A=1}^ M {\frac{Z_ A }{r^{}_{iA} }} } +\sum \limits _{i=1}^ N {\sum \limits _{j>i}^ N {\frac{1}{r^{}_{ij} }} } +\sum \limits _{A=1}^ M {\sum \limits _{B>A}^ M {\frac{Z_ A Z_ B }{R_{AB} }} } \end{equation}   (4.2)


  \begin{equation} \label{eq402} \nabla ^2 = \frac{\partial ^2}{\partial x^2}+\frac{\partial ^2}{\partial y^2}+\frac{\partial ^2}{\partial z^2} \;  . \end{equation}   (4.3)

In Eq. eq:Hamiltonian, $Z$ is the nuclear charge, $M_{A}$ is the ratio of the mass of nucleus $A$ to the mass of an electron, $R_{AB} = |\ensuremath{\mathbf{R}}_ A - \ensuremath{\mathbf{R}}_ B|$ is the distance between nuclei $A$ and $B$, $r^{}_{ij} = |\ensuremath{\mathbf{r}}_{i} - \ensuremath{\mathbf{r}}_{j}|$ is the distance between the $i$th and $j$th electrons, $r^{}_{iA} = | \ensuremath{\mathbf{r}}_ i - \ensuremath{\mathbf{R}}_ A|$ is the distance between the $i$th electron and the $A$th nucleus, $M$ is the number of nuclei and $N$ is the number of electrons. The total energy $E$ is an eigenvalue of $\hat{H}$, with a corresponding eigenfunction (wave function) $\Psi $.

Separating the motions of the electrons from that of the nuclei, an idea originally due to Born and Oppenheimer,[Born and Oppenheimer(1927)] yields the electronic Hamiltonian operator:

  \begin{equation} \label{eq403} \hat{H}_{\mathrm{elec}} =-\frac{1}{2}\sum \limits _{i=1}^ N {\nabla _ i^2 } -\sum \limits _{i=1}^ N {\sum \limits _{A=1}^ M {\frac{Z_ A }{r^{}_{iA} }} } +\sum \limits _{i=1}^ N {\sum \limits _{j>i}^ N {\frac{1}{r^{}_{ij} }} } \end{equation}   (4.4)

The solution of the corresponding electronic Schrödinger equation,

  \begin{equation} \label{eq404} \hat{H}_{\mathrm{elec}} \Psi _{\mathrm{elec}} =E_{\mathrm{elec}} \Psi _{\mathrm{elec}} \;  , \end{equation}   (4.5)

affords the total electronic energy, $E_{\mathrm{elec}}$, and electronic wave function, $\Psi _{\mathrm{elec}}$, which describes the distribution of the electrons for fixed nuclear positions. The total energy is obtained by simply adding the nuclear–nuclear repulsion energy [the fifth term in Eq. (4.2)] to the total electronic energy:

  \begin{equation} \label{eq405} E_{\mathrm{tot}} =E_{\mathrm{elec}} +E_{\mathrm{nuc}} \;  . \end{equation}   (4.6)

Solving the eigenvalue problem in Eq. (4.5) yields a set of eigenfunctions ($\Psi _0$, $\Psi _1$, $\Psi _2 \ldots $) with corresponding eigenvalues $E_0 \le E_1 \le E_2 \le \ldots $.

Our interest lies in determining the lowest eigenvalue and associated eigenfunction which correspond to the ground state energy and wave function of the molecule. However, solving Eq. (4.5) for other than the most trivial systems is extremely difficult and the best we can do in practice is to find approximate solutions.

The first approximation used to solve Eq. eq404 is the independent-electron (mean-field) approximation, in which the wave function is approximated as an antisymmetrized product of one-electron functions, namely, the MOs. Each MO is determined by considering the electron as moving within an average field of all the other electrons. This affords the well-known Slater determinant wave function[Slater(1929), Slater(1930)]

  \begin{equation}  \label{eq406} \Psi =\frac{1}{\sqrt {n!} }\left| {{\begin{array}{*{20}c} \chi ^{} _1(1) \hfill &  \chi ^{}_2(1) \hfill &  \cdots \hfill &  \chi ^{}_ n (1) \hfill \\ \chi ^{} _1(2) \hfill &  \chi ^{}_2(2) \hfill &  \cdots \hfill &  \chi ^{}_ n (2) \hfill \\ \vdots \hfill &  \vdots \hfill &  \hfill &  \vdots \hfill \\ {\chi _1 (n)} \hfill &  {\chi _2 (n)} \hfill &  \cdots \hfill &  {\chi _ n (n)} \hfill \\ \end{array} }} \right| \;  , \end{equation}   (4.7)

where $\chi _ i$, a spin orbital, is the product of a molecular orbital $\psi _ i$ and a spin function ($\alpha $ or $\beta $).

One obtains the optimum set of MOs by variationally minimizing the energy in what is called a “self-consistent field” or SCF approximation to the many-electron problem. The archetypal SCF method is the Hartree-Fock (HF) approximation, but these SCF methods also include KS-DFT (Chapter 5). All SCF methods lead to equations of the form

  \begin{equation} \label{eq407} \hat{f}(i) \,  \chi (\ensuremath{\mathbf{x}}_ i )=\varepsilon \,  \chi (\ensuremath{\mathbf{x}}_ i ) \;  , \end{equation}   (4.8)

where the Fock operator $\hat{f}(i)$ for the $i$th electron is

  \begin{equation} \label{eq408} \hat{f}(i)=-\frac{1}{2}\nabla _ i^2 +\upsilon _{\rm eff}(i) \;  . \end{equation}   (4.9)

Here $\ensuremath{\mathbf{x}}_ i$ are spin and spatial coordinates of the $i$th electron, the functions $\chi $ are spin orbitals and $\upsilon _{\rm eff}$ is the effective potential “seen” by the $i$th electron, which depends on the spin orbitals of the other electrons. The nature of the effective potential $\upsilon _{\rm eff}$ depends on the SCF methodology, i.e., on the choice of density-functional approximation.

The second approximation usually introduced when solving Eq. eq404 is the introduction of an AO basis $\{ \phi _\mu \} $ linear combinations of which will then determine the MOs. There are many standardized, atom-centered Gaussian basis sets and details of these are discussed in Chapter 8.

After eliminating the spin components in Eq. (4.8) and introducing a finite basis,

  \begin{equation} \label{eq409} \psi _ i =\sum _\mu {c_{\mu i} \phi _\mu } \;  , \end{equation}   (4.10)

Eq. (4.8) reduces to the Roothaan-Hall matrix equation

  \begin{equation} \label{eq:Roothaan-Hall} \ensuremath{\mathbf{FC}} =\bm@general \boldmath \m@ne \mv@bold \bm@command {\varepsilon } \ensuremath{\mathbf{SC}} \;  . \end{equation}   (4.11)

Here, $\ensuremath{\mathbf{F}}$ is the Fock matrix, $\ensuremath{\mathbf{C}}$ is a square matrix of molecular orbital coefficients, $\ensuremath{\mathbf{S}}$ is the AO overlap matrix with elements

  \begin{equation} \label{eq411} S_{\mu \nu } =\int {\phi _\mu ({\rm {\bf r}})} \phi _\nu ({\rm {\bf r}})d{\rm {\bf r}} \end{equation}   (4.12)

and $\bm@general \boldmath \m@ne \mv@bold \bm@command {\varepsilon }$ is a diagonal matrix containing the orbital energies. Generalizing to an unrestricted formalism by introducing separate spatial orbitals for $\alpha $ and $\beta $ spin in Eq. eq406 yields the Pople-Nesbet equations[Pople and Nesbet(1954)]

  $\displaystyle \label{eq:Pople-Nesbet} \begin{aligned}  \ensuremath{\mathbf{F}}^{\alpha } \ensuremath{\mathbf{C}}^{\alpha } & = \bm@general \boldmath \m@ne \mv@bold \bm@command {\varepsilon }^{\alpha } \ensuremath{\mathbf{SC}}^{\alpha } \\ \ensuremath{\mathbf{F}}^{\beta } \ensuremath{\mathbf{C}}^{\beta } &  = \bm@general \boldmath \m@ne \mv@bold \bm@command {\varepsilon }^{\beta } \ensuremath{\mathbf{SC}}^{\beta } \end{aligned} $   (4.13)

In SCF methods, an initial guess is for the MOs is first determined, and from this, an average field seen by each electron can be calculated. A new set of MOs can be obtained by solving the Roothaan-Hall or Pople-Nesbet eigenvalue equations, resulting in the restricted or unrestricted finite-basis SCF approximation. This procedure is repeated until the new MOs differ negligibly from those of the previous iteration. The Hartree-Fock approximation for the effective potential in Eq. eq408 inherently neglects the instantaneous electron-electron correlations that are averaged out by the SCF procedure, and while the chemistry resulting from HF calculations often offers valuable qualitative insight, quantitative energetics are often poor. In principle, the DFT methodologies are able to capture all the correlation energy, i.e., the difference in energy between the HF energy and the true energy. In practice, the best-available density functionals perform well but not perfectly, and conventional post-HF approaches to calculating the correlation energy (see Chapter 6) are often required.

That said, because SCF methods often yield acceptably accurate chemical predictions at low- to moderate computational cost, self-consistent field methods are the cornerstone of most quantum-chemical programs and calculations. The formal costs of many SCF algorithms is ${\cal {O}}({N^4})$, that is, they grow with the fourth power of system size, $N$. This is slower than the growth of the cheapest conventional correlated methods, which scale as ${\cal {O}}({N^5})$ or worse, algorithmic advances available in Q-Chem can reduce the SCF cost to ${\cal {O}}({N})$ in favorable cases, an improvement that allows SCF methods to be applied to molecules previously considered beyond the scope of ab initio quantum chemistry.

Types of ground-state energy calculations currently available in Q-Chem are summarized in Table 4.1.


$rem Variable JOBTYPE


Single point energy (default)


Force (energy + gradient)


Equilibrium structure search


(Ch. 10)

Transition structure search


(Ch. 10)

Intrinsic reaction pathway


(Sec. 10.5)

Potential energy scan


(Sec. 10.4)

Vibrational frequency calculation


(Sec. 11.10 and 11.11)

Polarizability and relaxed dipole


(Sec. )

NMR chemical shift


(Sec. 11.13.1)

Indirect nuclear spin-spin coupling


(Sec. 11.13.1)

Ab initio molecular dynamics


(Sec. 10.7)

Ab initio path integrals


(Sec. 10.8)

BSSE (counterpoise) correction


(Sec. 13.4.3)

Energy decomposition analysis


(Sec. 13.5)

Table 4.1: The type of calculation to be run by Q-Chem is controlled by the $rem variable JOBTYPE.

4.2.2 Hartree-Fock Theory

As with much of the theory underlying modern quantum chemistry, the HF approximation was developed shortly after publication of the Schrödinger equation, but remained a qualitative theory until the advent of the computer. Although the HF approximation tends to yield qualitative chemical accuracy, rather than quantitative information, and is generally inferior to many of the DFT approaches available, it remains as a useful tool in the quantum chemist’s toolkit. In particular, for organic chemistry, HF predictions of molecular structure are very useful.

Consider once more the Roothaan-Hall equations, Eq. eq:Roothaan-Hall, or the Pople-Nesbet equations, Eq. eq:Pople-Nesbet, which can be traced back to Eq. eq407, in which the effective potential $\upsilon _{\rm eff}$ depends on the SCF methodology. In a restricted HF (RHF) formalism, the effective potential can be written as

  \begin{equation} \label{eq413} \upsilon _{\rm eff}=\sum _{a}^{N/2} \bigl [ {2\hat{J}_ a (1)-\hat{K}_ a (1)} \bigr ] -\sum _{A=1}^ M {\frac{Z_ A }{r^{}_{1A} }} \end{equation}   (4.16)

where the Coulomb and exchange operators are defined as

  \begin{equation}  \label{eq414} \Hat {J}_ a (1)=\int {\psi _ a^\ast (2)\frac{1}{r^{}_{12} }\psi _ a (2) \;  d{\rm {\bf r}}_{ 2} } \end{equation}   (4.17)


  \begin{equation}  \label{eq415} \hat{K}_ a (1)\psi _ i (1)=\left[ {\int {\psi _ a^\ast (2)\frac{1}{r^{}_{12} }\psi _ i (2) \;  d{\rm {\bf r}}_{ 2} } } \right]\psi _ a (1) \end{equation}   (4.18)

respectively. By introducing an atomic orbital basis, we obtain Fock matrix elements

  \begin{equation} \label{eq416} F_{\mu \nu } =H_{\mu \nu }^{\mathrm{core}} +J_{\mu \nu } -K_{\mu \nu } \end{equation}   (4.19)

where the core Hamiltonian matrix elements

  \begin{equation} \label{eq417} H_{\mu \nu }^{\mathrm{core}} =T_{\mu \nu } +V_{\mu \nu } \end{equation}   (4.20)

consist of kinetic energy elements

  \begin{equation} \label{eq418} T_{\mu \nu } =\int {\phi _\mu ({\rm {\bf r}})\left( {-\frac{1}{2}\nabla ^2} \right)\phi _\nu ({\rm {\bf r}}) \;  d{\rm {\bf r}}} \end{equation}   (4.21)

and nuclear attraction elements

  \begin{equation} \label{eq419} V_{\mu \nu } =\int {\phi _\mu ({\rm {\bf r}})\left( {-\sum \limits _ A {\frac{Z_ A }{\left| {{\rm {\bf R}}_{ A} -{\rm {\bf r}}} \right|}} } \right)\phi _\nu ({\rm {\bf r}}) \;  d{\rm {\bf r}}} \end{equation}   (4.22)

The Coulomb and exchange elements are given by

  \begin{equation} \label{eq420} J_{\mu \nu } =\sum \limits _{\lambda \sigma } {P_{\lambda \sigma } \left( {\mu \nu \vert \lambda \sigma } \right)} \end{equation}   (4.23)


  \begin{equation} \label{eq421} K_{\mu \nu } =\frac{1}{2}\sum \limits _{\lambda \sigma } {P_{\lambda \sigma } \left( {\mu \lambda \vert \nu \sigma } \right)} \end{equation}   (4.24)

respectively, where the density matrix elements are

  \begin{equation} \label{eq:P(mu,nu)} P_{\mu \nu } =2\sum \limits _{a=1}^{N/2} {C_{\mu a} C_{\nu a} } \end{equation}   (4.25)

and the two electron integrals are

  \begin{equation} \label{eq423} \left( {\mu \nu \vert \lambda \sigma } \right)= \int \int {\phi _\mu ({\rm {\bf r}}_{ 1} )\phi _\nu ({\rm {\bf r}}_{ 1} ) \left( {\frac{1}{r^{}_{12} }} \right) \phi _\lambda ({\rm {\bf r}}_{ 2} )\phi _\sigma ({\rm {\bf r}}_{\rm {\bf 2}}) \;  d{\rm {\bf r}}_{ 1} \;  d{\rm {\bf r}}_{ 2} } \;  . \end{equation}   (4.26)

Note: The formation and utilization of two-electron integrals is a topic central to the overall performance of SCF methodologies. The performance of the SCF methods in new quantum chemistry software programs can be quickly estimated simply by considering the quality of their atomic orbital integrals packages. See Appendix B for details of Q-Chem’s AOInts package.

Substituting the matrix element in Eq. (4.19) back into the Roothaan-Hall equations, Eq. eq:Roothaan-Hall, and iterating until self-consistency is achieved will yield the RHF energy and wave function. Alternatively, one could have adopted the unrestricted form of the wave function by defining separate $\alpha $ and $\beta $ density matrices:

  $\displaystyle \label{eq424} \begin{aligned}  P_{\mu \nu }^{\alpha } &  = \sum \limits _{a=1}^{n_\alpha } {C_{\mu a}^\alpha C_{\nu a}^\alpha } \\ P_{\mu \nu }^{\beta } &  = \sum \limits _{a=1}^{n_\beta } {C_{\mu a}^\beta C_{\nu a}^\beta } \end{aligned} $   (4.27)

The total electron density matrix $\ensuremath{\mathbf{P}} = \ensuremath{\mathbf{P}}^\alpha + \ensuremath{\mathbf{P}}^\beta $. The unrestricted $\alpha $ Fock matrix,

  \begin{equation} \label{eq:F(mu,nu)} F_{\mu \nu }^\alpha =H_{\mu \nu }^{\mathrm{core}} +J_{\mu \nu } -K_{\mu \nu }^\alpha \;  , \end{equation}   (4.30)

differs from the restricted one only in the exchange contributions, where the $\alpha $ exchange matrix elements are given by

  \begin{equation} \label{eq426} K_{\mu \nu }^\alpha =\sum \limits _\lambda ^ N {\sum \limits _\sigma ^ N {P_{\lambda \sigma }^\alpha \left( {\mu \lambda \vert \nu \sigma } \right)} } \end{equation}   (4.31)