WorksPhysics and Astronomy
Closest Wannier functions to a given set of localized orbitals
Abstract
A non-iterative method is presented to calculate the closest Wannier functions (CWFs) to a given set of localized guiding functions, such as atomic orbitals, hybrid atomic orbitals, and molecular orbitals, based on minimization of a distance measure function. It is shown that the minimization is directly achieved by a polar decomposition of a projection matrix via singular value decomposition, making iterative calculations and complications arising from the choice of the gauge irrelevant. The disentanglement of bands is inherently addressed by introducing a smoothly varying window function and a greater number of Bloch functions, even for isolated bands. In addition to atomic and hybrid atomic orbitals, we introduce embedded molecular orbitals in molecules and bulks as the guiding functions, and demonstrate that the Wannier interpolated bands accurately reproduce the targeted conventional bands of a wide variety of systems including Si, Cu, the TTF-TCNQ molecular crystal, and a topological insulator of BiSe. We further show the usefulness of the proposed method in calculating effective atomic charges. These numerical results not only establish our proposed method as an efficient alternative for calculating WFs, but also suggest that the concept of CWFs can serve as a foundation for developing novel methods to analyze electronic structures and calculate physical properties.
Introduction
The Wannier functions (WFs) [1, 2, 3] play a central role in analyzing electronic structures of real materials and advancing electronic structure methods alongside density functional theory (DFT) [4] and the other electronic structure theories [5, 6]. A widely adopted method for calculating WFs involves maximizing their localization, which can be reformulated as minimizing the spread function characterizing the variance of WFs in real space [7]. The concept of maximal localization leads to an elegant formulation, resulting in maximally localized Wannier functions (MLWFs), and the compact representation of the Hamiltonian that follows allows us to analyze the electronic structures of real materials using a localized orbital picture. However, it is also recognized that the minimization of the spread function can often encounter local minima, particularly in large-scale systems having complicated electronic structures [3]. To overcome this challenge, methods aimed at automated high-throughput Wannierisation have been developed [8, 9, 10]. In addition, the other methods for generating (nonorthogonal) WFs have been proposed based on projection methods [11, 12, 13], which produce compact atomic like orbitals. The orthogonalization of such nonorthogonal orbitals obtained by the projection can be achieved by the Löwdin orthogonalization procedure [14, 15]. These orthogonalized orbitals are utilized as an initial guess of WFs in the minimization of the spread function to obtain MLWFs [7, 16]. Apart from the role of initial guess, it is worth noting that the Löwdin orthogonalized orbitals possess an important variational property, which in particular minimizes the sum of squared distances between the orthogonal and original nonorthogonal orbitals in the Hilbert space [17]. As long as the original nonorthogonal orbitals are localized, the localization of the Löwdin orthogonalized orbitals in real space is guaranteed in a sense of minimization of the distance.
In quantum chemistry, this property is leveraged to develop methods for generating localized orthogonal orbitals. These methods, which include the natural atomic and bond orbital method [18] and the intrinsic atomic orbital method [19], involve obtaining orthogonalized orbitals through Löwdin type orthogonalization, giving heavy weight to occupied states via the density matrix. However, in solid state physics the variational property inherent in the Löwdin orthogonalization has not been fully explored yet. A reason for this is that the Löwdin orthogonalization requires calculation of for the overlap matrix , which causes numerical instability for nearly ill-conditioned matrices. Due to the difficulty, advancements in methodologies along these lines appear to be slow. Our study aims to develop an efficient and robust method to generate the closest Wannier functions (CWFs) to a given set of localized guiding functions. We will demonstrate that exploiting the variational property leads to a versatile method that eliminates the need for iterative optimization and avoids complications related to gauge choice.
The structure of this paper is as follows: In Section II, we present the theory of calculating CWFs. Section III provides a detailed discussion on the implementation of the method. A series of benchmark calculations are presented in Section IV. Finally, in Section V, we summarize the theory of CWFs and suggest a potential role for CWFs as a foundation for developing novel methods.
Theory
Let us start by introducing Bloch functions , which can be obtained by solving the Kohn-Sham (KS) equation [20] within the density functional theory (DFT) [4], normalized as
where and are the -vector and the band index, respectively, and is the number of primitive cells in the Born-von Karman (BvK) boundary condition. We consider a projection of a localized guiding function onto the Bloch functions weighted with a window function as
with
where and are a translational lattice vector and the index of localized orbital, respectively, is the eigenvalue of the KS equation, and (). In the summation of Eq. (2), the numbers of -point and the Bloch functions to be included are and per -point, respectively. Throughout the paper we do not consider the spin dependency on the formulation for sake of simplicity, but the generalization is straightforward. The localized functions , such as atomic orbitals, hybrid orbitals, or molecular orbitals (MOs), are assumed to localize in the unit cell specified by . When the window function is taken to be unity, Eq. (2) is nothing but an expansion of with Bloch functions from the identity relation
To introduce an expansion of by the Bloch functions in a subspace, we use the following window function :
with the definition of and , where with the Boltzmann constant of and a temperature of . The window function of Eq. (4) is obtained by subtracting from the sum of two functions of . The last term is a small constant, e.g., , which is introduced to avoid the ill-conditioning of the matrix consisting of by Eq. (3) as discussed later on. As shown in Figure 1, the parameters of and () determine the range of energy where the Bloch states are included in the expansion of Eq. (2) with a large weight, and the temperature gives the degree of smearing around and in . To control the degree of smearing, we introduce the temperature of so that one can intuitively understand the degree of smearing. It is noted that the choice of the window function by Eq. (4) is not unique, and the other choices should give almost equivalent results as long as they are chosen properly. The function defined by Eq. (2) must be similar to the localized function , but they are non-orthogonal to each other in general. We now consider generating a set of closest Wannier functions (CWFs) to a set of the localized functions in a sense that the sum of the squared distance between and in the Hilbert
Figure 1. Window functions of Eq. (4) with , , and eV. and were set to be and eV, respectively, and was used.
space is minimized. As well as Eq. (2), noting that the CWFs can be expressed [3] as
and defining the residual function :
the distance measure (DM) function we minimize is given by
with
where the elements of the matrices and are given by and , respectively. The second line of Eq. (7) is obtained by considering the orthonormality of Eq. (1), and of Eq. (8) is regarded as the squared Frobenius norm of [21]. The same Bloch functions as in Eq. (2) are included in the summation of Eq. (5). The number of CWFs to be generated is per unit cell, being equivalent to the number of the guiding functions per cell, and should be smaller than or equal to to guarantee the linear independency of the subspace spanned by the CWFs, resulting in size of for the matrices and . Assuming , where is of size , the CWFs are ensured to form a set of orthonormal functions. Under this constraint, we consider the optimization of the DM function . Furthermore, the matrix is regarded as a part of a unitary matrix of size , and will be referred to as a partial unitary matrix in subsequent discussions.
The minimum of the DM function of Eq. (7) is obtained by choosing as which is calculated by the polar decomposition of , where and are unitary and hermitian, respectively [22]. Let us prove the statement below. The polar decomposition of is obtained via the singular value decomposition (SVD) of as
where we dropped the dependency on for simplicity of the notation, and hereafter we will denote the dependency if necessary. and are the left and right singular matrices in size of and , respectively, and is the singular value diagonal matrix in size of . Note that and . It is worth mentioning that and are partial unitary matrices, and hold () and (), and that is a full unitary matrix holding (). We evaluate of Eq. (8) for each with both the matrix obtained by the polar decomposition and an arbitrary partial unitary matrix , and calculate the difference as
with
The second line of Eq. (10) is derived by using the polar decomposition of and , and and in the third line are diagonal elements of and , respectively. The upper bound of the diagonal elements of the hermitian matrix is found to be unity, since the matrix consists of the sum of the product of partial unitary matrices of () and (). Another proof for the upper bound is also given based on the Cauchy-Schwarz inequality in the appendix. By considering the upper bound of the diagonal elements of and , the third line of Eq. (10) leads to the following inequality:
The equality of Eq. (12) holds if . If some of is zero, the corresponding in Eq. (10) can be arbitrarily chosen. So, we see from Eq. (11) that is not uniquely determined. If all the singular values of are positive, all the s should be unity when . The uniqueness of the solution can be confirmed as follows: Since the matrix consists of the products of the partial unitary matrices as discussed above, the case that all the diagonal elements are unity happens when
which is derived by equating and multiplying and from the left and right of the equation, respectively. By noting again that and in Eq. (13) are partial unitary matrices, it is found that Eq. (13) holds if and only if . Thus, we have proven the statement that the minimum of the DM function of Eq. (7) is uniquely determined when as long as all the singular values of are positive, since of Eq. (7) consists of the sum of over . The uniqueness of itself is related to the defect of the SVD for the matrix of Eq. (3). If has positive singular values which are non-degenerate, the SVD is uniquely determined except for the non-unique phases in and . Even if there are degenerate singular values, the matrix is invariant, since the freedom of the unitary transformation for the degenerate left and right singular vectors is canceled out as with . Further, noting that the non-unique phases in and are canceled out when the matrix is computed as , we conclude that is uniquely determined if has the positive singular values. The violation from the positive definiteness of the singular values can be avoided by the small constant of in Eq. (4). On the other hand, if in Eq. (4) is set to be 0 and a narrow window, including fewer than eigenstates for a given , is used with a small , the matrix has positive singular values, where . In this case, a subspace of the dimension is arbitrary chosen to form and of the dimension of in addition to the subspace of the dimension, which breaks the symmetry of CWFs. The situation can be avoided by introducing a small constant in the window function of Eq. (4). The simple treatment restores the symmetry of CWFs, allowing us to calculate symmetry preserving CWFs for a wide variety of choices in the energy range of the window function. It is also noted that the non-unique phase of the Bloch functions is canceled out via the polar decomposition of and Eq. (5). Thus, we see that the proposed method is free from complications arising from the choice of gauge.
Using Eqs. (8) and (9), the minimum of the DM function at is given by
where is a singular value of the matrix . From Eq. (14), we find that the mean squared distance between and is related to the deviation of from unity.
The proposed method based on the polar decomposition of is closely related to the Löwdin orthogonalization [14] as shown below. The Fourier transform of the overlap integrals for is given by
which is obtained by noting that . By writing Eq. (15) as in a matrix form, and using Eq. (9), we have the following relation:
Comparing Eq. (16) with , one obtains a relation . If is invertible, the matrix is given with Eq. (9) by
The matrix obtained by Eq. (17) is exactly equivalent to that by the Löwdin orthogonalization [14], and the closest property of the Löwdin orthogonalized orbitals to a given set of orbitals was proven in Ref. [17]. On the other hand, the proposed method does not require the calculation of , and can be applied in a numerical stable manner even to the case that the matrix is nearly ill-conditioned. The definition of by Eq. (3) with the window function allows us to calculate CWFs in various respects, e.g., heavily weighting to occupied states and disentangling of localized states embedded in the wider bands as demonstrated in § 4. In this sense, the method we propose can be regarded as a generalization of the Löwdin orthogonalization.
The disentanglement of bands can be easily performed by properly selecting the window function of Eq. (3). Since the Bloch functions per -point are included in Eqs. (2) and (5), it should be emphasized that the proposed method always disentangles states to generate Wannier functions. A couple of examples will be shown in § 4, including valence and low-lying conduction bands for the diamond Si and narrow -bands embedded in the wider -band for the face centered cubic (FCC) Cu.
Once the -dependent are obtained by the polar decomposition, tight-binding (TB) parameters are calculated as expectation values of the KS Hamiltonian by summing contributions over and as
where is the matrix element of . Like with MLWFs, the TB parameters can be used for the Wannier interpolation in calculations of band structures and physical quantities.
The computational procedure to generate the CWFs is summarized as follows:
Determining , , and in Eq. (4) by checking the band dispersion of a system of interest. The parameters should be chosen properly so that the targeted eigenstates can be included.
Choosing a set of localized orbitals . Atomic orbitals, hybrid orbitals, and MOs might be possible choices. Depending on the symmetry of the targeted eigenstates, a proper set of localized orbitals needs to be chosen, e.g., -orbitals need to be employed in the generation of CWFs for the -bands in FCC Cu as shown later on.
Calculation of by Eq. (3). The calculation of the overlap depends on the implementation of the KS method.
Performing the SVD of . A proper numerical library might be used.
Calculation of . Using the left and right singular matrices, and , of , is calculated as .
Calculations of the CWFs and TB parameters. The CWFs can be calculated using Eq. (5) with obtained by the step 5. The calculation is expressed by the sum of the matrix-matrix product over . Also, the TB parameters are obtained by Eq. (18).
It should be stressed that the minimization of can be efficiently performed in a non-iterative manner by the steps 1 to 6 using the polar decomposition via the SVD. The computational cost of each step is estimated to be , , , or for the step 3, 4, 5, or 6, respectively, where is the number of basis functions to expand the KS orbitals. If the localized basis functions are used, the computational cost of the step 3 becomes .
For isolated systems, the Brillouin zone sampling is limited to only the point. No modification of the proposed method is needed to calculate the CWFs.
The theoretical framework we have discussed so far is general for any implementation of the DFT-KS method. However, the choice of the localized functions in Eq. (3) may depend on the implementation. So, we will discuss how the localized functions can be properly generated in § 3.
Implementation
General
We have implemented the proposed method into the OpenMX DFT software package [23, 24, 25] which is based on norm-conserving pseudopotentials (PPs) [26, 27] and optimized pseudo-atomic orbitals (PAOs) [28, 29] as basis set. All the benchmark calculations were performed with a computational condition of a production level. The basis functions used are listed in Table I. In the abbreviation of basis functions such as H7.0-s2p2d1, H stands for the atomic symbol, 7.0 the cutoff radius (Bohr) in the generation by the confinement scheme [28, 29], and s2p2d1 means the employment of two, two, and one optimized radial functions for the -, -, and -orbitals, respectively. The radial functions were optimized by a variational optimization method [28]. These basis functions we used can be regarded as at least double zeta plus double polarization basis sets if we follow the terminology of Gaussian or Slater-type basis functions. Valence states included in the PPs are listed in Table I. All the PPs and PAOs we used in the study were taken from the database (2019) in the OpenMX website [23], which were benchmarked by the delta gauge method [30]. Real space grid techniques were used for the numerical integrations and the solution of the Poisson equation using fast Fourier transform (FFT) with the energy cutoff of 250 to 500 Ryd [24]. We used a generalized gradient approximation (GGA) proposed by Perdew, Burke, and Ernzerhof to the exchange-correlation functional [31]. An electronic temperature of 300 K was used to count the number of electrons by the Fermi-Dirac function for all the systems we considered. For all the calculations, was used in the window function of Eq. (4), and was set to be equilavent to the number of basis functions in both the summation of Eqs. (2) and (5).
| Element | Basis functions | Valence states in PP |
| H | H7.0-s2p2d1 | |
| C | C6.0-s3p2d2 | , |
| N | N6.0-s3p2d2 | , |
| Na | *Na9.0-s3p3d2f2 | , , |
| Si | Si7.0-s2p2d2f1 | , |
| Cl | *Cl9.0-s3p3d2f2 | , |
| S | S7.0-s3p2d2f1 | , |
| Cu | Cu6.0-s3p3d3f1 | , , , |
| Se | Se7.0-s3p2d2 | , |
| Bi | Bi8.0-s3p2d2f1 | , , |
Table I. Basis functions and valence states included in PPs. *For the calculations of atomic charges, the basis functions listed in Table III were used.
Choice of Guiding Functions
Depending on the targeted eigenstates in the window function of Eq. (4), one can choose either atomic orbitals, hybrid atomic orbitals, or MOs as the guiding functions in Eq. (3). In this subsection we discuss the three kinds of the localized guiding functions , i.e., atomic orbitals, hybrid atomic orbitals, and embedded MOs in molecules and bulks, and how they can be generated in our implementation.
In our implementation, the Bloch function is expanded by PAOs [28, 29] as
where and are atomic and orbital indices, and is a linear combination of PAO (LCPAO) coefficient. Also note that , where is the position of atom . We use PAOs as the guiding functions of atomic orbitals, corresponding to valence orbitals or specific orbitals such as localized -orbitals in a narrow energy window.
The choice of the atomic orbitals gives a good guiding function, however, the resultant CWFs may not recover the symmetry of CWFs respecting the bond direction to the neighboring atoms unlike hybrid atomic orbitals due to the closest property of CWFs. In this case, it would be better to use the hybrid atomic orbitals rather than the atomic orbitals as explained below. Let us introduce a projection operator for the occupied space by
where is the Fermi-Dirac function. With the projection operator, the density matrix is calculated by
where is the dual orbital defined by
holding the following orthonormality:
By setting and in Eq. (21), and diagonalizing the diagonal block element consisting of , which is associated with selected atomic orbitals on the atomic site , we obtain the hybrid atomic orbitals respecting the symmetry of the bond direction to the neighboring atoms. We employ the hybrid atomic orbitals as the localized functions in our implementation. When the same atomic orbitals are chosen to form the diagonal block element as for the case of atomic orbitals , the resultant CWFs span the same subspace in the Hilbert space.
For some systems the electronic structures can be rather easily understood by employing MOs as building blocks. A molecular crystal is such a case, where the eigenstates near the chemical potential can be approximately constructed by a linear combination of the MOs of constituting molecules. Another example is the bond in molecules and bulks. The bond between two atoms embedded in the system might be analyzed by MOs associated with the two atoms. Here we show how embedded MOs in molecules and bulks can be calculated in a simple procedure. Let us start by noting that using Eq. (20) and assuming that the Bloch function is expressed by Eq. (19) the total number of electrons for a spin degenerate case is given by [32]
In the second line of Eq. (24) we used the following identity operator:
Since with , it is enough to consider . We utilize the formula for to calculate embedded MOs in molecules and bulks, and rewrite it the sum of partial traces as
where is the index of group including PAOs on grouped atoms, e.g., a set of PAOs on a molecule. The notation of stands for a subset of PAOs as
where PAOs on all the atoms in the group are included in the subset. The notation of is the counterpart for the dual orbitals. Using the identity operator of Eq. (25), in Eq. (26) is given by
with definition of block elements:
We now introduce the embedded MOs orbitals in molecules and bulks by a right-singular vectors of . Since the elements of are real in case of the collinear DFT, the right-singular vectors can be obtained with real components. However, the SVD of tends to produce the right-singular vectors with complex components, which results in the complex CWFs making analysis complicated. To obtain the real right-singular vectors, we perform the eigendecomposition of as
where is the diagonal matrix consisting of the eigenvalues of , and is a unitary matrix consisting of the corresponding eigenvectors . By noting that the SVD of is given by , we see that the right-singular vectors can be obtained by diagonalizing as . The square roots of the eigenvalues of are singular values of , and can be approximately regarded as the occupation of the corresponding eigenvector . If is a real matrix, obtained by the diagonalization of is guaranteed to be a real unitary matrix. We further normalize the eigenvector by considering the overlap integrals of Eq. (30) as
and calculate an expectation value of the KS Hamiltonian with as
After are ordered based on the expectation values, we employ selected ones among , e.g., ones near the chemical potential, as the guiding functions in Eq. (3) by monitoring the expectation values and the corresponding singular values. They are what we call embedded MOs in molecules and bulks. As demonstrated in Section IV, work as the good guiding functions to capture the electronic structure of a molecular crystal.
Numerical Results
Wannier Interpolated Bands
We present four numerical examples to demonstrate the broad applicability of the proposed method across various systems.
In Figure 2 (a) and (b), the interpolated bands of Si in the diamond structure, calculated by the TB Hamiltonian derived from CWFs, are compared with those by the conventional calculation. The hybrid atomic orbitals consisting of valence minimal orbitals, which are one - and a set of -, -, and -orbitals per Si, were used as the guiding functions . For the window function of Eq. (4) we use -15.0 and 0.0, relative to the chemical potential, in eV for and , respectively, which covers the energy range of valence bands. On the other hand, two of 0.01 and 3.0 eV were used to check how conduction bands are reproduced depending on the effect of smearing. As clearly seen, the two cases well reproduce the valence bands, and the conduction bands are also reproduced well in the case of eV. Evaluating the DM function per CWF using Eq. (14), we obtain values of 0.571 and 0.444 for of 0.01 and 3.0 eV, respectively. For eV, the first four singular values at each point are close to 1, while the remaining four approach . Conversely, for eV, the eight singular values at each point distribute ranging from to . These differences in the distribution of singular values explain why the value of the DM function for eV is larger than that for eV. One of the obtained CWFs is shown in Figure 3 (a), which represents a -like CWF. In case of eV, the conduction bands are treated less importantly due to heavily weighting to the valence bands, resulting in the poor reproduction of the conduction bands. At first glance, one may consider that this is an undesirable feature in such a treatment. However, the feature enables us to generate the minimal atomic-like orthogonal orbitals, which well span the subspace by the valence bands, and to calculate an effective charge allocated to each atom using the minimal atomic-like orthogonal orbitals in an unbiased way. We will demonstrate the calculation of the effective atomic charges and stress the usefulness of the method later on.
Figure 2. Interpolated bands (red circles) of silicon in the diamond structure, calculated by the TB Hamiltonian derived from CWFs with (a) and (b) eV in the window function of Eq. (4), respectively. and relative to the chemical potential were set to be and eV, respectively. The solid line is the original one directly calculated by the conventional scheme. The number of k-points for the Brillouin zone sampling was . The experimental lattice constant of Å was used. The values of the DM function per CWF are and for (a) and (b), respectively.

Figure 3. CWFs for (a) Si, (b) Cu, (c) TTF in TTF-TCNQ, and (d) TCNQ in TTF-TCNQ. In all the cases, isovalues of (orange: , blue: ) are used for drawing the isosurfaces using OpenMX Viewer [33]. The computational conditions for (a), (b), (c), and (d) are the same as those in Figure 2 (b), Figure 4 (a), Figure 5 (b), and Figure 5 (b), respectively.
The disentanglement of bands in metals is demonstrated for Cu in the FCC structure as shown in Figure 4 (a) and (b). By selecting the parameters and , so that the bands are included, and only five -orbitals as the guiding functions , the five -bands are reproduced as shown in Figure 4 (a). We see that the -bands are properly disentangled from the dispersive band, and one of the obtained CWFs preserves the shape of -orbital as shown in Figure 3 (b). When -, -, and -orbitals are used as the guiding functions , a broad range of bands are reproduced as shown in Figure 4 (b). Since our PP of Cu includes , , , and states, the
Figure 4. Interpolated bands (red circles) of copper in the FCC structure, calculated by the TB Hamiltonian derived from CWFs with (a) , eV, eV, and hybrid 3d-orbitals as , and (b) , eV, eV, and hybrid 3d-, 4s-, 4p-orbitals as . The solid line is the original one directly calculated by the conventional scheme. The number of k-points for the Brillouin zone sampling was . The experimental lattice constant of 3.61 Å was used. The values of the DM function per CWF are 0.081 and 0.211 for (a) and (b), respectively.
the original band structure has the deep - and -bands. We set the parameters in the window function so as to discard the - and -bands, and use the -, -, and -orbitals, not - and -orbitals, as the guiding functions . So, the - and -bands are not included in the interpolated bands (not shown). The examples show that the CWFs can be flexibly and easily constructed in accordance with the purpose of study without numerical difficulties.
The interpolated bands for a molecular crystal, consisting of tetrathiafulvalene (TTF) and tetracyanoquinodimethane (TCNQ), are shown in Figure 5 (a) and (b). By employing hybrid atomic orbitals as the guiding functions , the wide range of bands are reproduced as

Figure 5. Interpolated bands, red lines in (a) and red circles in (b), of TTF-TCNQ, calculated by the TB Hamiltonian derived from CWFs with (a) and eV relative to the chemical potential, eV, and hybrid atomic orbitals as , and (b) and eV relative to the chemical potential, eV, and the 26th MO and the 37th MO for TTF and TCNQ as . The solid line is the original one directly calculated by the conventional scheme. The number of k-points for the Brillouin zone sampling was . An experimental crystal structure was used [34]. The values of the DM function per CWF are 0.441 and 0.022 for (a) and (b), respectively.
| TTF | TCNQ | ||||
| index | index | ||||
| 23 | 34 | ||||
| 24 | 35 | ||||
| 25 | 36 | ||||
| 26 | 37 | ||||
| 27 | 38 | ||||
| 28 | 39 |
Table 2. Expectation values (eV) of the KS Hamiltonian calculated by Eq. (33), which is relative to the chemical potential, and singular values of for embedded MOs in the TTF-TCNQ molecular crystal.
shown in Figure 5 (a). On the other hand, as shown in Figure 5 (b), only four bands near the chemical potential are reproduced using the embedded MOs in the bulk as the guiding functions . The MOs were calculated by grouping the TTF and TCNQ molecules separately as explained in § 3 B. The expectation values calculated by Eq. (33) and the singular values of are listed in Table II. It can be seen that the singular values largely change from to and from to for TTF and TCNQ, respectively. So, the 26th MO and the 37th MO for TTF and TCNQ, respectively, were used as the guiding functions . Since there are two TTF molecules and two TCNQ molecules in the unit cell, we have the four embedded MOs as , resulting in the four bands. In Figure 3 (c) and (d) two of the resultant CWFs are shown, which localize in TTF and TCNQ molecules, respectively, as expected. The value of the DM function per CWF is found to be 0.022, which implies that the guiding MOs are very close to the resultant CWFs. The example demonstrates that the proposed method provides a direct way to calculate CWFs for targeted bands in molecular crystals.
We extend the proposed method to the non-collinear DFT [36, 37] with spin-orbit interaction (SOI) [27]. The KS orbitals are expressed by two-component spinor, and the SOI is introduced by fully relativistic -dependent PPs [23]. The theoretical framework is readily extended to the non-collinear DFT with the SOI without any difficulty. However, it should be noted that the hybrid atomic orbitals and embedded MOs in molecules and bulks as
the guiding functions can be complex functions in the case. In Figure 6 (a) and (b), we show the Wannier interpolated bands of BiSe which is known to be a topological insulator when the SOI is included in the DFT calculation. For the cases without and with the SOI, corresponding to Figure 6 (a) and (b), respectively, it is confirmed that the interpolated bands accurately reproduce the original ones regardless of existence of the band inversion, demonstrating a wide variety of applicability of the proposed method.

Figure 6. Interpolated bands (red circles) of BiSe (a) without and (b) with the spin-orbit interaction, calculated by the TB Hamiltonian derived from CWFs. The solid line is the original ones directly calculated by the conventional scheme. and eV relative to the chemical potential, eV, and hybrid Bi 6-orbitals and Se 4-orbitals as , were used in both the calculations. The number of -points for the Brillouin zone sampling was . An experimental crystal structure was used [35]. The values of the DM function per CWF are 0.163 and 0.184 for (a) and (b), respectively.
Effective Atomic Charges
From the construction, one can calculate CWFs closest to (hybrid) valence atomic orbitals, while fully respecting the occupied states. The CWFs provide us a unique way to evaluate effective atomic charges. Since the CWFs are a set of orthonormal functions, the effective atomic charge of atom is easily calculated without arbitrariness as
where is the projection operator defined by Eq. (20), and is the number of valence electrons in the PP of atom . Though the summation over orbitals belonging to atom is taken into account in Eq. (34), one can analyze the orbital resolved charges as well. Table III shows effective atomic charges in a HCN molecule and the NaCl bulk, calculated by Eq. (34) and the Mulliken population analysis [38]. Both the systems are known to be notorious cases because of the difficulty in calculating the effective charges [19]. We see that the effective charges by the CWFs quickly converge as a function of basis functions, while those by the Mulliken population are highly dependent on the choice of the basis function. The effective atomic charges obtained from the CWFs could serve as a valuable tool for analyzing electronic structures in a manner related to the approach discussed in Ref. [19]. Further investigation in this direction will be conducted in future studies.
| HCN | CWF | MP | |||||
| Basis | H | C | N | H | C | N | |
| A6.0-s1p1 | 0.077 | -0.052 | -0.025 | 0.384 | -0.164 | -0.221 | |
| A6.0-s2p2 | 0.069 | 0.003 | -0.073 | -0.070 | 0.321 | -0.252 | |
| A6.0-s2p2d1 | 0.066 | 0.009 | -0.076 | -0.008 | 0.393 | -0.385 | |
| A6.0-s3p3d2 | 0.066 | 0.008 | -0.074 | 0.110 | 0.298 | -0.408 | |
| A6.0-s3p3d2f2 | 0.066 | 0.008 | -0.074 | 0.167 | 0.297 | -0.464 | |
| NaCl | CWF | MP | |||||
| Basis | Na | Cl | Na | Cl | |||
| A9.0-s2p1 | 0.391 | -0.391 | 0.716 | -0.716 | |||
| A9.0-s3p2 | 0.422 | -0.422 | 0.595 | -0.595 | |||
| A9.0-s3p3d2 | 0.421 | -0.421 | 0.158 | -0.158 | |||
| A9.0-s3p3d2f2 | 0.421 | -0.421 | -0.062 | 0.062 |
Table III. Effective atomic charges in a HCN molecule and the NaCl bulk, calculated by the proposed method (CWF) and Mulliken population analysis (MP) with a variety of basis functions, where represents the constituting atoms. Hybrid atomic valence orbitals are used as the guiding functions . For the window function, and eV for HCN and and eV for NaCl, relative to the chemical potential, and eV are used. The number of -points for the Brillouin zone sampling is for the NaCl bulk with the lattice constant of 5.63 Å.
Conclusions
We presented a non-iterative method to calculate the closest Wannier functions (CWFs) to a given set of localized guiding functions such as atomic orbitals, hybrid atomic orbitals, and molecular orbitals (MOs). We defined the distance measure (DM) function by the sum of the squared distance between the projection functions and Wannier functions in the Hilbert space, and considered minimizing the DM function. It was shown that the minimization of the DM function is achieved by the polar decomposition of the projection matrix
with a window function via the singular value decomposition (SVD) in a non-iterative manner. The CWFs can be uniquely constructed as long as the projection matrix is positive definite. It was also shown that the method is free from selective choice of the gauge. The disentanglement of bands is naturally taken into account by introducing a smoothly varying window function, and including Bloch functions to generate CWFs, where . Even for isolated bands, the method always performs the disentanglement of bands without any difficulty. We have implemented the proposed method into the OpenMX code, which is based on the density functional theory (DFT), numerical pseudo-atomic orbitals (PAOs), and norm-conserving pseudopotentials (PPs), and introduced three types of guiding functions, i.e., atomic orbitals, hybrid atomic orbitals, and embedded MOs in molecules and bulks. The first two are easily employed from the PAOs. For the last one, we developed a method to calculate embedded MOs in molecules and bulks, which focuses on a partial trace formula of the projection operator for the occupied space and applies SVD to the partial matrix for the projection operator. The interpolated bands by tight-binding (TB) models derived from the CWFs reproduce well the targeted conventional bands of a wide variety of systems including Si, Cu, the TTF-TCNQ molecular crystal, and a topological insulator of BiSe. These successful reproduction of targeted bands clearly demonstrates a wide variety of applicability of the proposed method. We further show the usefulness of the proposed method in calculating effective atomic charges, implying that the CWFs closest to atomic orbitals can be used as a measure to analyze electronic structures from one system to the others. Thus, we conclude that the proposed method is an alternative way in efficiently calculating WFs, and the concept of CWFs will provide a basis for development of novel methods of analyzing electronic structures and calculating physical properties.
Acknowledgments
The author wishes to express gratitude to Prof. Yoshiaki Sugimoto for inspiring the development of CWFs through collaborative research. Thanks are also extended to Mr. Ryotaro Koshoji for his insightful comments on the theoretical aspect. Part of the computation in this study was carried out using the computational facility of the Institute for Solid State Physics at the University of Tokyo.
The upper bound of the diagonal elements of the matrix
A proof for the upper bound of the diagonal elements of the matrix is given in the appendix. Note that and in Eq. (11) are partial unitary matrices in size of . Since is hermitian, its eigenvalues are real. Let be an eigenvalue of and be the corresponding eigenvector. Then, the following equation holds:
Defining and , and operating from the left side of Eq. (35), we have
Noting , and using the Cauchy-Schwarz inequality , we obtain
Since , combining Eq. (36) and Eq. (37) results in
Considering , the upper bound of the eigenvalues of is found to be
Noting that the matrix can be written by and as
the diagonal elements of the matrix is given by
where is the -th element in the vector . Since the upper bound of is unity, and forms a unitary matrix, we obtain the upper bound of the diagonal elements of the matrix as
References
- [1]G.H. Wannier, Phys. Rev. 52, 191 (1937).
- [2]W. Kohn, Phys. Rev. 115, 809 (1959).
- [3]N. Marzari, A.A. Mostofi, J.R. Yates, I. Souza, and D. Vanderbilt, Rev. Mod. Phys. 84, 1419 (2012).
- [4]P. Hohenberg and W. Kohn, Phys. Rev. 136, B864 (1964).
- [5]D.R. Hamann and D. Vanderbilt, Phys. Rev. B 79, 045109 (2009).
- [6]F. Lechermann, A. Georges, A. Poteryaev, S. Biermann, M. Posternak, A. Yamasaki, and O.K. Andersen, Phys. Rev. B 74, 125120 (2006).
- [7]N. Marzari and D. Vanderbilt, Phys. Rev. B 56, 12847 (1997).
- [8]V. Vitale, G. Pizzi, A. Marrazzo, J.R. Yates, N. Marzari, and A.A. Mostofi, npj Computational Materials 6, 66 (2020).
- [9]A. Damle and L. Lin, Multiscale Model. Simul. 16, 1392 (2018).
- [10]J. Qiao, G. Pizzi, and N. Marzari, arXiv:2306.00678.DOI
- [11]W. Ku, H. Rosner, W.E. Pickett, and R.T. Scalettar, Phys. Rev. Lett. 89, 167204 (2002).
- [12]W.C. Lu, C.Z. Wang, T.L. Chan, K. Ruedenberg, and K.M. Ho, Phys. Rev. B 70, 041101(R) (2004).
- [13]X. Qian, J. Li, L. Qi, C.-Z. Wang, T.-L. Chan, Y.-X. Yao, K.-M. Ho, and S. Yip, Phys. Rev. B 78, 245112 (2008).
- [14]P.-O. Löwdin, J. Chem. Phys. 18, 365 (1950).
- [15]J. Des Cloizeaux, Phys. Rev. 135, A685 (1964).
- [16]A.A. Mostofi, J.R. Yates, Y.-S. Lee, I. Souza, D. Vanderbilt, and N. Marzari, Comput. Phys. Commun. 178, 685 (2008).
- [17]B.C. Carlson and J.M. Keller, Phys. Rev. 105, 102 (1957).
- [18]A.E. Reed, L.A. Curtiss, and F. Weinhold, Chem. Rev. 88, 899 (1988).
- [19]G. Knizia, J. Chem. Theory Comput. 9, 4834 (2013).
- [20]W. Kohn and L. J. Sham, Phys. Rev. 140, A1133 (1965).
- [21]Matrix Computations (3rd ed.). Baltimore: The Johns Hopkins University Press (1996), G. Golub and C.F Van Loan.
- [22]K. Fan and A. J. Hoffman, Proc. Amer. Math. Soc. 6, 111 (1955).
- [23]The code, OpenMX, pseudo-atomic basis functions, and pseudopotentials are available under terms of the GNU-GPL on a web site (http://www.openmx-square.org/).
- [24]T. Ozaki and H. Kino, Phys. Rev. B 72, 045121 (2005).
- [25]T.V.T. Duy and T. Ozaki, Comput. Phys. Commun. 185, 777 (2014).
- [26]I. Morrison, D.M. Bylander, L. Kleinman, Phys. Rev. B 47, 6728 (1993).
- [27]G. Theuerich and N.A. Hill, Phys. Rev. B 64, 073106 (2001).
- [28]T. Ozaki, Phys. Rev. B 67, 155108, (2003).
- [29]T. Ozaki and H. Kino, Phys. Rev. B 69, 195113 (2004).
- [30]K. Lejaeghere, G. Bihlmayer, T. Björkman, P. Blaha, S. Blügel, V. Blum, D. Caliste, I.E. Castelli, S.J. Clark, A. Dal Corso, S. de Gironcoli, T. Deutsch, J.K. Dewhurst, I. Di Marco, C. Draxl, M. Dulak, O. Eriksson, J.A. Flores-Livas, K.F. Garrity, L. Genovese, P. Giannozzi, M. Giantomassi, S. Goedecker, X. Gonze, O. Grånäs, E.K. Gross, A. Gulans, F. Gygi, D.R. Hamann, P.J. Hasnip, N.A. Holzwarth, D. Iuşan, D.B. Jochym, F. Jollet, D. Jones, G. Kresse, K. Koepperik, E. Küçükbenli, Y.O. Kvashnin, I.L. Locht, S. Lubeck, M. Marsman, N. Marzari, U. Nitzsche, L. Nordström, T. Ozaki, L. Paulatto, C.J. Pickard, W. Poelmans, M.I. Probert, K. Refson, M. Richter, G.M. Rignanese, S. Saha, M. Scheffler, M. Schlipf, K. Schwarz, S. Sharma, F. Tavazza, P. Thunstöm, A. Tkatchenko, M. Torrent, D. Vanderbilt, M.J. van Setten, V. Van Speybroeck, J.M. Wills, J.R. Yates, G.X. Zhang, and S. Cottinier, Science 351, aad3000 (2016).
- [31]J.P. Perdew, K. Burke, and M. Ernzerhof, Phys. Rev. Lett. 77, 3865 (1996).
- [32]T. Ozaki, M. Fukuda, and G. Jiang, Phys. Rev. B 98, 245137 (2018).
- [33]Y.-T. Lee and T. Ozaki, J. Mol. Graph. Model. 89, 192 (2019); https://www.openmx-square.org/viewer/
- [34]T.J. Kistenmacher, T.E. Phillips, and D.O. Cowan, Acta Cryst. B30, 763 (1974).
- [35]S. Nakajima, J. Phys. Chem. Solids 24, 479 (1963).
- [36]U. von Barth and L. Hedin, J. Phys. C: Solid State Phys. 5, 1629 (1972).
- [37]J. Kübler, K.-H. Hock, J. Sticht, and A. R. Williams, J. Phys. F: Met. Phys. 18, 469 (1988).
- [38]R.S. Mulliken, J. Chem. Phys. 23, 1833 (1955).


