Introduction to Density Functional Theory — Contents Part V Numerical Implementation / Chapter 15

Chapter 15Pseudopotentials

In the previous chapter we learned the framework for solving the Kohn–Sham equations on a computer—the choice of basis functions, the generalized eigenvalue problem, and the self-consistency loop. There, however, we set aside the question of how to treat the deep Coulomb potential $-Z/r$ created by the nucleus and the core electrons sitting at its bottom. This chapter takes up that problem head on. Although core electrons hardly participate in chemical bonding, their presence forces a fine nodal structure on the valence wave functions and makes the convergence of the plane-wave expansion hopelessly bad. This gave rise to the strategy of “eliminating the core and replacing the effect of the nucleus plus the core with an effective potential felt only by the valence electrons—a pseudopotential.” In this chapter we follow, without skipping any intermediate calculation, why this replacement is permissible (scattering theory and norm conservation), how to construct such potentials (the Troullier–Martins method, the Kleinman–Bylander separable form, and ultrasoft pseudopotentials with the restoration of norm conservation), and how to validate them (comparison with all-electron calculations through logarithmic derivatives and band structures). In the next chapter, on top of the computational framework thus established, we calculate the forces and stress acting on atoms and proceed to structural optimization and first-principles molecular dynamics.

What you will learn in this chapter
  • Why freezing the core electrons is justified, and a quantitative estimate of the cutoff needed to expand the 1s orbital in plane waves in an all-electron calculation
  • The path from the OPW method to the Phillips–Kleinman transformation: the repulsive potential created by projection onto the core states, and the cancellation theorem
  • The acceptance criteria for a pseudopotential from the viewpoint of scattering theory: agreement of the logarithmic derivative, and transferability
  • The heart of this chapter: a complete derivation, using the Wronskian, of the identity connecting the energy derivative of the logarithmic derivative to the norm of the wave function, and the basis of the norm-conservation condition
  • The Troullier–Martins construction and unscreening, the Kleinman–Bylander separable form and ghost states, and ultrasoft pseudopotentials and the restoration of their norm conservation (the MBK method)
  • Relativistic pseudopotentials (scalar relativity and spin–orbit coupling), and the actual procedure for validating a pseudopotential you have constructed

In this chapter, too, we use Hartree atomic units ($\hbar = m_e = e = 4\pi\varepsilon_0 = 1$). The unit of energy is the hartree (1 Ha $=$ 27.211 eV), and the unit of length is the bohr (1 bohr $=$ 0.5292 Å). In this system of units the speed of light is $c = 1/\alpha \simeq 137.036$, which we use in Section 15.8.

15.1 Why Pseudopotentials?

15.1.1 Core electrons are chemically inert

The electrons in an atom fall clearly into two tiers, both in energy and in space. Take the silicon atom ($Z=14$, electron configuration $1s^2 2s^2 2p^6 3s^2 3p^2$) as an example. In terms of Kohn–Sham eigenvalues, the 1s level lies at about $-65$ Ha ($\approx -1.8$ keV), and the 2s and 2p levels lie at about $-5$ Ha and $-3.5$ Ha (around $-100$ eV), whereas the valence 3s and 3p levels are as shallow as $-0.4$ to $-0.1$ Ha ($-10$ to $-3$ eV). Between the core and the valence electrons there is an energy gap of more than two orders of magnitude.

The same holds in space. The 1s orbital is localized at a distance of about $1/Z \approx 0.07$ bohr from the nucleus, and the 2s and 2p orbitals are also mostly contained within about 0.3 bohr. In contrast, the 3s and 3p orbitals, which are responsible for chemical bonding, extend over a scale of 1–3 bohr. In a crystal, only the tails of the valence electrons overlap with those of neighboring atoms, and the overlap between core orbitals is exponentially small. Therefore even when a solid or a molecule is formed, the states of the core electrons hardly change from those of the isolated atom. Adopting this deliberately as an approximation and freezing the core orbitals as they are in the atom is the frozen-core approximation. For many elements, comparison with all-electron calculations has confirmed that the error the frozen-core approximation causes in binding energies and lattice constants is below chemical accuracy (1 kcal/mol $\approx$ 1.6 mHa).

Energy Valence 3s, 3p −10 to −3 eV (involved in bonding) 2p: about −3.5 Ha (about −100 eV) 2s: about −5 Ha (about −140 eV) 1s: about −65 Ha (about −1.8 keV) Core (chemically inert) r |u(r)| 1s (width ~1/Z bohr) 3s (extended, oscillating inside) Fine nodal structure near the nucleus makes plane-wave expansion difficult
Figure 15.1: Schematic diagram of the energy scales of the core and valence electrons of a silicon atom (left) and the spatial scales of the radial wave functions $u(r)=rR(r)$ (right). The core 1s state is sharply localized on the scale of $1/Z$, while the valence 3s state is extended but, because of its orthogonality to the core states, has two nodes near the nucleus.

15.1.2 Even so, the calculation does not get lighter: the nightmare of plane-wave convergence

If the core is frozen, the number of orbitals to be diagonalized decreases. But that alone does not make the calculation light. Two problems remain.

  1. The nuclear potential $-Z/r$ remains. Because the potential diverges as $r\to0$, a wave function bound to it changes steeply near the nucleus.
  2. The valence wave functions have nodes near the nucleus. Because the 3s orbital must be orthogonal to the 1s and 2s orbitals (for example, $\braket{\psi_{1s}|\psi_{3s}}=0$), it changes sign twice within the region of about 0.3 bohr where the core is localized (Figure 15.1, right). The inner product of two smooth functions does not vanish, so orthogonality can be achieved only through violent oscillation.

Let us estimate concretely how fatal this “fine structure” is for the plane-wave expansion. First, let us count the number of plane waves when a kinetic-energy cutoff $E_{\rm cut}$ ($|\kk+\bm{G}|^2/2 \le E_{\rm cut}$) is imposed in a unit cell of volume $\Omega$. Each reciprocal lattice point occupies a volume $(2\pi)^3/\Omega$ in $\bm{G}$ space (Chapter 12). Therefore the number of plane waves inside a sphere of radius $q_{\max}=\sqrt{2E_{\rm cut}}$ is obtained by dividing the volume of the sphere by the volume per point:

$$ \begin{equation} N_{\rm PW} \simeq \frac{\dfrac{4\pi}{3}q_{\max}^3}{\dfrac{(2\pi)^3}{\Omega}} = \frac{\Omega\, q_{\max}^3}{6\pi^2} \label{eq:15-npw} \end{equation} $$

The step from the first line to the second merely simplifies the denominator and numerator ($4\pi/3 \div 8\pi^3 = 1/(6\pi^2)$). What matters is the scaling $N_{\rm PW} \propto q_{\max}^3 \propto E_{\rm cut}^{3/2}$.

Example: The cutoff required for the silicon 1s orbital

The 1s orbital of a hydrogen-like atom is $R_{1s}(r) \propto e^{-Zr}$, with characteristic scale $1/Z$. For silicon, $1/Z = 1/14 \approx 0.071$ bohr. The Fourier transform of this function has the heavy-tailed form $\tilde{\phi}_{1s}(q) \propto (q^2+Z^2)^{-2}$ (derived in end-of-chapter Exercise 15.1), and to recover 99.9% of the norm one must include wavenumbers up to about $q_{\max} \approx 5Z$. For silicon, $$q_{\max} \approx 5 \times 14 = 70~\text{Bohr}^{-1},\qquad E_{\rm cut} = \frac{q_{\max}^2}{2} \approx 2450~\text{Ha} \approx 67{,}000~\text{eV}$$ On the other hand, in silicon calculations using the pseudopotentials described later, $E_{\rm cut} \approx 15$ Ha (about 400 eV) is sufficient for convergence. Applying Eq. \eqref{eq:15-npw} to the primitive unit cell of the silicon diamond structure ($\Omega \approx 270$ bohr³, two atoms), we obtain $$N_{\rm PW}(\text{all-electron}) \approx \frac{270 \times 70^3}{6\pi^2} \approx 1.6\times10^{6}, \qquad N_{\rm PW}(\text{pseudopotential}) \approx \frac{270 \times (\sqrt{30})^3}{6\pi^2} \approx 7.5\times10^{2}.$$ The number of basis functions differs by a factor of about 2000, and since the cost of diagonalization is proportional to $N^3$, the difference is a factor of about $10^{10}$. We see that a calculation that expands the 1s orbital explicitly in plane waves is unrealistic. Moreover, the valence 3s orbital demands a comparable fineness because of its nodes near the nucleus, so freezing the core alone is insufficient; the valence wave function itself must be “smoothly reworked” near the nucleus.

15.1.3 Strategy: eliminate the core and treat only the valence electrons

We therefore adopt the following strategy.

Definition: The basic strategy of the pseudopotential method

(1) Freeze the core electrons as they are in the atom and eliminate them from the degrees of freedom of the calculation.
(2) Replace the influence that the “nucleus $+$ core electrons” system exerts on the valence electrons with an effective potential (a pseudopotential) constructed beforehand from an atomic calculation.
(3) In doing so, replace the valence wave function near the nucleus (inside the cutoff radius $r_c$) with a smooth, nodeless pseudo-wave function. Outside $r_c$, make it agree exactly with the true wave function.

In this way, only a shallow, smooth potential and smooth wave functions appear in the Kohn–Sham equations to be solved, and convergence is reached with a small number of basis functions even in plane waves. Of course, we need a condition that guarantees that this replacement does not destroy the physics. Providing it is the theme of this chapter. To state the answer in advance: it is “to scatter outside $r_c$ in the same way as the true atom” (Section 15.3), and the prescription that guarantees this over a finite energy range around a single energy point is “norm conservation” (Section 15.4).

Note that all-electron methods, which treat the core without eliminating it (such as the LAPW method; we organized them in Chapter 14 as a classification of numerical solution methods), are also widely used. All-electron methods can directly treat properties originating from the core (core-level shifts, Mössbauer spectroscopy, and so on), but their computational cost is high. The accuracy of a pseudopotential method is ultimately validated by comparison with all-electron methods (Section 15.9). The two are in a complementary relationship—a reference standard of accuracy and its lightweight surrogate—rather than in competition.

15.2 From OPW to Phillips–Kleinman

The concept of the pseudopotential was not introduced out of thin air. It was “discovered” as a logical necessity from a practical device for improving the convergence of plane-wave basis sets (the OPW method). In this section we follow that path and derive in full the Phillips–Kleinman (PK) transformation, the prototype of the pseudopotential. Our goals here are to confirm, at the level of equations, three points: (i) projection onto the core states produces a repulsive potential; (ii) this repulsion nearly cancels the attraction of the nucleus (the cancellation theorem); and (iii) the PK form as it stands has three drawbacks that make it impractical.

Relation to Chapter 12 (correspondence of notation)

The OPW method and the PK transformation were already derived in Section 12.8 of Chapter 12 as the answer to the question “why does the free-electron model work in simple metals?” This section retraces the same transformation, in the notation of this chapter, as the starting point of the pseudopotential method (it is arranged so that this chapter can be read on its own). The skeleton of the derivation and its conclusions—the repulsive potential $\hat V_R$, the cancellation theorem, and the three drawbacks of the PK form—agree completely in the two chapters; only the notation differs, as follows.

Therefore $\hat V_R=\sum_c(\varepsilon_v-\varepsilon_c)\left|\phi_c\right\rangle\left\langle\phi_c\right|$ (Chapter 12) and Eq. \eqref{eq:15-vr} are the same operator. Readers who have read Chapter 12 may start reading from Section 15.2.3 (the three drawbacks).

15.2.1 The orthogonalized plane wave (OPW) method

As we learned in Chapter 12, the wave function of a periodic system is a Bloch function and can be written as a superposition of plane waves $|{\rm PW},\kk\rangle \propto e^{i\kk\cdot\rr}$. As we saw in the previous section, a naive plane-wave expansion does not converge, because of the oscillations forced by the orthogonality to the core. In 1940, Herring proposed a solution: build the orthogonality into the basis in advance (the OPW method). We divide the eigenstates of the Hamiltonian $\hat{H}$ into core ($c$) and valence ($v$) states, and suppose that the core orbitals $|\psi_c\rangle$ ($\hat{H}|\psi_c\rangle = E_c|\psi_c\rangle$) are known from atomic calculations. We take the function obtained by projecting out the core components from a plane wave,

$$ \begin{equation} |{\rm OPW},\kk\rangle = |{\rm PW},\kk\rangle - \sum_c |\psi_c\rangle\langle\psi_c|{\rm PW},\kk\rangle \label{eq:15-opw-def} \end{equation} $$

as the new basis (the orthogonalized plane wave). That it is indeed orthogonal to every core orbital can be checked line by line as follows. Taking the inner product with an arbitrary core orbital $|\psi_{c'}\rangle$, we obtain

$$ \begin{align} \langle\psi_{c'}|{\rm OPW},\kk\rangle &= \langle\psi_{c'}|{\rm PW},\kk\rangle - \sum_c \langle\psi_{c'}|\psi_c\rangle\langle\psi_c|{\rm PW},\kk\rangle \label{eq:15-opw-orth1}\\ &= \langle\psi_{c'}|{\rm PW},\kk\rangle - \sum_c \delta_{c'c}\,\langle\psi_c|{\rm PW},\kk\rangle \label{eq:15-opw-orth2}\\ &= \langle\psi_{c'}|{\rm PW},\kk\rangle - \langle\psi_{c'}|{\rm PW},\kk\rangle = 0. \label{eq:15-opw-orth3} \end{align} $$

In the first line we simply substituted the definition \eqref{eq:15-opw-def}. In the second line we used the orthonormality of the core orbitals, $\langle\psi_{c'}|\psi_c\rangle=\delta_{c'c}$ (they can be chosen orthogonal because they are bound eigenstates of the same Hamiltonian). In the third line we collapsed the sum with the Kronecker delta. The OPW is a function that “is a plane wave far from the nucleus and, near the nucleus, has from the outset the oscillations needed to be orthogonal to the core,” and using it as the basis allows the valence states to be represented with a small number of basis functions. In fact, band calculations for semiconductors up to the 1950s were carried out with the OPW method.

15.2.2 The Phillips–Kleinman transformation: emergence of the repulsive potential

In 1959, Phillips and Kleinman realized that when the structure of the OPW method is rephrased in the language of operators, the concept of a “pseudopotential” appears. We now derive that transformation. The starting point is to write the true valence wave function $|\Psi\rangle$ as a “smooth component $|\phi\rangle$” plus “a correction that makes it orthogonal to the core.” We take the smooth component to be a superposition of plane waves, $|\phi\rangle = \sum_{\bm G} C_{\bm G}|{\rm PW},\bm{G}\rangle$, and lift the OPW structure \eqref{eq:15-opw-def} directly to a linear combination, setting

$$ \begin{equation} |\Psi\rangle = |\phi\rangle - \sum_c |\psi_c\rangle\langle\psi_c|\phi\rangle \label{eq:15-pk-ansatz} \end{equation} $$

By construction, $|\Psi\rangle$ is orthogonal to the core (the same calculation as in the previous subsection). We substitute this into the Schrödinger equation $\hat{H}|\Psi\rangle = E|\Psi\rangle$ and derive the equation satisfied by the smooth component $|\phi\rangle$. First we compute the left-hand side.

$$ \begin{align} \hat{H}|\Psi\rangle &= \hat{H}|\phi\rangle - \sum_c \hat{H}|\psi_c\rangle\langle\psi_c|\phi\rangle \label{eq:15-pk-lhs1}\\ &= \hat{H}|\phi\rangle - \sum_c E_c|\psi_c\rangle\langle\psi_c|\phi\rangle. \label{eq:15-pk-lhs2} \end{align} $$

In the first line we substituted the ansatz \eqref{eq:15-pk-ansatz} and used the linearity of $\hat{H}$. Note that $\langle\psi_c|\phi\rangle$ is just a number, so it can be taken outside $\hat{H}$. In the second line we used the fact that the core orbitals are eigenstates, $\hat{H}|\psi_c\rangle = E_c|\psi_c\rangle$. Next, the right-hand side is

$$ \begin{equation} E|\Psi\rangle = E|\phi\rangle - \sum_c E|\psi_c\rangle\langle\psi_c|\phi\rangle \label{eq:15-pk-rhs} \end{equation} $$

(the ansatz simply multiplied by the number $E$). We equate Eqs. \eqref{eq:15-pk-lhs2} and \eqref{eq:15-pk-rhs} and collect the common terms from both sides.

$$ \begin{align} \hat{H}|\phi\rangle - \sum_c E_c|\psi_c\rangle\langle\psi_c|\phi\rangle &= E|\phi\rangle - \sum_c E|\psi_c\rangle\langle\psi_c|\phi\rangle \label{eq:15-pk-eq1}\\ \hat{H}|\phi\rangle + \sum_c (E - E_c)|\psi_c\rangle\langle\psi_c|\phi\rangle &= E|\phi\rangle. \label{eq:15-pk-eq2} \end{align} $$

To get to the second line, we moved $-\sum_c E|\psi_c\rangle\langle\psi_c|\phi\rangle$ from the right-hand side to the left-hand side and combined it with $-\sum_c E_c|\psi_c\rangle\langle\psi_c|\phi\rangle$ on the left as like terms ($-E_c + E = E - E_c$). If we now define

$$ \begin{equation} \hat{V}_R \equiv \sum_c (E - E_c)\,|\psi_c\rangle\langle\psi_c| \label{eq:15-vr} \end{equation} $$

then Eq. \eqref{eq:15-pk-eq2} can be summarized as follows. This is the Phillips–Kleinman equation.

$$ \begin{equation} \left(\hat{H} + \hat{V}_R\right)|\phi\rangle = \left(\hat{T} + \hat{v}_{\rm ext} + \hat{V}_R\right)|\phi\rangle = E|\phi\rangle, \qquad \hat{V}_R = \sum_c (E-E_c)|\psi_c\rangle\langle\psi_c| \label{eq:15-pk} \end{equation} $$

What have we obtained? The smooth component $|\phi\rangle$ itself satisfies an eigenvalue equation, and its eigenvalue is identical to the true valence energy $E$. However, the potential that $|\phi\rangle$ feels is the true external potential $\hat{v}_{\rm ext}$ plus the projection-operator term $\hat{V}_R$:

$$ \begin{equation} \hat{v}_{\rm PK} = \hat{v}_{\rm ext} + \sum_c (E-E_c)|\psi_c\rangle\langle\psi_c| \label{eq:15-pk-veff} \end{equation} $$

Since the valence energy $E$ is much higher than the core energies $E_c$, we have $E - E_c > 0$, and the expectation value of $\hat{V}_R$, $\langle\phi|\hat{V}_R|\phi\rangle = \sum_c (E-E_c)|\langle\psi_c|\phi\rangle|^2 \ge 0$, is always non-negative; that is, $\hat{V}_R$ is repulsive. Moreover, because $|\psi_c\rangle$ is localized near the nucleus, $\hat{V}_R$ also acts only near the nucleus. In other words, “a strong repulsion that acts only near the nucleus” is automatically superimposed on the deep Coulomb attraction.

Physical Meaning: The cancellation theorem

The net potential $\hat{v}_{\rm PK}$ felt by a valence electron near the nucleus is the sum of the deep attraction $\hat{v}_{\rm ext} \sim -Z/r$ and the strong repulsion $\hat{V}_R$ arising from the orthogonality to the core; the two largely cancel, and only a shallow, weak net potential remains (Figure 15.2). The origin of the repulsion is the Pauli principle: a valence electron must be orthogonal to the core states and therefore cannot “get into” the region occupied by the core. In terms of energy, this exclusion effect appears as a repulsive potential. This cancellation (the cancellation theorem) is also the answer to the old questions “why does the 3s electron of sodium behave almost like a free electron?” and “why does the free-electron model (Chapter 3) work so surprisingly well in simple metals?” The bare nuclear charge $+11$ is almost completely screened by the core electrons and the orthogonality repulsion, and all that the valence electron sees is a weak residual potential.

r V(r) 0 Attraction vext ≈ −Z/r (deep) Repulsion VR (core orthogonality; near nucleus only) Net vPK = vext + VR (shallow, weak) Strong attraction + strong repulsion = weak net potential (cancellation theorem)
Figure 15.2: Schematic diagram of the cancellation theorem. The Coulomb attraction of the nucleus (red) and the repulsion $\hat{V}_R$ produced by core orthogonality (green) largely cancel near the nucleus, so that the net potential felt by a valence electron (blue) becomes shallow and smooth.

15.2.3 Three drawbacks of the PK form

The PK equation \eqref{eq:15-pk} is the conceptual starting point of the pseudopotential, but it has three serious drawbacks that prevent its use in practice as it stands. We check them in turn with equations.

(1) Energy dependence. The operator $\hat{V}_R = \sum_c(E-E_c)|\psi_c\rangle\langle\psi_c|$ contains the very eigenvalue $E$ that we are trying to find. That is, the potential differs from state to state, and the equation becomes nonlinear. Moreover, solutions $|\phi\rangle$ belonging to different $E$ are not orthogonal to each other (because they are eigenstates of different operators).

(2) Nonlocality. $\hat{V}_R$ is a projection operator of the form $|\psi_c\rangle\langle\psi_c|$, and in the position representation it acts as the integral kernel $\langle\rr|\hat{V}_R|\phi\rangle = \sum_c (E-E_c)\psi_c(\rr)\int \dd^3 r'\, \psi_c^*(\rr')\phi(\rr')$. The value at a single point $\rr$ depends on the values of the wave function over all of space. This in itself is not an essential obstacle; as we will see later, modern pseudopotentials also actively exploit nonlocality (Section 15.6). It does, however, require some care in handling.

(3) Non-conservation of the norm. This is the most important drawback. Using the projection operator $\hat{P} \equiv \sum_c|\psi_c\rangle\langle\psi_c|$, the ansatz \eqref{eq:15-pk-ansatz} can be written as $|\Psi\rangle = (1-\hat{P})|\phi\rangle$. Since $\hat{P}$ is a projection operator, $\hat{P}^2 = \hat{P}$ and $\hat{P}^\dagger = \hat{P}$ (this can be checked directly from the orthonormality of the core orbitals $\langle\psi_c|\psi_{c'}\rangle=\delta_{cc'}$: $\hat{P}^2 = \sum_{cc'}|\psi_c\rangle\delta_{cc'}\langle\psi_{c'}| = \hat{P}$). Then the norm of $|\Psi\rangle$ is

$$ \begin{align} \langle\Psi|\Psi\rangle &= \langle\phi|(1-\hat{P})^\dagger(1-\hat{P})|\phi\rangle \label{eq:15-norm1}\\ &= \langle\phi|(1-\hat{P})(1-\hat{P})|\phi\rangle \label{eq:15-norm2}\\ &= \langle\phi|1 - 2\hat{P} + \hat{P}^2|\phi\rangle \label{eq:15-norm3}\\ &= \langle\phi|1 - \hat{P}|\phi\rangle = \langle\phi|\phi\rangle - \sum_c \left|\langle\psi_c|\phi\rangle\right|^2. \label{eq:15-norm4} \end{align} $$

In the first line we substituted $|\Psi\rangle=(1-\hat{P})|\phi\rangle$ into the definition of the norm. The second line uses the Hermiticity $(1-\hat{P})^\dagger = 1-\hat{P}$, the third line is an expansion, and in the fourth line we used idempotence, $\hat{P}^2=\hat{P}$, to combine $-2\hat{P}+\hat{P}=-\hat{P}$, and finally substituted the definition of $\hat{P}$. If the true wave function is normalized as $\langle\Psi|\Psi\rangle=1$, the smooth component satisfies $\langle\phi|\phi\rangle = 1 + \sum_c|\langle\psi_c|\phi\rangle|^2 > 1$. The pseudo-wave function $\phi$ carries extra charge near the nucleus, and $|\phi|^2$ does not give the correct electron density. For DFT, in which the density plays the leading role, this is fatal: if the density is wrong, both the Hartree potential and the exchange-correlation potential go astray, and the entire self-consistent calculation is contaminated.

To summarize, the PK transformation showed in principle that “the core can be eliminated and replaced by a shallow potential,” but it left three problems: (1) energy dependence, (2) nonlocality, and (3) non-conservation of the norm. Modern norm-conserving pseudopotentials explicitly solve (3) as a design principle and, as a by-product, also solve (1) with sufficient accuracy in practice (Section 15.4). As for (2), it is refined into a tool for lowering the computational cost rather than a drawback to be eliminated (Section 15.6). In the next section, we first formulate the acceptance criteria for a “good pseudopotential” themselves in the language of scattering theory.

15.3 The Scattering-Theory View: The Logarithmic Derivative

A pseudopotential is a “fake” of the true potential. What, then, is the acceptance criterion that lets the fake stand in for the real thing? In this section we show that, in the language of scattering theory, this criterion can be formulated as “causing the same scattering outside the cutoff radius,” or more concretely, as “the logarithmic derivatives of the wave functions agree.” This is the foundation for the norm-conservation condition of the next section.

15.3.1 The idea: an atom in a crystal is a scatterer

Let us focus on a single atom in a crystal or a molecule. The potential of that atom acts strongly only inside a sphere of radius about $r_c$; outside the sphere, the valence electrons propagate through the environment created by the other atoms and electrons. Seen from the outside environment, this atomic sphere is “a device that scatters the incoming electron waves and sends them back.” If the fake atomic sphere (the pseudopotential) sends back the same scattered wave as the real one for all electron waves in the energy range of interest, the outside world cannot distinguish the two. Consequently, the binding energy and the band structure are reproduced correctly. This is the acceptance criterion for a pseudopotential.

15.3.2 Scattering by a spherically symmetric potential and the phase shift

To turn this criterion into equations, consider scattering by a spherically symmetric potential $V(r)$ (suppose it vanishes sufficiently fast for $r > r_0$). Because of the spherical symmetry, the wave function of an electron of energy $\varepsilon = q^2/2$ can be separated for each angular momentum $l$ (partial-wave expansion). As in Section 14.6 of Chapter 14, let the radial wave function be $R_l(r)$ and let $u_l(r) \equiv rR_l(r)$. Then $u_l$ satisfies the radial Schrödinger equation

$$ \begin{equation} \left[-\frac{1}{2}\frac{\dd^2}{\dd r^2} + \frac{l(l+1)}{2r^2} + V(r)\right]u_l(r) = \varepsilon\, u_l(r) \label{eq:15-radial} \end{equation} $$

(with $u_l(0)=0$ and $u_l \propto r^{l+1}$ near the origin). The centrifugal term $l(l+1)/2r^2$ comes from the angular part of the three-dimensional Laplacian; its derivation was given in Chapter 14.

Math Note: Spherical Bessel functions and the phase shift

In a region without potential ($V=0$), Eq. \eqref{eq:15-radial} becomes, for $R_l$, $$R_l'' + \frac{2}{r}R_l' + \left[q^2 - \frac{l(l+1)}{r^2}\right]R_l = 0$$ This is the spherical Bessel equation in the variable $x = qr$, and its two independent solutions are the spherical Bessel function $j_l(x)$ (regular at the origin) and the spherical Neumann function $n_l(x)$ (divergent at the origin). The lowest-order ones are $$j_0(x) = \frac{\sin x}{x},\qquad n_0(x) = -\frac{\cos x}{x}$$ and for general $l$ as well, far away ($x \gg l$) they behave as $$j_l(x) \to \frac{\sin(x - l\pi/2)}{x},\qquad n_l(x) \to -\frac{\cos(x - l\pi/2)}{x}$$ (this asymptotic form follows inductively from the expressions for $j_0, n_0$ and the recurrence relations connecting neighboring $l$). The solution outside the potential can only be written as a linear combination of these two. The central fact of scattering theory is that all the observable information about the scattering at energy $\varepsilon$ (the differential cross section and so on) is concentrated in the mixing ratio of each partial wave, that is, in the phase shift $\eta_l(\varepsilon)$ defined below.

Outside the potential, for $r > r_0$, we write the general solution, using a coefficient $A_l$ and a mixing angle $\eta_l$, as

$$ \begin{equation} R_l(r) = A_l\left[\cos\eta_l\, j_l(qr) - \sin\eta_l\, n_l(qr)\right] \qquad (r > r_0) \label{eq:15-outside} \end{equation} $$

(any linear combination of the two independent solutions can be normalized into this form). The reason this $\eta_l$ is called the “phase shift” becomes clear from the asymptotic form far away. Substituting the asymptotic forms from the Math Note into \eqref{eq:15-outside}, we obtain

$$ \begin{align} R_l(r) &\to \frac{A_l}{qr}\left[\cos\eta_l \sin\!\left(qr - \frac{l\pi}{2}\right) + \sin\eta_l \cos\!\left(qr - \frac{l\pi}{2}\right)\right] \label{eq:15-asymp1}\\ &= \frac{A_l}{qr}\,\sin\!\left(qr - \frac{l\pi}{2} + \eta_l\right). \label{eq:15-asymp2} \end{align} $$

The first line is the substitution of the asymptotic forms (note the sign of $n_l$), and the second line uses the angle-addition formula for sine, $\sin\alpha\cos\beta + \cos\alpha\sin\beta = \sin(\alpha+\beta)$, in the reverse direction. In other words, the only trace left by the presence of the potential is that the phase of the sine wave far away is shifted by $\eta_l$ relative to the free case ($\eta_l = 0$) (Figure 15.3). An attractive potential “pulls” the wave inward, so $\eta_l > 0$.

Potential region r < r₀ r Phase shift ηl / q Free wave sin(qr − lπ/2) (gray, dashed) Scattered wave sin(qr − lπ/2 + ηl) (blue, solid)
Figure 15.3: The meaning of the phase shift. Outside the potential region ($r < r_0$, light blue), the wave function has the same form as a free sine wave, and the only difference is that the phase is shifted by $\eta_l$. An attractive force pulls the wave inward ($\eta_l > 0$), and only this phase shift is conveyed to the outside world.

15.3.3 The phase shift is determined by the logarithmic derivative

How does the phase shift $\eta_l$ “receive” information about the inside of the potential? The answer is through the logarithmic derivative of the wave function at the boundary $r_0$,

$$ \begin{equation} D_l(\varepsilon, r) \equiv \frac{u_l'(r)}{u_l(r)} = \frac{\dd}{\dd r}\ln u_l(r) \label{eq:15-Ddef} \end{equation} $$

($'$ denotes the $r$ derivative). Note that the logarithmic derivative is independent of the normalization of the wave function (even if $u_l \to \lambda u_l$, $\lambda$ cancels between numerator and denominator). In the literature, the dimensionless $r\,\dd\ln u_l/\dd r$ and $R_l'/R_l$, based on $R_l$, are also often used; but taking the logarithm of $u_l = rR_l$ and differentiating gives $\dd \ln u_l/\dd r = 1/r + \dd \ln R_l/\dd r$, so the two differ only by the known term $1/r$, and the discussion below is unchanged whichever is used.

Derivation: The relation between the phase shift and the logarithmic derivative

Let $\gamma \equiv R_l'(r_0)/R_l(r_0)$ be the logarithmic derivative at the boundary of the solution obtained by solving the Schrödinger equation inside ($r \le r_0$). We impose the condition that the value and the first derivative match at $r_0$ with the outside solution \eqref{eq:15-outside} (since the Schrödinger equation is second order, this connects the solutions uniquely). Writing it in the form of taking the ratio of the values, that is, as continuity of the logarithmic derivative, we have

$$ \begin{equation} \gamma = \frac{R_l'(r_0)}{R_l(r_0)} = \frac{q\left[\cos\eta_l\, j_l'(qr_0) - \sin\eta_l\, n_l'(qr_0)\right]}{\cos\eta_l\, j_l(qr_0) - \sin\eta_l\, n_l(qr_0)}. \label{eq:15-match1} \end{equation} $$

Here $j_l', n_l'$ are derivatives with respect to the argument $x=qr$, and $q$ came out in front by the chain rule $\dd j_l(qr)/\dd r = q\,j_l'(qr)$. Clearing the denominator (multiplying both sides by the denominator):

$$ \begin{equation} \gamma\cos\eta_l\, j_l(qr_0) - \gamma\sin\eta_l\, n_l(qr_0) = q\cos\eta_l\, j_l'(qr_0) - q\sin\eta_l\, n_l'(qr_0). \label{eq:15-match2} \end{equation} $$

Gather the terms containing $\cos\eta_l$ on the left-hand side and those containing $\sin\eta_l$ on the right-hand side:

$$ \begin{equation} \cos\eta_l\left[\gamma\, j_l(qr_0) - q\, j_l'(qr_0)\right] = \sin\eta_l\left[\gamma\, n_l(qr_0) - q\, n_l'(qr_0)\right]. \label{eq:15-match3} \end{equation} $$

Dividing both sides by $\cos\eta_l\left[\gamma n_l - q n_l'\right]$ gives

$$ \begin{equation} \tan\eta_l(\varepsilon) = \frac{q\, j_l'(qr_0) - \gamma\, j_l(qr_0)}{q\, n_l'(qr_0) - \gamma\, n_l(qr_0)} \label{eq:15-tan-eta} \end{equation} $$

(finally, we reversed the signs of the numerator and denominator simultaneously to arrange the expression more legibly).

What have we obtained? The information about the inside that appears on the right-hand side of Eq. \eqref{eq:15-tan-eta} is the logarithmic derivative $\gamma = D_l(\varepsilon, r_0)$ alone ($j_l, n_l$ are universal known functions). That is:

Physical Meaning: The logarithmic derivative tells everything

For the world outside a sphere of radius $r_0$, the information about the contents of the sphere is completely concentrated in the logarithmic derivative $D_l(\varepsilon, r_0)$ at the boundary. Whatever shape the potential inside has, if $D_l(\varepsilon, r_0)$ agrees with the real one for all $l$ and for all $\varepsilon$ in the energy range of interest, the outside world (= other atoms, the chemical environment) cannot distinguish the real from the fake.

Definition: Transferability

A pseudopotential is constructed for a single reference atomic configuration (usually the ground-state neutral atom). The property that it gives the same results as all-electron calculations even when it is brought into a different chemical environment (a molecule, solid, surface, ionic crystal, …) is called transferability. From the argument above, the quantitative content of transferability is that “over the energy window in which the valence electrons participate (from the occupied states up to the unoccupied states a few eV above), the logarithmic derivative $D_l(\varepsilon, r_c)$ for each $l$ agrees with that of the all-electron atom.” This is because a change of environment corresponds to a change in the energy and the mixing ratio of the waves incident on the atomic sphere.

Here a difficulty appears. In the construction of a pseudopotential (from the next section on), the pseudo-wave function is made to coincide with the all-electron wave function for $r \ge r_c$ at the reference energy $\varepsilon_l$ (usually the valence eigenvalue of the atom). Then $D_l(\varepsilon_l, r_c)$ automatically agrees at that single point. However, what transferability demands is agreement over a finite energy range. From agreement at one point to agreement over a range—what makes this leap possible is the norm-conservation condition of the next section.

15.4 The Norm-Conservation Condition

This section is the heart of the chapter. What we are about to prove is the following, at first sight rather mysterious, identity: the energy derivative of the logarithmic derivative is determined by the norm (the total amount of probability) of the wave function inside that radius. That is,

$$-\frac{\partial D_l(\varepsilon, r_c)}{\partial \varepsilon} \propto \int_0^{r_c} |u_l(r)|^2\, \dd r.$$

If this identity holds, the matter is settled at once. Suppose we construct the pseudo-wave function so that it has the same norm inside $r_c$ as the all-electron wave function (norm conservation). Then not only the value of $D_l$ but also the energy derivative $\partial D_l/\partial\varepsilon$ agrees at the reference point, and the logarithmic derivatives agree to first order in the neighborhood of the reference energy. In other words, a manipulation at a single point guarantees agreement of the scattering over a finite energy range. The norm-conserving pseudopotential of Hamann, Schlüter, and Chiang (1979) established this prescription as a design principle.

15.4.1 Preliminaries: the radial equation and the Wronskian

Math Note: The radial equation and the Wronskian

For two solutions $u_1, u_2$ of a second-order linear differential equation $u'' = f(r)\,u$ (a form with no first-derivative term), the quantity $$W[u_1, u_2](r) \equiv u_1(r)u_2'(r) - u_1'(r)u_2(r)$$ is called the Wronskian. Its derivative is $$W' = (u_1u_2')' - (u_1'u_2)' = u_1'u_2' + u_1u_2'' - u_1''u_2 - u_1'u_2' = u_1u_2'' - u_1''u_2$$ (applying the product rule to each term, the $u_1'u_2'$ terms cancel). If they are two solutions of the same equation, then $u_1u_2'' - u_1''u_2 = u_1(fu_2) - (fu_1)u_2 = 0$ and $W$ is constant (this is why the Wronskian is used as a "test for the independence of two solutions"). The situation we use here is a slightly twisted one: we pair solutions of two equations whose $f$ is slightly different ($f_1 \ne f_2$). Then $W' = u_1u_2'' - u_1''u_2 = (f_2 - f_1)u_1u_2$, and $W$ is no longer constant. The integral of this "deviation" picks up exactly the norm of the wave function—this is the trick behind the derivation below.

Multiplying both sides of the radial equation \eqref{eq:15-radial} by $-2$ and rearranging, we obtain $$u_l'' = \left[\frac{l(l+1)}{r^2} + 2V(r) - 2\varepsilon\right]u_l$$ which is of the form $u'' = f u$ (note that the energy enters $f$). We use this form below.

15.4.2 Derivation of the central identity

We now combine two radial solutions with the same potential and the same $l$ but different energies only, and derive the identity by integrating the derivative of the Wronskian. The derivation is long, but each line is simple if we go one step at a time.

Derivation: The relation between the energy derivative of the logarithmic derivative and the norm

Step 1: Write the radial equation at two energies. Let $u_1(r) \equiv u_l(\varepsilon_1, r)$ and $u_2(r) \equiv u_l(\varepsilon_2, r)$ be the solutions of the radial equation for the energies $\varepsilon_1$ and $\varepsilon_2$. We choose in both cases the solution that is regular at the origin ($u \propto r^{l+1}$, $r\to0$). The energies need not be eigenvalues; at each energy the solution regular at the origin is unique (apart from normalization). The potential and $l$ are common. Written in the form of the Math Note, the equations are

$$ \begin{align} u_1'' &= \left[\frac{l(l+1)}{r^2} + 2V(r) - 2\varepsilon_1\right]u_1, \label{eq:15-u1}\\ u_2'' &= \left[\frac{l(l+1)}{r^2} + 2V(r) - 2\varepsilon_2\right]u_2. \label{eq:15-u2} \end{align} $$

Step 2: Cross-multiply and subtract. Multiply Eq. \eqref{eq:15-u2} by $u_1$, multiply Eq. \eqref{eq:15-u1} by $u_2$, and subtract the latter from the former:

$$ \begin{align} u_1 u_2'' - u_2 u_1'' &= u_1\left[\frac{l(l+1)}{r^2} + 2V - 2\varepsilon_2\right]u_2 - u_2\left[\frac{l(l+1)}{r^2} + 2V - 2\varepsilon_1\right]u_1 \label{eq:15-cross1}\\ &= \left(-2\varepsilon_2 + 2\varepsilon_1\right)u_1 u_2 = 2(\varepsilon_1 - \varepsilon_2)\,u_1 u_2. \label{eq:15-cross2} \end{align} $$

In the second line, the centrifugal term and the potential term are exactly the same coefficients of $u_1u_2$, so they cancel, and only the energy term survives. The key point of this calculation is that the details of the potential disappear here.

Step 3: Identify the left-hand side as the derivative of the Wronskian. As we confirmed in the Math Note, $$\frac{\dd}{\dd r}\left[u_1 u_2' - u_1' u_2\right] = u_1 u_2'' - u_1'' u_2$$ (the $u_1'u_2'$ terms cancel in the product rule). Hence Eq. \eqref{eq:15-cross2} can be written as

$$ \begin{equation} \frac{\dd}{\dd r} W[u_1,u_2](r) = 2(\varepsilon_1 - \varepsilon_2)\, u_1(r) u_2(r), \qquad W[u_1,u_2] = u_1u_2' - u_1'u_2 \label{eq:15-wronsk-der} \end{equation} $$

.

Step 4: Integrate from $0$ to $r_c$. By the fundamental theorem of calculus,

$$ \begin{equation} W[u_1,u_2](r_c) - W[u_1,u_2](0) = 2(\varepsilon_1 - \varepsilon_2)\int_0^{r_c} u_1(r)\, u_2(r)\, \dd r. \label{eq:15-wronsk-int} \end{equation} $$

Here we check that the boundary term at the origin vanishes. Near the origin $u_1, u_2 \propto r^{l+1}$, and therefore $u_1', u_2' \propto r^l$, so that $$W(r) = u_1u_2' - u_1'u_2 \propto r^{l+1}\cdot r^l = r^{2l+1} \xrightarrow{\ r\to0\ } 0$$ (since $l \ge 0$, we have $2l+1 \ge 1$). Hence $W(0) = 0$, and

$$ \begin{equation} u_1(r_c)u_2'(r_c) - u_1'(r_c)u_2(r_c) = 2(\varepsilon_1 - \varepsilon_2)\int_0^{r_c} u_1 u_2\, \dd r. \label{eq:15-wronsk-rc} \end{equation} $$

We will use this equation once more, in exactly this form, later (in the derivation of the MBK method in Section 15.7), so please remember it.

Step 5: Rewrite in terms of the logarithmic derivative. Using the logarithmic derivative $D_i \equiv u_i'(r_c)/u_i(r_c)$ ($i=1,2$), the left-hand side can be factored as $$u_1(r_c)u_2'(r_c) - u_1'(r_c)u_2(r_c) = u_1(r_c)u_2(r_c)\left[\frac{u_2'(r_c)}{u_2(r_c)} - \frac{u_1'(r_c)}{u_1(r_c)}\right] = u_1(r_c)u_2(r_c)\left[D_2 - D_1\right]$$ (we have merely factored $u_1(r_c)u_2(r_c)$ out of each term of the first expression). Hence

$$ \begin{equation} u_1(r_c)\,u_2(r_c)\left[D_l(\varepsilon_2, r_c) - D_l(\varepsilon_1, r_c)\right] = 2(\varepsilon_1 - \varepsilon_2)\int_0^{r_c} u_1 u_2\, \dd r. \label{eq:15-wronsk-D} \end{equation} $$

Step 6: Make the energy difference infinitesimal. Let $\varepsilon_1 = \varepsilon$ and $\varepsilon_2 = \varepsilon + \delta\varepsilon$, and take the limit $\delta\varepsilon \to 0$. Since the solutions depend smoothly on the energy, we can expand $$u_2(r) = u_1(r) + O(\delta\varepsilon), \qquad D_l(\varepsilon_2, r_c) - D_l(\varepsilon_1, r_c) = \frac{\partial D_l(\varepsilon, r_c)}{\partial\varepsilon}\,\delta\varepsilon + O(\delta\varepsilon^2)$$ (the first is continuity with respect to the energy; the second is the first-order Taylor expansion). Substituting these into Eq. \eqref{eq:15-wronsk-D} gives $$ u_l(\varepsilon, r_c)^2\,\frac{\partial D_l}{\partial\varepsilon}\,\delta\varepsilon + O(\delta\varepsilon^2) = -2\,\delta\varepsilon\int_0^{r_c} u_l(\varepsilon, r)^2\, \dd r + O(\delta\varepsilon^2) $$ (on the right-hand side we used $\varepsilon_1 - \varepsilon_2 = -\delta\varepsilon$ and replaced $u_1u_2 \to u_l^2$; the error of this replacement is of higher order in $\delta\varepsilon$). Dividing both sides by $\delta\varepsilon$ and letting $\delta\varepsilon \to 0$, we obtain the desired identity.

We display the result as the most important equation of the chapter.

$$ \begin{equation} \frac{\partial D_l(\varepsilon, r_c)}{\partial\varepsilon} = -\frac{2}{u_l(\varepsilon, r_c)^2}\int_0^{r_c} \left|u_l(\varepsilon, r)\right|^2 \dd r \label{eq:15-normid} \end{equation} $$

What have we obtained? It is an identity stating that the energy dependence of the logarithmic derivative (left-hand side) is determined solely by the total amount of probability inside the radius $r_c$ (right-hand side). We note a few points. (i) The right-hand side is always negative: raising the energy always decreases the logarithmic derivative (this monotonicity also lies behind the fact that bound states are ordered by energy). (ii) Both sides are independent of the normalization of the wave function: if $u_l \to \lambda u_l$, the numerator and denominator of the right-hand side are both multiplied by $\lambda^2$ and it is unchanged, while the left-hand side is invariant to begin with. (iii) Rewriting in terms of $R_l = u_l/r$ gives $\partial_\varepsilon D_l = -2\left[r_c R_l(r_c)\right]^{-2}\int_0^{r_c}r^2|R_l|^2\dd r$, in which the numerator is exactly the three-dimensional radial probability density (Exercise 15.2). In the convention that uses the dimensionless logarithmic derivative $rD_l$, both sides are merely multiplied by $r_c$ and the content is the same.

15.4.3 The basis of norm-conserving pseudopotentials

Let us apply the identity \eqref{eq:15-normid} to a comparison of the all-electron atom and the pseudo-atom. Suppose that, at the reference energy $\varepsilon_l$ (the valence eigenvalue of the atom), the pseudo-wave function $u_l^{\rm PS}$ has been constructed so as to satisfy the following.

Definition: Conditions for a norm-conserving pseudopotential (Hamann–Schlüter–Chiang)

  1. The valence eigenvalue of the pseudo-atom coincides with that of the all-electron atom: $\varepsilon_l^{\rm PS} = \varepsilon_l^{\rm AE}$.
  2. The pseudo-wave function has no nodes (without nodes it can be made smooth, and it is obtained as the lowest eigenstate).
  3. For $r \ge r_c$ the pseudo-wave function coincides with the all-electron wave function: $u_l^{\rm PS}(r) = u_l^{\rm AE}(r)$.
  4. Norm conservation: $$\int_0^{r_c}\left|u_l^{\rm PS}(r)\right|^2\dd r = \int_0^{r_c}\left|u_l^{\rm AE}(r)\right|^2\dd r.$$

What can we then say about the logarithmic derivative? By condition 3, the value and the derivative at $r_c$ coincide, so first of all $$D_l^{\rm PS}(\varepsilon_l, r_c) = D_l^{\rm AE}(\varepsilon_l, r_c)$$ holds (agreement at the reference point). Furthermore, substituting conditions 3 and 4 into the identity \eqref{eq:15-normid}, the denominator $u_l(r_c)^2$ on the right-hand side coincides by condition 3 and the integral coincides by condition 4, so that

$$ \begin{equation} \left.\frac{\partial D_l^{\rm PS}}{\partial\varepsilon}\right|_{\varepsilon_l} = \left.\frac{\partial D_l^{\rm AE}}{\partial\varepsilon}\right|_{\varepsilon_l} \label{eq:15-dderiv-match} \end{equation} $$

also holds. Therefore, by Taylor expansion,

$$ \begin{equation} D_l^{\rm PS}(\varepsilon, r_c) - D_l^{\rm AE}(\varepsilon, r_c) = O\!\left((\varepsilon - \varepsilon_l)^2\right). \label{eq:15-taylor} \end{equation} $$

The logarithmic derivative—and hence the phase shift, and hence the scattering—automatically agrees to first order in the neighborhood of the reference energy. This is the theoretical basis of norm-conserving pseudopotentials, and it is the quantitative answer to the question of transferability: "why does a potential constructed from a single atomic configuration work in molecules and solids as well?" The valence bandwidth is a few eV ($\sim 0.1$–$0.3$ Ha), so if the reference point is taken at the valence level, agreement to first order often gives sufficient accuracy in practice.

Physical Meaning: Another benefit of norm conservation—electrostatics

Norm conservation has a benefit that is independent of scattering. Since the amount of charge inside $r_c$ is correct, by Gauss's theorem the electrostatic potential it produces outside the sphere is correct. Letting $Q$ be the total charge inside the sphere of radius $r_c$, the potential produced outside by a spherically symmetric charge is determined by $Q/r$ alone and does not depend on the details of the distribution. In other words, a norm-conserving pseudo-atom can pass itself off as the real thing in both scattering (quantum mechanics) and the electrostatic field (electromagnetism). In a self-consistent calculation the Hartree potential is built from the density, so this property bears directly on the accuracy.

r u(r) rc All-electron uAE(with nodes) Pseudo-wave function uPS (nodeless, smooth) r ≥ rc: uPS = uAE (value and slope agree) Norm conservation: ∫0rc|uPS|²dr = ∫0rc|uAE|²dr ⇒ by the identity, ∂D/∂ε agrees too ⇒ scattering agrees to first order
Figure 15.4: Construction of a norm-conserving pseudo-wave function. Outside $r_c$ it coincides exactly with the all-electron wave function (blue); inside, it is replaced by a smooth function without nodes (green, dashed). If it is constructed to conserve the norm (the total amount of probability) inside, then by the identity \eqref{eq:15-normid} even the energy derivative of the logarithmic derivative agrees.

The remaining problem is: "how, then, do we concretely construct a pseudo-wave function and a pseudopotential that satisfy conditions 1–4?" In the next section we look at the Troullier–Martins construction, which is still widely used today.

15.5 The Troullier–Martins Construction

In the previous section we collected all the conditions that a pseudopotential must satisfy. Listing conditions alone, however, does not produce anything. We need a recipe for actually generating the pseudo-wave function $u_l^{\rm PS}(r)$ and the pseudopotential $v_l^{\rm PS}(r)$ numerically. The approach adopted here is the inverse-problem idea. Ordinarily we “specify a potential and solve for the wave function,” but in constructing a pseudopotential we reverse the order: first we write down a desirable pseudo-wave function as an explicit functional form, and then we work backward from the radial equation to find the potential that has it exactly as an eigenfunction. This strategy was proposed by Kerker (1980), and Troullier and Martins (1991) refined it into the form that is “the softest for a plane-wave expansion (that is, requiring the smallest cutoff).” We follow the Troullier–Martins (TM) method, which is still in standard use today, without omitting anything, down to the simultaneous conditions that fix the coefficients.

15.5.1 Conditions imposed on the pseudo-wave function

First we list, together with the reasons, what we require of the radial pseudo-wave function $u_l^{\rm PS}(r) = r R_l^{\rm PS}(r)$ that we want to construct. Conditions 1–4 are just the norm-conservation conditions of Section 15.4, but condition 5, and the part that makes condition 4 specific by saying “up to the fourth derivative,” are the distinguishing features of the TM method.

Definition: The five conditions the TM pseudo-wave function must satisfy

  1. It coincides with the all-electron wave function outside $r_c$: $u_l^{\rm PS}(r) = u_l^{\rm AE}(r)$ for $r \ge r_c$. As a result, the same physics as in the true atom is preserved outside $r_c$, and the logarithmic derivative at the reference energy $\varepsilon_l$ agrees exactly.
  2. It has no nodes: $u_l^{\rm PS}(r) \ne 0$ for $0 < r < r_c$. If there were a node, the wave function would change sign abruptly there, and the very purpose of smoothness would be lost. Moreover, if there are no nodes, this pseudo-wave function becomes the lowest eigenstate of that $l$ channel (the correspondence between the number of nodes and the ordering of eigenvalues), and it is obtained stably in a self-consistent calculation.
  3. Norm conservation: $\int_0^{r_c}|u_l^{\rm PS}|^2\dd r = \int_0^{r_c}|u_l^{\rm AE}|^2\dd r$. By the identity \eqref{eq:15-normid}, the logarithmic derivatives then agree up to the first energy derivative (Section 15.4).
  4. Continuity up to the fourth derivative at $r_c$: $\left.\dfrac{\dd^k u_l^{\rm PS}}{\dd r^k}\right|_{r_c} = \left.\dfrac{\dd^k u_l^{\rm AE}}{\dd r^k}\right|_{r_c}$ ($k = 0,1,2,3,4$).
  5. Regular at the origin: $u_l^{\rm PS}(r) \propto r^{l+1}$ as $r\to0$, and the pseudopotential obtained by the inversion does not diverge at the origin. In the TM method we further impose the smoothness condition $\left.\dfrac{\dd^2 v_l^{\rm scr}}{\dd r^2}\right|_{r=0} = 0$.

Let us explain where the number “fourth derivative” in condition 4 comes from. As we will see later, the pseudopotential is obtained by working backward from the second derivative of the wave function, in the form $v \sim \varepsilon_l - \frac{l(l+1)}{2r^2} + \frac{u''}{2u}$. Therefore the following correspondence holds:

If the derivative of order $n$ of the potential is discontinuous, its Fourier transform decays only slowly, as $\tilde v(q)\sim q^{-(n+1)}$, and convergence is slow even if the plane-wave cutoff is raised. If we match up to the fourth derivative, $v_l^{\rm PS}$ becomes continuous up to the second derivative, and $\tilde v(q)$ falls off faster than $q^{-4}$. Condition 4 is thus the condition that demands “smoothness” quantitatively.

15.5.2 The polynomial ansatz

The TM method posits the following functional form (ansatz) so as to satisfy the five conditions above simultaneously.

$$ \begin{equation} u_l^{\rm PS}(r) = \begin{cases} u_l^{\rm AE}(r), & r \ge r_c,\\[4pt] r^{\,l+1}\exp\left[p(r)\right], & r \le r_c, \end{cases} \qquad p(r) = c_0 + c_2 r^2 + c_4 r^4 + c_6 r^6 + c_8 r^8 + c_{10}r^{10} + c_{12}r^{12} \label{eq:15-tm-ansatz} \end{equation} $$

We check one by one why this form is chosen.

Math Note: Why only even powers of $r$?

There are two reasons, both related to “smoothness at the origin.”

(i) Smoothness as a three-dimensional function. If we regard a spherically symmetric function $f(r)$ as a three-dimensional function $f(\abs{\rr})$, then $r = \sqrt{x^2+y^2+z^2}$ is not differentiable at the origin (it has a sharp point like the apex of a cone). On the other hand, $r^2 = x^2+y^2+z^2$ is a polynomial in $x,y,z$ and is analytic even at the origin. Therefore for $f$ to be analytic at the origin, $f$ must be a power series in $r^2$. If odd powers of $r$ are mixed in, the pseudopotential has a sharp point (cusp) at the position of the nucleus, and its Fourier transform decays only as a power law. For plane-wave calculations this is fatal.

(ii) Regularity of $p'/r$ in the inversion formula. As we will see in the next subsection, the pseudopotential contains a term $\dfrac{(l+1)p'(r)}{r}$. If $p$ has only even powers, then $p'(r) = 2c_2 r + 4c_4 r^3 + \cdots$ vanishes at least linearly in $r$, so $p'/r = 2c_2 + 4c_4 r^2 + \cdots$ is finite at the origin. If there were a term $c_1 r$, then $p' \to c_1 \ne 0$, and $p'/r \sim c_1/r$ would diverge.

15.5.3 Inverting for the potential

We find the potential that has the ansatz \eqref{eq:15-tm-ansatz} as an eigenfunction. What we do is simple: we merely solve the radial equation again, now for the potential.

Derivation: The expression for the screened pseudopotential

Step 1: Solve the radial equation for $V$. In Eq. \eqref{eq:15-radial}, set $\varepsilon = \varepsilon_l$ and $u = u_l^{\rm PS}$, and keep only the term containing $V$ on the left-hand side:

$$ \begin{align} -\frac{1}{2}u'' + \frac{l(l+1)}{2r^2}u + V u &= \varepsilon_l u \label{eq:15-tm-inv1}\\ V(r) &= \varepsilon_l - \frac{l(l+1)}{2r^2} + \frac{u''(r)}{2u(r)}. \label{eq:15-tm-inv2} \end{align} $$

To get to the second line, we simply divided both sides by $u$ (this division is allowed because $u \ne 0$ is guaranteed by condition 2—here the no-node condition is essentially at work) and moved everything other than $V$ to the right-hand side. If there were a node, the right-hand side would diverge at that point and the inversion would break down.

Step 2: The first derivative of the ansatz. We apply the product rule to $u = r^{l+1}e^{p(r)}$:

$$ \begin{align} u'(r) &= (l+1)r^{l}e^{p} + r^{l+1}p'(r)e^{p} \label{eq:15-tm-d1}\\ &= r^{l+1}e^{p}\left[\frac{l+1}{r} + p'\right] = u(r)\left[\frac{l+1}{r} + p'(r)\right]. \label{eq:15-tm-d1b} \end{align} $$

The first line consists of the two terms obtained by differentiating $r^{l+1}$ and $e^p$ respectively (for the latter, $p'$ appears through the chain rule). In the second line we factored out the common factor $r^{l+1}e^p = u$.

Step 3: The second derivative. We differentiate Eq. \eqref{eq:15-tm-d1b} once more. Writing $u' = u\,g$ with $g \equiv \frac{l+1}{r}+p'$, we have $u'' = u'g + ug'$, and substituting $u' = ug$ gives $u'' = u g^2 + u g'$, that is,

$$ \begin{align} \frac{u''(r)}{u(r)} &= \left[\frac{l+1}{r} + p'\right]^2 + \frac{\dd}{\dd r}\left[\frac{l+1}{r} + p'\right] \label{eq:15-tm-d2a}\\ &= \frac{(l+1)^2}{r^2} + \frac{2(l+1)p'}{r} + (p')^2 - \frac{l+1}{r^2} + p'' \label{eq:15-tm-d2b}\\ &= \frac{(l+1)\left[(l+1)-1\right]}{r^2} + \frac{2(l+1)p'}{r} + (p')^2 + p'' \label{eq:15-tm-d2c}\\ &= \frac{l(l+1)}{r^2} + \frac{2(l+1)p'}{r} + (p')^2 + p''. \label{eq:15-tm-d2d} \end{align} $$

In the second line we expanded the square of the bracket ($(a+b)^2 = a^2+2ab+b^2$) and used $\frac{\dd}{\dd r}\frac{l+1}{r} = -\frac{l+1}{r^2}$. In the third line we combined the coefficients of $1/r^2$, and in the fourth line we used $(l+1)l = l(l+1)$.

Step 4: Substitute and cancel the centrifugal term. We insert Eq. \eqref{eq:15-tm-d2d} into \eqref{eq:15-tm-inv2}:

$$ \begin{align} v_l^{\rm scr}(r) &= \varepsilon_l - \frac{l(l+1)}{2r^2} + \frac{1}{2}\left[\frac{l(l+1)}{r^2} + \frac{2(l+1)p'}{r} + (p')^2 + p''\right] \label{eq:15-tm-v1}\\ &= \varepsilon_l + \frac{(l+1)\,p'(r)}{r} + \frac{1}{2}\left[p''(r) + \left(p'(r)\right)^2\right]. \label{eq:15-tm-v2} \end{align} $$

In the second line, $-\frac{l(l+1)}{2r^2}$ and $+\frac{1}{2}\cdot\frac{l(l+1)}{r^2}$ cancel completely. This is not a coincidence: because we factored out $u \propto r^{l+1}$ at the outset, the centrifugal term is exactly absorbed. The remaining expression contains no $1/r^2$ divergence at all.

We state the result. The reason for calling $v_l^{\rm scr}$ the “screened pseudopotential” will be explained in Section 15.5.5.

$$ \begin{equation} v_l^{\rm scr}(r) = \varepsilon_l + \frac{(l+1)\,p'(r)}{r} + \frac{p''(r) + \left[p'(r)\right]^2}{2} \qquad (r \le r_c) \label{eq:15-tm-vscr} \end{equation} $$

From this expression we can immediately read off the value at the origin and the smoothness condition. Substituting $p' = 2c_2 r + 4c_4 r^3 + 6c_6 r^5 + \cdots$, $p'' = 2c_2 + 12c_4 r^2 + 30c_6r^4 + \cdots$, and $(p')^2 = 4c_2^2r^2 + \cdots$ into \eqref{eq:15-tm-vscr} and organizing by powers of $r$, we obtain

$$ \begin{align} v_l^{\rm scr}(r) &= \varepsilon_l + (l+1)\left[2c_2 + 4c_4r^2 + \cdots\right] + \frac{1}{2}\left[2c_2 + 12c_4r^2+\cdots\right] + \frac{1}{2}\left[4c_2^2r^2+\cdots\right] \label{eq:15-tm-exp1}\\ &= \underbrace{\varepsilon_l + (2l+3)c_2}_{r^0} + \underbrace{2\left[(2l+5)c_4 + c_2^2\right]}_{r^2\text{ coefficient}}\,r^2 + O(r^4). \label{eq:15-tm-exp2} \end{align} $$

In the second line, the constant term was combined as $2(l+1)c_2 + c_2 = (2l+3)c_2$, and the coefficient of $r^2$ as $4(l+1)c_4 + 6c_4 + 2c_2^2 = (4l+10)c_4 + 2c_2^2 = 2\left[(2l+5)c_4+c_2^2\right]$. The first consequence is

$$ \begin{equation} v_l^{\rm scr}(0) = \varepsilon_l + (2l+3)\,c_2 \label{eq:15-tm-v0} \end{equation} $$

which shows that the pseudopotential is finite at the origin (the divergence of $-Z/r$ has disappeared!). The second consequence is that if we eliminate the coefficient of $r^2$, the second derivative of $v_l^{\rm scr}$ at the origin becomes zero. Comparing with $v(r) = v(0) + \frac{1}{2}v''(0)r^2 + \cdots$, we find $v''(0) = 4\left[(2l+5)c_4+c_2^2\right]$, so the TM smoothness condition can be written as

$$ \begin{equation} c_2^2 + (2l+5)\,c_4 = 0 \label{eq:15-tm-smooth} \end{equation} $$

This is the condition for “making the pseudopotential as flat as possible near the origin,” and it is the main reason why the TM pseudopotential converges at a smaller $E_{\rm cut}$ than those of other constructions of the same kind. Note that we cannot eliminate the terms through $r^4$ (because all the degrees of freedom of the coefficients have been used up).

15.5.4 The simultaneous conditions that determine the coefficients

We write down the seven conditions that determine the seven coefficients $c_0, c_2, c_4, c_6, c_8, c_{10}, c_{12}$.

Derivation: The explicit form of the seven conditions

(A) Matching of the 0th through 4th derivatives at $r_c$ (five conditions). Taking the logarithm of $u^{\rm PS}$ gives $\ln u^{\rm PS} = (l+1)\ln r + p(r)$, so matching the $k$th derivative of $u$ is equivalent to matching the $k$th derivative of $p$ (the two are related by relations that can be solved in reverse). We go through them in order.

$k=0$: Taking the logarithm of both sides of the value-matching condition $u^{\rm PS}(r_c) = u^{\rm AE}(r_c)$, we obtain

$$ \begin{equation} p(r_c) = \sum_{i=0}^{6}c_{2i}\,r_c^{2i} = \ln\left[\frac{u_l^{\rm AE}(r_c)}{r_c^{\,l+1}}\right]. \label{eq:15-tm-c0} \end{equation} $$

$k=1$: Writing Eq. \eqref{eq:15-tm-d1b} in the form of $u'/u$ gives $\frac{u'}{u} = \frac{l+1}{r} + p'$, so, using the logarithmic derivative $D_l^{\rm AE}(\varepsilon_l, r_c) = u^{\rm AE}{}'(r_c)/u^{\rm AE}(r_c)$ at $r_c$,

$$ \begin{equation} p'(r_c) = D_l^{\rm AE}(\varepsilon_l, r_c) - \frac{l+1}{r_c}. \label{eq:15-tm-c1} \end{equation} $$

$k=2,3,4$: These follow from the equation obtained by solving the inversion formula \eqref{eq:15-tm-vscr} for $p''$, and from its derivatives. First, solving Eq. \eqref{eq:15-tm-vscr} for $p''$ gives

$$ \begin{equation} p'' = 2\left(v - \varepsilon_l\right) - \frac{2(l+1)p'}{r} - (p')^2. \label{eq:15-tm-c2} \end{equation} $$

Differentiating this once and twice with respect to $r$ (repeatedly using the quotient rule $\left(\frac{p'}{r}\right)' = \frac{p''}{r} - \frac{p'}{r^2}$), we obtain

$$ \begin{align} p''' &= 2v' - \frac{2(l+1)p''}{r} + \frac{2(l+1)p'}{r^2} - 2p'p'', \label{eq:15-tm-c3}\\ p'''' &= 2v'' - \frac{2(l+1)p'''}{r} + \frac{4(l+1)p''}{r^2} - \frac{4(l+1)p'}{r^3} - 2\left(p''\right)^2 - 2p'p'''. \label{eq:15-tm-c4} \end{align} $$

Here we substitute into $v, v', v''$ the value of the all-electron screened potential at $r_c$ and its derivatives (the two potentials coincide for $r \ge r_c$). The right-hand sides are written purely in terms of known quantities and the lower-order $p^{(k)}(r_c)$ that have already been determined, so $p''(r_c)$, $p'''(r_c)$, and $p''''(r_c)$ are fixed in turn.

The left-hand side $p^{(k)}(r_c)$ is a derivative of a polynomial, so it is linear in the coefficients:

$$ p^{(k)}(r_c) = \sum_{i=1}^{6}\frac{(2i)!}{(2i-k)!}\,c_{2i}\,r_c^{\,2i-k}\qquad (k=1,2,3,4). $$

(B) Norm conservation (one condition). Substituting the ansatz, we obtain

$$ \begin{align} \int_0^{r_c}\left|u_l^{\rm PS}\right|^2\dd r &= \int_0^{r_c} r^{2l+2}e^{2p(r)}\dd r \label{eq:15-tm-n1}\\ &= e^{2c_0}\int_0^{r_c} r^{2l+2}\exp\left[2\left(p(r)-c_0\right)\right]\dd r \label{eq:15-tm-n2} \end{align} $$

In the second line we factored out the constant factor by writing $e^{2p} = e^{2c_0}e^{2(p-c_0)}$. Since $p - c_0$ does not contain $c_0$, the integral on the right-hand side does not depend on $c_0$. Taking the logarithm of both sides and equating with the all-electron norm, we obtain

$$ \begin{equation} \ln\left[\int_0^{r_c}\left|u_l^{\rm AE}(r)\right|^2\dd r\right] = 2c_0 + \ln\left[\int_0^{r_c} r^{2l+2}\exp\left(2\left[p(r)-c_0\right]\right)\dd r\right] \label{eq:15-tm-norm} \end{equation} $$

There are two practical advantages to putting the condition in logarithmic form. (i) $p \sim -10$ can occur, so computing the exponential $e^{2p}$ directly causes overflow and loss of significant digits, whereas $p - c_0$ stays of order $O(1)$ near $r_c$. (ii) Since $c_0$ is explicitly separated on the right-hand side, the equation can be used directly as an iterative update formula.

(C) Smoothness condition at the origin (one condition). Eq. \eqref{eq:15-tm-smooth}: $c_2^2 + (2l+5)c_4 = 0$.

The number of conditions is (A) five $+$ (B) one $+$ (C) one $=$ seven, and the number of unknowns is also seven, so the counts match. However, (B) is transcendental in $c_0$ and (C) is quadratic in $c_2$, so the system as a whole is nonlinear. The actual solution method given by TM is the following nested iteration.

Definition: Algorithm for determining the TM coefficients

  1. Give a trial value to $c_2$ (outer loop).
  2. Give a trial value to $c_0$ (inner loop).
  3. Combine the condition in Eq. \eqref{eq:15-tm-c0} with the four conditions for $k=1,2,3,4$ into a system of five linear equations in five unknowns, and solve it for the unknowns $c_4, c_6, c_8, c_{10}, c_{12}$ (with $c_0, c_2$ regarded as known and moved to the right-hand side).
  4. Using the resulting $p(r)$, numerically evaluate the integral on the right-hand side of Eq. \eqref{eq:15-tm-norm} and update $c_0$. Repeat steps 3–4 until convergence.
  5. Using the converged $c_4$, evaluate the residual $F(c_2) \equiv c_2^2 + (2l+5)c_4$. Update $c_2$ by the bisection method (or Newton's method) until $F(c_2) = 0$, and return to step 1.

Once the iteration has converged, we use Eq. \eqref{eq:15-tm-vscr} for $v_l^{\rm scr}$ at $r \le r_c$ and the all-electron screened potential as it is for $r \ge r_c$, and the screened pseudopotential for each $l$ is complete. The work up to this point is carried out independently for $l = 0, 1, 2, \ldots$, so what we obtain is a set of potentials that differ from one $l$ to the next, $\{v_0^{\rm scr}, v_1^{\rm scr}, v_2^{\rm scr}, \ldots\}$. The treatment of this "$l$ dependence" is the subject of Section 15.6.

15.5.5 Unscreening

The $v_l^{\rm scr}$ we have just obtained still cannot be used, for the following reason. The potential in the radial equation of the all-electron atom, which we took as the starting point of the inversion, is the Kohn–Sham effective potential (Chapter 10)

$$ \begin{equation} v^{\rm AE}(r) = -\frac{Z}{r} + v_{\rm H}\!\left[\rho^{\rm AE}\right]\!(r) + v_{\rm xc}\!\left[\rho^{\rm AE}\right]\!(r) \label{eq:15-ae-veff} \end{equation} $$

and it contains not only the attraction of the nucleus but also the Hartree and exchange-correlation terms produced by the electrons of that atom itself. In other words, $v_l^{\rm scr}$ is a potential "screened by the valence-electron distribution of the reference atom." If we carry it into another environment (a molecule or a solid), the Hartree and exchange-correlation terms built from the valence density in that environment are added again within the self-consistent calculation, so the contribution of the valence electrons of the reference atom is counted twice.

We therefore subtract in advance the contribution produced by the valence density $\rho_v$ of the reference atom. This is unscreening.

$$ \begin{equation} v_l^{\rm ion}(r) = v_l^{\rm scr}(r) - v_{\rm H}\!\left[\rho_v\right]\!(r) - v_{\rm xc}\!\left[\rho_v\right]\!(r) \label{eq:15-unscreen} \end{equation} $$

Note that here $\rho_v(\rr) = \sum_{l} q_l \left|R_l^{\rm PS}(r)\right|^2/(4\pi)$ is the pseudo valence density ($q_l$ is the occupation number), not the all-electron valence density. Thanks to norm conservation the two coincide for $r \ge r_c$, and even for $r < r_c$ the total charge inside the sphere is the same. The resulting $v_l^{\rm ion}$ is called the ionic (bare) pseudopotential; it is constructed only once for each element, saved in a file, and reused in all calculations.

Physical Meaning: The long-range form of $v^{\rm ion}$ and the valence charge

At large $r$, $v_l^{\rm ion}(r) \to -Z_v/r$ ($Z_v$ is the number of valence electrons). The reason is as follows. For $r \gg r_c$, $v^{\rm scr}$ is the Kohn–Sham effective potential of the neutral atom, in which the nucleus $+Z$ and the total electron charge $-Z$ cancel, so it approaches zero rapidly. On the other hand, $v_{\rm H}[\rho_v] \to Z_v/r$ (the potential produced by the valence charge $Z_v$ as seen from outside the sphere), and $v_{\rm xc}[\rho_v]\to 0$ (because the density goes to zero exponentially). Therefore, from Eq. \eqref{eq:15-unscreen}, $v_l^{\rm ion} \to 0 - Z_v/r - 0 = -Z_v/r$. Seen from far away, the pseudo-atom looks like a point charge $+Z_v$—this is a physically natural requirement, and it can be used to check an implementation ($-4/r$ for carbon, $-4/r$ for silicon, and $-6/r$ for oxygen).

r V(r) 0 rc All-electron vAE (diverges as −Z/r) Screened pseudopotential vlscr (finite at origin) Ionic pseudopotential vlion = vlscr − vH[ρv] − vxc[ρv] → −Zv / r r ≥ rc: vlscr coincides exactly with the all-electron potential Finite depth (about −4 Ha for C 2s)
Figure 15.5: Schematic diagram of a Troullier–Martins pseudopotential. The all-electron effective potential (red, dashed) diverges as $-Z/r$ at the origin, whereas the screened pseudopotential (blue) takes the finite value $\varepsilon_l + (2l+3)c_2$ at the origin and coincides exactly with the all-electron potential for $r \ge r_c$. The ionic pseudopotential (green), obtained by unscreening, approaches $-Z_v/r$ at large distances.

15.5.6 The necessity of the nonlinear core correction

Eq. \eqref{eq:15-unscreen} has a hidden defect. Since the Hartree term is a linear functional of the density,

$$ \begin{equation} v_{\rm H}\!\left[\rho_v + \rho_c\right] = v_{\rm H}\!\left[\rho_v\right] + v_{\rm H}\!\left[\rho_c\right] \label{eq:15-vh-linear} \end{equation} $$

holds exactly ($v_{\rm H}[\rho](\rr) = \int\dd^3r'\,\rho(\rr')/\abs{\rr-\rr'}$ is linear in $\rho$). The Hartree contribution $v_{\rm H}[\rho_c]$ of the core electrons is therefore neatly folded into $v_l^{\rm ion}$ and works correctly even when the environment changes. The exchange-correlation potential, however, is a nonlinear functional of the density:

$$ \begin{equation} v_{\rm xc}\!\left[\rho_v + \rho_c\right] \ne v_{\rm xc}\!\left[\rho_v\right] + v_{\rm xc}\!\left[\rho_c\right] \label{eq:15-vxc-nonlinear} \end{equation} $$

(for example, for LDA exchange $v_{\rm x} \propto \rho^{1/3}$, and $(\rho_v+\rho_c)^{1/3} \ne \rho_v^{1/3}+\rho_c^{1/3}$). To estimate the size of the error, we assume that $\rho_c$ is small and make a Taylor expansion:

$$ \begin{align} v_{\rm xc}\!\left[\rho_v+\rho_c\right](\rr) &= v_{\rm xc}\!\left[\rho_v\right](\rr) + \int\dd^3r'\,\frac{\delta v_{\rm xc}(\rr)}{\delta\rho(\rr')}\,\rho_c(\rr') + O(\rho_c^2) \label{eq:15-nlcc-taylor} \end{align} $$

so even the linear term gives a finite contribution proportional to $\rho_c$. This error matters in regions where $\rho_c$ and $\rho_v$ are of the same order of magnitude. Very close to the nucleus, $\rho_c \gg \rho_v$ and there are no valence electrons, so it is not a problem; far away, $\rho_c \simeq 0$, so again it is not a problem. The danger lies in between, in the shell $r \sim 0.3$–$1$ bohr where the tail of the core shell overlaps the inner part of the valence density. The error becomes apparent for alkali metals, for 3d transition metals, and in spin-polarized calculations (where the spin dependence of exchange-correlation further amplifies the nonlinearity).

The remedy is the nonlinear core correction (NLCC; also called the partial core correction, PCC) of Louie–Froyen–Cohen (1982). The prescription is simple: prepare a partial core density $\tilde\rho_c$, in which the core density $\rho_c$ is replaced by a smooth function only near the nucleus, and perform the unscreening as

$$ \begin{equation} v_l^{\rm ion}(r) = v_l^{\rm scr}(r) - v_{\rm H}\!\left[\rho_v\right]\!(r) - v_{\rm xc}\!\left[\rho_v + \tilde\rho_c\right]\!(r) \label{eq:15-unscreen-nlcc} \end{equation} $$

and also evaluate the exchange-correlation energy in the subsequent molecular and solid calculations as $E_{\rm xc}[\rho + \tilde\rho_c]$. In this way the core density is always "visible" in the region where the nonlinearity matters, and the reference atom and the actual system are treated in the same way. The reason we may replace the true $\rho_c$ by the smoothed $\tilde\rho_c$ is that $\rho_v \simeq 0$ in the immediate vicinity of the nucleus, so the nonlinearity does not matter there in the first place (if we did not smooth it, $\rho_c$ itself would be too steep to be represented by plane waves, which would defeat the purpose).

Example: A Troullier–Martins pseudopotential for the carbon atom

Take carbon ($1s^2 2s^2 2p^2$, $Z=6$, $Z_v=4$) as an example. The only core shell is $1s$, and the valence electrons are $2s$ and $2p$. In the $2s$ channel we take $r_c \approx 1.3$–$1.5$ bohr (the outermost node of the all-electron $2s$ function lies at $r\approx0.4$ bohr and its maximum at $r\approx1.2$ bohr, so the cutoff is taken a little outside of that). By Eq. \eqref{eq:15-tm-v0}, the value of the resulting $v_0^{\rm scr}$ at the origin is $\varepsilon_{2s} + 3c_2$, which is numerically a finite value of about $-4$ Ha. In the $2p$ channel the all-electron wave function has no nodes to begin with ($2p$ is the lowest state with $l=1$), so the pseudo-wave function is just the all-electron wave function “spread out a little to the outside,” and $v_1^{\rm scr}$ is shallower than $v_0^{\rm scr}$. Both ionic pseudopotentials approach $-4/r$ at large distances. The partial core density $\tilde\rho_c$ has a peak at $r\approx0.35$ bohr and almost vanishes at $r\approx1$ bohr. Because the carbon $1s$ shell is very compact, omitting the NLCC is often not a problem in practice, but it is safer to include it when spin polarization is treated.

We now have a smooth ionic pseudopotential $v_l^{\rm ion}(r)$ for each $l$. The next question is how to put this “potential that differs from one $l$ to the next” into an actual calculation.

15.6 The Semilocal Form and the Kleinman–Bylander Separable Form

The construction of the previous section is run independently for each angular momentum $l$, so its product is not a single potential but a set of potentials $\{v_0^{\rm ion}, v_1^{\rm ion}, v_2^{\rm ion},\ldots\}$. To combine potentials that differ from one $l$ to the next into a single operator, we need projection operators. In this section we treat why the straightforwardly combined “semilocal form” is computationally expensive, how the transformation of Kleinman and Bylander (1982) removes that expense, and the pathology that appears as its price, the “ghost state.”

15.6.1 The semilocal form

Write the projection operator onto the spherical harmonic $Y_{lm}$ with angular momentum $l$ and magnetic quantum number $m$ as

$$ \begin{equation} \hat P_{lm} = \left|Y_{lm}\right\rangle\left\langle Y_{lm}\right|, \qquad \left\langle \rr \middle| \hat P_{lm} \middle| \psi \right\rangle = Y_{lm}(\hat\rr)\int \dd\hat\rr'\, Y_{lm}^*(\hat\rr')\,\psi(r,\hat\rr') \label{eq:15-proj} \end{equation} $$

(where $\hat\rr$ is the unit vector giving the direction, and $\int\dd\hat\rr$ is the solid-angle integral). Note that it acts only on the angular part and does not touch the radial coordinate $r$. Using it, the potentials for the various $l$ can be combined into the single operator

$$ \begin{equation} \hat v^{\rm SL} = \sum_{l=0}^{\infty}\sum_{m=-l}^{l}\left|Y_{lm}\right\rangle v_l^{\rm ion}(r)\left\langle Y_{lm}\right| \label{eq:15-semilocal} \end{equation} $$

This is called the semilocal potential. It is “semi” because it is local (a multiplication) in the radial direction but nonlocal (an integral kernel) in the angular direction. In the position representation it is

$$ \begin{equation} \left\langle\rr\right|\hat v^{\rm SL}\left|\rr'\right\rangle = \sum_{lm} Y_{lm}(\hat\rr)\,\frac{\delta(r-r')}{r^2}\,v_l^{\rm ion}(r)\,Y_{lm}^*(\hat\rr') \label{eq:15-semilocal-kernel} \end{equation} $$

(where $\delta(r-r')/r^2$ is the radial part of the three-dimensional delta function).

In practice we do not need to treat infinitely many values of $l$. For large $l$, the centrifugal barrier $l(l+1)/2r^2$ keeps the electron away from the nucleus, so that electron does not feel the core shell at all. Therefore, for $l \gtrsim l_{\max}+1$ all the $v_l^{\rm ion}$ converge to a common form. Accordingly, we pick out one $l$ ($l = l_{\rm loc}$, or a suitably smoothed function) as the local potential $v_{\rm loc}(r)$ and keep only the differences as the nonlocal term:

$$ \begin{equation} \hat v^{\rm SL} = v_{\rm loc}(r) + \sum_{l=0}^{l_{\max}}\sum_{m=-l}^{l}\left|Y_{lm}\right\rangle \delta v_l(r)\left\langle Y_{lm}\right|, \qquad \delta v_l(r) \equiv v_l^{\rm ion}(r) - v_{\rm loc}(r). \label{eq:15-sl-split} \end{equation} $$

Using $\sum_{lm}|Y_{lm}\rangle\langle Y_{lm}| = 1$ (completeness), one can check that Eq. \eqref{eq:15-semilocal} and Eq. \eqref{eq:15-sl-split} are the same operator. What is important here is that $\delta v_l(r)$ vanishes for $r \ge r_c$ (outside $r_c$ it coincides with the all-electron potential, so it does not depend on $l$). The nonlocal term is a short-range operator that acts only inside the sphere of radius $r_c$.

15.6.2 Cost in the plane-wave basis

What is the problem with the semilocal form? It becomes clear if we compute its matrix elements in the plane-wave basis.

Math Note: The Rayleigh plane-wave expansion and the addition theorem for spherical harmonics

We use two formulas below. The first is the Rayleigh expansion $$e^{i\bm q\cdot\rr} = 4\pi\sum_{l=0}^{\infty}\sum_{m=-l}^{l} i^{\,l}\, j_l(qr)\, Y_{lm}^*(\hat{\bm q})\,Y_{lm}(\hat\rr)$$ It is nothing other than the expansion of a plane wave in spherical waves about the origin (spherical Bessel function $\times$ spherical harmonic). Multiplying both sides by $Y_{lm}^*(\hat\rr)$ for the angular part and integrating over the solid angle, we obtain, from the orthonormality of the $Y$, $$\int\dd\hat\rr\; e^{i\bm q\cdot\rr}\,Y_{lm}^*(\hat\rr) = 4\pi i^{\,l} j_l(qr)Y_{lm}^*(\hat{\bm q}), \qquad \int\dd\hat\rr\; e^{-i\bm q\cdot\rr}\,Y_{lm}(\hat\rr) = 4\pi (-i)^{\,l} j_l(qr)Y_{lm}(\hat{\bm q})$$ (the second was obtained by taking the complex conjugate of the first and reading $Y_{lm}^* \to Y_{lm}$).

The second is the addition theorem $$\sum_{m=-l}^{l} Y_{lm}(\hat{\bm q})\,Y_{lm}^*(\hat{\bm q}') = \frac{2l+1}{4\pi}\,P_l(\hat{\bm q}\cdot\hat{\bm q}')$$ ($P_l$ is the Legendre polynomial). The left-hand side is a rotation-invariant quantity of the two directions, so it must be a function of the angle between them, and since it is of degree $l$ it is proportional to the Legendre polynomial—the coefficient is fixed by setting $\hat{\bm q}=\hat{\bm q}'$ and comparing $\sum_m|Y_{lm}|^2 = (2l+1)/4\pi$ with $P_l(1)=1$.

Derivation: Plane-wave matrix elements of the semilocal form

Take plane waves $\left\langle\rr|\bm q\right\rangle = \Omega^{-1/2}e^{i\bm q\cdot\rr}$ normalized in a unit cell of volume $\Omega$. The matrix element of the nonlocal term, sandwiching the kernel \eqref{eq:15-semilocal-kernel}, is

$$ \begin{align} \left\langle\bm q\right|\delta\hat v\left|\bm q'\right\rangle &= \frac{1}{\Omega}\sum_{lm}\int_0^{\infty}\!\! r^2\dd r\;\delta v_l(r) \left[\int\dd\hat\rr\, e^{-i\bm q\cdot\rr}Y_{lm}(\hat\rr)\right] \left[\int\dd\hat\rr'\, e^{i\bm q'\cdot\rr'}Y_{lm}^*(\hat\rr')\right] \label{eq:15-sl-me1}\\ &= \frac{1}{\Omega}\sum_{lm}\int_0^{\infty}\!\! r^2\dd r\;\delta v_l(r) \left[4\pi(-i)^l j_l(qr)Y_{lm}(\hat{\bm q})\right]\left[4\pi i^{\,l} j_l(q'r)Y_{lm}^*(\hat{\bm q}')\right] \label{eq:15-sl-me2}\\ &= \frac{16\pi^2}{\Omega}\sum_{l}\left[\sum_m Y_{lm}(\hat{\bm q})Y_{lm}^*(\hat{\bm q}')\right] \int_0^{r_c}\!\! r^2\dd r\; j_l(qr)\,\delta v_l(r)\, j_l(q'r) \label{eq:15-sl-me3}\\ &= \frac{4\pi}{\Omega}\sum_{l=0}^{l_{\max}}(2l+1)\,P_l(\hat{\bm q}\cdot\hat{\bm q}') \int_0^{r_c}\!\! r^2\dd r\; j_l(qr)\,\delta v_l(r)\, j_l(q'r). \label{eq:15-sl-me4} \end{align} $$

In the first line we substituted the kernel and carried out the $r'$ integral with the radial delta function $\delta(r-r')/r^2$ (the remaining $r^2\dd r$ is the radial part of the three-dimensional volume element). In the second line we substituted the two angular integrals of the Math Note. In the third line we used $(-i)^l i^{\,l} = 1$ and, since $\delta v_l$ vanishes for $r\ge r_c$, shrank the interval of integration to $[0,r_c]$. In the fourth line we collapsed the sum over $m$ with the addition theorem and combined the factors as $16\pi^2 \times \frac{2l+1}{4\pi} = 4\pi(2l+1)$.

What deserves attention here is that the radial integral in Eq. \eqref{eq:15-sl-me4} holds $j_l(qr)$ and $j_l(q'r)$ inside the same integral. That is, the matrix element

$$ \left\langle\bm q\right|\delta\hat v\left|\bm q'\right\rangle \ne \sum_{\alpha}\left(\text{function of $\bm q$ only}\right)_\alpha\times\left(\text{function of $\bm q'$ only}\right)_\alpha $$

does not factorize into such a form. Therefore, for $N_{\rm PW}$ plane waves we must compute and store all $N_{\rm PW}^2$ independent matrix elements, and the operation of applying the Hamiltonian to a vector, $\hat H\psi$, requires $O(N_{\rm PW}^2)$ operations per band. With $N_{\rm PW}\sim 10^4$–$10^5$, as in the estimate of Section 15.1, this term alone dominates the whole calculation.

15.6.3 The Kleinman–Bylander transformation

The solution of Kleinman and Bylander (1982) is brilliant. Replace the nonlocal term by projections onto single vectors (rank-one operators) built from the reference pseudo-wave functions. For each $(l,m)$ channel, let the reference pseudo-wave function of the pseudo-atom be $\phi_{lm}(\rr) = R_l^{\rm PS}(r)Y_{lm}(\hat\rr)$, and define

$$ \begin{equation} \hat v^{\rm KB} = v_{\rm loc}(r) + \sum_{l=0}^{l_{\max}}\sum_{m=-l}^{l} \frac{\left|\delta v_l\,\phi_{lm}\right\rangle\left\langle \delta v_l\,\phi_{lm}\right|} {\left\langle \phi_{lm}\right|\delta v_l\left|\phi_{lm}\right\rangle} \label{eq:15-kb} \end{equation} $$

Here $\left|\delta v_l\phi_{lm}\right\rangle$ is the ket represented by the function $\delta v_l(r)\phi_{lm}(\rr)$. The denominator $E_l^{\rm KB} \equiv \left\langle\phi_{lm}\right|\delta v_l\left|\phi_{lm}\right\rangle = \int\dd^3r\,\left|\phi_{lm}\right|^2\delta v_l(r)$ is called the KB energy, and is a real number independent of $m$ (since $\delta v_l$ is a real radial function and $\int|Y_{lm}|^2\dd\hat\rr=1$).

Theorem: The KB form acts identically to the semilocal form on the reference states

For any $(l',m')$, $$\hat v^{\rm KB}\left|\phi_{l'm'}\right\rangle = \hat v^{\rm SL}\left|\phi_{l'm'}\right\rangle.$$ Therefore the reference eigenvalues $\varepsilon_{l'}$ and the reference pseudo-wave functions $\phi_{l'm'}$ of the pseudo-atom are reproduced exactly by the KB form as well.

Derivation: Proof of the theorem

Step 1: Compute the inner product $\left\langle\delta v_l\phi_{lm}\middle|\phi_{l'm'}\right\rangle$. Writing it out by definition, we have

$$ \begin{align} \left\langle\delta v_l\phi_{lm}\middle|\phi_{l'm'}\right\rangle &= \int\dd^3 r\;\left[\delta v_l(r)R_l^{\rm PS}(r)Y_{lm}(\hat\rr)\right]^{*}R_{l'}^{\rm PS}(r)Y_{l'm'}(\hat\rr) \label{eq:15-kb-p1}\\ &= \left[\int_0^{\infty}\!\! r^2\dd r\;\delta v_l(r)R_l^{\rm PS}(r)R_{l'}^{\rm PS}(r)\right] \left[\int\dd\hat\rr\; Y_{lm}^*(\hat\rr)Y_{l'm'}(\hat\rr)\right] \label{eq:15-kb-p2}\\ &= \delta_{ll'}\delta_{mm'}\int_0^{r_c}\!\! r^2\dd r\;\delta v_l(r)\left|R_l^{\rm PS}(r)\right|^2 = \delta_{ll'}\delta_{mm'}\,E_l^{\rm KB}. \label{eq:15-kb-p3} \end{align} $$

The first line is the definition. In the second line we separated the integral, using the fact that the integrand splits into a product of a radial part and an angular part ($\delta v_l$ is a real function of $r$ only, and $R^{\rm PS}$ is also real). In the third line we used the orthonormality of the spherical harmonics, $\int\dd\hat\rr\,Y_{lm}^*Y_{l'm'} = \delta_{ll'}\delta_{mm'}$; thanks to the Kronecker delta we have $l'=l$, so we set $R_{l'}^{\rm PS}=R_l^{\rm PS}$, and we used the fact that the support of $\delta v_l$ is $[0,r_c]$. The last equality is just the definition of $E_l^{\rm KB}$.

Step 2: Apply the KB operator. Apply the nonlocal part of Eq. \eqref{eq:15-kb} to $\left|\phi_{l'm'}\right\rangle$:

$$ \begin{align} \sum_{lm}\frac{\left|\delta v_l\phi_{lm}\right\rangle\left\langle\delta v_l\phi_{lm}\middle|\phi_{l'm'}\right\rangle}{E_l^{\rm KB}} &= \sum_{lm}\frac{\left|\delta v_l\phi_{lm}\right\rangle\,\delta_{ll'}\delta_{mm'}E_l^{\rm KB}}{E_l^{\rm KB}} \label{eq:15-kb-a1}\\ &= \left|\delta v_{l'}\phi_{l'm'}\right\rangle = \delta v_{l'}(r)\left|\phi_{l'm'}\right\rangle. \label{eq:15-kb-a2} \end{align} $$

The first line is just the substitution of the result of Step 1. In the second line the sum was collapsed by the Kronecker deltas, and $E_l^{\rm KB}$ canceled.

Step 3: Compare with the semilocal form. Acting with Eq. \eqref{eq:15-sl-split} on the same state, the projection $\left|Y_{lm}\right\rangle\left\langle Y_{lm}\middle|\phi_{l'm'}\right\rangle$ gives $\delta_{ll'}\delta_{mm'}$, so

$$ \sum_{lm}\left|Y_{lm}\right\rangle\delta v_l(r)\left\langle Y_{lm}\middle|\phi_{l'm'}\right\rangle = \delta v_{l'}(r)\left|\phi_{l'm'}\right\rangle $$

which agrees with \eqref{eq:15-kb-a2}. The local part $v_{\rm loc}$ is common to both, so the theorem is proved. $\blacksquare$

What have we obtained? At the “single point” of the reference states, the KB form is exactly the same as the semilocal form, yet as an operator it is a rank-one separable form. The benefit appears immediately in the plane-wave matrix elements:

$$ \begin{equation} \left\langle\bm q\right|\hat v^{\rm KB}_{\rm nl}\left|\bm q'\right\rangle = \sum_{lm}\frac{F_{lm}(\bm q)\,F_{lm}^*(\bm q')}{E_l^{\rm KB}}, \qquad F_{lm}(\bm q) \equiv \left\langle\bm q\middle|\delta v_l\,\phi_{lm}\right\rangle = \frac{4\pi(-i)^l}{\sqrt{\Omega}}Y_{lm}(\hat{\bm q})\!\int_0^{r_c}\!\!r^2\dd r\, j_l(qr)\delta v_l(r)R_l^{\rm PS}(r) \label{eq:15-kb-me} \end{equation} $$

(the explicit form of $F_{lm}$ is obtained simply by using the angular integrals of the Math Note as they are.) The matrix element has factorized completely into a product of a function of $\bm q$ and a function of $\bm q'$. Therefore we need to store only the $N_{\rm PW}\times N_{\rm proj}$ numbers $F_{lm}(\bm q)$ ($N_{\rm proj} = \sum_{l\le l_{\max}}(2l+1)$ is usually at most 10), and the computation of $\hat H\psi$ can be carried out in the two steps

$$ \left(\hat v^{\rm KB}_{\rm nl}\psi\right)(\bm q) = \sum_{lm}\frac{F_{lm}(\bm q)}{E_l^{\rm KB}}\underbrace{\sum_{\bm q'}F_{lm}^*(\bm q')\psi(\bm q')}_{\text{first form this scalar}} $$

The inner sum costs $O(N_{\rm PW})$ and the outer sum $O(N_{\rm PW})$, for a total of $O(N_{\rm PW}N_{\rm proj})$—a speedup by a factor of $N_{\rm PW}/N_{\rm proj}$ over the $O(N_{\rm PW}^2)$ of the semilocal form, which in practice is three to four orders of magnitude. Moreover, the memory requirement also drops from $N_{\rm PW}^2$ to $N_{\rm PW}N_{\rm proj}$. With this one stroke, plane-wave DFT became a method that can reach large systems.

Semilocal form NPW × NPW independent elements Storage O(NPW²), action O(NPW²) Radial integral per element ∫r²jl(qr)δvl jl(q′r)dr KB transformation Kleinman–Bylander separable form F(q) × F*(q′) Rank one (outer product), so no need to build the matrix Storage O(NPW·Nproj), action O(NPW·Nproj) Nproj = Σl ≤ lmax(2l+1) ≲ 10
Figure 15.6: Difference in computational cost between the semilocal form and the Kleinman–Bylander separable form. In the matrix element \eqref{eq:15-sl-me4} of the semilocal form, $q$ and $q'$ are entangled inside the radial integral and the element does not factorize, whereas the KB form \eqref{eq:15-kb-me} is an outer product (rank one) of the form $F_{lm}(\bm q)F_{lm}^*(\bm q')$, so there is no need even to assemble the matrix.

15.6.4 Ghost states

The KB transformation is not a free lunch. What the theorem guarantees is agreement only for the reference state; for any other state, $\hat v^{\rm KB}$ and $\hat v^{\rm SL}$ are entirely different operators. This difference can show up in a pathological form.

Let us look at the mechanism. Consider an arbitrary state $\psi$ orthogonal to the reference state $\phi_{lm}$. If we retrace the calculation of Step 1, $\left\langle\delta v_l\phi_{lm}\middle|\psi\right\rangle$ is in general not zero, but depending on how $\psi$ is constructed it can be made almost zero. Then the nonlocal term of $\hat v^{\rm KB}$ hardly acts on $\psi$, and $\psi$ feels only $v_{\rm loc}$. If $v_{\rm loc}$ is too deep an attraction for that $l$ channel, $\psi$ becomes bound below the reference energy. In the semilocal form the repulsion of $\delta v_l$ prevented this, but in the separable form that barrier stands only “in the direction of the reference state.” A spurious bound state that appears in this way is called a ghost state.

Physical Meaning: Conditions under which ghost states occur

The warning sign is the sign of the KB energy. When $E_l^{\rm KB} = \left\langle\phi_l\right|\delta v_l\left|\phi_l\right\rangle$ is negative (that is, $\delta v_l$ is attractive on average), the KB term $\left|\delta v_l\phi_l\right\rangle\left\langle\delta v_l\phi_l\right|/E_l^{\rm KB}$ is a rank-one operator with a negative coefficient, and it acts in the direction of lowering the energy variationally. When $\left|E_l^{\rm KB}\right|$ is small, the denominator is small and the absolute value of the coefficient becomes large, which is even more dangerous. Since $\delta v_l = v_l - v_{\rm loc}$, this is a problem of how the local potential $v_{\rm loc}$ is chosen. If a deep channel (for example $s$) is chosen as $v_{\rm loc}$, the $\delta v_l$ of the other channels become repulsive and ghosts are unlikely to appear, whereas choosing a shallow channel does the opposite. Gonze et al. formulated this condition as a criterion for judging systematically, from the eigenvalues of the semilocal Hamiltonian and the signs of $\delta v_l$ (Gonze–Stumpf–Scheffler 1991).

There are two ways to test for ghosts.

  1. Solve the atomic problem again in the separable form. Diagonalize $\hat T + v_{\rm loc} + \hat v^{\rm KB}_{\rm nl}$ for a spherically symmetric atom, and check whether the lowest eigenvalue for each $l$ agrees with the reference value $\varepsilon_l$ and whether there is any state below it. A ghost, if present, appears as a state with a node whose energy is lower than $\varepsilon_l$.
  2. Compare the logarithmic-derivative curves. Sweep the energy $\varepsilon$ and plot $D_l(\varepsilon, r_d)$ ($r_d\gtrsim r_c$) for the all-electron, semilocal, and separable cases. $D_l$ decreases monotonically with increasing $\varepsilon$ ($\partial D_l/\partial\varepsilon < 0$, Eq. \eqref{eq:15-normid}) and jumps from $-\infty$ to $+\infty$ each time $u_l(r_d)=0$. The number and positions of these poles must agree among the three. A ghost state is visible at a glance as a “spurious pole” (Figure 15.7).

The remedy lies in the same place. One can change the choice of $v_{\rm loc}$ (use a different $l$, or construct a smooth local potential independently of all the $l$), change $r_c$, and prepare multiple projectors for a single $l$. The last prescription is the straightforward idea that if rank one is not enough, one should raise the rank, and it leads directly to the Vanderbilt-type and MBK-type pseudopotentials of the next section.

(a) Normal separable form ε Dl All-electron (solid) Separable (dashed) (b) With a ghost state ε Spurious pole = ghost state (spurious bound state below the reference energy)
Figure 15.7: Detection of a ghost state with the logarithmic derivative $D_l(\varepsilon, r_d)$. (a) For a normal separable form, the all-electron (blue, solid) and separable-form (green, dashed) curves overlap over a wide energy range, including the positions of the poles. (b) When a ghost state is present, a spurious pole that does not exist in the all-electron case appears, and on its low-energy side the logarithmic derivative disagrees with the all-electron one.

15.7 Ultrasoft Pseudopotentials and Their Norm-Conserving Reformulation

At the end of the previous section a direction came into view: "give a single $l$ more than one projector." Pushing this direction further leads to Vanderbilt's (1990) ultrasoft pseudopotential (USPP). By removing the shackle of norm conservation, the ultrasoft method gains overwhelming softness, but in exchange it brings a structural change: a generalized eigenvalue problem. In this section we follow the logic, and at the end we go on to the idea of Morrison–Bylander–Kleinman (MBK, 1993): "take only the advantage of Vanderbilt's multiple reference energies and return to norm conservation, thereby simplifying the implementation."

15.7.1 The lower bound imposed by norm conservation

Norm-conserving pseudopotentials also have their limits. Consider valence orbitals that are the lowest state of their $l$ and inherently have no nodes, such as the oxygen $2p$, the nitrogen $2p$, the transition-metal $3d$, and the rare-earth $4f$. In this case the all-electron wave function already has a form that "cannot be made any smoother." Even so, the wave function is sharply localized near the nucleus not because of nodes but simply because the orbital is small.

This is where norm conservation matters. If we impose condition 3 (norm conservation) and condition 1 (agreement for $r\ge r_c$) at the same time, both the amount of charge contained inside $r_c$ and the value and slope at $r_c$ are fixed. The pseudo-wave function must then "pack a prescribed amount of charge, with prescribed endpoint conditions, into a prescribed sphere," and there is no freedom left to spread it out. In fact, if we try to force it to spread by increasing $r_c$, the wave function dips or bulges inside $r_c$, and the high-wavenumber components can even increase. This is why $E_{\rm cut}\approx 70$–$80$ Ha is needed for oxygen and about $E_{\rm cut}\approx 60$ Ha for $3d$ transition metals.

15.7.2 Vanderbilt's idea: discard the norm and compensate the charge

Vanderbilt's proposal is bold. Give up the norm-conservation condition. Then the pseudo-wave function can be made as smooth as we like by taking $r_c$ large, and $E_{\rm cut}$ drops to $E_{\rm cut}\approx 15$–$20$ Ha. Of course, there is a price to pay.

The second problem is solved directly by taking several reference energies ($\varepsilon_{l1}, \varepsilon_{l2},\ldots$) for each $l$ and matching the value of the logarithmic derivative at each of them. Instead of matching the value and the slope at one point, we match the value at several points (this in fact extends the transferability to a still wider energy window). The first problem is solved by explicitly writing the lost charge back into the books.

Definition: Augmentation charge

Let $\psi_i$ be the all-electron wave function and $\phi_i$ the pseudo-wave function for a reference state $i=(n,l,m,\varepsilon_i)$. Then $$Q_{ij}(\rr) \equiv \psi_i^*(\rr)\psi_j(\rr) - \phi_i^*(\rr)\phi_j(\rr)$$ is called the augmentation charge density. By Condition 1, $\psi_i = \phi_i$ for $r \ge r_c$, so $Q_{ij}(\rr)$ has its support only inside the sphere of radius $r_c$. We write its integral as $$q_{ij} \equiv \int\dd^3 r\; Q_{ij}(\rr)$$ A norm-conserving pseudopotential is precisely the case in which $q_{ii}=0$ holds (and, in MBK, $q_{ij}=0$ as well).

We then redefine the electron density as the sum of a smooth part and an augmentation part:

$$ \begin{equation} n(\rr) = \sum_{n}^{\rm occ}\left[\left|\phi_n(\rr)\right|^2 + \sum_{ij} Q_{ij}(\rr)\left\langle\phi_n\middle|\beta_i\right\rangle\left\langle\beta_j\middle|\phi_n\right\rangle\right] \label{eq:15-us-dens} \end{equation} $$

Here $\left|\beta_i\right\rangle$ is the projector defined in the next subsection. The quantity $\left\langle\beta_j|\phi_n\right\rangle$ is a coefficient measuring "how much of the reference state $j$ at that atomic site is contained in the wave function of band $n$ in the crystal," and the augmentation charge is put back at the atomic site with this weight.

Derivation: The overlap operator and the generalized eigenvalue problem

Step 1: Counting the electrons. Integrate Eq. \eqref{eq:15-us-dens} over all space:

$$ \begin{align} \int\dd^3 r\; n(\rr) &= \sum_n\left[\int\dd^3r\left|\phi_n\right|^2 + \sum_{ij}\left(\int\dd^3r\,Q_{ij}(\rr)\right)\left\langle\phi_n\middle|\beta_i\right\rangle\left\langle\beta_j\middle|\phi_n\right\rangle\right] \label{eq:15-us-n1}\\ &= \sum_n\left[\left\langle\phi_n\middle|\phi_n\right\rangle + \sum_{ij}q_{ij}\left\langle\phi_n\middle|\beta_i\right\rangle\left\langle\beta_j\middle|\phi_n\right\rangle\right] \label{eq:15-us-n2}\\ &= \sum_n\left\langle\phi_n\right|\underbrace{\left(1 + \sum_{ij}q_{ij}\left|\beta_i\right\rangle\left\langle\beta_j\right|\right)}_{\displaystyle \equiv\ \hat S}\left|\phi_n\right\rangle. \label{eq:15-us-n3} \end{align} $$

In the first line we interchanged the order of the integral and the sum and took the coefficient $\left\langle\phi_n|\beta_i\right\rangle\left\langle\beta_j|\phi_n\right\rangle$, which does not depend on $\rr$, outside the integral. The second line is the definition of $q_{ij}$. In the third line we collected the contents of the parentheses into a single operator $\hat S$ (sandwiching the outer-product form $\left|\beta_i\right\rangle\left\langle\beta_j\right|$ of the operator between $\left\langle\phi_n\right|$ and $\left|\phi_n\right\rangle$ indeed reproduces the coefficient).

Step 2: Reading off the normalization condition. For the number of electrons to come out correctly as $N_v$, the normalization condition for the orbitals must be not $\left\langle\phi_n|\phi_n\right\rangle=1$ but

$$ \begin{equation} \left\langle\phi_n\right|\hat S\left|\phi_m\right\rangle = \delta_{nm}, \qquad \hat S = 1 + \sum_{ij}q_{ij}\left|\beta_i\right\rangle\left\langle\beta_j\right| \label{eq:15-us-S} \end{equation} $$

We call $\hat S$ the overlap operator. Let us confirm that for $q_{ij}=0$ (norm conservation) it reduces to $\hat S=1$.

Step 3: Imposing the variational principle. Minimize the total energy $E[\{\phi_n\}]$ under the constraint \eqref{eq:15-us-S}. As in Chapter 10, we introduce Lagrange multipliers $\varepsilon_{nm}$ and write $$\mathcal{L}[\{\phi\}] = E[\{\phi\}] - \sum_{nm}\varepsilon_{nm}\left(\left\langle\phi_n\right|\hat S\left|\phi_m\right\rangle - \delta_{nm}\right)$$ We take the functional derivative with respect to $\left\langle\phi_n\right|$ and set it to zero (we use $\mathcal{L}$ for the functional because in this chapter $\Omega$ is reserved for the volume of the unit cell, Eq. \eqref{eq:15-npw}). Since $\delta E/\delta\left\langle\phi_n\right| = \hat H\left|\phi_n\right\rangle$ and $\delta\left(\left\langle\phi_n\right|\hat S\left|\phi_m\right\rangle\right)/\delta\left\langle\phi_n\right| = \hat S\left|\phi_m\right\rangle$, we obtain

$$ \hat H\left|\phi_n\right\rangle = \sum_m \varepsilon_{nm}\hat S\left|\phi_m\right\rangle. $$

Because $\varepsilon_{nm}$ is a Hermitian matrix, applying to the orbitals the unitary transformation that diagonalizes it (the same argument as in the derivation of the Kohn–Sham equations in Chapter 10) gives the diagonal form

$$ \begin{equation} \hat H\left|\phi_n\right\rangle = \varepsilon_n\,\hat S\left|\phi_n\right\rangle \label{eq:15-us-gen} \end{equation} $$

This is not an ordinary eigenvalue problem but a generalized eigenvalue problem. Note that the $\hat S$ here has a different origin from the overlap matrix that appeared with the nonorthogonal localized basis in Chapter 14 (it is not due to nonorthogonality of the basis, but is a deformation of the metric carried by the pseudo-transformation itself).

Let us mention one more practical price of the ultrasoft method. The coefficient of the nonlocal term of $\hat H$ takes the form

$$ \begin{equation} D_{ij} = B_{ij} + \int\dd^3r\; v_{\rm eff}(\rr)\,Q_{ij}(\rr) \label{eq:15-us-D} \end{equation} $$

and thus contains the self-consistent potential $v_{\rm eff}$. Therefore $D_{ij}$ must be updated every time within the self-consistency loop. The density formula \eqref{eq:15-us-dens}, the force expression, and the stress expression all become more complicated by the augmentation terms. The "speed" of the ultrasoft method is obtained in exchange for this implementation complexity.

r u(r) rcNC rcUS All-electron ψ(steep) Norm-conserving φNC Ultrasoft φUS (very smooth) Large rc and smoothness ⇒ low Ecut But ∫0rc|φUS|²dr < ∫0rc|ψ|²dr (charge deficit) r n(r) rcUS |φUS|² (smooth part) Augmentation chargeQij(r) n = Σn [ |φn|² + Σij Qij ⟨φn|βi⟩⟨βj|φn⟩ ] ⇒ Overlap operator S = 1 + Σ qij |βi⟩⟨βj|, Hψ = εSψ
Figure 15.8: The idea of the ultrasoft pseudopotential. Left: if norm conservation is abandoned, the pseudo-wave function (red, dashed) can be made extremely smooth out to a large $r_c$, and the required cutoff drops. Right: the lost charge is added back to the density as the augmentation charge $Q_{ij}(\rr)$. As a consequence the overlap operator $\hat S$ appears, and the equation becomes the generalized eigenvalue problem \eqref{eq:15-us-gen}.

Math Note: Relation to the PAW method

The projector augmented-wave (PAW) method of Blöchl (1994) starts from the linear transformation from the smooth pseudo-wave function $\left|\tilde\psi\right\rangle$ to the true all-electron wave function $\left|\psi\right\rangle$, $$\left|\psi\right\rangle = \hat{\mathcal T}\left|\tilde\psi\right\rangle,\qquad \hat{\mathcal T} = 1 + \sum_i\left(\left|\psi_i\right\rangle - \left|\phi_i\right\rangle\right)\left\langle\beta_i\right|$$ The expectation value of an arbitrary operator $\hat A$ is computed as $\left\langle\psi\right|\hat A\left|\psi\right\rangle = \left\langle\tilde\psi\right|\hat{\mathcal T}^\dagger\hat A\hat{\mathcal T}\left|\tilde\psi\right\rangle$, and setting $\hat A = 1$ gives $\hat{\mathcal T}^\dagger\hat{\mathcal T} = \hat S$, which is exactly the overlap operator of the ultrasoft method. That is, the ultrasoft pseudopotential can be regarded as an approximation obtained from the PAW transformation by extracting the information of the all-electron wave function only to the extent needed for the density and the total energy (Kresse–Joubert 1999). Because PAW explicitly retains the all-electron wave function, which has nodes, through $\hat{\mathcal T}$, it can also treat quantities near the core (hyperfine interactions, electric field gradients, etc.).

15.7.3 General construction of the separable form: $\chi$, $B$, $\beta$

Here we construct the Vanderbilt-type nonlocal operator in general form and see how its Hermiticity is tied to norm conservation. This construction is a direct extension of the KB form (the case of $1$ channel and 1 reference) to multiple references, and it is also the foundation of the MBK method.

As the local potential we take the screened local part $v^{\rm SL}(r) = v_{\rm loc}(r) + v_{\rm H}[\rho_v](r) + v_{\rm xc}[\rho_v+\tilde\rho_c](r)$. For each reference state $i$ (energy $\varepsilon_i$, pseudo-wave function $\phi_i$)

$$ \begin{equation} \left|\chi_i\right\rangle \equiv \left(\varepsilon_i - \hat T - v^{\rm SL}\right)\left|\phi_i\right\rangle, \qquad B_{ij} \equiv \left\langle\phi_i\middle|\chi_j\right\rangle, \qquad \left|\beta_i\right\rangle \equiv \sum_j\left(B^{-1}\right)_{ji}\left|\chi_j\right\rangle \label{eq:15-chi-B-beta} \end{equation} $$

we define the quantities above, and take the nonlocal operator to be

$$ \begin{equation} \hat v^{\rm NL} = \sum_{ij} B_{ij}\left|\beta_i\right\rangle\left\langle\beta_j\right| \label{eq:15-vnl-def} \end{equation} $$

Let us confirm the meaning of $\left|\chi_i\right\rangle$. We want $\phi_i$ to satisfy $\left(\hat T + v^{\rm SL} + \hat v^{\rm NL}\right)\phi_i = \varepsilon_i\phi_i$ exactly, so $\hat v^{\rm NL}\phi_i$ must be equal to $\left(\varepsilon_i - \hat T - v^{\rm SL}\right)\phi_i = \chi_i$. $\chi_i$ is precisely “the answer that the nonlocal term should give when acting on $\phi_i$.” Moreover, for $r \ge r_c$ we have $\phi_i = \psi_i$ and $v^{\rm SL}$ coincides with the true potential, so $\chi_i(\rr) = 0$ ($r\ge r_c$)—both $\chi_i$ and $\beta_i$ are short-range functions confined to the inside of the sphere.

Derivation: Proof of $\hat v^{\rm NL}\left|\phi_k\right\rangle = \left|\chi_k\right\rangle$

Suppose that $B$ is nonsingular (has an inverse) and Hermitian. First we compute the inner product of the projector with a reference state:

$$ \begin{align} \left\langle\beta_j\middle|\phi_k\right\rangle &= \sum_m \left(B^{-1}\right)_{mj}^{*}\left\langle\chi_m\middle|\phi_k\right\rangle \label{eq:15-bp1}\\ &= \sum_m \left(B^{-1}\right)_{jm}\,B_{km}^{*} \label{eq:15-bp2}\\ &= \sum_m B_{mk}\left(B^{-1}\right)_{jm} = \left(B^{-1}B\right)_{jk} = \delta_{jk}. \label{eq:15-bp3} \end{align} $$

In the first line we took the bra of the definition of $\left|\beta_j\right\rangle$ (the coefficients become complex conjugates). In the second line we used the Hermiticity of $B^{-1}$, $\left(B^{-1}\right)^*_{mj} = \left(B^{-1}\right)_{jm}$ (if $B$ is Hermitian, so is $B^{-1}$), and $\left\langle\chi_m|\phi_k\right\rangle = \left\langle\phi_k|\chi_m\right\rangle^* = B_{km}^*$. In the third line we used the Hermiticity of $B$, $B_{km}^* = B_{mk}$, and returned to the definition of the matrix product.

Using this,

$$ \begin{align} \hat v^{\rm NL}\left|\phi_k\right\rangle &= \sum_{ij}B_{ij}\left|\beta_i\right\rangle\left\langle\beta_j\middle|\phi_k\right\rangle = \sum_{ij}B_{ij}\,\delta_{jk}\left|\beta_i\right\rangle = \sum_i B_{ik}\left|\beta_i\right\rangle \label{eq:15-vnl-1}\\ &= \sum_i B_{ik}\sum_j\left(B^{-1}\right)_{ji}\left|\chi_j\right\rangle = \sum_j\left[\sum_i\left(B^{-1}\right)_{ji}B_{ik}\right]\left|\chi_j\right\rangle \label{eq:15-vnl-2}\\ &= \sum_j\delta_{jk}\left|\chi_j\right\rangle = \left|\chi_k\right\rangle. \label{eq:15-vnl-3} \end{align} $$

In the first line we collapsed the $j$ sum with Eq. \eqref{eq:15-bp3}. In the second line we substituted the definition of $\left|\beta_i\right\rangle$ and interchanged the $i$ sum and the $j$ sum. The third line follows from $\sum_i(B^{-1})_{ji}B_{ik} = (B^{-1}B)_{jk} = \delta_{jk}$. $\blacksquare$

Therefore, for the reference states,

$$ \left(\hat T + v^{\rm SL} + \hat v^{\rm NL}\right)\left|\phi_k\right\rangle = \left(\hat T + v^{\rm SL}\right)\left|\phi_k\right\rangle + \left(\varepsilon_k - \hat T - v^{\rm SL}\right)\left|\phi_k\right\rangle = \varepsilon_k\left|\phi_k\right\rangle $$

holds. No matter how many reference states we place for a single $l$, all of them are reproduced exactly as eigenvalues and eigenfunctions. The KB form \eqref{eq:15-kb} is nothing but the case of one reference per $l$ ($B$ is $1\times1$ with $B_{11} = \left\langle\phi\right|\delta v_l\left|\phi\right\rangle = E^{\rm KB}_l$, and $\chi = \delta v_l\phi$).

15.7.4 Equivalence of the Hermiticity of $B$ and norm conservation

The proof above assumed the Hermiticity of $B$. When does it hold? The answer is surprisingly clean, and the Wronskian formula \eqref{eq:15-wronsk-rc} derived in Section 15.4 applies directly.

Theorem: The non-Hermiticity of $B$ equals the generalized norm difference

$$ B_{ij} - B_{ji}^{*} = \left(\varepsilon_i - \varepsilon_j\right)Q_{ij}, \qquad Q_{ij} \equiv \int_0^{r_c}\!\left[u_i^{\rm AE}u_j^{\rm AE} - u_i^{\rm PS}u_j^{\rm PS}\right]\dd r $$ That is, the generalized norm-conservation condition $Q_{ij}=0$ is equivalent to the Hermiticity of $B$ (as long as the reference energies are not degenerate).

Note on notation: The $Q_{ij}$ appearing here (a quantity with only subscripts and no argument) is not the augmentation charge density $Q_{ij}(\rr)$ defined in Section 15.7.2, but its integral $q_{ij}=\int Q_{ij}(\rr)\dd^3r$ itself. Indeed, for reference states belonging to the same $(l,m)$ the angular integral gives $1$, so $\int Q_{ij}(\rr)\dd^3r=\int_0^{r_c}\bigl[u_i^{\rm AE}u_j^{\rm AE}-u_i^{\rm PS}u_j^{\rm PS}\bigr]\dd r$ and the two coincide. Below, writing $Q_{ij}=0$ means the same as $q_{ij}=0$ (that is, the overlap operator returns to $\hat S=1$).

Derivation: Proof of the theorem

Consider two reference states belonging to the same $l$, and take the radial functions to be real ($u_i \equiv u_i^{\rm PS}$). Since the support of $\chi$ is $[0,r_c]$, the integrals are confined to the sphere of radius $r_c$.

Step 1: Write the difference of $B_{ij}$ and $B_{ji}^*$. By the definition,

$$ \begin{align} B_{ij} &= \left\langle\phi_i\right|\left(\varepsilon_j - \hat T - v^{\rm SL}\right)\left|\phi_j\right\rangle, \qquad B_{ji}^{*} = \left\langle\phi_j\right|\left(\varepsilon_i - \hat T - v^{\rm SL}\right)\left|\phi_i\right\rangle^{*} \label{eq:15-B1}\\ B_{ij} - B_{ji}^{*} &= \left(\varepsilon_j - \varepsilon_i\right)\left\langle\phi_i\middle|\phi_j\right\rangle_{r_c} - \left[\left\langle\phi_i\right|\hat T\left|\phi_j\right\rangle_{r_c} - \left\langle\phi_j\right|\hat T\left|\phi_i\right\rangle_{r_c}\right]. \label{eq:15-B2} \end{align} $$

In the second line we used that, since $v^{\rm SL}$ is a real multiplicative operator, $\left\langle\phi_i\right|v^{\rm SL}\left|\phi_j\right\rangle = \left\langle\phi_j\right|v^{\rm SL}\left|\phi_i\right\rangle^*$, so that it cancels completely. $\left\langle\cdot\right\rangle_{r_c}$ denotes the integral over the sphere of radius $r_c$.

Step 2: Convert the kinetic-energy term to the Wronskian. In the radial representation $\hat T \to -\frac{1}{2}\frac{\dd^2}{\dd r^2} + \frac{l(l+1)}{2r^2}$, and the centrifugal term is common, so it drops out when we take the difference. What remains is

$$ \begin{align} \left\langle\phi_i\right|\hat T\left|\phi_j\right\rangle_{r_c} - \left\langle\phi_j\right|\hat T\left|\phi_i\right\rangle_{r_c} &= -\frac{1}{2}\int_0^{r_c}\left(u_i u_j'' - u_j u_i''\right)\dd r \label{eq:15-B3}\\ &= -\frac{1}{2}\Big[W[u_i,u_j](r_c) - W[u_i,u_j](0)\Big] = -\frac{1}{2}W^{\rm PS}(r_c). \label{eq:15-B4} \end{align} $$

In the second line we used $\frac{\dd}{\dd r}W = u_iu_j'' - u_i''u_j$, confirmed in the Math Note of Section 15.4, together with the fundamental theorem of calculus, and used $W(0)=0$ at the origin (for the same reason as in Step 4 of Section 15.4: since $u\propto r^{l+1}$, $W\propto r^{2l+1}\to0$).

Step 3: Rewrite the boundary Wronskian in terms of all-electron quantities. By Conditions 1 and 4, the pseudo-wave function agrees with the all-electron wave function at $r_c$ in both value and first derivative. Since the Wronskian is built only from values and first derivatives,

$$ W^{\rm PS}(r_c) = u_i^{\rm PS}(r_c)u_j^{\rm PS\prime}(r_c) - u_i^{\rm PS\prime}(r_c)u_j^{\rm PS}(r_c) = W^{\rm AE}(r_c). $$

And since the all-electron radial functions are two solutions in the same all-electron potential that differ only in energy, Eq. \eqref{eq:15-wronsk-rc} can be used as it stands, giving

$$ \begin{equation} W^{\rm AE}(r_c) = 2\left(\varepsilon_i - \varepsilon_j\right)\int_0^{r_c}u_i^{\rm AE}u_j^{\rm AE}\,\dd r. \label{eq:15-B5} \end{equation} $$

(Note that the pseudo-wave functions do not satisfy this relation. What the pseudo-wave functions satisfy is an equation containing the nonlocal term, not a simple second-order ordinary differential equation. This is precisely why a difference arises between the left-hand and right-hand sides, and it appears as $Q_{ij}$.)

Step 4: Put it together. Substitute \eqref{eq:15-B4} and \eqref{eq:15-B5} into \eqref{eq:15-B2}:

$$ \begin{align} B_{ij}-B_{ji}^{*} &= \left(\varepsilon_j-\varepsilon_i\right)\int_0^{r_c}u_i^{\rm PS}u_j^{\rm PS}\dd r + \frac{1}{2}\cdot 2\left(\varepsilon_i-\varepsilon_j\right)\int_0^{r_c}u_i^{\rm AE}u_j^{\rm AE}\dd r \label{eq:15-B6}\\ &= \left(\varepsilon_i-\varepsilon_j\right)\left[\int_0^{r_c}u_i^{\rm AE}u_j^{\rm AE}\dd r - \int_0^{r_c}u_i^{\rm PS}u_j^{\rm PS}\dd r\right] \label{eq:15-B7}\\ &= \left(\varepsilon_i-\varepsilon_j\right)Q_{ij}. \label{eq:15-B8} \end{align} $$

The first line is the substitution (the sign of the second term comes from $-\left(-\frac12 W\right) = +\frac12 W$). In the second line we factored out $\left(\varepsilon_i-\varepsilon_j\right)$. $\blacksquare$

Physical Meaning: The three faces of $Q_{ij}$

Note that the same quantity $Q_{ij}$ has appeared in three places. (i) $Q_{ii}$ for $i=j$ is the norm-conservation condition itself (Section 15.4). (ii) $q_{ij}=\int Q_{ij}(\rr)\dd^3 r$ is the quantity that shifts the overlap operator $\hat S$ away from 1 (Section 15.7.2). (iii) And now we have seen that it is also the non-Hermiticity of the $B$ matrix. The ultrasoft method deliberately allows $Q_{ij}\ne0$ to buy smoothness, and in exchange takes on a generalized eigenvalue problem with $\hat S \ne 1$ and an additional symmetrization to restore Hermiticity. Conversely, if we impose $Q_{ij}=0$, then $\hat S=1$, $B$ is Hermitian, and the nonlocal term can be diagonalized—everything becomes simple at once.

15.7.5 The MBK method: returning to norm conservation while keeping multiple references

The insight of Morrison, Bylander, and Kleinman (1993) lies here. Of Vanderbilt's construction, they keep only the advantage that “a single $l$ can have several reference energies,” and impose $Q_{ij}=0$ to return to norm conservation. Then:

The remaining task is “how to satisfy $Q_{ij}=0$.” Here we need degrees of freedom. With only one reference, the TM method has already achieved $Q_{ii}=0$, but when we increase the references to two or three, $Q_{ij}$ ($i\ne j$) does not in general vanish. The MBK method therefore adds a correction function to the TM pseudo-wave function:

$$ \begin{equation} u_i^{\rm PS}(r) = u_i^{\rm TM}(r) + f_i(r), \qquad f_i(r) = \sum_{k=1}^{N_b}c_{ik}\;r\,j_l\!\left(q_{lk}r\right), \qquad q_{lk} = \frac{u_{lk}}{r_c} \label{eq:15-mbk-f} \end{equation} $$

Here $u_{lk}$ is the $k$th zero of the spherical Bessel function $j_l$ ($j_l(u_{lk})=0$). This choice of basis is an especially clever one, and the following property follows automatically.

Derivation: The boundary conditions of the spherical Bessel correction functions are satisfied automatically

Let $f_k(r) \equiv r\,j_l(q_kr)$ (with $q_k \equiv q_{lk}$). From the definition of the spherical Bessel function, $f_k$ is the solution, regular at the origin, of the radial equation with no potential (energy $q_k^2/2$):

$$ \begin{equation} f_k''(r) = g_k(r)\,f_k(r), \qquad g_k(r) \equiv \frac{l(l+1)}{r^2} - q_k^2. \label{eq:15-mbk-free} \end{equation} $$

(This is nothing but the form of Eq. \eqref{eq:15-radial} with $V=0$ and $\varepsilon = q_k^2/2$.) First, from the choice $q_k = u_{lk}/r_c$,

$$ f_k(r_c) = r_c\,j_l\!\left(\frac{u_{lk}}{r_c}r_c\right) = r_c\,j_l(u_{lk}) = 0 $$

holds for all $k$. That is, the correction function always vanishes at $r_c$, so it does not spoil condition 1, that the pseudo-wave function coincide with the all-electron one for $r\ge r_c$. Next, evaluating Eq. \eqref{eq:15-mbk-free} at $r_c$ gives

$$ f_k''(r_c) = g_k(r_c)f_k(r_c) = 0 $$

and so the agreement of the second derivative (condition 4 with $k=2$) is also preserved automatically. Furthermore, differentiating Eq. \eqref{eq:15-mbk-free} once and twice gives

$$ \begin{align} f_k''' &= g_k' f_k + g_k f_k' \;\;\longrightarrow\;\; f_k'''(r_c) = g_k(r_c)\,f_k'(r_c), \label{eq:15-mbk-d3}\\ f_k'''' &= g_k'' f_k + 2g_k' f_k' + g_k f_k'' \;\;\longrightarrow\;\; f_k''''(r_c) = 2g_k'(r_c)\,f_k'(r_c) \label{eq:15-mbk-d4} \end{align} $$

(in both cases we used $f_k(r_c)=f_k''(r_c)=0$). Note that $g_k'(r) = -2l(l+1)/r^3$ does not depend on $k$. Therefore, for the sum $f_i = \sum_k c_{ik}f_k$,

$$ f_i''''(r_c) = 2g'(r_c)\sum_k c_{ik}f_k'(r_c) = 2g'(r_c)\,f_i'(r_c) $$

so if we merely impose $f_i'(r_c)=0$, the agreement of the fourth derivative follows automatically. On the other hand, $f_i'''(r_c) = \sum_k c_{ik}\,g_k(r_c)f_k'(r_c)$ does not follow from $f_i'(r_c)=0$, because the weight $g_k(r_c) = l(l+1)/r_c^2 - q_{lk}^2$ differs from one $k$ to another.

In the end, the conditions that must be imposed independently are $$f_i'(r_c) = 0,\qquad f_i'''(r_c) = 0,\qquad Q_{ij}=0\;(j=1,\ldots,N_{\rm ref})$$ of which there are $N_{\rm ref}+2$ in all, and the number of coefficients $c_{ik}$, $N_b = N_{\rm ref}+2$, is exactly sufficient.

The condition $Q_{ij}=0$ is quadratic in $c_{ik}$ (because the product $u_i^{\rm PS}u_j^{\rm PS}$ enters), so in practice $c$ is found iteratively, starting from small values. Once the coefficients are determined, $\chi_i$ can also be written in closed form:

$$ \begin{equation} \chi_i = \left(\varepsilon_i - \hat T - v^{\rm SL}\right)\left(u_i^{\rm TM}+f_i\right) = \underbrace{v_i^{\rm TM}u_i^{\rm TM} - v^{\rm SL}u_i^{\rm PS} + \varepsilon_i f_i}_{\text{known quantity}} \;-\;\frac{1}{2}\sum_k c_{ik}\,q_{lk}^2\;r\,j_l(q_{lk}r) \label{eq:15-mbk-chi} \end{equation} $$

(For the first term we used the fact that $u_i^{\rm TM}$ is an eigenfunction of the TM potential $v_i^{\rm TM}$; for the last term we used $\left(-\frac12\frac{\dd^2}{\dd r^2}+\frac{l(l+1)}{2r^2}\right)f_k = \frac{q_k^2}{2}f_k$, which follows from the fact that $f_k$ is a free-particle solution, Eq. \eqref{eq:15-mbk-free}.) Since $\chi_i$ is obtained without any numerical differentiation, the accuracy is also stable.

Example: The trade-off between softness and accuracy

Listing the typical cutoffs required when oxygen is treated with three kinds of pseudopotentials, we have $E_{\rm cut}\approx 70$ Ha for the norm-conserving TM type, $E_{\rm cut}\approx 15$ Ha for the ultrasoft type, and $E_{\rm cut}\approx 30$ Ha for PAW. By Eq. \eqref{eq:15-npw}, the number of basis functions is proportional to $E_{\rm cut}^{3/2}$, so going from the TM type to the ultrasoft type reduces the number of basis functions by a factor of $(70/15)^{3/2}\approx 10$. If the diagonalization cost goes as the cube of the number of basis functions, this is a factor of $10^3$—which is why the ultrasoft method is widely used. In terms of accuracy, on the other hand, the multi-reference norm-conserving (MBK) type achieves about $2$ meV/atom in the difference from the all-electron method (FLAPW) (the $\Delta$ gauge, defined in Section 15.9), approaching the scatter among all-electron codes ($0.3$–$1$ meV/atom). The current situation is that the choice changes depending on which of softness, simplicity, and accuracy one values most.

15.8 Relativistic Effects

Up to this point, we have assumed that all-electron calculations for atoms are carried out with the nonrelativistic Schrödinger equation. For light elements this is fine. As we go down the periodic table, however, this assumption breaks down quietly but decisively. In this section we estimate when the breakdown occurs, derive how the scalar-relativistic approximation and the spin-orbit term separate out of the Dirac equation, and connect this to the construction of $j$-dependent pseudopotentials.

15.8.1 When is relativity needed?

First we estimate the velocity. For the $1s$ electron of a hydrogen-like atom, by the virial theorem (Chapter 2) the expectation value of the kinetic energy equals the total energy with its sign changed, $\left\langle T\right\rangle = Z^2/2$ (atomic units). If, nonrelativistically, $\left\langle T\right\rangle = \left\langle v^2\right\rangle/2$, then

$$ \begin{equation} \sqrt{\left\langle v^2\right\rangle} = Z \quad\text{(atomic units)}, \qquad \frac{v}{c} = \frac{Z}{c} = Z\alpha \simeq \frac{Z}{137} \label{eq:15-vc} \end{equation} $$

follows. Here $\alpha = 1/c \simeq 1/137.036$ is the fine-structure constant, which in atomic units is simply the inverse of the speed of light (beginning of Chapter 15). Inserting concrete numbers gives

Physical Meaning: Why do relativistic effects of the core shell matter for chemistry?

It is the core electrons, not the valence electrons, that have large velocities. Yet relativistic effects change chemical properties through the following chain. (1) Because of the mass increase, the effective Bohr radius $a = 1/(m_{\rm eff}Z)$ of the $s$ orbitals (and the $p_{1/2}$ orbitals) shrinks. (2) When the core $s$ orbitals contract, the valence $s$ orbitals, which must be orthogonal to them, also contract. (3) The contracted $s$ shells screen the nuclear charge well, so the $d$ and $f$ orbitals, conversely, expand and become destabilized. This “$s$ contraction and $d$ expansion” lowers the $5d\to6s$ transition energy of gold into the visible range (about 2.4 eV, blue), producing the golden color; it stabilizes the $6s$ shell of mercury in a closed-shell-like manner so that it is liquid at room temperature; and it accounts for most of the electromotive force of the lead-acid battery. Relativity is “the very chemistry of heavy elements.”

What matters in practice is that this effect needs to be incorporated only at the stage of generating the pseudopotential. If we construct the all-electron wave function in a relativistic atomic calculation (the Dirac equation) and build the pseudopotential from it, the solid-state calculation can still be carried out with the nonrelativistic Schrödinger equation. All the relativistic information is frozen into the form of $v_l^{\rm ion}$.

15.8.2 From the Dirac equation to the radial equation

For an electron in a spherically symmetric potential $V(r)$, the Dirac equation can be separated in its angular part by means of the spin-spherical harmonics $\mathcal{Y}_{\kappa m}$. What remains after the separation is a pair of coupled first-order equations for the large component $G(r)$ and the small component $F(r)$ (with $\varepsilon$ the energy measured from the rest energy):

$$ \begin{align} \frac{\dd G}{\dd r} &= -\frac{\kappa}{r}G + 2c\,M(r)\,F, \label{eq:15-dirac1}\\ \frac{\dd F}{\dd r} &= \frac{\kappa}{r}F - \frac{\varepsilon - V(r)}{c}\,G, \qquad M(r) \equiv 1 + \frac{\varepsilon - V(r)}{2c^2}. \label{eq:15-dirac2} \end{align} $$

$M(r)$ is the relativistic effective mass ($M\to1$ as $c\to\infty$, that is, the rest mass of the electron). In a deep potential ($V\ll0$), $M$ becomes larger than 1—this is the true nature of the “mass increase.” $\kappa$ is an integer expressing the coupling of angular momentum and spin, and is defined by

$$ \begin{equation} \kappa = \begin{cases} -(l+1), & j = l+\tfrac{1}{2},\\ +\,l, & j = l-\tfrac{1}{2}, \end{cases} \qquad \text{degeneracy}\; 2j+1 = \begin{cases} 2l+2, & j = l+\tfrac12,\\ 2l, & j = l-\tfrac12. \end{cases} \label{eq:15-kappa} \end{equation} $$

In what follows we eliminate the small component $F$ and reduce the problem to a second-order equation for $G$ alone.

Derivation: From the Dirac equation to the second-order equation for $G$

Step 1: Express $F$ in terms of $G$. Solve Eq. \eqref{eq:15-dirac1} for $F$:

$$ \begin{equation} F = \frac{1}{2cM}\left(G' + \frac{\kappa}{r}G\right) \equiv \frac{Y}{2cM}, \qquad Y \equiv G' + \frac{\kappa}{r}G. \label{eq:15-dr1} \end{equation} $$

Step 2: Substitute this into Eq. \eqref{eq:15-dirac2}.

$$ \begin{align} \frac{\dd}{\dd r}\left(\frac{Y}{2cM}\right) &= \frac{\kappa}{r}\cdot\frac{Y}{2cM} - \frac{\varepsilon-V}{c}G \label{eq:15-dr2}\\ \frac{Y'}{2cM} - \frac{Y M'}{2cM^2} &= \frac{\kappa Y}{2cMr} - \frac{\varepsilon-V}{c}G. \label{eq:15-dr3} \end{align} $$

The second line is just the quotient rule applied to the left-hand side. Multiplying both sides by $2cM$ gives

$$ \begin{equation} Y' - \frac{M'}{M}Y = \frac{\kappa}{r}Y - 2M\left(\varepsilon - V\right)G. \label{eq:15-dr4} \end{equation} $$

Step 3: Rewrite $Y$ in terms of $G$. Since $Y = G' + \frac{\kappa}{r}G$, we have $Y' = G'' + \frac{\kappa}{r}G' - \frac{\kappa}{r^2}G$ (the quotient rule applied to the second term). Substituting,

$$ \begin{align} G'' + \frac{\kappa}{r}G' - \frac{\kappa}{r^2}G - \frac{M'}{M}\left(G'+\frac{\kappa}{r}G\right) &= \frac{\kappa}{r}\left(G'+\frac{\kappa}{r}G\right) - 2M(\varepsilon-V)G \label{eq:15-dr5}\\ G'' - \frac{\kappa}{r^2}G - \frac{M'}{M}\left(G'+\frac{\kappa}{r}G\right) &= \frac{\kappa^2}{r^2}G - 2M(\varepsilon-V)G. \label{eq:15-dr6} \end{align} $$

In the second line we cancelled $\frac{\kappa}{r}G'$, which appears on both sides. Rearranging,

$$ \begin{equation} G'' = \frac{\kappa(\kappa+1)}{r^2}G + \frac{M'}{M}G' + \frac{M'}{M}\frac{\kappa}{r}G - 2M(\varepsilon-V)G. \label{eq:15-dr7} \end{equation} $$

Step 4: Evaluate $\kappa(\kappa+1)$. This is the crux. Substituting the two cases of Eq. \eqref{eq:15-kappa},

$$ \begin{align} j = l+\tfrac12\;(\kappa = -(l+1)):&\quad \kappa(\kappa+1) = -(l+1)\left[-(l+1)+1\right] = -(l+1)(-l) = l(l+1), \label{eq:15-dr8}\\ j = l-\tfrac12\;(\kappa = l):&\quad \kappa(\kappa+1) = l(l+1). \label{eq:15-dr9} \end{align} $$

In both cases we obtain the same $l(l+1)$. That is, no $j$ dependence at all enters the centrifugal term. The $\kappa$ dependence, that is, the effect of spin-orbit coupling, is concentrated in a single place, the third term $\frac{M'}{M}\frac{\kappa}{r}G$ of Eq. \eqref{eq:15-dr7}.

Step 5: Bring it into standard form. Multiplying both sides of Eq. \eqref{eq:15-dr7} by $-\frac{1}{2M}$ and collecting $\varepsilon G$ on the right-hand side, we have

$$ \begin{equation} \left[-\frac{1}{2M}\frac{\dd^2}{\dd r^2} + \frac{l(l+1)}{2Mr^2} + V(r) - \frac{V'(r)}{4M^2c^2}\frac{\dd}{\dd r} \;\underbrace{-\;\frac{V'(r)}{4M^2c^2}\frac{\kappa}{r}}_{\text{spin-orbit}}\right]G = \varepsilon\,G \label{eq:15-koelling} \end{equation} $$

Here we used $M' = -V'/(2c^2)$ (the definition in Eq. \eqref{eq:15-dirac2} differentiated with respect to $r$) to rewrite $\frac{M'}{2M^2} = -\frac{V'}{4M^2c^2}$. Equation \eqref{eq:15-koelling} is the relativistic radial equation of Koelling–Harmon (1977).

15.8.3 The scalar-relativistic approximation and the separation of spin-orbit coupling

In Eq. \eqref{eq:15-koelling}, only the last term, which contains $\kappa$, depends on spin. If we therefore average this term weighted by the degeneracy over $j = l\pm\frac12$, we obtain an equation that contains no spin at all. This is the scalar-relativistic approximation. The averaged value of $\kappa$ is

$$ \begin{align} \kappa_{\rm av} &= \frac{(2l)\cdot l + (2l+2)\cdot\left[-(l+1)\right]}{2l + (2l+2)} \label{eq:15-kav1}\\ &= \frac{2l^2 - 2(l+1)^2}{4l+2} = \frac{2l^2 - 2l^2 - 4l - 2}{4l+2} = \frac{-(4l+2)}{4l+2} = -1 \label{eq:15-kav2} \end{align} $$

The first line is the average of $\kappa=l$ (degeneracy $2l$) for $j=l-\frac12$ and $\kappa=-(l+1)$ (degeneracy $2l+2$) for $j=l+\frac12$, weighted by the degeneracies. The second line merely expands the numerator and simplifies. The fact that $\kappa_{\rm av}=-1$ independently of $l$ is beautiful.

$$ \begin{equation} \left[-\frac{1}{2M}\frac{\dd^2}{\dd r^2} + \frac{l(l+1)}{2Mr^2} + V(r) - \frac{V'(r)}{4M^2c^2}\left(\frac{\dd}{\dd r} - \frac{1}{r}\right)\right]G = \varepsilon\,G \label{eq:15-scalar-rel} \end{equation} $$

This is the scalar-relativistic equation (substituting $\kappa\to\kappa_{\rm av}=-1$ turns $-\frac{V'}{4M^2c^2}\frac{\kappa}{r} \to +\frac{V'}{4M^2c^2}\frac{1}{r}$, which can be combined into the parentheses as above). The mass increase ($M$) and the accompanying contraction and expansion of orbitals are all included; only the spin-orbit splitting is dropped. For many materials, lattice constants, cohesive energies, and bandwidths are obtained with sufficient accuracy in this way.

Math Note: The nonrelativistic limit—mass-velocity term and Darwin term

Expanding Eq. \eqref{eq:15-koelling} to first order in $1/c^2$, we obtain the three familiar terms of the textbooks. Written in three-dimensional form,

$$ \hat H^{\rm rel} = \hat T + V \underbrace{-\frac{\hat p^4}{8c^2}}_{\text{mass-velocity term}} +\underbrace{\frac{1}{8c^2}\nabla^2 V}_{\text{Darwin term}} +\underbrace{\frac{1}{2c^2}\frac{1}{r}\frac{\dd V}{\dd r}\,\bm{L}\cdot\bm{S}}_{\text{spin-orbit term}} $$

The mass-velocity term comes from the expansion of the relativistic kinetic energy. The kinetic energy, with the rest energy subtracted, is $$E_{\rm kin} = \sqrt{p^2c^2 + c^4} - c^2 = c^2\sqrt{1+\frac{p^2}{c^2}} - c^2$$ and applying $\sqrt{1+x} = 1 + \frac{x}{2} - \frac{x^2}{8} + O(x^3)$ with $x = p^2/c^2$ gives $$E_{\rm kin} = c^2\left[1 + \frac{p^2}{2c^2} - \frac{p^4}{8c^4} + \cdots\right] - c^2 = \frac{p^2}{2} - \frac{p^4}{8c^2} + \cdots$$ The second term is the mass-velocity term; it is always negative (it lowers the kinetic energy = strengthens the binding). Since it acts near the nucleus, where $p$ is large, it affects $s$ orbitals most strongly.

The Darwin term arises from the effect (Zitterbewegung) by which the electron is smeared over a range of about the Compton wavelength $\lambda_C = 1/c$ through the interference of positive- and negative-energy states. Averaging the potential over that range gives $\left\langle V(\rr+\bm\delta)\right\rangle \simeq V(\rr) + \frac{1}{6}\left\langle\delta^2\right\rangle\nabla^2V$, and $\left\langle\delta^2\right\rangle\sim 1/c^2$ yields $\nabla^2V/(8c^2)$. For the bare Coulomb potential $V=-Z/r$ we have $\nabla^2V = 4\pi Z\delta(\rr)$, so the Darwin term acts only on $s$ orbitals ($l=0$), which have a finite amplitude at the origin.

The spin-orbit term corresponds to the $\kappa$ term of Eq. \eqref{eq:15-koelling}. Indeed, as we will see in the next subsection, the eigenvalue of $\bm L\cdot\bm S$ can be written in terms of $\kappa$, and $-\frac{V'}{4M^2c^2}\frac{\kappa}{r}$ corresponds to $\frac{V'}{2c^2 r}\bm L\cdot\bm S$ (in the limit $M\to1$).

15.8.4 The $j$-dependent pseudopotential and its decomposition

In principle, constructing a relativistic pseudopotential is simple: we just carry out the procedure of Section 15.5 for each $(l,j)$ rather than for each $l$. That is, we solve the Dirac equation (or \eqref{eq:15-koelling}) for both $\kappa = -(l+1)$ and $\kappa = l$, apply the TM method with each large component $G_{lj}$ as the all-electron wave function, and obtain two potentials, $v_{l,l+1/2}$ and $v_{l,l-1/2}$ (for $l=0$ only $j=1/2$ exists, so there is just one).

In actual solid-state calculations it is convenient not to use these two potentials as they are, but to split them into a spin-independent part and a spin-orbit part. From $\bm J = \bm L + \bm S$,

$$ \begin{align} J^2 &= (\bm L + \bm S)^2 = L^2 + S^2 + 2\bm L\cdot\bm S \label{eq:15-ls1}\\ \bm L\cdot\bm S &= \frac{1}{2}\left[J^2 - L^2 - S^2\right] \;\longrightarrow\; \frac{1}{2}\left[j(j+1) - l(l+1) - \frac{3}{4}\right] \label{eq:15-ls2} \end{align} $$

(in the second line, $S^2 \to s(s+1) = 3/4$ because $s=1/2$). Substituting $j = l\pm\frac12$ into this: for $j=l+\frac12$ we have $j(j+1) = \left(l+\frac12\right)\left(l+\frac32\right) = l^2+2l+\frac34$, so

$$ \bm L\cdot\bm S \to \frac{1}{2}\left[l^2+2l+\frac34 - l^2 - l - \frac34\right] = \frac{l}{2}, $$

and for $j=l-\frac12$ we have $j(j+1) = \left(l-\frac12\right)\left(l+\frac12\right) = l^2-\frac14$, so

$$ \bm L\cdot\bm S \to \frac{1}{2}\left[l^2-\frac14 - l^2 - l - \frac34\right] = -\frac{l+1}{2}. $$

We therefore define the scalar-relativistic part $v_l^{\rm SR}$ and the spin-orbit part $v_l^{\rm SO}$ by

$$ \begin{equation} v_l^{\rm SR}(r) = \frac{l\,v_{l,l-1/2}(r) + (l+1)\,v_{l,l+1/2}(r)}{2l+1}, \qquad v_l^{\rm SO}(r) = \frac{2\left[v_{l,l+1/2}(r) - v_{l,l-1/2}(r)\right]}{2l+1} \label{eq:15-sr-so} \end{equation} $$

With this definition, $v_l^{\rm SR} + v_l^{\rm SO}\,\bm L\cdot\bm S$ correctly reproduces the original $j$-dependent potential. Let us check this. For $j = l+\frac12$ we have $\bm L\cdot\bm S \to l/2$, so

$$ \begin{align} v_l^{\rm SR} + \frac{l}{2}v_l^{\rm SO} &= \frac{l\,v_{-} + (l+1)v_{+}}{2l+1} + \frac{l}{2}\cdot\frac{2\left(v_{+}-v_{-}\right)}{2l+1} \label{eq:15-check1}\\ &= \frac{l\,v_{-} + (l+1)v_{+} + l\,v_{+} - l\,v_{-}}{2l+1} = \frac{(2l+1)v_{+}}{2l+1} = v_{+} = v_{l,l+1/2}. \label{eq:15-check2} \end{align} $$

(We have abbreviated $v_\pm \equiv v_{l,l\pm1/2}$. The first line is the substitution of the definitions; in the second line the numerator has been expanded and $l\,v_-$ cancels.) Similarly, for $j=l-\frac12$ we have $\bm L\cdot\bm S\to -(l+1)/2$, and

$$ v_l^{\rm SR} - \frac{l+1}{2}v_l^{\rm SO} = \frac{l\,v_{-}+(l+1)v_{+} - (l+1)v_{+} + (l+1)v_{-}}{2l+1} = \frac{(2l+1)v_{-}}{2l+1} = v_{l,l-1/2} $$

so both are reproduced correctly. The weights $l:(l+1)$ in $v_l^{\rm SR}$ are nothing but the ratio of the degeneracies $2l:(2l+2)$, and this is the same average that led to $\kappa_{\rm av}=-1$. The final pseudopotential operator is therefore

$$ \begin{equation} \hat v^{\rm ps} = v_{\rm loc}(r) + \sum_{l}\left[\delta v_l^{\rm SR}(r) + \delta v_l^{\rm SO}(r)\,\bm L\cdot\bm S\right]\hat P_l, \qquad \hat P_l = \sum_{m}\left|Y_{lm}\right\rangle\left\langle Y_{lm}\right| \label{eq:15-vps-rel} \end{equation} $$

(in an implementation, this is used after being cast into the KB/MBK separable form). Dropping the spin-orbit term gives a scalar-relativistic calculation; keeping it gives a calculation that includes the spin-orbit interaction. That the same pseudopotential file can handle both is a practical advantage of this decomposition.

Example: Spin-orbit splitting of the valence-band top of semiconductors

In semiconductors with the diamond or zincblende structure, the top of the valence band (the $\Gamma$ point) is a threefold degenerate state composed mainly of anion $p$ orbitals. When the spin-orbit interaction is included, it splits into a $j=3/2$ quartet ($\Gamma_8$) and a $j=1/2$ doublet ($\Gamma_7$). From Eq. \eqref{eq:15-ls2}, the splitting is $$\Delta_{\rm SO} = \left(\frac{l}{2} - \left(-\frac{l+1}{2}\right)\right)\left\langle v_l^{\rm SO}\right\rangle = \frac{2l+1}{2}\left\langle v_l^{\rm SO}\right\rangle \quad(l=1\;\text{gives}\;\tfrac32\left\langle v_1^{\rm SO}\right\rangle)$$ The measured values are Si: $0.044$ eV, Ge: $0.29$ eV, $\alpha$-Sn: $0.80$ eV, GaAs: $0.34$ eV, InSb: $0.81$ eV, which increase rapidly as the constituent elements become heavier (in a hydrogen-like estimate, $\Delta_{\rm SO}\propto Z^4/n^3$). For silicon it is of the same order as the thermal energy at room temperature ($0.026$ eV) and is often neglected, but from germanium onward it is decisive for calculations of the hole effective mass and the band gap. For bismuth-based topological insulators, the spin-orbit interaction itself induces the band inversion and determines the character of the material.

(a) j-dependent pseudopotentials (l = 1) r v(r) rc v1, j=3/2 v1, j=1/2 difference → v1SO average → v1SR (b) Valence-band-top splitting (Γ) E 3-fold (p) Scalar-rel. + SOC Γ₈(j = 3/2, 4-fold) Γ₇(j = 1/2, 2-fold) ΔSO Si 0.044 eV / Ge 0.29 eV / α-Sn 0.80 eV GaAs 0.34 eV / InSb 0.81 eV (measured)
Figure 15.9: Relativistic pseudopotentials and spin-orbit splitting. (a) The difference between the pseudopotentials constructed for each $j=l\pm\frac12$ gives the spin-orbit term $v_l^{\rm SO}$, and their degeneracy-weighted average gives the scalar-relativistic term $v_l^{\rm SR}$ (Eq. \eqref{eq:15-sr-so}). (b) As a result, the threefold degeneracy at the valence-band top of a semiconductor splits into $j=3/2$ and $j=1/2$.

15.9 Validation in Practice

A pseudopotential is an approximation. Moreover, it is an approximation whose parameters ($r_c$,the choice of local channel, the reference configuration, and the shells included among the valence electrons) are chosen by a human. Therefore a pseudopotential must always be validated after it is generated. In this section we describe the hierarchy of validation used in practice, from the atomic level (logarithmic derivatives) to the solid level (band structure and equation of state), and finally list the failures into which beginners most easily fall.

15.9.1 The first gate: logarithmic-derivative curves

The first validation, and the cheapest one, is the comparison of logarithmic-derivative curves. The procedure is as follows.

  1. Choose a diagnostic radius $r_d$ ($r_d \ge \max_l r_{cl}$, usually slightly outside the largest $r_c$).
  2. Sweep the energy $\varepsilon$ finely from the bottom of the valence band to above the unoccupied states (for example, from $-3$ Ha to $+3$ Ha).
  3. At each $\varepsilon$, numerically integrate the solution that is regular at the origin for three cases: (i) the all-electron (relativistic) radial equation, (ii) the semilocal pseudopotential, and (iii) the separable form actually used (KB/MBK), and obtain $D_l(\varepsilon, r_d) = u_l'(r_d)/u_l(r_d)$.
  4. For $l=0,1,2,3$ (for each $j$ in the relativistic case), plot the three curves on top of one another.

Physical Meaning: How to read the logarithmic-derivative curves

As shown in Section 15.3, for the world outside $r_d$ the information about the interior of the atom is exhausted by $D_l(\varepsilon, r_d)$. This single graph is therefore a direct measurement of transferability. There are three points to read.

(1) Width of agreement. The energy range over which the three curves coincide is the “effective window” of that pseudopotential. A norm-conserving pseudopotential agrees to first order around the reference energy $\varepsilon_l$ (Eq. \eqref{eq:15-taylor}), so the curves always coincide in the neighborhood of $\varepsilon_l$. The width of the window depends strongly on $r_c$, and increasing $r_c$ narrows the window. A pseudopotential passes if it has a window at least as wide as the width over which the valence bands spread in a real crystal (several eV $\sim 0.1$–$0.3$ Ha).

(2) Number and positions of poles. $D_l$ decreases monotonically as $\varepsilon$ increases (the right-hand side of Eq. \eqref{eq:15-normid} is negative), and each time $u_l(r_d)=0$ it jumps from $-\infty$ to $+\infty$. The number of jumps corresponds to the number of bound/resonant states within the window. If only the separable form has a spurious pole, it is a ghost state (Section 15.6.4, Figure 15.7).

(3) Difference between the semilocal and separable forms. If (ii) and (iii) deviate from each other, the problem lies in the KB/MBK transformation itself (too few projectors, a poor choice of the local potential). If (i) and (ii) deviate from each other, the problem lies in the generation of the pseudopotential itself. The cause can thus be isolated.

As a rule of thumb, if the logarithmic derivatives agree, the band structure agrees too. Conversely, if the logarithmic derivatives deviate, the band structure will almost certainly deviate. Since an atomic calculation that finishes in tens of seconds can predict the success or failure of a solid-state calculation with considerable accuracy, look at this first once you have generated a pseudopotential.

15.9.2 The second gate: comparing solid-state properties with all-electron methods

The logarithmic derivative is a necessary condition, not a sufficient one. What happens in a real solid can ultimately be found out only by calculating in the solid. There are three standard items to validate.

(a) Band structure. Using the same exchange-correlation functional (usually PBE), plot the band dispersion from the pseudopotential calculation on top of that from an all-electron method—FLAPW (WIEN2k, FLEUR, exciting), LMTO-type methods, or numerical-basis all-electron codes (FHI-aims, Elk). Check whether they agree not only for the occupied bands but also up to the unoccupied bands several eV above the Fermi level. The unoccupied bands sensitively reflect the transferability of the pseudopotential on the high-energy side. When a semicore state is not included among the valence electrons, a typical failure is that the position of that level is shifted.

(b) Lattice constant and bulk modulus. Vary the volume around the equilibrium value, calculate the energy $E(V)$, and fit it with an equation of state such as Birch–Murnaghan to obtain the equilibrium volume $V_0$, the bulk modulus $B_0 = -V\left(\partial P/\partial V\right)_{V_0} = V_0\left(\partial^2 E/\partial V^2\right)_{V_0}$, and its pressure derivative $B_0'$. The result is good if the difference from the all-electron method is within $0.1\%$ for the lattice constant and within a few $\%$ for $B_0$. This is a stricter test than the logarithmic derivative: changing the volume means changing the interatomic distances, which is nothing other than placing the pseudopotential in an environment different from the one in which it was generated.

(c) The $\Delta$ gauge. The $\Delta$ gauge is an index that condenses (b) into a single number. Align the $E(V)$ curves given by two calculation methods $a$ and $b$ so that their minima coincide, and then take the root-mean-square difference over the interval $\pm6\%$ around the equilibrium volume:

$$ \begin{equation} \Delta_{ab} = \sqrt{\frac{1}{0.12\,V_0}\int_{0.94V_0}^{1.06V_0}\left[E_a(V) - E_b(V)\right]^2\dd V} \label{eq:15-delta-gauge} \end{equation} $$

Its unit is meV/atom. The prefactor $1/(0.12V_0)$ is a normalization by the width $0.12V_0$ of the integration interval, so that $\Delta$ represents “the typical energy difference within the interval.” In a large-scale validation that used this index to compare 15 major codes for the elemental crystals of 71 elements (Lejaeghere et al., 2016), $\Delta$ between all-electron codes was $0.3$–$1$ meV/atom, and well-made norm-conserving, ultrasoft, and PAW pseudopotentials differed from the all-electron results by only $1$–$3$ meV/atom. For reference, the size of the discrepancy between the PBE functional itself and experiment is $23.5$ meV/atom on average, an order of magnitude larger. That is, modern pseudopotentials have reached a level that is negligible compared with the error of the functional—but only for those that are “well made,” which is the theme of this section.

15.9.3 Whether to include semicore states among the valence electrons

The premise of the frozen-core approximation was that “the core does not change with the environment” (Section 15.1). A shell for which this premise is doubtful is called a semicore state. Representative examples are the $3s3p$ of potassium, the $3s3p$ of titanium, the $3d$ of gallium, the $4d$ of indium, the $5s5p$ of barium, and the $5s5p$ of the rare earths. Including them among the valence electrons raises the accuracy, but because these orbitals are spatially compact, the required cutoff jumps up (for example, including $3d$ among the valence electrons raises $E_{\rm cut}$ by a factor of two to three). We list the criteria for the decision.

Definition: Criteria for including a semicore state among the valence electrons

  1. Spatial overlap. Do the peak position or the tail of the radial probability density $r^2\left|R_{nl}\right|^2$ of that core orbital lie at about the same place as the peak of the valence orbital, or extend outward beyond $r_c$? As a rule of thumb, take care when the mean radius $\left\langle r\right\rangle$ of the core orbital exceeds $0.6$ times the valence $r_c$. Physically the question is “whether it overlaps the valence electrons of the neighboring atom,” and it is essential to compare with half the nearest-neighbor interatomic distance.
  2. Energetic proximity. Does that level lie within $2$–$3$ Ha of the valence levels? The smaller the gap, the more easily the level undergoes hybridization and shifts due to the chemical environment.
  3. Chemical shift. Repeat the all-electron calculation while changing the reference configuration ($\text{neutral atom}\to\text{ion}\to\text{excited configuration}$) and see how much that level moves. If it moves by several tens of mHa or more, that shell is no longer “frozen.”
  4. Is the nonlinear core correction sufficient? If the problem is only the nonlinearity of the exchange-correlation functional, NLCC (Section 15.5.6) can often rescue it. However, if hybridization or charge transfer is occurring, there is no choice but to promote the shell to the valence electrons.
  5. Testing in the target system. In the end, the reliable way is to make both versions and subject them to the tests (b) and (c). Semicore states tend to be needed more in systems with short interionic distances, such as under high pressure or in oxides.

15.9.4 The temptation to make $r_c$ too large

The most frequent failure in generating a pseudopotential is taking $r_c$ too large. The temptation is strong. If $r_c$ is made larger, the pseudo-wave function becomes as smooth as desired, $E_{\rm cut}$ drops, and the calculation becomes faster. Moreover, the eigenvalues of the reference atom are reproduced exactly by definition, so no warning appears at the atomic stage. The danger appears only when the environment is changed.

Physical Meaning: What $r_c$ governs

$r_c$ is “the size of the region in which the real thing is replaced by a fake.” The larger it is,

Practical guidelines are as follows. (i) Take $r_c$ outside the outermost node and near the maximum of the all-electron valence orbital of that $l$ (unless the node is taken inside the sphere, the pseudo-wave function cannot be made nodeless). (ii) $r_c$ should not exceed half the nearest-neighbor interatomic distance of the intended system. (iii) When in doubt, start with a smaller value, and, confirming that the logarithmic-derivative window is sufficiently wide, enlarge it only as far as the minimum needed for $E_{\rm cut}$ to fall within the acceptable range.

Example: A transferability test in practice

There is a simple test that quantifies the transferability of a pseudopotential at the atomic level. Keeping fixed the pseudopotential generated for a reference configuration (for example, the neutral ground state $3s^23p^2$), take several configurations in which only the occupation numbers are changed ($3s^23p^1$, $3s^13p^3$, $3s^23p^{1}3d^{1}$, ionized states, and so on), run self-consistent calculations for both the pseudo-atom and the all-electron atom, and compare the eigenvalues and the total-energy differences.

As a guideline for passing, the deviation of the eigenvalues should be within $1$–$5$ mHa, and the deviation of the total-energy differences between configurations (excitation energies) should be within a few mHa. If the deviation exceeds $10$ mHa, either $r_c$ is too large or a semicore state should be included. Because the error is zero for the reference configuration itself by construction, the point of this test is that you must always try a configuration different from the reference. For the same reason, the validation of solids should be carried out not only at the equilibrium lattice constant but also at compressed and expanded volumes.

15.9.5 Validation checklist

StageTestAcceptance criterionWhat to suspect on failure
AtomReproduction of the reference eigenvaluesExact agreement (by construction)Implementation bug
AtomThe pseudo-wave function has no nodesConfirm by visual inspection$r_c$ is inside the node
Atom$v^{\rm ion}\to -Z_v/r$Agreement at large distancesError in the unscreening
AtomLogarithmic derivative (all-electron vs. semilocal)Agreement within a window of $\pm 0.5$ Ha$r_c$ is too large
AtomLogarithmic derivative (semilocal vs. separable form)Same number and positions of polesGhost state, choice of $v_{\rm loc}$
AtomTransferability test with changed configurationsEigenvalue difference $\lesssim 5$ mHa$r_c$, treatment of semicore states, NLCC
SolidConvergence in $E_{\rm cut}$Total-energy difference $<1$ mHa/atomInsufficient softness
SolidBand structure vs. all-electron (FLAPW)Agreement for the occupied bands and up to several eV aboveSemicore states, insufficient $l_{\max}$
SolidLattice constant and bulk modulus$0.1\%$ for $a$, a few $\%$ for $B_0$Transferability in general
Solid$\Delta$ gauge$\lesssim 3$ meV/atomSame as above

Finally, we emphasize one point. A pseudopotential is a quantity that, once made for each element, is done with, but that single act of generation sets the upper limit on the accuracy of the entire calculation. In practice, the first choice is to use a published, validated library (SG15, PseudoDojo, GBRV, the databases bundled with each code, and so on), and if you build your own, passing all of the validation in this section is the minimum standard of good practice.

15.10 Summary

Bridge to the next chapter. With this chapter, the set of tools for solving the Kohn–Sham equations on a computer is now complete: the basis (Chapter 14), the treatment of the core (Chapter 15), and the self-consistent loop. But even once the electronic structure has been found, that alone does not determine the appearance of a material. Where do the nuclei settle? How does a crystal distort? How do atoms move at finite temperature? To answer these questions we need the force and the stress, obtained by differentiating the total energy with respect to the atomic coordinates and the lattice. The next chapter starts from the Hellmann–Feynman theorem, derives the correction for the case in which the basis moves with the atoms (the Pulay force), and proceeds to structural optimization and first-principles molecular dynamics. There it also becomes concrete how the nonlocal term of the pseudopotential built in this chapter contributes to the expression for the force.

15.11 Exercises

Exercise 15.1: Fourier transform of the 1s orbital and the required cutoff

Compute the Fourier transform $$\tilde\phi_{1s}(\bm q) = \int\dd^3 r\; e^{-i\bm q\cdot\rr}\phi_{1s}(\rr)$$ of the $1s$ orbital $\phi_{1s}(\rr) = \sqrt{Z^3/\pi}\;e^{-Zr}$ of a hydrogen-like atom, and show that $\tilde\phi_{1s}(q) \propto \left(q^2+Z^2\right)^{-2}$. Next, write the expectation value of the kinetic energy in $q$ space as $\left\langle T\right\rangle = \frac{1}{2}\int\frac{\dd^3q}{(2\pi)^3}q^2\left|\tilde\phi_{1s}\right|^2$, and find, as a function of $Z$, the value of $q_{\max}$ for which the relative error incurred by truncating this integral at $q_{\max}$ is at most $1\%$. Then evaluate $E_{\rm cut}=q_{\max}^2/2$ for silicon ($Z=14$).

Hint: To Fourier-transform a spherically symmetric function, take $\hat{\bm q}$ as the polar axis and use $\int\dd\hat\rr\,e^{-i\bm q\cdot\rr} = 4\pi\frac{\sin qr}{qr}$ (the $l=0$ term of the Rayleigh expansion); the transform then reduces to the one-dimensional integral $\tilde\phi(q) = \frac{4\pi}{q}\int_0^\infty r\sin(qr)\phi(r)\dd r$. For $\int_0^\infty r e^{-Zr}\sin(qr)\dd r$, write $\sin(qr) = \mathrm{Im}\,e^{iqr}$ and use $\int_0^\infty re^{-(Z-iq)r}\dd r = (Z-iq)^{-2}$. The kinetic-energy integral takes the form $\int_{q_{\max}}^{\infty}\frac{q^4\dd q}{(q^2+Z^2)^4}$; note that for $q\gg Z$ the integrand behaves as $q^{-4}$, so the tail is heavy.

Exercise 15.2: The $R_l$ form of the identity and invariance of the normalization

Rewrite the central identity \eqref{eq:15-normid} in terms of $R_l$ by using $u_l = rR_l$, and show that $$\frac{\partial D_l(\varepsilon, r_c)}{\partial\varepsilon} = -\frac{2}{\left[r_cR_l(r_c)\right]^2}\int_0^{r_c} r^2\left|R_l(r)\right|^2\dd r$$ Confirm that the numerator on the right-hand side is the integral of the three-dimensional radial probability density ($\int_0^{r_c}\left|R_l\right|^2r^2\dd r$). Also find how the identity is rewritten when the dimensionless logarithmic derivative $\bar D_l \equiv r\,\dfrac{\dd}{\dd r}\ln R_l(r)$ is used.

Hint: Differentiating $\ln u_l = \ln r + \ln R_l$ with respect to $r$ gives $D_l = 1/r + \dd\ln R_l/\dd r$. Since $1/r$ is a constant independent of $\varepsilon$, $\partial D_l/\partial\varepsilon = \partial(\dd\ln R_l/\dd r)/\partial\varepsilon$. In the dimensionless version, both sides are multiplied by $r_c$.

Exercise 15.3: The TM pseudopotential near the origin

(a) Starting from Eq. \eqref{eq:15-tm-vscr}, substitute $p(r) = c_0 + c_2r^2 + c_4r^4 + c_6r^6 + \cdots$ and expand $v_l^{\rm scr}(r)$ up to the $r^4$ term. Verify that the coefficients of $r^0$ and $r^2$ agree with Eq. \eqref{eq:15-tm-exp2} in the main text, and express the coefficient of $r^4$ in terms of $c_2, c_4, c_6$ and $l$.

(b) Show from the smoothness condition, Eq. \eqref{eq:15-tm-smooth}, $c_2^2 + (2l+5)c_4 = 0$, that the sign of $c_4$ is necessarily negative. What does this imply about the shape of the pseudopotential? Discuss it together with Eq. \eqref{eq:15-tm-v0}.

(c) Suppose the ansatz included an odd power $c_1 r$. How would $v_l^{\rm scr}(r)$ behave as $r\to0$? Answer by evaluating each term of Eq. \eqref{eq:15-tm-vscr}.

Hint: (b) It follows immediately from $c_2^2 \ge 0$ and $2l+5 > 0$. $c_4 < 0$ means that the potential, while satisfying $v''(0)=0$, bends downward from the $r^4$ term onward. (c) Since $p' \to c_1$ and $p''\to 2c_2$, the term $(l+1)p'/r \to (l+1)c_1/r$ diverges. This would leave behind an “apparent Coulomb divergence” as in the case $Z=0$.

Exercise 15.4: Limits of the Kleinman–Bylander form and ghost states

(a) Show directly from Eq. \eqref{eq:15-kb} that $\left\langle\phi_l\right|\hat v^{\rm KB}_{\rm nl}\left|\phi_l\right\rangle = \left\langle\phi_l\right|\delta v_l\left|\phi_l\right\rangle$ holds for the reference pseudo-wave function $\phi_l$.

(b) Now suppose that another state $\psi$ in the same $l$ channel satisfies $\left\langle\delta v_l\phi_l\middle|\psi\right\rangle = 0$. Compare $\left\langle\psi\right|\hat v^{\rm KB}_{\rm nl}\left|\psi\right\rangle$ with $\left\langle\psi\right|\delta v_l\left|\psi\right\rangle$, and state how the KB form and the semilocal form disagree. If $\delta v_l$ is repulsive everywhere ($\delta v_l > 0$), then $\left\langle\psi\right|\delta v_l\left|\psi\right\rangle > 0$, whereas the KB form returns $0$. Explain that this difference is the mechanism that allows spurious bound states (ghosts).

(c) If the choice of the local potential $v_{\rm loc}$ is changed to $v_{\rm loc} = v_{l'}$, the sign of $\delta v_l = v_l - v_{l'}$ can change. Discuss, on the basis of the argument in (b), the relation between the sign of the KB energy $E_l^{\rm KB}$ and how readily ghosts arise.

Hint: (a) The same $\left\langle\phi_l\right|\delta v_l\left|\phi_l\right\rangle$ appears in the numerator and the denominator and cancels. (b) Because the KB form has rank one, it does not act at all on the subspace orthogonal to $\left|\delta v_l\phi_l\right\rangle$. (c) When $E_l^{\rm KB}<0$, the KB term is a rank-one operator with a negative weight, and it lowers the energy variationally.

References