Requests for technical support from the VASP group should be posted in the VASP-forum.

# Hartree-Fock and HF/DFT hybrid functionals

## Fock exchange

The non-local Fock exchange energy, E_{x}, can be written as

with being the set of one-electron
Bloch states of the system, and the corresponding
set of (possibly fractional) occupational numbers.
The sums over **k** and **q** run over all **k**-points chosen to sample the
Brillouin zone (BZ), whereas the sums over *m* and *n* run over all bands at these
**k**-points.

The corresponding non-local Fock potential is given by

where is the cell periodic part of the Bloch state,
, at **k**-point, **q**, with band index *m*.

Using the decomposition of the Bloch states, , in plane waves,

the Fock exchange potential may be written as

where

is the representation of the Fock potential in reciprocal space.

In VASP these expressions are implemented within the PAW formalism.^{[1]}

## Hybrid functionals

Hartree-Fock/DFT hybrid functionals admix a certain amount of Fock exchange to (a part of) a local or semilocal density functional.

### PBE0

The PBE0 functional is defined as:^{[2]}

where *E*_{x}^{PBE} and *E*_{c}^{PBE} denote the exchange and correlation parts of the PBE density functional, respectively.

### B3LYP

A well known hybrid functional popular amongst quantum chemists is the B3LYP functional:

where *E*_{x}^{B3LYP} and *E*_{c}^{B3LYP} are the B3LYP exchange and correlation energy contributions, respectively.
*E*_{x}^{B3LYP} consists of 80% of LDA exchange plus 20% of non-local Fock exchange, and 72% of the gradient corrections of the Becke88 exchange functional. *E*_{c}^{B3LYP} consists of 81% of LYP
correlation energy, which contains a local and a semilocal (gradient dependent) part, and 19% of the (local) Vosko-Wilk-Nusair correlation functional III, which is fitted to the correlation energy in the random phase approximation RPA of the homogeneous electron gas.

## Range separated hybrid functionals

### HSE

In the range separated HSE03^{[3]}^{[4]}^{[5]} and HSE06^{[6]} hybrid functionals the slowly decaying long-ranged part of the Fock exchange interaction is replaced by the corresponding part of the PBE density functional counterpart. The resulting expression for the exchange-correlation energy is given by:

As can be seen above, the separation of the electron-electron interaction into a short- and long-ranged part, labeled SR and LR respectively, is realized only in the exchange interactions. Electronic correlation is represented by the corresponding part of the PBE density functional.

The decomposition of the Coulomb kernel is obtained using the following construction:

where *r* =|**r**-**r'**|, and (=HFSCREEN) is the parameter that defines the range-separation, and is related to a characteristic distance, , at which the short-range interactions become negligible.

Note: It has been shown that the optimum μ, controlling the range separation is approximately 0.2-0.3 Å^{-1}.^{[3]}^{[4]}^{[5]}^{[6]}
To select the HSE06 functional you need to select (HFSCREEN=0.2).

Using the decomposed Coulomb kernel one may straightforwardly rewrite the non-local Fock exhange energy:

The representation of the corresponding short-ranged Fock potential in reciprocal space is given by

Clearly, the only difference to the reciprocal space representation of the complete Fock exchange potential is the second factor in the summand above, that represents the complementary error function in reciprocal space.

The short-ranged PBE exchange energy and potential, and their long-ranged counterparts, are arrived at using the same decomposition, in accordance with Heyd et al.^{[3]} It is easily seen that the long-range term in the decomposed Coulomb kernel becomes zero for μ=0, and the short-range contribution then equals the full Coulomb operator, whereas for μ→∞ it is the other way around. Consequently, the two limiting cases of the HSE functional are a true PBE0 functional for μ=0, and a pure PBE calculation for μ→∞.

### Thomas-Fermi screening

In the case of Thomas-Fermi screening the Coulomb kernel is again decomposed in a short-range and a long-range part.^{[7]}^{[8]}^{[9]} This decomposition can be conveniently written in reciprocal space:

where *k*_{TF} (=HFSCREEN) is the Thomas-Fermi screening length. For typical semiconductors, a Thomas-Fermi screening length of about 1.8 Å^{-1} yields reasonable band gaps. In principle, however, the Thomas-Fermi screening length depends on the valence electron density; VASP determines this parameter from the number of valence electrons (read from the POTCAR file) and the volume and writes the corresponding value to the OUTCAR file:

Thomas-Fermi vector in A = 2.00000

Since, VASP counts the semi-core states and *d*-states as valence electrons, although these states do not contribute to the screening, the values reported by VASP are often incorrect.

Another important detail concerns the implementation of the density functional part in the screened exchange case. Literature suggests that a global enhancement factor *z* (see Eq. 3.15)^{[8]} should be used, whereas VASP implements a local density dependent enhancement factor *z*=*k*_{TF}/*k* , where *k* is the Fermi wave vector corresponding to the local density (and not the average density as suggested Seidl *et al*.^{[8]}). The VASP implementation is in the spirit of the *local* density approximation.

## Downsampling

Consider the description of a certain bulk system, using a supercell made up
of *N* primitive cells, in such a way that, {**A**_{ i}' }, the lattice vectors
of the supercell are given by **A**_{ i}' =*n*_{ i}**A**_{ i} (i=1,2,3),
where {**A**_{ i}} are the lattice vectors of the primitive cell.
Let *R*_{max}=2/μ be the distance for which

When the nearest neighbour distance between the periodically repeated images
of the supercell *R*_{NN} > 2*R*_{max} (i.e. *R*_{NN} > 4/μ), the
short-ranged Fock potential can be represented exactly, sampling the BZ at the Γ-point only, i.e.,

This is equivalent to a representation of the bulk system using the
primitive cell and a n_{1}×n_{2}×n_{3} sampling of the BZ,

where the set of **q** vectors is given by

for *i* =1,..,*n*_{ 1}, *j* =1,..,n_{ 2}, and *k* =1,..,n_{ 3}, with **G**_{1,2,3} being the reciprocal lattice vectors of the supercell.

In light of the above it is clear that the number of **q**-points needed to represent
the short-ranged Fock potential decreases with decreasing *R*_{max}
(i.e., with increasing μ).
Furthermore, one should realize that the maximal range of the exchange interactions
is not only limited by the erfc(μ|**r**-**r'**|)/|**r**-**r'**|
kernel, but depends on the extend of the spatial overlap of the orbitals as well
(this can easily be shown for the Fock exchange energy when one adopts a Wannier
representation of the orbitals);
*R*_{max}=2/μ (as defined above), therefore, provides an upper limit
for the range of the exchange interactions, consistent with maximal spatial
overlap of the orbitals.

It is thus well conceivable that the situation arises where the short-ranged Fock
potential may be represented on a considerably coarser mesh of points in the BZ than
the other contributions to the Hamiltonian.
To take advantage of this situation one may, for instance, restrict the sum over
**q** in the short range exchange potential to a subset, {**q**_{k}}, of the full (*N*_{ 1}×*N*_{ 2}×*N*_{ 3}) **k**-point set, {**k**}, for which the following holds

where **b**_{1,2,3} are the reciprocal lattice vectors of the primitive cell,
and *C*_{ i} is the integer grid reduction factor along reciprocal lattice direction
**b**_{ i}. This leads to a reduction in the computational workload by a factor:

**Note**: From the above one should not get the impression that the grid reduction can only be used (or is useful) only in conjunction with range separated functionals (e.g. HSE03/HSE06). It can be applied, for instance, in the PBE0 and pure HF cases as well, although from the above it might be clear that the range separated functionals, in general, will allow for a larger reduction of the grid.^{[10]}

### Caveat: when one should not use downsampling

In metallic systems, downsampling the exact exchange potential (NKRED, NKREDX, NKREDY, and/or NKREDZ ≠ 1) must be used with great care, and results might be wrong, if downsampling is applied. Problematic cases include electron or hole doped semiconductors or insulators. If two electrons are added to a bulk TiO_{2} cell containing 72 atoms, and calculations are performed using 2×2×2 **k**-points, the following results are obtained for the one-electron energies and occupancies with and without NKRED=2 (LHFCALC=.TRUE. ; AEXX=0.2 ; HFSCREEN = 0.2):

k-point 1: 0.0000 0.0000 0.0000 DOPED NKRED = 2 DOPED NKRED = 1 UNDOPED CASE band No. band energies occupation band energies occupation band energies occupation valence bands 262 2.4107 2.00000 2.4339 2.00000 2.4082 2.00000 263 2.4107 2.00000 2.4339 2.00000 2.4082 2.00000 264 2.8522 2.00000 2.8597 2.00000 2.8566 2.00000 conduction bands 265 5.4046 2.00000 5.8240 1.87262 5.8126 0.00000 266 5.4908 2.00000 5.8695 1.62151 5.8424 0.00000 267 5.4894 2.00000 5.8695 1.62192 5.8424 0.00000

k-point 2: 0.5000 0.0000 0.0000 DOPED NKRED = 2 DOPED NKRED = 1 UNDOPED CASE band No. band energies occupation band energies occupation band energies occupation valence bands 262 2.0015 2.00000 2.0144 2.00000 2.0160 2.00000 263 2.5961 2.00000 2.6072 2.00000 2.6046 2.00000 264 2.5961 2.00000 2.6072 2.00000 2.6045 2.00000 conduction bands 265 6.1904 0.00000 6.1335 0.00435 6.0300 0.00000 266 6.1904 0.00000 6.1335 0.00435 6.0300 0.00000 267 6.1907 0.00000 6.1340 0.00426 6.0305 0.00000

k-point 3 : 0.5000 0.5000 0.0000 DOPED NKRED = 2 DOPED NKRED = 1 UNDOPED CASE band No. band energies occupation band energies occupation band energies occupation valence bands 262 2.4237 2.00000 2.4433 2.00000 2.4287 2.00000 263 2.4238 2.00000 2.4432 2.00000 2.4287 2.00000 264 2.4239 2.00000 2.4433 2.00000 2.4287 2.00000 conduction bands 265 5.8966 0.42674 5.9100 1.24121 5.8817 0.00000 266 5.8780 0.54128 5.9100 1.24143 5.8817 0.00000 267 5.8826 0.50661 5.9100 1.24261 5.8817 0.00000

Without NKRED, the one electron energies are pretty similar to the one electron energies in the undoped system (last two columns), whereas using NKRED a strong reduction of the "gap" between the valence and conduction band is observed, in particular, close to the conduction band minimum (in this case the point). This result is an artefact of the approximation used for NKRED=2. The non-local exchange operator cancels the self-interaction present in the Hartree-potential. For NKRED=2 and 2×2×2 **k**-points, the non-local exchange operator at each **k**-point is evaluated using the one-electron orbitals at this **k**-point only, e.g.:

The sum over **q** in the Fock exchange potential reduces to a single **k**-point. This reduces the self-interaction for states that have originally an occupancy larger one, concomitantly pulling those states to lower energies. Initially empty states (occupancy smaller one) are pushed up slightly. Since this is clearly an artefact, NKRED must be used with utmost care for large supercells with coarse **k**-point sampling. Please always check whether occupancies are similar at all **k**-points, if this
is not the case, the calculations should be double checked without downsampling.

Since HF type calculations using 2×2×2 **k**-points without NKRED, are roughly 64 times more expensive than those using the Γ-point only, it might seem impossible to do anything but Γ-point only calculations. However, VASP allows to generate special **k**-points using generating lattices.

Particularly useful for HF type calculations, are the following k-point sets

k-point set generating a bcc like lattice in the BZ -> 2 k-points in BZ 0 direct 0.5 0.5 0.5 -.5 -.5 0.5 0.5 -.5 -.5 0 0 0

This KPOINTS file generates two 2 **k**-points, one at the Γ-point and one along the space diagonal at the BZ boundary (*R*-point).

The following KPOINTS file generates 4 **k**-points, one at the Γ-point
and three at the *S*-points (the latter ones might be symmetry equivalent for cubic cells).

k-point set generating an fcc lattice -> 4 k-points in BZ 0 direct 0.5 0.5 0.0 0.0 0.5 0.5 0.5 0.0 0.5 0 0 0

Using such grids, sensible and fairly rapidly converging results are obtained, e.g. for electron and hole doped materials, even if the conduction or valence band is partially occupied or depleted. For instance
for TiO_{2} the following energies are obained:

Gamma only TOTEN = -837.759900 eV 2 k-points TOTEN = -838.039157 eV 4 k-points TOTEN = -838.129712 eV 2x2x2 TOTEN = -838.104787 eV 2x2x2 NKRED=2 TOTEN = -838.418681 eV

Note that results using NKRED not improved compared to Γ-only calculations.

## Further reading

- A comprehensive study of the performance of the HSE03/HSE06 functional compared to the PBE and PBE0 functionals.
^{[10]} - The B3LYP functional applied to solid state systems.
^{[11]} - Applications of hybrid functionals to selected materials: Ceria,
^{[12]}lead chalcogenides,^{[13]}CO adsorption on metals,^{[14]}^{[15]}defects in ZnO,^{[16]}excitonic properties,^{[17]}SrTiO and BaTiO.^{[18]}

## References

- ↑ J. Paier, R. Hirschl, M. Marsman, and G. Kresse, J. Chem. Phys. 122, 234102 (2005).
- ↑ J. Perdew, M. Ernzerhof, and K. Burke, J. Chem. Phys. 105, 9982 (1996).
- ↑
^{a}^{b}^{c}J. Heyd, G. E. Scuseria, and M. Ernzerhof, J. Chem. Phys. 118, 8207 (2003). - ↑
^{a}^{b}J. Heyd and G. E. Scuseria, J. Chem. Phys. 121, 1187 (2004). - ↑
^{a}^{b}J. Heyd, G. E. Scuseria, and M. Ernzerhof, J. Chem. Phys. 124, 219906 (2006). - ↑
^{a}^{b}A. V. Krukau , O. A. Vydrov, A. F. Izmaylov, and G. E. Scuseria, J. Chem. Phys. 125, 224106 (2006). - ↑ D.M. Bylander and L. Kleinman, Phys. Rev. B 41, 7868 (1990).
- ↑
^{a}^{b}^{c}A. Seidl, A. Görling, P. Vogl, J.A. Majewski, and M. Levy, Phys. Rev. B 53, 3764 (1996). - ↑ S. Picozzi, A. Continenza, R. Asahi, W. Mannstadt, A.J. Freeman, W. Wolf, E. Wimmer, and C.B. Geller, Phys. Rev. B 61, 4677 (2000).
- ↑
^{a}^{b}J. Paier, M. Marsman, K. Hummer, G. Kresse, I.C. Gerber, and J.G. Ángyán, J. Chem. Phys. 124, 154709 (2006). - ↑ J. Paier, M. Marsman, and G. Kresse, J. Chem. Phys. 127, 024103 (2007).
- ↑ Juarez L. F. Da Silva, M. Veronika Ganduglia-Pirovano, Joachim Sauer, Veronika Bayer, and Georg Kresse, Phys. Rev. B 75, 045121 (2007).
- ↑ K. Hummer, A. Grüneis, and G. Kresse, Phys. Rev. B 75, 195211 (2007).
- ↑ A. Stroppa, K. Termentzidis, J. Paier, G. Kresse, J. Hafner, Phys. Rev. B 76, 195440 (2007).
- ↑ A. Stroppa and G. Kresse, New Journal of Physics 10, 063020 (2008).
- ↑ F. Oba, A. Togo, I. Tanaka, J. Paier, and G. Kresse, Phys. Rev. B 77, 245202 (2008).
- ↑ J. Paier, M. Marsman, G. Kresse, Phys. Rev. B 78, 121201(R) (2008).
- ↑ R. Wahl, D. Vogtenhuber, and G. Kresse, Phys. Rev. B 78, 104116 (2008).