Skip to content

Menu

WorksPhysics and Astronomy

Gapped-filtering for efficient Chebyshev expansion of the density projection operator

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_x6bkm572. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

We develop the gapped-filtering method, whereby a short Chebyshev expansion accurately represents the density-matrix operator. The method optimizes the Chebyshev coefficients to give the correct density matrix at all energies except within the gapped region where there are no eigenstates. Gapped filtering reduces the number of required terms in the Chebyshev expansion compared to traditional expansion methods, as long as one knows or can determine efficiently the HOMO and LUMO positions. The reduction is especially noticeable (factors of 2-3) when high accuracy is sought. To exemplify the method, we use gapped-filtering to increase the efficiency of stochastic-GW calculations.

Introduction

A fundamental ingredient in many electronic structure and dynamics methodologies is the polynomial expansion of the density matrix operator. Such methods include deterministic approaches to DFT that avoid the direct diagonalization of the Hamiltonian matrix, [1, 2] or allow for fast diagonalization of the Kohn-Sham Hamiltonian [3] when the Hamiltonian is a sparse matrix. These polynomial expansions are also the primary ingredient in stochastic quantum chemistry methods, [4] including stochastic DFT [5, 6, 7] and beyond-DFT approaches. The latter include the linear-scaling stochastic-GW method (sGW) [8] which calculates the quasiparticle (QP) energy as a perturbative correction to the DFT eigenvalue [9, 10, 11, 12], as well as, e.g., stochastic-MP2 [13] stochastic Bethe Salpeter Equation [14] and stochastic Time-Dependent DFT (TDDFT) [15].

In the usual Chebyshev approach [16, 17, 18] the coefficients in the polynomial expansion of the density matrix ρ^\hat{\rho} are obtained analytically by requiring that the scalar function Θ(μ−E)\Theta(\mu- E) converges uniformly as a function of EE [17, 18]. In practice, to converge the expansion one usually replaces the sharp Heaviside function with a smoothed one. However, for most systems the gap is small relative to the full energy range of the Hamiltonian operator, so even a smoothed Heaviside function would require typically thousands of terms for convergence.

Here we suggest an alternative to the usual determination of the Chebyshev coefficients. For any desired number of coefficients, we only require that the Chebyshev expansion be correct for energies outside the gap. The logic is that it is immaterial what the values of the polynomial expansion are inside the gap since there are no eigenstates there. Within the gap the filter could have any form, including Gibbs oscillations, but they would be irrelevant to the final density matrix.

In Section II we develop the idea in detail and give a simple prescription, which we label gapped-filtering, for obtaining the Chebyshev coefficients. Numerically, gapped-filtering carries negligible overhead. One just specifies the desired length of the Chebyshev expansion, labeled NchbN_{\mathrm{chb}}, and then just inverts a single matrix of rank Nchb+1N_{\mathrm{chb}} + 1.

In Section III we numerically study gapped-filtering and show that the method converges rapidly with NchbN_{\mathrm{chb}}, which is the only parameter in the approach. The method is more efficient than traditional smoothed filters, where one needs to converge with both a smoothness parameter and NchbN_{\mathrm{chb}}. When high accuracy is required, gapped filtering is 2-3 times faster than the traditional approaches.

Section IV presents an application of the method to stochastic-GW, verifying this significant reduction in a large scale calculation. Conclusions are discussed in Section V.

Preprint submitted to Elsevier

Methodology

Gapped-filtering

Ignoring spin, the density matrix, i.e., the projection operator to the occupied manifold, is formally:

ρ^=∑i=1Nocc∣ϕi⟩⟨ϕi∣(1)\hat{\rho} = \sum_{i=1}^{N_{\mathrm{occ}}} |\phi_i\rangle\langle\phi_i| \tag*{(1)}

where {ϕi}\{\phi_i\} are the eigenvectors of the 1-body Hamiltonian operator H^\hat{H} and NoccN_{\mathrm{occ}} is the number of occupied states. We only consider here systems with a gap where the physical temperature is tiny compared to the gap, i.e., a zero-temperature description.

Even if all eigenstates and eigenvalues are known, the memory required to store the eigenstates could be enormous for giant systems with tens of thousands of electrons. In those cases, it is better to use a polynomial expansion. Thus, the density matrix is equivalent to a Heaviside function of energy centered within the bandgap,

ρ^=Θ(μ−H^),(2)\hat{\rho} = \Theta(\mu-\hat{H}), \tag*{(2)}

where μ\mu is the chemical potential. To converge the expansion, a smoothed complementary-error function is typically used:

Θ(μ−H^)≃Θ^β≡12erfc⁡(β(μ−H^)),(3)\Theta(\mu-\hat{H}) \simeq\hat{\Theta}_{\beta} \equiv\sqrt{\frac{1}{2}\operatorname{erfc}\left(\beta(\mu-\hat{H})\right)}, \tag*{(3)}

where β\beta is an inverse-temperature-like parameter that determines the sharpness of the function [1, 2, 3].

Note that the square root stems from the fact that in most cases, especially for stochastic quantum chemistry applications, the results of applying the filter are then squared to give the density or Green’s function. Throughout the paper, the analytical filters always refer to this square-root erfc form (abbreviated as sqrt-erfc). Further, we verified that gapped-filtering does analogously well when compared with an erfc filter without a square-root.

To apply the filter, the Chebyshev polynomial expansion is traditionally used:

Θ(μ−H^)≃∑n=0NchbanTn(H~),(4)\Theta(\mu-\hat{H}) \simeq\sum_{n=0}^{N_{\mathrm{chb}}} a_n T_n(\tilde{H}), \tag*{(4)}

where the expansion coefficients, ana_n, depend on μ\mu and β\beta and TnT_n which is the n’th order Chebyshev polynomial of the first kind. The argument of the Chebyshev function is a scaled Hamiltonian, H~≡H^−HavgΔH\tilde{H} \equiv\frac{\hat{H}-H_{\mathrm{avg}}}{\Delta H}, [17, 19] where the HavgH_{\mathrm{avg}} and ΔH\Delta H parameters are the center and half-width of the spectrum of H^\hat{H}, so that the eigenvalues of H~\tilde{H} are between -1 and 1. The length of the expansion, NchbN_{\mathrm{chb}}, is approximately proportional to βΔH\beta\Delta H, times a factor which depends on the relative position of μ\mu relative to the spectrum bottom, Havg−ΔHH_{\mathrm{avg}}-\Delta H. (Qualitatively that factor accounts for the “stretching” of the angle θ=arccos⁡(x)\theta=\arccos(x) near the band bottom, where x→−1x\to-1 and dx/dθdx/d\theta becomes large. For a fuller discussion see [20].)

Usually the coefficients are determined by requiring that the expansion in Eq. (4) is valid uniformly over all EE between the minimum and maximum eigenvalues of H^\hat{H}. Due to the orthogonality of the Chebyshev polynomials, the coefficients are then simply:

an=2−δn0π∫−11Θ(μ~−x)Tn(x)w(x) dx,(5)a_n = \frac{2-\delta_{n0}}{\pi}\int_{-1}^{1}\Theta(\tilde{\mu}-x)T_n(x)w(x)\,dx, \tag*{(5)}

where w(x)=(1−x2)−1/2w(x)=(1-x^2)^{-1/2} is the Chebyshev weighting function and we introduced the scaled chemical potential, μ~=(μ−Havg)/ΔH\tilde{\mu}=(\mu-H_{\mathrm{avg}})/\Delta H.

Here we exploit a simple realization: because there are no states within the bandgap, the behavior of the expansion within the gap does not impact the density matrix. What is important is that the expansion is 1 for the occupied states and 0 for the unoccupied states, regardless of its values within the bandgap. As we show below, the increased flexibility, as the expansion is free to vary within the bandgap, suffices to reduce the number of polynomials for a given desired level of numerical accuracy.

Our derivation starts by defining a modified weighting function that vanishes within the scaled bandgap:

w∗(x)=w(x)(Θ(xH−x)+Θ(x−xL)),(6)w^{*}(x)=w(x)\left(\Theta(x_H-x)+\Theta(x-x_L)\right), \tag*{(6)}

where the scaled energies are

xH=εH−HavgΔH+δx_H = \frac{\varepsilon_H-H_{\mathrm{avg}}}{\Delta H}+\delta
xL=εL−HavgΔH−δx_L = \frac{\varepsilon_L-H_{\mathrm{avg}}}{\Delta H}-\delta

where εH\varepsilon_H and εL\varepsilon_L are the HOMO and LUMO energies, while δ\delta is a small padding factor, which we usually take to be about 1% of the scaled bandgap. This padding ensures that the weighting function does not go to 1/0 at exactly the HOMO/LUMO energies, thereby allowing for any uncertainties in the values of the HOMO/LUMO energies.

Since the weighting function is zero within the gap, we call the resulting method gapped-filtering, and the associated Chebyshev expansion gapped-filter. As the Chebyshev polynomials are not orthogonal under this weighting function, the coefficients need to be rederived. This is done by minimizing the norm squared of the difference between the Heaviside function and the Chebyshev expansion, weighted now by w∗(x)w^{*}(x):

J=∫−11∣Θ(x−x0)−∑n=0NchbanTn(x)∣2w∗(x) dx.(7)J = \int_{-1}^{1} \left|\Theta(x-x_{0})-\sum_{n=0}^{N_{\mathrm{chb}}}a_{n}T_{n}(x)\right|^{2}w^{*}(x)\,dx. \tag*{(7)}

Minimizing JJ with respect to ai∗a_i^{*} gives:

∂J∂ai∗=∑kMijaj−bj=0,(8)\frac{\partial J}{\partial a_i^{*}}=\sum_k M_{ij}a_j-b_j=0, \tag*{(8)}

i.e., a=M−1ba=M^{-1}b, where

bi=∫−1xHw∗(x)Ti(x) dx,b_i=\int_{-1}^{x_H}w^{*}(x)T_i(x)\,dx,

and

Mij=∫−11w∗(x)Ti(x)Tj(x) dx.(9)M_{ij}=\int_{-1}^{1}w^{*}(x)T_i(x)T_j(x)\,dx. \tag*{(9)}

The matrix elements are easily calculated. Defining x=cos⁡θx=\cos\theta, we get:

Mij=Fij(−1,xH)+Fij(xL,1),(10)M_{ij}=F_{ij}(-1,x_H)+F_{ij}(x_L,1), \tag*{(10)}

where

Fij(y,z)=∫yzw(x)Ti(x)Tj(x) dx=∫θzθycos⁡(iθ)cos⁡(jθ) dθ=12∫θzθy(cos⁡((i−j)θ)+cos⁡((i+j)θ))dθ=Gij(θy)−Gij(θz)(11)\begin{aligned} F_{ij}(y,z)=\int_y^z w(x)T_i(x)T_j(x)\,dx \\ &=\int_{\theta_z}^{\theta_y}\cos(i\theta)\cos(j\theta)\,d\theta\\ &=\frac{1}{2}\int_{\theta_z}^{\theta_y}\left(\cos((i-j)\theta)+\cos((i+j)\theta)\right)d\theta\\ &=G_{ij}(\theta_y)-G_{ij}(\theta_z) \tag*{(11)} \end{aligned}

where cos⁡θy=y\cos\theta_y=y, and

Gij(θ)={θi=j=012θ+14isin⁡(2iθ)i=j≠0sin⁡((i−j)θ)2(i−j)+sin⁡((i+j)θ)2(i+j)i≠j(12)G_{ij}(\theta)= \begin{cases} \theta& i=j=0\\ \frac{1}{2}\theta+\frac{1}{4i}\sin(2i\theta) & i=j\ne0\\ \frac{\sin((i-j)\theta)}{2(i-j)}+\frac{\sin((i+j)\theta)}{2(i+j)} & i\ne j \end{cases} \tag*{(12)}

Similarly,

bi=∫θHπcos⁡(iθ) dθ={π−θHi=0−1isin⁡(iθH)i>0(13)b_i=\int_{\theta_H}^{\pi}\cos(i\theta)\,d\theta= \begin{cases} \pi-\theta_H & i=0\\ -\frac{1}{i}\sin(i\theta_H) & i>0 \end{cases} \tag*{(13)}

where cos⁡(θH)=xH\cos(\theta_H)=x_H.

Additional considerations

We now discuss several issues associated with the method.

HOMO/LUMO determination: Our method requires knowledge of the HOMO/LUMO energies associated with the one-body Hamiltonian H^\hat{H}. In situations where these are not accurately given, it will often be worthwhile to do a single longer Chebyshev propagation to determine accurately, by filtering, the location of the HOMO and LUMO. For example, in stochastic GW the gapped filter will be applied thousands of times, so the initial overhead for finding the HOMO/LUMO energies by a narrow Chebyshev filter will be often small compared to the savings incurred by the subsequent use of gapped filtering in sGW.

The same considerations would also be true in DFT applications that rely on Chebyshev filtering, as long as the overall number of vectors on which one needs to apply Chebyshev filtering is much larger than 1, so that in each SCF step the extra overhead in a single long Chebyshev to determine the HOMO and LUMO would be negligible compared to the overall cost needed to filter all the required states.

HOMO/LUMO accuracy: Note that formally the HOMO and LUMO energies that are used need to be lower and upper bounds to the true HOMO and LUMO, but since the method is continuous even a small (circa 5% or less) deviation in the wrong direction (e.g., an applied HOMO energy which is higher than the true HOMO by about 2-3% of the gap, and analogously for the LUMO) still gives excellent results, as we verified.

Correlation function: Also note that when one is just looking for a correlation function, involving a matrix element of the density of state (rather than the full filtered function, Eq. (3)), then the total number of residues is halved by using simple trigonometric identities, e.g., 2⟨ζ0∣T2n∣ζ0⟩=⟨ζn∣ζn⟩−⟨ζ0∣ζ0⟩2\langle\zeta_0|T_{2n}|\zeta_0\rangle= \langle\zeta_n|\zeta_n\rangle-\langle\zeta_0|\zeta_0\rangle where ∣ζn⟩≡Tn∣ζ0⟩|\zeta_n\rangle\equiv T_n|\zeta_0\rangle (see Eq. 3.10 in [21]). This reduction by a half is valid for both the regular Chebyshev approaches and for gapped filtering, so it does not change the relative performance of the approaches.

Filter design: To conclude this section, note that the problem we specifically try to solve, an optimum Chebyshev filter where we do not care what happens inside the gap, could be viewed as a specific subproblem of digital filter design [22, 23].

Gapped-filtering convergence study

We now turn to a numerical study of the new method. We use the band gap and energy width from an LDA calculation of Naphthalene. The calculations are detailed in the next section, but the relevant part here is that the gap is εgap≡εL−εH=0.123\varepsilon_{\mathrm{gap}} \equiv\varepsilon_L-\varepsilon_H = 0.123 Hartree, the spectrum width is 13.5 Hartree, and the scaled HOMO/LUMO energies are (εH−Havg)/ΔH=−0.9156(\varepsilon_H-H_{\mathrm{avg}})/\Delta H=-0.9156 and (εL−Havg)/ΔH=−0.9065(\varepsilon_L-H_{\mathrm{avg}})/\Delta H=-0.9065 i.e., a scaled gap of (εL−εH)/ΔH=0.0091(\varepsilon_L-\varepsilon_H)/\Delta H=0.0091.

In Figure 1 we show, for an expansion length of Nchb=450N_{\mathrm{chb}}=450, the improved performance of gapped filter over the traditional approaches. We specifically plot as a function of the scaled energy (x=(E−Havg)/ΔH)(x=(E-H_{\mathrm{avg}})/\Delta H), the numerical representation of Θ(μ−E)\Theta(\mu-E) (i.e., the RHS of Eq. (4)) at several β\beta values. As expected, convergence is faster for a lower β\beta, but if β\beta is too low then the analytic sqrt-erfc function deviates too much from the desired step function.

Image not extracted

Figure 1. Gapped-filtering vs. various sqrt-erfc filters, using a Chebyshev expansion with Nchb=450N_{\mathrm{chb}}=450 polynomials, as a function of the scaled energy, x=(E−Havg)/ΔHx=(E-H_{\mathrm{avg}})/\Delta H. Naphthalene parameters are used (ΔH=13.5\Delta H=13.5 Hartree, εgap=0.123\varepsilon_{\mathrm{gap}}=0.123 Hartree). The highlighted grey area denotes the gap region where the expansion need not be optimized. Note that β\beta is always reported in inverse Hartree, so, for example, for β=30\beta=30 Hartree−1^{-1} the product of β\beta with the gap is quite small, β(εL−εH)=3.7\beta(\varepsilon_L-\varepsilon_H)=3.7.

As a side note, a common approach [24] to avoid Gibbs oscillations is to multiply the Chebyshev coefficients by a filter, gncng_n c_n, where gng_n falls smoothly to almost 0 at n=Nn=N. This is shown in Figure 2 (constructed for Nchb=450N_{\mathrm{chb}}=450, like Figure 1), using the popular Jackson filter [24]. But while smoothing of the analytic coefficients does remove the Gibbs oscillations, this comes however at the expense of making the filter wider, so it is even further from the true step function filter.

Image not extracted

Figure 2. Analogous to Fig. 1 but now the analytical coefficients are damped using the commonly used Jackson kernel coefficients to avoid a sharp cut at NchbN_{\mathrm{chb}}. While the Gibbs oscillations are damped the step function is even further widened, i.e., gets further from the analytical step function demonstrating that just damping the analytical coefficients is not sufficient.

The difference in Figure 1 at Nchb=450N_{\mathrm{chb}}=450 between the numerical representations and the desired step function is detailed in Figure 3. Interestingly, at this NchbN_{\mathrm{chb}} the gapped filter is also smooth inside the gap (gray region in Figure 1) even though the gapped-filtering method does not yet explicitly optimize the behaviour of the filter there. (Note: for very high NchbN_{\mathrm{chb}} which are irrelevant, Nchb>1300N_{\mathrm{chb}}>1300, gapped-filtering does show Gibbs oscillations inside the gap.)

Image not extracted

Figure 3. Analogous to Figure 1, but showing, away from the gap, the differences between the Chebyshev expansions and an exact step function.

In Figure 4 we show, again at Nchb=450N_{\mathrm{chb}}=450, the expansion coefficients, ana_n, as a function of nn. The magnitude of the gapped-filtering coefficients decreases at a much faster rate than that of the traditional coefficients. The faster drop-off leads to a smoother expansion and therefore to less oscillations.

Image not extracted

Figure 4. The absolute value of the expansion coefficients for Nchb=450N_{\mathrm{chb}} = 450 for the gapped and traditional (sqrt-erfc) filters.

We now turn to an analysis of the performance of the gapped-filtering approach as a function of the number of Chebyshev polynomials. Figure 5 shows, as a function of NchbN_{\mathrm{chb}}, the maximum (over all energies outside the gap) of the absolute difference between Eq. (4) and Eq. (2) at several β\beta values. The relative advantage of gapped filtering is more pronounced when higher accuracy is sought, i.e., at larger NchbN_{\mathrm{chb}}. Thus small β\beta values (in our case β=30\beta= 30 or 4040 Hartree−1^{-1}) require a small number of Chebyshev polynomials for convergence, that rivals the number in gapped-filtering. However, for such small β\beta values the analytical sqrt-error function deviates significantly from the desired step function, so that the error would be high at any value of NchbN_{\mathrm{chb}}. In contrast, a more accurate representation of the step function with small error requires a much larger number of polynomials for sqrt-erfc filters (see here the graphs for β=50,66,100\beta= 50, 66, 100 Hartree−1^{-1}) than in gapped filtering.

Image not extracted

Figure 5. The maximum, taken over all energies outside the bandgap, of the absolute value of the difference between the step function Θ(μ−E)\Theta(\mu-E) and its Chebyshev expansion (the RHS of Eq. (4)). The figure is plotted as a function of the number of Chebyshev terms, NchbN_{\mathrm{chb}}. Note that smoother low-β\beta filters converge initially faster but then their error reaches quickly a high plateau.

A technical point is that for very large NchbN_{\mathrm{chb}}, some of eigenvalues of MM will be close to zero; this would lead to round-off errors in the matrix inversion, which in our case would deteriorate the accuracy of the gapped filter when the maximum error is on the order of 10−610^{-6}, i.e., beyond Nchb>10ΔH/εgap=1100N_{\mathrm{chb}} > 10\Delta H/\varepsilon_{\mathrm{gap}} = 1100. We avoid such errors using, for such large NchbN_{\mathrm{chb}}, quadruple precision in calculating the coefficients (i.e., for yielding MM and bb, and then for inverting M−1bM^{-1}b using a quadruple precision algorithm [25, 26]). Because the dimensions of MijM_{ij} are (Nchb+1)×(Nchb+1)(N_{\mathrm{chb}} + 1) \times(N_{\mathrm{chb}} + 1) and NchbN_{\mathrm{chb}} is typically on the order of 100−2000100 - 2000, this inversion has negligible cost. (To clarify, the coefficients are then well-behaved and are used in the usual double-precision Chebyshev algorithm, i.e., quadruple precision is only used to determine the ana_n coefficients.)

An advantage of gapped-filtering is that it avoids the use of an artificial temperature parameter, β\beta. We only need to worry about a single convergence parameter, NchbN_{\mathrm{chb}}, unlike the usual procedure of converging with respect to two parameters, β\beta and NchbN_{\mathrm{chb}}.

Application: stochastic-GW

Filtering in stochastic-GW

The polynomial expansion of the Chebyshev operator is crucial for our stochastic quantum chemistry approaches. Here we overview the relevant parts for one such method, stochastic-GW. Only the parts of the method where

see Refs. [8, 12] for further details. The stochastic-GW method, in its simplest version, calculates the HOMO (or LUMO) quasiparticle energy in the diagonal approximation εQP\varepsilon_{QP}, i.e., based on the HOMO/LUMO DFT eigenvector whose associated eigenvalue is modified.

Stochastic-GW has two filtering stages. First, one does a stochastic realization of GG. For each such realization, one takes an initially random white noise orbital ∣ζ0⟩|\zeta_0\rangle, i.e., ζ0(r)∝±1\zeta_0(r) \propto\pm1 in a grid representation (or an analogous expression in a basis-set description). Then, the white noise orbital is filtered with the Heaviside operator Θ^≡Θ(μ−H^)\hat{\Theta} \equiv\Theta(\mu-\hat{H}) to generate a function ∣ζ⟩|\zeta\rangle which contains only occupied states (with random coefficients):

ζ(r)=⟨r∣Θ^∣ζ0⟩.(14)\zeta(r) = \langle r|\hat{\Theta}|\zeta_0\rangle. \tag*{(14)}

We interchangeably label such a function as a stochastic occupied orbital, or more simply a filtered orbital.

Each such filtered ζ\zeta function is then propagated in time under H^\hat{H}; the correlation function of the result with ζ0\zeta_0 equals the negative-time Green’s function, ⟨ζ(r,t)ζ0(r′)⟩=G0(r,r′,−t)\langle\zeta(r,t)\zeta_0(r')\rangle= G_0(r,r',-t). The positive-time Green’s function is obtained analogously. The curly brackets indicate a statistical average over the stochastic orbitals. Typically we use Nζ=200N_{\zeta} = 200 to 2000 different random white noise ζ0(r)\zeta_0(r) functions. Fewer samples are needed for larger systems due to self-averaging.

Then, for each such stochastic realization of GG (i.e., for each ζ0\zeta_0), one calculates the action of the time-dependent effective interaction W^(t)\hat{W}(t) on a vector related to ζ0\zeta_0. This is done by choosing, for each ζ0\zeta_0, several (NorbN_{\mathrm{orb}}) white noise vectors, labeled ηζ,ℓ\eta_{\zeta,\ell}, ℓ=1,…,Norb\ell= 1,\ldots,N_{\mathrm{orb}}. These vectors are also filtered, ∣η⟩=|\eta\rangle= Θ∣η0⟩\Theta|\eta_0\rangle. This set of filtered orbitals are then excited and propagated in time, under a time-dependent Hartree Hamiltonian H(t)H(t). The crucial part of the evolution Hamiltonian, which also gives the action of W^(t)\hat{W}(t), comes from the Hartree potential due to the time-dependent density

n(r,t)≃2Norb∑ℓ=1Norb∣ηℓ(r,t)∣2,(15)n(\mathbf{r},t) \simeq\frac{2}{N_{\mathrm{orb}}}\sum_{\ell=1}^{N_{\mathrm{orb}}}|\eta_{\ell}(\mathbf{r},t)|^2, \tag*{(15)}

where ηℓ(r,t=0)\eta_{\ell}(\mathbf{r},t=0) is obtained by slightly ”kicking” the filtered orbital ηℓ(r)\eta_{\ell}(\mathbf{r}) (for further details see Refs. [13, 15]). Note that we consider closed shell systems so the factor of 2 due to spin was restored here.

The sGW formalism is efficient since very few orbitals (typically Norb=10N_{\mathrm{orb}} = 10, and less for larger systems) are needed to describe the response of molecules and solid-state systems within the short few-fs time for which W^(t)\hat{W}(t) is needed. Still, a total of NζNorb≃2000N_{\zeta}N_{\mathrm{orb}} \simeq2000–40,00040,000 filtering projections is required, therefore motivating the use of the proposed gapped-filtering approach.

Gapped-filtering for stochastic-GW

We now demonstrate gapped-filtering in an sGW study of naphthalene. All calculations use Nζ=1000N_{\zeta} = 1000 stochastic samplings of GG, which gives the quasiparticle energy to within a statistical error of ±0.06\pm0.06 eV.

The DFT Hamiltonian H^\hat{H} uses the LDA exchange-correlation functional with Troullier-Martins norm-conserving pseudo-potentials [27]. The grid employed has 48×44×2448 \times44 \times24 points with a grid spacing of 0.5 Bohr. As mentioned, the DFT bandgap for naphthalene is then εgap=3.34\varepsilon_{\mathrm{gap}} = 3.34 eV, i.e., 0.123 Hartree, while the spectrum half-width ΔH\Delta H is 13.5 Hartree, i.e., 110 times higher than the bandgap.

Figure 6 shows the resulting HOMO QP energies for gapped-filtering and for the traditional filtering method from Eq. (4) at β=66\beta= 66 and β=100\beta= 100. The statistical errors barely change with NchbN_{\mathrm{chb}}, so we do not show them in the figure.

Image not extracted

Figure 6. The stochastic-GW quasiparticle energy of naphthalene, εQP\varepsilon_{\mathrm{QP}}, as a function of the number of Chebyshev polynomials, NchbN_{\mathrm{chb}}, using gapped-filtering and sqrt-erfc filters with β=66\beta= 66 and β=100\beta= 100. Gapped-filtering converges to the asymptotic QP energy at much lower NchbN_{\mathrm{chb}} than the traditional sqrt-erfc filters.

The figure shows that gapped-filtering requires very few Chebyshev terms. Thus, to have a systematic error of 0.015 eV or better, Nchb=450N_{\mathrm{chb}} = 450 is sufficient for gapped-filtering.

Conclusions

In conclusion, our work has shown that, for gapped systems, a step-function filter in energy is best done by optimizing the Chebyshev coefficients to fit the gapped spectrum only, rather than using a smooth filter and unnecessarily fitting the irrelevant gapped region.

The final algorithm is very easy to adopt for practical systems. Given the HOMO/LUMO energies and the spectrum overall min/max energies, one should specify an acceptable tolerance of the deviation from the step function, and then do a similar calculation the red line in Figure 5 to extract the corresponding number of NchbN_{\mathrm{chb}} terms. With our parameters we find an acceptable tolerance at about Nchb≃4ΔH/(εL−εH)N_{\mathrm{chb}} \simeq4\Delta H/(\varepsilon_L-\varepsilon_H), but this factor could be somewhat different depending on the application and the location of the gap relative to the spectrum minima. Our results would have immediate implication on cases such as sGW, where traditional Chebyshev filtering is expensive and the simpler alternative, explicit projection by ρ^=∑n≤Nocc∣ϕn⟩⟨ϕn∣\hat{\rho} = \sum_{n\leq N_{\mathrm{occ}}}|\phi_n\rangle\langle\phi_n| (see Ref. [12]), requires for large systems huge memory for storing all the occupied eigenstates.

Finally, our work indicates that when there is at least partial knowledge of the system spectrum, a polynomial expansion could be made more efficient than an expansion which is designed to be uniformly convergent as a function of energy.

CRediT authorship contribution statement

Minh Nguyen: Investigation, Writing - Original Draft, Software, Visualization. Daniel Neuhauser: Conceptualization, Methodology, Supervision, Writing - Review & Editing, Funding acquisition

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Acknowledgements

We are grateful to Nadine Bradbury for useful discussions. This paper was supported by the Center for Computational Study of Excited State Phenomena in Energy Materials (C2SEPEM), which is funded by the U.S. Department of Energy, Office of Science, Basic Energy Sciences, Materials Sciences and Engineering Division via Contract No. DE-AC02-05CH11231, as part of the Computational Materials Sciences Program. Computational resources were supplied through the XSEDE allocation TG-CHE170058, and theNERSC project m4022.

This figure "expansion_with_jackson.jpeg" is available in "jpeg" format from:

http://arxiv.org/ps/2206.01187v3

References

  1. [1]R. Baer, M. Head-Gordon, Chebyshev expansion methods for electronic structure calculations on large molecular systems, The Journal of Chemical Physics 107 (1997) 10003–10013.DOI
  2. [2]L. O. Jay, H. Kim, Y. Saad, J. R. Chelikowsky, Electronic structure calculations for plane-wave codes without diagonalization, Computer Physics Communications 118 (1999) 21–30.DOI
  3. [3]W. Liang, C. Saravanan, Y. Shao, R. Baer, A. T. Bell, M. Head-Gordon, Improved Fermi operator expansion methods for fast electronic structure calculations, The Journal of Chemical Physics 119 (2003) 4117–4125.DOI
  4. [4]O. F. Sankey, D. A. Drabold, A. Gibson, Projected random vectors and the recursion method in the electronic-structure problem, Physical Review B 50 (1994) 1376.pubmed.ncbi.nlm.nih.gov/9976322
  5. [5]R. Baer, D. Neuhauser, E. Rabani, Self-averaging stochastic Kohn-Sham density-functional theory, Physical Review Letters 111 (2013) 106402.DOI
  6. [6]D. Neuhauser, R. Baer, E. Rabani, Embedded fragment stochastic density functional theory, Journal of Chemical Physics 141 (2014) 041102.DOI
  7. [7]R. Baer, D. Neuhauser, E. Rabani, Stochastic vector techniques in ground-state electronic structure, Annual Review of Physical Chemistry 73 (2022).DOI
  8. [8]D. Neuhauser, Y. Gao, C. Arntsen, C. Karshenas, E. Rabani, R. Baer, Breaking the theoretical scaling limit for predicting quasiparticle energies: The stochastic GW approach, Physical Review Letters 113 (2014) 076402.pubmed.ncbi.nlm.nih.gov/25170715
  9. [9]C. Friedrich, A. Schindlmayr, Many-body perturbation theory: the GW approximation, NlC Series 31 (2006) 335.
  10. [10]M. S. Hybertsen, S. G. Louie, Electron correlation in semiconductors and insulators: Band gaps and quasiparticle energies, Physical Review B 34 (1986) 5390.pubmed.ncbi.nlm.nih.gov/9940372
  11. [11]V. Vlcek, Stochastic many-body methods for quasiparticle excitations in realistic nanoscale systems, Bulletin of the American Physical Society 66 (2021).
  12. [12]V. Vlček, W. Li, R. Baer, E. Rabani, D. Neuhauser, Swift GW beyond 10,000 electrons using sparse stochastic compression, Physical Review B 98 (2018) 075107.DOI
  13. [13]D. Neuhauser, E. Rabani, R. Baer, Expeditious stochastic approach for MP2 energies in large electronic systems, Journal of Chemical Theory and Computation 9 (2013) 24–27.arxiv.org/abs/1210.8279
  14. [14]N. Bradbury, M. Nguyen, J. R. Caram, D. Neuhauser, Bethe Salpeter Equation spectra for very large systems, arXiv:2205.06690 (2022).DOI
  15. [15]Y. Gao, D. Neuhauser, R. Baer, E. Rabani, Sublinear scaling for time-dependent stochastic density functional theory, The Journal of Chemical Physics 142 (2015) 034106.DOI
  16. [16]H. Tal-Ezer, R. Kosloff, An accurate and efficient scheme for propagating the time dependent Schrödinger equation, The Journal of Chemical Physics 81 (1984) 3967–3971. URL: https://doi.org/10.1063/1.448136. doi:10.1063/1.448136.
  17. [17]R. Kosloff, Time-dependent quantum-mechanical methods for molecular dynamics, The Journal of Physical Chemistry 92 (1988) 2087–2100.DOI
  18. [18]A. Weiße, G. Wellein, A. Alvermann, H. Fehske, The kernel polynomial method, Reviews of Modern Physics 78 (2006) 275–306. URL: https://link.aps.org/doi/10.1103/RevModPhys.78.275. doi:10.1103/RevModPhys.78.275.
  19. [19]V. Mandelstam, T. Ravuri, H. Taylor, Calculation of the density of resonance states using the stabilization method, Physical Review Letters 70 (1993) 1932.pubmed.ncbi.nlm.nih.gov/10053423
  20. [20]P. Suryanarayana, On spectral quadrature for linear-scaling density functional theory, Chemical Physics Letters 584 (2013) 182–187. doi:10.1016/j.cplett.2013.08.035.DOI
  21. [21]M. R. Wall, D. Neuhauser, Extraction, through filter-diagonalization, of general quantum eigenvalues or classical normal mode frequencies from a small number of residues or a short-time segment of a signal. i. theory and application to a quantum-dynamics model, The Journal of Chemical Physics 102 (1995) 8011–8022. doi:10.1063/1.468999.DOI
  22. [22]J. McClellan, T. Parks, L. Rabiner, A computer program for designing optimum fir linear phase digital filters, IEEE Transactions on Audio and Electroacoustics 21 (1973) 506–526. doi:10.1109/TAU.1973.1162525.DOI
  23. [23]T. W. Parks, C. S. Burrus, Digital Filter Design, J. Wiley, 1987.
  24. [24]A. Weiße, G. Wellein, A. Alvermann, H. Fehske, The kernel polynomial method, Reviews of Modern Physics 78 (2006) 275–306. doi:10.1103/revmodphys.78.275.
  25. [25]J. J. Dongarra, C. B. Moler, J. R. Bunch, G. W. Stewart, LINPACK users’ guide, SIAM, 1979.
  26. [26]C. L. Lawson, R. J. Hanson, D. R. Kincaid, F. T. Krogh, Basic linear algebra subprograms for fortran usage, ACM Transactions on Mathematical Software (TOMS) 5 (1979) 308–323.DOI
  27. [27]D. Hamann, Optimized norm-conserving Vanderbilt pseudopotentials, Physical Review B 88 (2013) 085117.DOI

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type