선정목록으로
High performance Wannier interpolation of Berry curvature and related quantities with WannierBerri code
산업용 섬유 · (9) 타이어코드
기본 정보
- 저자
- DOI
- 10.5167/uzh-204608
- 저널
- Zurich Open Repository and Archive (University of Zurich)
- 발행년도
- 2021
- 발행기관
- University of Zurich
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- –
- 토픽
- Thermal properties of materials
- OpenAlex ID
- W6910857093
평가 내용
- 관련도
- 사업분야
- 산업용 섬유 · (9) 타이어코드
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Wannier interpolation is a powerful tool for performing Brillouin zone integrals over dense grids ofkpoints, which are essential to evaluate such quantities as the intrinsic anomalous Hall conductivity or Boltzmann transport coefficients. However, more complex physical problems and materials create harder numerical challenges, and computations with the existing codes become very expensive, which often prevents reaching the desired accuracy. In this article, I present a series of methods that boost the speed of Wannier interpolation by several orders of magnitude. They include a combination of fast and slow Fourier transforms, explicit use of symmetries, and recursive adaptive grid refinement among others. The proposed methodology has been implemented in the python code WannierBerri, which also aims to serve as a convenient platform for the future development of interpolation schemes for other phenomena.
본문 73,083자
본문 펼치기
High performance Wannier interpolation of Berry curvature and related quantities:
`WannierBerri` code
Stepan S. Tsirkin <sup>_∗_</sup>
_Department_ _of_ _Physics,_ _University_ _of_ _Zurich,_ _Winterthurerstrasse_ _190,_ _CH-8057_ _Zurich,_ _Switzerland_
(Dated: October 9, 2020)
Wannier interpolation is a powerful tool for performing Brillouin zone integrals over dense grids of
k points, which are essential to evaluate such quantities as the intrinsic anomalous Hall conductivity
or Boltzmann transport coefficients. However, new physical problems and new materials create new
numerical challenges, and computations with the existing codes become very expensive, which often
prevents reaching the desired accuracy. In this article, I present a series of methods that boost the
speed of Wannier interpolation by several _orders_ of magnitude. They include a combination of fast
and slow Fourier transforms, explicit use of symmetries and recursive adaptive grid refinement among
others. The proposed methodology has been implemented in the new python code `WannierBerri`,
which also aims to serve as a convenient platform for the future development of interpolation schemes
for novel phenomena.
I. INTRODUCTION
Wannier functions [1, 2] (WFs) are a powerful tool for
evaluating various electronic properties of solids, ranging from electric polarization [3–5] and orbital magnetization [6–8] to topological properties [9–13]. Moreover,
WFs provide a way to describe a group of energy bands
in a crystal by a compact Hamiltonian, thus allowing a
fast evaluation of the band structure at any point of the
Brillouin zone (BZ) without an extra call to the _ab_ _ini-_
_tio_ code [14]. This procedure called Wannier interpolation is similar in spirit to the tight-binding method [15],
but with significant advantage that it offers a systematic way of precise description of any number of bands
without truncation of the hopping integrals. Moreover,
not only the band energies, but also the wavefunctions
and their derivatives over momentum space are precisely
interpolated, while the tight-binding approach contains
an unavoidable error due to the limited basis set. Wannier interpolation is particularly useful in the search for
Weyl points in the band structure[11, 16], and in the
evaluation of momentum-space integrals of rapidly varying functions. Such integrals appear, for example, in calculations of the anomalous Hall conductivity [17], orbital
magnetization [18], Boltzmann transport coefficients [19],
and optical properties [20, 21]. By now, Wannier interpolation schemes have been developed for many other properties that demand dense BZ sampling, such as electronphonon coupling [22, 23], gyrotropic effects [24], and spin
Hall conductivity [25, 26].
Due to their gauge dependence, WFs are strongly nonunique and may be constructed in multiple ways. The
most popular technique is the maximal localization procedure [2, 27], implemented in the well-established code
Wannier90 [28, 29], whose development is now driven by
a broad community [30]. The construction of a good set
of WFs requires some careful input from the user. This
_∗_ [stepan.tsirkin@uzh.ch](mailto:stepan.tsirkin@uzh.ch)
includes specifying a set of trial orbitals, that serve as an
initial guess for the target WFs, and, if the bands of interest do not form an isolated group, choosing the ”disentanglement” energy windows [14]. Recently there has been
a significant progress in automated construction of WFs
with minimal user intervention. Different techniques
have been proposed, such as the optimized projection
functions method [31], the selected columns of the density matrix method [32–34], and an automated method to
choose trial orbitals and energy windows [35, 36]. In addition, a database of Wannier Hamiltonians is currently
being constructed [37]. These advances constitute significant steps towards employing Wannier interpolation
for high-throughput automated calculations of electronic
properties of solids.
Most of the Wannier interpolation schemes mentioned above have been implemented within the popular
codes - Wannier90 (namely its post-processing module
`postw90.x` ) and WannierTools [11]. These codes, being
well-established and widely adopted by the community,
have quite broad functionalities. However, new materials and new physical effects pose new numerical challenges, and calculation with those codes can become quite
heavy. In particular, for a system with a large number of WFs and a complicated Fermi surface, it may be
hard to achieve convergence with respect to momentumspace grid in a reasonable time. When it comes to
high-throughput calculations, performance becomes even
more important.
In this article, I present a series of methodological improvements that allow to improve dramatically the performance of Wannier interpolation method, without compromising its accuracy. The proposed methodology is
implemented in the new python code `WannierBerri` [38]
( `WB` ), which is freely available to install [39] and open for
contributors [40]. The code has a broad functionality,
and already a number of contributors. The present article covers only the core methodology of the code which
procure its efficiency. More broad scope of the code can
be found on its web page [38] and will be detailed in future publications. Interesting to note that `WannierBerri`
may be equally used for Wannier interpolation and tightbinding calculations, and also offers a convenient platform for development of new features. The name of the
code is derived from Wannier functions and the Basque
word “berri” which means “new” and enters local toponyms (e.g. Lekunberri, Ekainberri) [41].
The high efficiency of the `WB` code is achieved by
the combination of several methodological improvements.
First, note that in a typical calculation using `postw90.x`
the bottleneck is the Fourier transform, which is implemented as a standard discrete Fourier transform. Therefore it looks appealing to use fast Fourier transforms
(FFTs) [42, 43] which are widely used in numerical calculations [44, 45]. However, it is problematic to do so
over a very dense grid of points, which may include up
to 10 <sup>8</sup> points. This issue is overcome in the present
work by a mixed scheme employing both fast and “slow”
Fourier transforms. Next, the symmetries of the system may be used to reduce the evaluation only to the
symmetry-irreducible points, and obtain the contributions from other points by applying symmetry operations. This also helps to render the result more symmetric (tensor components that should be equal or vanish will be exactly equal, or exactly vanish), even if the
symmetries are slightly broken due to numerical inaccuracies in wannierization. Then I introduce an adaptive
refinement algorithm that identifies points that give the
largest contribution to the integral, and makes the grid
more dense in the vicinity of such points. This helps
to have a more accurate description near special points,
where the integrand is rapidly changing - for example
near Weyl nodes or nodal lines. This is similar in spirit
to the adaptive refinement scheme used in [17, 46], but
is more automatic and requires less input from the user.
Finally, I introduce methods that drastically reduce the
computational cost of the minimal-distance replica selection method (MDRS) [30], as well as the cost of scanning
over multiple Fermi levels.
The article is organized as follows. Section II describes
the set of proposed improvements to the existing Wannier interpolation methodology. Section III demonstrates
the usage of the code for the ’textbook’ example of the
anomalous Hall conductivity of bcc iron. Finally, in
Sec. IV the performance of the `WB` code is benchmarked
against postw90 on the basis of that example. Appendix A describes the list of functionalies implemented
in the `WB` code. Appendix B describes the routine to obtain the matrix elements that are not implemented in the
interfaces of most _ab_ _initio_ codes to Wannier90.
II. METHODS
A. General equations for Wannier interpolation
The goal of this section is to introduce notation necessary for further discussion. For more details please refer to review [2] and original articles cited therein. The
problem of Wannier interpolation is stated in the following way. First we evaluate the energies _En_ q and wavefunctions _ψn_ q ( r ) _≡_ _e_ <sup>_i_</sup> <sup>q</sup> <sup>_·_</sup> <sup>r</sup> _un_ q ( r ) from first principles on
a rather coarse grid of _N_ q = _N_ q <sup>1</sup> <sup>_× N_</sup> q <sup>2</sup> <sup>_× N_</sup> q <sup>3</sup> <sup>wavevec-</sup>
q <sup>1</sup> <sup>_× N_</sup> q <sup>2</sup>
q <sup>2</sup> <sup>_× N_</sup> q <sup>3</sup>
a rather coarse grid of _N_ q = _N_ q <sup>1</sup> <sup>_× N_</sup> q <sup>2</sup> <sup>_× N_</sup> q <sup>3</sup> <sup>wavevec-</sup>
tors q within the reciprocal unit cell. Next we want to
find the energies and wavefunctions at points on a denser
grid of wavevectors k . Further we will consistently use
q and k to denote the _ab_ _initio_ and interpolation grids
respectively.
For a group of entangled bands one can define a set of
_J_ WFs defined as
<u>1</u>
_|_ R _n⟩_ =
_N_ q
- _e_ <sup>_−i_</sup> <sup>q</sup> <sup>_·_</sup> <sup>R</sup>
q
_J_ q
- _|ψm_ q _⟩Vmn_ ( q ) _,_ (1)
_m_ =1
where _J_ q _≥_ _J_ and R are real-space lattice vectors. The
matrices _Vmn′_ ( q ) contain all the information of the construction of WFs, and may be generated by Wannier90
code. They are constrained by <sup>�</sup> _m_ <sup>_J_</sup> <sup>q</sup> =1 <sup>_V_</sup> _mn_ <sup>_∗_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>_Vmn′_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>=</sup>
_m_ <sup>_J_</sup> <sup>q</sup> =1 <sup>_V_</sup> _mn_ <sup>_∗_</sup>
code. They are constrained by <sup>�</sup> _m_ <sup>_J_</sup> <sup>q</sup> =1 <sup>_V_</sup> _mn_ <sup>_∗_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>_Vmn′_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>=</sup>
_δnn′_ and are chosen in such a way that the WFs are localized, which yields that the Bloch wavefunctions in the
Wannier gauge
_n_ <sup>W</sup> k <sup>_⟩≡_</sup> <sup>_ei_</sup> <sup>k</sup> <sup>_·_</sup> <sup>r</sup> <sup>_|u_</sup> _n_ <sup>W</sup> k
_|ψn_ <sup>W</sup> k
_n_ <sup>W</sup> k <sup>_⟩≡_</sup>
R
_e_ <sup>_i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> _|_ R _n⟩_ (2)
vary slowly with the k vector, unlike the true wavefunctions. Now let us see how WFs may be used to interpolate the band energies. First, one evaluates the matrix
elements of the Hamiltonian
<u>1</u>
_Hmn_ ( R ) _≡_
_N_ q
q
_m_ <sup>W</sup> q <sup>_|H_</sup> <sup>ˆ</sup> <sup>_|ψ_</sup> _n_ <sup>W</sup> q
_e_ <sup>_−i_</sup> <sup>q</sup> <sup>_·_</sup> <sup>R</sup> _⟨ψm_ <sup>W</sup>
_n_ <sup>W</sup> q <sup>_⟩_</sup> <sup>=</sup>
<u>1</u>
=
_N_ q
- _e_ <sup>_−i_</sup> <sup>q</sup> <sup>_·_</sup> <sup>R</sup> <sup>�</sup>
q _l_
_Vlm_ <sup>_∗_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>_El_</sup> <sup>q</sup> <sup>_Vln_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>_._</sup> (3)
Next, to obtain energies at an arbitrary point k one needs
to construct the Wannier Hamiltonian
_Hmn_ <sup>W</sup> <sup>(</sup> <sup>k</sup> <sup>) =</sup>
R
_Hmn_ ( R ) _e_ <sup>_i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> _,_ (4)
which further may be diagonalized as
_mn_
_U_ <sup>_∗_</sup>
_mn_ <sup>W</sup> <sup>(</sup> <sup>k</sup> <sup>)</sup> <sup>_Unl′_</sup> <sup>(</sup> <sup>k</sup> <sup>) =</sup> <sup>_El_</sup> <sup>(</sup> <sup>k</sup> <sup>)</sup> <sup>_δll′,_</sup> (5)
_ml_ <sup>_∗_</sup> <sup>(</sup> <sup>k</sup> <sup>)</sup> <sup>_H_</sup> _mn_ <sup>W</sup>
where _Unl′_ ( k ) are unitary matrices with columns corresponding to the eigenvectors of the Hamiltonian (4). In
a similar way, for any operator _X_ <sup>ˆ</sup>, for which the matrix
elements are evaluated on the _ab_ _initio_ grid, one may
obtain the real-space matrix elements
<u>1</u>
_Xmn_ ( R ) _≡_
_N_ q
q
_e_ <sup>_−i_</sup> <sup>q</sup> <sup>_·_</sup> <sup>R</sup> _Xmn_ <sup>W</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>_,_</sup> (6)
where in a simple case (e.g. _X_ <sup>ˆ</sup> = _σ_ )
_Xmn_ <sup>W</sup> <sup>(</sup> <sup>q</sup> <sup>) =</sup>
_ll_ <sup>_′_</sup>
_Vlm_ <sup>_∗_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>_⟨ψm_</sup> <sup>q</sup> <sup>_|X_</sup> <sup>ˆ</sup> <sup>_|ψn_</sup> <sup>q</sup> <sup>_⟩Vl′n_</sup> <sup>(</sup> <sup>q</sup> <sup>)</sup> <sup>_,_</sup> (7)
or if _X_ <sup>ˆ</sup> involves momentum-space derivatives, (e.g. the
position operator _r_ ˆ _α_ _≡_ _i∂/∂kα_ ) may also involve matrix
elements between neighbouring q points (see [17, 18] for
details). Then the matrix elements may be interpolated
to any k point in the Wannier gauge by
_Xmn_ <sup>W</sup> <sup>(</sup> <sup>k</sup> <sup>) =</sup>
R
_Xmn_ ( R ) _e_ <sup>_i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>R</sup> _,_ (8)
and further rotated to the Hamiltonian gauge
_mn_ <sup>_._</sup> (9)
_U_ <sup>_†_</sup> _· X_ <sup>W</sup> _· U_
_X_
~~H~~
_mn_ <sup>(</sup> <sup>k</sup> <sup>) =</sup>
as _t_ _∝_ _N_ R _N_ k, and we are typically interested in a case
_N_ k _≫_ _N_ R ( _N_ R _≈_ _N_ q ).
When the Fourier transform is done on a regular grid
of k points, it is usually appealing to use the FFT. For
that one needs to place the R vectors on a regular grid of
size _N_ k, fill the missing spots with zeros and perform the
standard FFT, which will scale as _t_ _∝_ _N_ k log _N_ k . However there are some dificulties with such FFT. Mainly,
because to perform FFT on a large grid implies storing
the data for all k points in memory at the same time,
which becomes a severe computational limitation. Also
FFT does not allow to reduce computation to only the
symmetry-irreducible k points, and is more difficult to do
in parallel. However there is a way to combine the advantages of both the FFT and the usual discrete Fourier
transform, leading to the concept of _mixed_ _Fourier_ _trans-_
_form_ .
We want to evaluate (8) for a set of k points.
Note that equations (3), (4) are particular cases of (6)
and (8). Equation (6) can be performed by means of
FFT, and its result is periodic in R with a supercell
formed by vectors A _i_ = a _iN_ q <sup>_i_</sup> <sup>,</sup> <sup>where</sup> <sup>a</sup> <sup>_i_</sup> <sup>(</sup> <sup>_i_</sup> <sup>=</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_,_</sup> <sup>3)</sup>
are the primitive unit cell vectors. Among the equivalent
R vectors we choose those belonging to the corresponding Wigner-Seitz (WS) supercell. If an R vector belongs
to the WS supercell boundary, we include all equivalent
vectors on the boundary with the corresponding elements
_X_ ( R ) divided by the degeneracy of the R vector. Further, the MDRS method (see Sec. II E) may also slightly
modify the set of R vectors.
As an example, the total Berry curvature of the occupied manifold is interpolated [17] via
where 0 _≤_ _ni_ _<_ _N_ k <sup>_i_</sup> <sup>–</sup> <sup>integers</sup> <sup>(</sup> <sup>_i_</sup> <sup>=</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_,_</sup> <sup>3),</sup> <sup>_N_</sup> k <sup>_i_</sup> <sup>–</sup> <sup>size</sup> <sup>of</sup>
interpolation grid, b _i_ - reciprocal lattice vectors. Now
suppose we can factorize _N_ k <sup>_i_</sup> <sup>=</sup> <sup>_N_</sup> FFT <sup>_i_</sup> <sup>_N_</sup> K <sup>_i_</sup> <sup>[47]</sup> <sup>.</sup> <sup>Then</sup> <sup>the</sup>
set of points (12) is equivalent to a set of points k =
K + _κ_, where
k _n_ 1 _,n_ 2 _,n_ 3 = <sup>_<u>n</u>_</sup> <sup><u>1</u></sup>
_N_ <sup>1</sup>
b 1 + <sup>_<u>n</u>_</sup> <sup><u>2</u></sup>
_N_ k <sup>1</sup>
b 2 + <sup>_<u>n</u>_</sup> <sup><u>3</u></sup>
b 3 _,_ (12)
k
_N_ k <sup>2</sup>
k
_N_ k <sup>3</sup>
k
where 0 _≤_ _ni_ _<_ _N_ k <sup>_i_</sup>
k <sup>_i_</sup> <sup>–</sup> <sup>integers</sup> <sup>(</sup> <sup>_i_</sup> <sup>=</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_,_</sup> <sup>3),</sup> <sup>_N_</sup> k <sup>_i_</sup>
k <sup>_i_</sup> <sup>=</sup> <sup>_N i_</sup>
FFT <sup>_i_</sup> <sup>_N_</sup> K <sup>_i_</sup>
b 2 + <sup>_<u>l</u>_</sup> <sup><u>3</u></sup>
b 1 + <sup>_<u>l</u>_</sup> <sup><u>2</u></sup>
unocc
_l_
occ
_n_
~~H~~
_Dnl,αAln,β_
K _l_ 1 _,l_ 2 _,l_ 3 = <sup>_<u>l</u>_</sup> <sup><u>1</u></sup>
_N_ <sup>1</sup>
k
b 3 _,_ (13a)
Ω _γ_ ( k ) = Re
occ
_n_
~~H~~
Ω _nn,γ_ <sup>_−_</sup> <sup>2</sup> <sup>_ϵαβγ_</sup> <sup>Re</sup>
_N_ k <sup>1</sup>
_N_ k <sup>2</sup>
k
_N_ k <sup>3</sup>
k
_<u>m</u>_ <u>2</u>
b 1 +
_N_ FFT <sup>2</sup>
_<u>m</u>_ <u>2</u>
b 1 +
_N_ <sup>2</sup>
_<u>m</u>_ <u>3</u>
b 2 +
_N_ FFT <sup>3</sup>
unocc
- _Dnl,αDln,β,_ (10)
_l_
where 0 _≤_ _li_ _<_ _N_ <sup>_i_</sup>
_<u>m</u>_ <u>1</u>
_κ_ _m_ 1 _,m_ 2 _,m_ 3 =
_N_ FFT <sup>1</sup>
_<u>m</u>_ <u>1</u>
_κ_ _m_ 1 _,m_ 2 _,m_ 3 =
_N_ <sup>1</sup>
K <sup>_i_</sup> <sup>,</sup> <sup>_N_</sup> <sup>K</sup> <sup>=</sup> <sup>�</sup>
b 3 _,_ (13b)
+ _ϵαβγ_ Im
occ
_n_
_i_ <sup>_N_</sup> K <sup>_i_</sup>
K <sup>_i_</sup> <sup>,</sup> <sup>0</sup> <sup>_≤_</sup> <sup>_mi_</sup> <sup>_<_</sup> <sup>_N i_</sup>
where the ingredients of the equation are obtained us
_α_ <sup>W</sup> _≡_
ing eqs. (8), (9) starting from _Dnl,α_ _≡_
_H_ ~~H~~ _<u>nl,α</u>_
_El−En_ <sup>,</sup> <sup>_H_</sup> _α_ <sup>W</sup>
_H_
where 0 _≤_ _li_ _<_ _N_ K <sup>_i_</sup> <sup>,</sup> <sup>_N_</sup> <sup>K</sup> <sup>=</sup> <sup>�</sup> _i_ <sup>_N_</sup> K <sup>_i_</sup> <sup>,</sup> <sup>0</sup> <sup>_≤_</sup> <sup>_mi_</sup> <sup>_<_</sup> <sup>_N_</sup> FFT <sup>_i_</sup> <sup>.</sup>
This separation is illustrated in Fig 1(a), which shows a
2 _×_ 2 K -grid, each corresponding to 4 _×_ 4 FFT grid (dots
of a certain color). Now for each K -point we can define
_Xmn_ ( K _,_ R ) _≡_ _Xmn_ ( R ) _e_ <sup>_i_</sup> <sup>K</sup> <sup>_·_</sup> <sup>R</sup> (14)
and then (8) reads as
~~W~~ _γ_ _≡_ _ϵαβγ∂αA_ <sup>W</sup> _β_
_∂αH_ <sup>W</sup>, _Amn,α_ ( R ) _≡⟨_ 0 _m|r_ ˆ _α|_ R _n⟩_, Ω _γ_
_∂αH_ <sup>W</sup>, _Amn,α_ ( R ) _≡⟨_ 0 _m|r_ ˆ _α|_ R _n⟩_, Ω _γ_ _≡_ _ϵαβγ∂αA_ <sup>W</sup> _β_ <sup>,</sup>
_∂α_ _≡_ _∂/∂kα_ . The anomalous Hall conductivity is evaluated as an integral
_αβ_ <sup>AHE</sup> = _−_ <sup>_<u>e</u>_</sup> <sup>2</sup>
ℏ
R
_Xmn_ ( K _,_ R ) _e_ <sup>_i_</sup> <sup>_κ_</sup> <sup>_·_</sup> <sup>R</sup> (15)
_σαβ_ <sup>AHE</sup>
<sup>2</sup>
ℏ <sup>_ϵαβγ_</sup>
- _<u>d</u>_ <u>k</u>
(2 _π_ ) <sup>3</sup> <sup>Ω</sup> <sup>_γ_</sup> <sup>(</sup> <sup>k</sup> <sup>)</sup> <sup>_._</sup> (11)
_Xmn_ <sup>W</sup> <sup>(</sup> <sup>k</sup> <sup>=</sup> <sup>K</sup> <sup>+</sup> <sup>_κ_</sup> <sup>) =</sup>
Note, that while the direct Fourier transform (6) is performed only once for the calculation, and is not repeated
for the multiple k points upon interpolation, the inverse
Fourier transform (8) is repeated for every interpolation
k point. And in fact it presents the most time-consuming
part of the calculation involving Wannier interpolation as
implemented in the Wannier90 code.
B. Mixed Fourier transform
In this section we will see how the evaluation of (8)
may be accelerated. It is easy to see that the computation time of a straightforward discrete Fourier transform scales with the number of R vectors and k points
The principle idea of mixed Fourier transform consists
in performing the Fourier transform (15) as FFT, while
(14) is performed directly. To perform the FFT we put
all the R vectors on a grid _N_ FFT <sup>1</sup> <sup>_× N_</sup> FFT <sup>2</sup> <sup>_× N_</sup> FFT <sup>3</sup> <sup>,</sup> <sup>and</sup> <sup>a</sup>
vector R = <sup>�</sup> _i_ <sup>3</sup> =1 <sup>_ni_</sup> <sup>a</sup> <sup>_i_</sup> <sup>is placed on a slot with coordinates</sup>
integers, while 0 _≤_ _n_ - _i_ _< N_ FFT <sup>_i_</sup> <sup>).</sup> <sup>It is important to choose</sup>
the FFT grid big enough, so that two different R vectors
are not placed on the same slot in the grid.
The advantages of this approach are the following.
First, the computational time scales as _t_ 1 _∝_ _N_ K _N_ R for
(14) and _t_ 2 _∝_ _N_ K _N_ FFT log _N_ FFT for (15). Because it is
required that _N_ FFT _≥_ _N_ R (to fit all R -vectors in the
FFT box), we have _t_ 1 _≤_ _t_ 2 _∝_ _N_ k log _N_ FFT (in practice it
occurs that _t_ 1 _≪_ _t_ 2), which scales better then both the
FFT <sup>1</sup> <sup>_× N_</sup> <sup>2</sup>
FFT <sup>2</sup> <sup>_× N_</sup> <sup>3</sup>
vector R = <sup>�</sup> _i_ <sup>3</sup> =1 <sup>_ni_</sup> <sup>a</sup> <sup>_i_</sup> <sup>is placed on a slot with coordinates</sup>
_n_ - _i_ = _ni_ mod _N_ FFT <sup>_i_</sup> <sup>(</sup> <sup>_ni_</sup> <sup>are</sup> <sup>both</sup> <sup>positive</sup> <sup>and</sup> <sup>negative</sup>
integers, while 0 _≤_ _n_ - _i_ _< N_ FFT <sup>_i_</sup> <sup>).</sup> <sup>It is important to choose</sup>
## 4x4 FFT Grid c) d) a) b)
<u>symmetry</u>
2x2 slow FT grid (K-grid)
~~ref~~ ine <u>symmetry</u>
assume 4-fold rotation and mirror symmetries
## g) 800600 f) e)
800
600
400
200
0
200
400
600
....... <u>symmetry</u>
0
4
8
12
16
20
refinement
iteration #
12.0 12.2 12.4 12.6 12.8 13.0
_EF_ (eV)
FIG. 1. (a-f) Illustration of the procedure of mixed Fourier transform, adaptive refinement and use of symmetries. 2D picture
is used for visualization purposes, while the code actually works in 3D. The area of colored circles corresponds to the weight
of the K -point, gray crosses denote the points with zero weight. See the text for detailed description. (g) AHC of bcc Fe,
evaluated from a grid of 52 _×_ 52 _×_ 52 k -points and 20 recursive adaptive refinement iterations.
Fast and ’slow’ Fourier transforms. Next, we can perform
Eqs. (14) and (15) independently for different K -points.
This saves us memory, and also offers a simple parallelization scheme. Also we can further restrict evaluation only
to symmetry irreducible K -points (Sec. II C) and also
perform adaptive refinement over K -points (Sec. II D).
Moreover, the evaluation time of a mixed Fourier transform only logarithmically depends on the size of the _ab_
_initio_ grid (recall that _N_ FFT _∼_ _N_ R _∼_ _N_ q ), while for the
slow Fourier transform, the dependence is linear. However, in practice we will see (sec. IV) that the Fourier
transform in the present implementation consumes only
a small portion of computational time, and therefore the
overall computational time is practically independent of
the size of the _ab_ _initio_ grid.
C. Symmetries
When we integrate some quantity over the BZ, at every
K -point (after summing over _κ_ points) we obtain the
result as a rank- _m_ tensor _Xi_ 1 _,...,im_ ( K ), for example the
berry curvature vector Ω _γ_ or the conductivity tensor _σxy_ .
Then the BZ integral is expressed as a sum
and we initially set _{_ K _}_ as a regular grid (13a) and _w_ K =
1 _/N_ K . Suppose _G_ is the magnetic point group of the
system [48]. We define the set of symmetry-irreducible
K points irr as a a set of points that _∀_ K _,_ K <sup>_′_</sup> _∈_ irr, _∀g_ _∈_ _G_
holds _g_ K _̸_ = K <sup>_′_</sup>, unless _g_ = _E_ (identity). Then we can
rewrite the sum (16) as
Note, that _X_ <sup>�</sup> = _X_ if the model respects the symmetry precisely (e.g. when symmetry-adapted WFs [49] are
used). Combining (17) and (18) and using <sup>�</sup> _f_ <sup>_G_</sup> <sup>_f_</sup> <sup>_· g_</sup> <sup>K</sup> <sup>=</sup>
- _Gf_ <sup>_f_</sup> <sup>we</sup> <sup>get</sup>
_X_ =
all
K
_g_ K _X_ ( _g_ K <sup>_−_</sup> <sup>1</sup> <sup>K</sup> <sup>)</sup> <sup>_w_</sup> <sup>K</sup> (17)
where we choose _g_ K such that _g_ K <sup>_−_</sup> <sup>1</sup> <sup>K</sup> <sup>_∈_</sup> <sup>irr</sup> <sup>(this</sup> <sup>choice</sup>
may be not unique), and obviously _g_ K = _E_ for K _∈_ irr.
Thus, only the irreducible K points need to be evaluated. Next, to make sure that the result respects the
symmetries, despite possible numerical inaccuracies, we
symmetrize the result as:
<u>1</u>
_X_ - = _|G|_
_G_
- _f_ _X_ _._ (18)
_f_
��
_G_
_f_
- irr
K
_X_ ( K )
- _G·_ K
K <sup>_′_</sup>
_w_ K _′_
_,_ (19)
_X_ =
all
K
_X_ ( K ) _w_ K (16)
<u>1</u>
_X_ - = _|G|_
_f_
where _G_ _·_ K denotes the orbit of K under action of group
_G_ . The latter equation reflects the implementation in
the `WB` code. Starting from a regular grid of K points we
search for pairs of symmetry-equivalent points. Whenever such a pair is found, one of the points is excluded
and it’s weight is transferred to the other point. Compare
Figs. 1(a) and (b): the red points are removed and their
weight is moved to green points. Thus we end with a set
of irreducible K -point with weights _w_ - K = <sup>�</sup> K <sup>_G·′_</sup> <sup>K</sup> _w_ K _′_ .
Next we evaluate _X_ ( K ) (employing the corresponding
interpolation scheme) only at symmetry-irreducible K points. Note, that although some k -points corresponding
to the same K -point (same color in Fig. 1) are equivalent, we have to evaluate them all to be able to use the
FFT. Finally, after summation, we symmetrize the result. The described procedure achieves two goals: (i)
reduce the computational costs and (ii) make the result
precisely symmetric, even if the WFs are not perfectly
symmetric. In the present example we managed to obtain highly symmetric WFs (although without employment of symmetry-adapted WFs method), and therefore
the symmetrization procedure does not change the result
(within relative accuracy _∼_ 10 <sup>_−_</sup> <sup>5</sup> ). However, for complex materials such quality of WFs is not always easy to
achieve.
D. Recursive adaptive refinement
It is well known that in calculations of quantities involving Berry curvature or orbital moments, one performs integration over k -space of a function that rapidly
changes with k . As a result, small areas of k -space give
the major contribution to the integral. Such areas often appear in the vicinity of Weyl points, nodal lines, as
well as avoided crossings. To accelerate convergence with
respect to the number of k points, we utilize adaptive
mesh refinement similar to Refs. [17, 46]. The authors
of [17, 46] assumed a pre-defined threshold, and the k points yielding Berry curvature above the threshold were
refined. This is inconvenient because one needs a good
intuition to guess an optimal value for this threshold,
because it depends both on the quantity one wants to
calculate, and the material considered.
In `WB` it is implemented in a way that does not require
initial guess from the user. This procedure, in combination with symmetrization described above, is illustrated
in Fig. 1 in two dimensions (2D), while the actual work
in 3D is described below. After excluding symmetryequivalent K -points (Fig. 1b) the results are evaluated
for every K point and stored. We assume that initially
each K point has weight _w_ - K and corresponds to a volume defined by vectors c <sup>_i_</sup> K <sup>=</sup> <sup>b</sup> <sup>_i/N_</sup> k <sup>_i_</sup> <sup>centered at</sup> <sup>K</sup> <sup>.</sup> <sup>Then</sup>
we pick a few ”most important K -points”. The criteria of importance may be different - either the Maximal
value for any _EF_, or maximal value summed over all _EF_,
or yielding most variation over the _EF_ (if the evaluated
quantity is a function of Fermi level _EF_ ). Suppose we se
lected the magenta point. Then those points are refined
- replaced with 8 points around it with coordinates
<u>K</u> <u>K</u> <u>K</u>
K <sup>_′_</sup> = K _±_ <sup><u>c</u></sup> <sup>1</sup> (20)
4 <sup>_±_</sup> <sup><u>c</u></sup> 4 <sup>2</sup> <sup>_±_</sup> <sup><u>c</u></sup> 4 <sup>3</sup> <sup>_,_</sup>
where all combinationgs of _±_ signs are used. In Fig. 1c
4 new blue K -points in the 2D case. The weight and
volume of the initial point is distributed over the new
points, thus _w_ K _′_ = _w_ - K _/_ 8 and cK <sup>_i_</sup> <sup>_′_</sup> <sup>=</sup> <sup>c</sup> <sup>_i_</sup> K <sup>_/_</sup> <sup>2.</sup> <sup>Then</sup> <sup>the</sup>
K <sup>_i_</sup> <sup>_′_</sup> <sup>=</sup> <sup>c</sup> <sup>_i_</sup>
points, thus _w_ K _′_ = _w_ - K _/_ 8 and cK <sup>_i_</sup> <sup>_′_</sup> <sup>=</sup> <sup>c</sup> <sup>_i_</sup> K <sup>_/_</sup> <sup>2.</sup> <sup>Then</sup> <sup>the</sup>
symmetrization is applied again (the four blue points are
connected by 4-fold rotation) to exclude the equivalent
points, and the weight of the equivalent points is collected on the remaining point, while the vectors c <sup>_i_</sup> K <sup>_′_</sup> <sup>are</sup>
not changed. After the new K -points are evaluated, we
go to the next iteration of refinement. On each iteration any point may be refined, including both those from
the initial regular grid, and those created during previous refinement iterations. The procedure stops after
the pre-defined number of iterations was performed. Figure 1(g) shows how undesired artificial peaks of the the
AHC curve are removed iteration by iteration, yielding a
smooth curve (See sec. III for details).
E. Minimal-distance replica selection method
The MDRS method [30] allows to obtain a more accurate Wannier interpolation, in particular when moderate q -grids are used in the _ab_ _initio_ calculations. With
MDRS method the Fourier transform (8) is modified in
the following way:
_,_
- R + T <sup>(</sup> _mn_ <sup>_j_</sup> <sup>)</sup> R
<u>1</u>
_Nmn_ R
_Xmn_ <sup>W</sup> <sup>(</sup> <sup>k</sup> <sup>) =</sup>
R
_Xmn_ ( R )
_Nmn_ R
_j_ =1
_i_ k _·_
_e_
(21)
where T <sup>(</sup> _mn_ <sup>_j_</sup> <sup>)</sup> R <sup>are</sup> <sup>_Nmn_</sup> <sup>R</sup> <sup>lattice vectors that minimise the</sup>
distance _|_ r _m_ _−_ ( r _n_ + R + T ) _|_ for a given set _m, n,_ R .
However, the evaluation of (21) is quite slower than (8),
because every k _, m, n,_ R an extra loop over _j_ is needed.
Therefore calculations employing MDRS in `postw90.x`
(which is enabled by default) takes more time. Instead it
is convenient to re-define the modified real-space matrix
elements as
_Nmn_ R _′_
_j_ =1
_X_ - _mn_ ( R ) =
- _Nmn_ <u>1</u> R _′_ <sup>_Xmn_</sup> <sup>(</sup> <sup>R</sup> <sup>_′_</sup> <sup>)</sup>
R <sup>_′_</sup>
_δ_ R _,_ R _′_ + T ( _mnj_ ) R <sup>_′_</sup>
(22)
only once for the calculation, and then the transformation to k -space is performed via
_Xmn_ <sup>W</sup> <sup>(</sup> <sup>k</sup> <sup>) =</sup>
R
_e_ <sup>_i_</sup> <sup>kR</sup> _X_ <sup>�</sup> _mn_ ( R ) _._ (23)
Note, that the set of R vectors in (22) is increased compared to the initial set of vectors in (6) in order to fit
all nonzero elements _X_ <sup>�</sup> _mn_ ( R ) Equation (23) having essentially same form as (8), can be evaluated via mixed
Fourier transform, as described in Sec. II B.
Thus the MDRS method implemented in `WB` via
Eqs. (22)-(23), and has practically no extra computational cost, while giving notable accuracy improvement.
F. Scanning multiple Fermi levels
It is often needed to study anomalous Hall conductivity
(AHC) not only for the pristine Fermi level _EF_, but considering it as a free parameter _ϵ_ . On the one hand it gives
an estimate of the accuracy of the calculation, e.g. sharp
spikes may indicate that the result is not converged. On
the other hand _ϵ_ -dependence gives access to the question of the influence of doping and temperature, and also
allows calculation of anomalous Nernst effect (A1). As
implemented in `postw90.x`, evaluation of multiple Fermi
levels has a large computational cost. However there is
a way to perform the computation of AHC for multiple
Fermi levels without extra computational costs. To show
_δ_ Ω _i_ _≡_ Ω( _ϵi_ +1) _−_ Ω( _ϵi_ ) =
this let’s rewrite (10), (11) as _σαβ_ ( _ϵ_ ) = _−ϵαβγ_ <sup>_<u>e</u>_</sup> ℏ <sup>2</sup>
this let’s rewrite (10), (11) as _σαβ_ ( _ϵ_ ) = _−ϵαβγ_ <sup>_<u>e</u>_</sup> ℏ <sup>2</sup> <sup>Ω</sup> <sup>_γ_</sup> <sup>(</sup> <sup>_ϵ_</sup> <sup>),</sup>
where Ω _γ_ ( _ϵ_ ) = <sup>�</sup> K <sup>_w_</sup> <sup>K</sup> <sup>Ω</sup> <sup>_γ_</sup> <sup>(</sup> <sup>K</sup> <sup>_, ϵ_</sup> <sup>)</sup> <sup>and</sup>
K <sup>_w_</sup> <sup>K</sup> <sup>Ω</sup> <sup>_γ_</sup> <sup>(</sup> <sup>K</sup> <sup>_, ϵ_</sup> <sup>)</sup> <sup>and</sup>
_U_ ( k _,ϵ_ )
_Pn_ ( k ) +
_l_
_O_ ( k _,ϵ_ )
_n_
_Qln_ ( k ) _,_
_O_ ( k _,ϵ_ )
_n_
Ω( K _, ϵ_ ) =
_κ_
(24)
where k = K + _κ_, the definitions of _Pn_ and _Qln_ straightly
follow from (10), and we omit the cartesian index _γ_ further in this subsection. Now suppose we want to evaluate Ω( _ϵi_ ) for a series of Fermi levels _ϵi_ . For different
k -points and Fermi levels _ϵ_ the sets of occupied _O_ ( k _, ϵ_ )
and unoccupied states _U_ ( k _, ϵ_ ) change and repeating this
summations many times may be computationally heavy.
Instead we note that when going from one Fermi level
_ϵi_ to another _ϵi_ +1 only a few states at a few _κ_ -points
change from unoccupied to occupied. Let’s denote the
set of such _κ_ -points as _δκi_ then, the change of the total
Berry curvature is
_U_ ( k _,ϵi_ +1)
_l_
=
_O_ ( k _,ϵi_ )
_n_
_O_ ( k _,ϵi_ )
_n_
_Pn_ ( k ) _−_
_U_ ( k _,ϵi_ )
_l_
_Qln_ ( k ) =
=
_δκi_ _O_ ( k _,ϵi_ +1)
-
k _n_
_Pn_ ( k ) +
_O_ ( k _,ϵi_ +1)
_n_
_Qln_ ( k ) _−_
_U_ ( k _,ϵi_ +1)
_l_
_δOi_ ( k )
_l_
_O_ ( k _,ϵi_ )
_n_
_Qln_ ( k ) _,_ (25)
_δκi_
k
_δOi_ ( k )
- _Pn_ +
_n_
_δOi_ ( k )
- _Qln_ ( k ) _−_
_n_
where _δOi_ ( k ) _≡_ _O_ ( k _, ϵi_ +1) _−_ _O_ ( k _, ϵi_ ). Note that if the
step _ϵi_ +1 _−_ _ϵi_ is small, then _δκi_ and _δOi_ ( k ) include only
few elements, if not empty. Hence the evaluation of (25)
will be very fast. Thus, the full summation (24) is needed
only for the first Fermi level.
In a similar way this approach may be applied to orbital magnetization and other Fermi-sea properties. E.g.
the orbital magnetization may be written as
_−_
_Mγ_ ( k ) =
occ
_n_
Re
- ~~H~~
_C_ _nn,γ_ <sup>+</sup> <sup>_En_</sup> <sup>Ω</sup>
~~H~~
_nn,γ_
occ
_n_
~~H~~ _ln,β_ <sup>_En_</sup> <sup>)</sup>
_−_ 2 _ϵαβγ_
unocc
_l_
Re
_Dnl,α_ ( _B_
~~H~~
_ln,β_ <sup>+</sup> <sup>_A_</sup>
occ
_n_
+ _ϵαβγ_ Im
unocc
_l_
_Dnl,α_ ( _El_ + _En_ ) _Dln,β_ (26)
of (26) expresses _Pn_ ( k ) while the second and third lines
correspond to _Qln_ ( k ).
III. EXAMPLE: AHC OF BCC IRON
In this section the usage of the `WannierBerri` code
is demonstrated on a simple example - anomalous Hall
conductivity of bcc iron. First we performed the ab-initio
calculations using the QuantumEspresso (QE) code [50]
on a grid 8 _×_ 8 _×_ 8 q -points, fixing the magnetization along
[001] axis. Next, we construct 18 WFs describing the
conduction band of Fe. These two steps follow exactly
the Tutorial#18 of Wannier90 (W90) [51], and the reader
is addressed to the documentation of Wannier90 and QE
for details.
After that, the calculation is performed by the following short python script. First, we import the needed
packages:
1 <mark>`import`</mark> <mark>`wannierberri`</mark> <mark>`as`</mark> <mark>`WB`</mark>
2 <mark>`import`</mark> <mark>`numpy`</mark> <mark>`as`</mark> <mark>`np`</mark>
Then we read the information about the system and
WFs:
3 <mark>`system=WB. System_w90(`</mark> <mark>`’Fe’`</mark> <mark>`,berry=True)`</mark>
where _Cmn,γ_ ( R ) _≡_ _ϵαβγ⟨_ 0 _m|rα_ _·_ _H_ <sup>ˆ</sup> _·_ ( _rβ_ _−_ _Rβ_ ) _|_ R _n⟩_,
_Bmn,β_ ( R ) _≡⟨_ 0 _m|H_ <sup>ˆ</sup> _·_ ( _rβ_ _−_ _Rβ_ ) _|_ R _n⟩_ and the other ingredients were explained under (10). Equation (26) is
written following the approach of Ref. 18, but the result
has a different form, which can be straightforwardly processed by analogy with (24) and (25), where the first line
from files `Fe.chk`, `Fe.eig`, `Fe.mmn` [52], or we can read
all information from a file `Fe` ~~`t`~~ `b.dat`, which is also written by Wannier90, or maybe composed by user from any
tight-binding model:
```
system=WB.System_tb( ’Fe_tb.dat’,getAA=True)
```
Next, we define the symmetries that we wish to take into
account. In the _ab_ _initio_ calculation we have specified
the magnetization along the _z_ axis, hence the symmetries
that are preserved are inversion _I_, 4-fold rotation around
the _z_ axis _C_ 4 _z_, and a combination of time-reversal _T_ and
2-fold rotation around the _x_ axis _C_ 2 _x_ . Here we need only
the generators of the symmetry group.
4 <mark>`system. set_symmetries ([`</mark>
5 <mark>`’Inversion ’`</mark> <mark>`,`</mark> <mark>`’C4z’`</mark> <mark>`,`</mark> <mark>`’TimeReversal *C2x’`</mark> <mark>`])`</mark>
The other symmetries will be automatically obtained by
taking products of these generators, for example, the mirror is _Mz_ = ( _C_ 4 _z_ ) <sup>2</sup> _· I_ .
Next we need to set the grids of k, K and _κ_ points.
Most conveniently it can be done by setting the `’length’`
parameter (in <sup>˚</sup> A):
6 <mark>`grid=WB.Grid(system,length =100)`</mark>
This will guarantee the grid to be consistent with the
symmetries, and the spacing of k -points will be ∆ _k_ _≈_
length2 _<u>π</u>_ <sup>.</sup> <sup>In</sup> <sup>this</sup> <sup>particular</sup> <sup>case,</sup> <sup>the</sup> <sup>reciprocal</sup> <sup>lattice</sup> <sup>vec-</sup>
tors have length _|_ b _i|_ = 3 _._ 1 <sup>˚</sup> A <sup>_−_</sup> <sup>1</sup>, hence the suggested grid
<u>length</u> _<u>·|</u>_ <u>b</u> _<u>i|</u>_
size is 2 _π_ _≈_ 49. However, a minimal FFT grid
13 _×_ 13 _×_ 13 is needed to fit all R vectors. Therefore the
grid size are adjusted to 52 _×_ 52 _×_ 52 points (13 _×_ 13 _×_ 13
_κ_ -grid, 4 _×_ 4 _×_ 4 K -grid).
Next, we want to integrate the Berry curvature to get
the AHC. This is done by the `WB.integrate` method.
7 <mark>`WB.integrate(system,`</mark> <mark>`grid,`</mark>
8 <mark>`Efermi=np.linspace (12.,13.,1001),`</mark>
9 <mark>`smearEf =10,`</mark> <mark>`#`</mark> <mark>`10K`</mark>
10 <mark>`quantities =[`</mark> <mark>`"ahc"`</mark> <mark>`,"cumdos"`</mark> <mark>`],`</mark>
11 <mark>`numproc =16,`</mark>
12 <mark>`adpt_num_iter =20,`</mark>
13 <mark>`fout_name=`</mark> <mark>`"Fe"`</mark> <mark>`)`</mark>
and in addition to AHC we evaluate the cumulative density of states (cDOS) (A6). We consider Fermi level as a
free parameter, scanning over a set of Fermi levels from
12 to 13 eV with a step of 1 meV, and a small smearing over the Fermi level corresponding to temperature
10K ( _∼_ 1 meV) is used. It is known, that in the BZ
integration, some k points may give a large contribution
to the integral. This is especially strong for Berry curvature, which blows up near band degeneracies and avoided
crossings, that fall close to the Fermi level. This is reflected as huge spikes in the _EF_ -resolved curves – see blue
curve in Fig 1(g). To make the calculation more precise
around such points, an adaptive recursive refinement algorithm is used, and we set the number of iterations to
20. The integration is done in parallel over K -points by
means of the `multiprocessing` [53] module and the parameter `’numproc’` specifies that a `Pool` of 16 worker processes
is used.
From the cDOS we can find the precise position of the
Fermi level _EF_ = 12 _._ 610 eV - the energy at which the
cumulative DOS reaches 8 electrons per unit cell. This is
more accurate, then the result evaluated from a coarse _ab_
_initio_ grid. Next, it is instructive to plot the AHC after
each iteration. In Fig. 1g one can see that already after
20 iterations the chaotic peaks are removed, and we can
get a reasonably sooth curve, although we have started
from a rather coarse grid of only 52 _×_ 52 _×_ 52 k -points.
This short example demonstrates that the calculations
with `WB` may be run with a few lines of Python script.
Appendix A describes more of the implemented functionality, and more options are under development or under testing. For more detailed and updated information
please refer to the online documentation at [38].
IV. COMPUTATION TIME
In this section we will compare the time for the calculations of anomalous Hall conductivity using `postw90.x`
and `WannierBerri` . We will take the example of bcc Fe
and vary different parameters. Calculations were performed on identical 32-core virtual nodes of the ScienceCloud cluster at University of Z¨urich. The nodes are
based on AMD EPYC 7702 64-Core Processors with frequency 2GHz and 128 GB RAM per node, and one node
was used per task.
The computation consists of two phases. First, some
preliminary operations are done. Those include reading
the input files and performing Fourier transform from _ab_
_initio_ grid q to real-space vectors R : eqs. (3), (6) and
(7). This operation takes in `WB` ( `postw90.x` ) between 2
(3) seconds for the small q grid 4 _×_ 4 _×_ 4 and 2 (3) minutes
for a large grid of 16 _×_ 16 _×_ 16. This time is mostly taken
by reading the large formatted text file `Fe.mmn`, and it is
done only once and does not scale with the density of the
interpolation grid. In `WB` this is done in the constructor
of the `System_w90` class, and the object can be saved on
disk using a `pickle` module, so that this operation does
not repeat for further calculations.
Next comes the interpolation part itself, for which the
evaluation time scales linearly with the number of k points used. Further the time for an interpolation grid
200 _×_ 200 _×_ 200 is given, which is a rather good grid to
make an accurate calculation for this material.
We start with comparing time with the MDRS
switched off and without use of symmetries in `WB` . As
can be seen in Fig. 2, for a small q -grid 4 _×_ 4 _×_ 4 `WB` is
just slightly faster then `postw90.x` . However, for dense
q -grids the computational time of `postw90.x` grows linearly with the number of q points, while in `WB` it stays
almost the same. This happens because in `postw90.x` the
Fourier transform is major time-consuming routine. On
the other hand, in `WB`, although cost of the mixed Fourier
transform is expected to grow logarithmically with the
_ab_ _initio_ grid, we do not see it because Fourier transform
amounts only to _∼_ 10% of the computational time.
10 <sup>5</sup>
10 <sup>4</sup>
10 <sup>3</sup>
10 <sup>2</sup>
10 <sup>1</sup>
~14 hours
WB, w/o symmetries
36 seconds
10 <sup>4</sup>
10 <sup>3</sup>
WB pw90
WannierBerri
4x4x4
6x6x6
8x8x8
10x10x10
12x12x12
16x16x16
_ab initio_ grid
FIG. 2. Computational time for AHC using `WB` (triangles)
and `postw90.x` (circles) for different _ab_ _initio_ grids. For
`postw90.x` the calculations are done with (green) and without
(purple) MDRS. For `WB` the calculations are done with (cyan)
and without (red) use of symmetries.
Next, we switch on the MDRS method, and the computational time of `postw90.x` grows by a factor of 5. On
the other hand the computational time of `WannierBerri`
does not change (not shown).
Finally let’s switch on the use of symmetries in `WB` .
Thus the computational time decreases by a factor of
8. In the ultra-dense grid limit one would expect the
speedup to be approximately equal to the number of elements in the group – 16 in the present example, due to exclusion of symmetry-equivalent K -points. But this does
not happen, because we use an FFT grid of 25 _×_ 25 _×_ 25
_κ_ -points, hence the K -grid is only 8 _×_ 8 _×_ 8, and a considerable part of K -points are at high-symmetry positions.
Therefore they do not have symmetric partners to be excluded from the calculation.
Thus we can see that the difference in computational
time with `postw90.x` and `WB` reaches 3 orders of magnitude for this example. Note that the examples above
were performed only for the pristine Fermi level. Now
let’s see what happens upon scanning the Fermi levels
(Fig. 3). In `WB` the computational time remains practically unchanged when we use upto _Nϵ_ _≈_ 1000 Fermi
levels, and only start to grow considerably at _Nϵ_ _∼_ 10 <sup>4</sup> .
On the other hand in `postw90.x` the computational time
significantly grows with _Nϵ_, which is especially remarkable for small q grids, where the growth becomes linear already from _Nϵ_ _∼_ 10. For denser q grids the fixed
amount of time (independent of _Nϵ_ ) is larger, so the linear growth starts at higher _Nϵ_ .
In this section we did not use the adaptive refinement
procedure. However when one starts from a rather large
grid of K -points, the new K -points coming from the refinement procedure constitute only a small portion of the
initial grid, and hence do not contribute much into com
10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup>
# of Fermi levels
FIG. 3. Computational time for scanning multiple Fermi levels using `WB` (dashed lines) and `postw90.x` (pw90, solid lines)
for different _ab_ _initio_ grids. MDRS method and symmetries
are disabled here.
putation time.
In this section we have shown that the methods suggested in this article help to significantly reduce the computation time from days to minutes. However, bcc iron
is a simple example with only 1 atom per unit cell, and
only 18 WFs are needed. More complicated systems will
require more time. For example, to obtain a converged
value of anomalous Nernst conductivity in PrAlGe [54]
using `wannier19` (early version of `WB` ), the calculation
took approximately 30 hours on the same computation
node. Estimates predict that the same calculation with
`postw90.x` could take several months. Thus it is the case
where the numerical advance not only saves time, but
also brings the calculation from the unreasonably timeconsuming area, where most people would avoid working,
to a reasonably feasible computation time.
V. SUMMARY
In this article I have presented a series of methods that
boost the performance of Wannier interpolation to a new
level. The methods are implemented in the new Python
code `WannierBerri` . It is important to note that the
mixed Fourier transform and the optimization of MDRS
method and Fermi-level iteration, while giving a large
computational advantage, do not affect the result within
machine precision. Hence the new code can be easily
benchmarked with the established `postw90.x` code. The
code not only allows to perform high-speed and highprecision calculations of AHC and a palette of other properties, it also serves as a platform for implementating new
functionalities involving Wannier interpolation. Thus it
has a potential to become a new community code. Interestingly, the code uses the same routines to perform
calculations both based on WFs and tight-binding mod
els. Finally, in combination with recent advances in automated construction of WFs, it paves a way to highthroughput calculations of properties of solids that require Wannier interpolation.
ACKNOWLEDGEMENTS
I thank Ivo Souza and Cheol-Hwan Park for useful discussions and comments helping to improve the
manuscript. I also acknowledge Xiaoxiong Liu, Miguel
´Angel Jim´enez Herrera, Patrick M. Lenggenhager, JaeMo Lihm, Minsu Ghim for fixing bugs and further development of the code, which will be described elsewhere. I acknowledge support from the Swiss National
Science Foundation (grant number: PP00P2 ~~1~~ 76877),
the NCCR MARVEL and the European Union’s Horizon 2020 research and innovation program (ERC-StGNeupert-757867-PARATOP).
Appendix A: Functionality implemented in
```
WannierBerri
```
This appendix outlines the functionality that is currently implemented in `WannierBerri` . For more detailed
and updated information please refer to the online documentation [38]
1. Integration
The code may be used to evaluate the following quantities, represented as Brillouin zone integrals:
- `’ahc’` `:` intrinsic anomalous Hall conductivity
_σαβ_ <sup>AHE</sup> [55] via (11);
- Anomalous Nernst conductivity [56] _ααβ_ <sup>ANE</sup> may be
obtained from _σαβ_ ( _ϵ_ ) <sup>AHE</sup> evaluated over a dense
grid of Fermi levels _ϵ_
+64
+16
+4
0
-4
-16
-64
FIG. 4. Fermi surface of bcc iron, colored by the Berry curvature Ω _z_ . Figure produced using `FermiSurfer` [59].
- `’gyrotropic` ~~`K`~~ `orb’` and `gyrotropic` ~~`K`~~ `spin` `:`
gyrotropic magnetoelectric effect (GME) [58]
tensor (orbital and spin contributions):
occ
_n_
_∂αm_ <sup>_β_</sup> _n_ <sup>;</sup> (A4)
_Kαβ_ ( _µ_ ) =
[ _d_ k ]
- `’conductivity` `Ohmic’` `:` ohmic conductivity
within the Boltzmann transport theory in constant
relaxation time ( _τ_ ) approximation:
occ
_n_
_En_ k _<µ_
_n_
_∂αβ_ <sup>2</sup> <sup>_En_</sup> <sup>k</sup> <sup>;</sup> (A5)
[ _d_ k ]
[ _d_ k ]
_∂αEn_ k _∂βEn_ k _δ_ ( _En_ k _−_ _µ_ ) =
_,_ (A1)
_T_ <sup>_<u>µ</u>_</sup>
_αβ_ <sup>ANE</sup> = _−_ <sup><u>1</u></sup>
_ααβ_ <sup>ANE</sup>
_e_
_σαβ_ <sup>Ohm</sup> ( _µ_ ) = _τ_
= _τ_
- _dε_ <sup>_<u>∂f</u>_</sup> _∂ε_
<sup>_<u>∂f</u>_</sup> _∂ε_ <sup>_σαβ_</sup> <sup>(</sup> <sup>_ε_</sup> <sup>)</sup> <sup>_<u>ε −</u>_</sup> _T_ <sup>_<u>µ</u>_</sup>
;
1 + _e_
where _f_ ( _ε_ ) = 1 _/_
_<u>ε−µ</u>_
_k_ B _T_
- `’Morb’` `:` orbital magnetization
- `’dos’` `:` density of states _n_ ( _E_ );
- `’cumdos’` `:` cumulative density of states
_E_
_n_ <sup>_γ_</sup> <sup>(</sup> <sup>k</sup> <sup>) =</sup> <sup>_<u>e</u>_</sup>
2
_Mn_ <sup>_γ_</sup>
<sup>_<u>e</u>_</sup>
2ℏ <sup>Im</sup> <sup>_ϵαβγ_</sup>
occ
- [ _d_ k ] ��
_n_
_n_ ( _ϵ_ ) _dϵ._ (A6)
_⟨∂aun_ k _|H_ k + _En_ k _−_ 2 _EF |∂bun_ k _⟩_ ; (A2)
_N_ ( _E_ ) =
- `’berry` ~~`d`~~ `ipole’` `:` berry curvature dipole
_−∞_
2. Tabulating
`WB` can also tabulate certain band-resolved quantities
over the Brillouin zone. This feature is called by, e.g.
_Dαβ_ ( _µ_ ) =
occ
[ _d_ k ]
_n_
_∂α_ Ω <sup>_β_</sup> _n_ <sup>_,_</sup> (A3)
which describes nonlinear Hall effect [57];
0.10
0.05
0.00
0.05
0.10
0.15
0.20
_l_ max = 100
_l_ max = 200
_l_ max = 300
_l_ max = 400
pw2wan
2 1 0 1 2
_EF_ _EF_ <sup>0</sup> <sup>(eV)</sup>
elements should be evaluated within the _ab_ _initio_ code,
namely within its interface to Wannier90. However, only
QuantumEspresso [50] has the most complete interface
`pw2wannier90.x` . The other codes provide only the basic interface, which includes the eigenenergies _En_ q ( `.eig`
file) and overlaps
_Mmn_ <sup>b</sup> <sup>(</sup> <sup>q</sup> <sup>) =</sup> <sup>_⟨um_</sup> <sup>q</sup> <sup>_|un_</sup> <sup>q</sup> <sup>+</sup> <sup>b</sup> <sup>_⟩_</sup> (B1)
(file `.mmn` ), where b vector connects neighbouring q points. This information allows to interpolate the band
energies (and their derivatives of any order) as well as
Berry connections [20] and Berry curvature [17]. However, to evaluate the orbital moment of a Bloch state,
one needs matrix elements of the Hamiltonian [18] ( `.uHu`
file)
_Cmn_ <sup>b</sup> <sup>1</sup> <sup>_,_</sup> <sup>b</sup> <sup>2</sup> ( q ) = _⟨um_ q + b 1 _|H_ <sup>ˆ</sup> q _|un_ q + b 2 _⟩._ (B2)
The evaluation of (B2) is very specific to the details of the
_ab initio_ code, and implemented only in `pw2wannier90.x`
and only for norm-conserving pseudopotentials. To enable the study of properties related to the orbital moment
with other _ab initio_ codes, the following workaround may
be employed. By inserting a complete set of Bloch states
at a particular q point 1 = <sup>�</sup> _l_ <sup>_∞_</sup> <sup>_|ul_</sup> <sup>q</sup> <sup>_⟩⟨ul_</sup> <sup>q</sup> <sup>_|_</sup> <sup>we can rewrite</sup>
(B2) as
FIG. 5. Orbital magntization of bcc Fe as a function of
the Fermi level _EF_ reative to the pristine Fermi level _EF_ <sup>0</sup> <sup>,</sup>
evaluated using the `.uHu` file computed with `pw2wannier90.x`
(dashed line) and using the `wannierberri.mmn2uHu` interface
(solid lines) with different summation limit _l_ max in (B3).
14 <mark>`WB.tabulate(system,`</mark> <mark>`grid,`</mark>
15 <mark>`quantities =[`</mark> <mark>`"berry"`</mark> <mark>`],`</mark>
16 <mark>`fout_name=`</mark> <mark>`"Fe"`</mark> <mark>`,`</mark>
17 <mark>`numproc =16,`</mark>
18 <mark>`ibands=np.arange (4,10),`</mark>
19 <mark>`Ef0 =12.610)`</mark>
which will produce files `Fe` ~~`b`~~ `erry-?.frmsf`, containing
the Energies and Berry curvature of bands `4-9` (band
counting starts from zero). The format of the files allows
to be directly passed to the `FermiSurfer` visualization
tool [59] which can produce a plot like Fig 4. Transformation of files to other visualization software is straightforward.
Currently the following quantities are available to tabulate:
- `’berry’` `:` Berry curvature
Ω <sup>_γ_</sup> _n_ <sup>(</sup> <sup>k</sup> <sup>) =</sup> <sup>_−ϵαβγ_</sup> <sup>Im</sup> <sup>_⟨∂αun_</sup> <sup>k</sup> <sup>_|∂βun_</sup> <sup>k</sup> <sup>_⟩_</sup> <sup>;</sup> (A7)
- `’morb’` `:` orbital moment of Bloch states
- _∗_
_El_ q _Mln_ <sup>b</sup> <sup>2</sup>
_Cmn_ <sup>b</sup> <sup>1</sup> <sup>_,_</sup> <sup>b</sup> <sup>2</sup> ( q ) _≈_
_l_ max
_l_
- _Mlm_ <sup>b</sup> <sup>1</sup>
_lm_ <sup>b</sup> <sup>1(</sup> <sup>q</sup> <sup>)</sup>
_ln_ <sup>b</sup> <sup>2(</sup> <sup>q</sup> <sup>)</sup> <sup>_._</sup> (B3)
<sup>_γ_</sup> _n_ <sup>(</sup> <sup>k</sup> <sup>) =</sup> <sup>_<u>e</u>_</sup>
2
_m_ <sup>_γ_</sup> _n_
<sup>_<u>e</u>_</sup> (A8)
2ℏ <sup>_ϵαβγ_</sup> <sup>Im</sup> <sup>_⟨∂αun_</sup> <sup>k</sup> <sup>_|H_</sup> <sup>k</sup> <sup>_−_</sup> <sup>_En_</sup> <sup>k</sup> <sup>_|∂βun_</sup> <sup>k</sup> <sup>_⟩_</sup> <sup>;</sup>
This equation is implemented within the
`wannierberri.mmn2uHu` submodule, which allows
to generate the `.uHu` file out of `.mmn` and `.eig` files. The
equality in (B3) is exact only in the limit _l_ max _→∞_
and infinitely large basis set for the wavefunctions
representation. So in practice one has to check convergence for a particular system. As an example the
bandstructure of bcc Fe was calculated based on the QE
code and a norm-sonserving pseudopotential from the
PseudoDojo library[60, 61]. Next, the orbital magnetization was calculated using the `.uHu` file computed with
`pw2wannier90.x` and using the `wannierberri.mmn2uHu`
interface with different summation limit _l_ max in (B3). As
can be seen in Fig. 5 already _l_ max = 200 (corresponding
energy _∼_ 230 eV) yields a result very close to that of
`pw2wannier90.x` . However one should bear in mind
that convergence depends on many factors, such as as
choice of WFs and pseudopotentials. In particular, for
tellurium we observed [24] that including only a few
bands above the highest _p_ -band is enough to obtain accurate results. However for iron, using a pseudopotential
shipped with the examples of Wannier90, we failed to
reach convergence even with _l_ max = 600.
To interpolate the spin operator expectation value,
the matrix _smn_ ( q ) = _⟨um_ q _|σ_ ˆ _|un_ q _⟩_ is needed. To facilitate study of spin-dependent properties within VASP
[62] code, a submodule `wannierberri.vaspspn` is included, which computes _Smn_ q based on the normalized
- `’spin’` `:` the expectation value of the Pauli operator
s _n_ ( k ) = _⟨un_ k _|σ_ ˆ _|un_ k _⟩_ ; (A9)
- `’V’` `:` the band gradients _∇_ k _En_ k .
Appendix B: Evaluation of additional matrix
elements
Wannier interpolation starts from certain matrix elements defined on the _ab_ _initio_ ( q ) grid. Those matrix
pseudo-wavefunction read from the `WAVECAR` file. Note
that the use of pseudo-wavefunction instead of the full
PAW [63] wavefunction is an approximation, which however in practice gives a rather accurate interpolation of
spin.
The `mmn2uHu` and `vaspspn` modules were initially developed and used in [24] as separate scripts, but were
not published so far. Now they are included in the
`WannierBerri` package with a hope of being useful for
the community.
[1] G. H. Wannier, The structure of electronic excitation lev
els in insulating crystals, Phys. Rev. [52](https://doi.org/10.1103/PhysRev.52.191), 191 (1937).
[2] N. Marzari, A. A. Mostofi, J. R. Yates, I. Souza, and
D. Vanderbilt, Maximally localized Wannier functions:
Theory and applications, Rev. Mod. [Phys.](https://doi.org/10.1103/RevModPhys.84.1419) 84, 1419
[(2012).](https://doi.org/10.1103/RevModPhys.84.1419)
[3] D. Vanderbilt and R. D. King-Smith, Electric polariza
tion as a bulk quantity and its relation to surface charge,
Phys. Rev. B [48](https://doi.org/10.1103/PhysRevB.48.4442), 4442 (1993).
[4] R. D. King-Smith and D. Vanderbilt, Theory of polariza
tion of crystalline solids, Phys. Rev. B [47](https://doi.org/10.1103/PhysRevB.47.1651), 1651 (1993).
[5] R. Resta, Macroscopic polarization in crystalline di
electrics: [the geometric phase approach, Rev. Mod. Phys.](https://doi.org/10.1103/RevModPhys.66.899)
66, [899](https://doi.org/10.1103/RevModPhys.66.899) (1994).
[6] T. Thonhauser, D. Ceresoli, D. Vanderbilt, and R. Resta,
Orbital magnetization in periodic insulators, [Phys.](https://doi.org/10.1103/PhysRevLett.95.137205) Rev.
Lett. 95, 137205 (2005).
[7] D. Ceresoli, T. Thonhauser, D. Vanderbilt, and R. Resta,
Orbital magnetization in crystalline solids: Multi-band
insulators, chern insulators, and metals, Phys. [Rev.](https://doi.org/10.1103/PhysRevB.74.024408) B
74, [024408](https://doi.org/10.1103/PhysRevB.74.024408) (2006).
[8] D. Xiao, M.-C. Chang, and Q. Niu, Berry phase effects on
electronic properties, Rev. Mod. [Phys.](https://doi.org/10.1103/RevModPhys.82.1959) 82, 1959 (2010).
[9] A. A. Soluyanov and D. Vanderbilt, Computing topolog
[ical invariants without inversion symmetry, Phys. Rev. B](https://doi.org/10.1103/PhysRevB.83.235401)
83, [235401](https://doi.org/10.1103/PhysRevB.83.235401) (2011).
[10] B. Bradlyn, L. Elcoro, J. Cano, M. G. Vergniory,
Z. Wang, C. Felser, M. I. Aroyo, and B. A. Bernevig,
Topological quantum chemistry, Nature 547 [, 298 (2017).](https://doi.org/10.1038/nature23268)
[11] Q. Wu, S. Zhang, H.-F. Song, M. Troyer, and
A. A. Soluyanov, WannierTools: An open-source software package for novel topological materials, [Computer](https://doi.org/https://doi.org/10.1016/j.cpc.2017.09.033)
Physics [Communications](https://doi.org/https://doi.org/10.1016/j.cpc.2017.09.033) 224, 405 (2018).
[12] A. Bouhon, A. M. Black-Schaffer, and R.-J. Slager, Wil
son loop approach to fragile topology of split elementary band representations and topological crystalline in[sulators with time-reversal symmetry, Phys. Rev. B](https://doi.org/10.1103/PhysRevB.100.195135) 100,
[195135](https://doi.org/10.1103/PhysRevB.100.195135) (2019).
[13] N. Varnava, I. Souza, and D. Vanderbilt, Axion coupling
[in the hybrid Wannier representation, Phys. Rev. B](https://doi.org/10.1103/PhysRevB.101.155130) 101,
[155130](https://doi.org/10.1103/PhysRevB.101.155130) (2020).
[14] I. Souza, N. Marzari, and D. Vanderbilt, Maximally lo
calized Wannier functions for entangled energy bands,
Phys. Rev. B [65](https://doi.org/10.1103/PhysRevB.65.035109), 035109 (2001).
Appendix C: Software and data availability
All software used and developed in this article is opensource and available for free. `WannierBerri` [38] is available via `pip` [39] and GitHub [40]. External libraries used
in `WannierBerri` include `NumPy` [64], `SciPy` [65], `pyFFTW`
[66] wrapper of FFTW3 library [67] and `lazy-propery`
[68]. Wannier90 [28–30] and QuantumEspresso [50] are
available at [51, 69] and [70]. Figures were produced using `matplotlib` [71] (Figs. 1-3 and 5) and FermiSurfer[59]
(Fig. 4), and also with help of Inkscape [72].
All input files needed to generate the WFs to reproduce
the example of the manuscript are part of tutorial#18 of
Wannier90, and are available at [51, 69].
[15] J. C. Slater and G. F. Koster, Simplified lcao method
for the periodic potential problem, Phys. [Rev.](https://doi.org/10.1103/PhysRev.94.1498) 94, 1498
[(1954).](https://doi.org/10.1103/PhysRev.94.1498)
[16] D. Gos´albez-Mart´ınez, I. Souza, and D. Vanderbilt, Chi
ral degeneracies and Fermi-surface Chern numbers in bcc
Fe, Phys. Rev. B [92](https://doi.org/10.1103/PhysRevB.92.085138), 085138 (2015).
[17] X. Wang, J. R. Yates, I. Souza, and D. Vanderbilt, Ab
initio calculation of the anomalous Hall conductivity by
Wannier interpolation, Phys. Rev. B [74](https://doi.org/10.1103/PhysRevB.74.195118), 195118 (2006).
[18] M. G. Lopez, D. Vanderbilt, T. Thonhauser, and
I. Souza, Wannier-based calculation of the orbital magnetization in crystals, Phys. Rev. B [85](https://doi.org/10.1103/PhysRevB.85.014435), 014435 (2012).
[19] G. Pizzi, D. Volja, B. Kozinsky, M. Fornari, and
N. Marzari, BoltzWann: A code for the evaluation of
thermoelectric and electronic transport properties with a
maximally-localized Wannier functions basis, [Computer](https://doi.org/https://doi.org/10.1016/j.cpc.2013.09.015)
Physics [Communications](https://doi.org/https://doi.org/10.1016/j.cpc.2013.09.015) 185, 422 (2014).
[20] J. R. Yates, X. Wang, D. Vanderbilt, and I. Souza, Spec
tral and fermi surface properties from Wannier interpolation, Phys. Rev. B [75](https://doi.org/10.1103/PhysRevB.75.195121), 195121 (2007).
[21] J. Iba˜nez Azpiroz, S. S. Tsirkin, and I. Souza, Ab initio
calculation of the shift photocurrent by Wannier interpolation, Phys. Rev. B [97](https://doi.org/10.1103/PhysRevB.97.245143), 245143 (2018).
[22] F. Giustino, M. L. Cohen, and S. G. Louie, Electron
phonon interaction using Wannier functions, [Phys.](https://doi.org/10.1103/PhysRevB.76.165108) Rev.
B 76, [165108](https://doi.org/10.1103/PhysRevB.76.165108) (2007).
[23] S. Ponc´e, E. Margine, C. Verdi, and F. Giustino,
EPW: Electron–phonon coupling, transport and superconducting properties using maximally localized Wannier
functions, Computer Physics [Communications](https://doi.org/https://doi.org/10.1016/j.cpc.2016.07.028) 209, 116
[(2016).](https://doi.org/https://doi.org/10.1016/j.cpc.2016.07.028)
[24] S. S. Tsirkin, P. A. Puente, and I. Souza, Gyrotropic
effects in trigonal tellurium studied from first principles,
Phys. Rev. B [97](https://doi.org/10.1103/PhysRevB.97.035158), 035158 (2018).
[25] J. Qiao, J. Zhou, Z. Yuan, and W. Zhao, Calculation of
intrinsic spin Hall conductivity by Wannier interpolation,
Phys. Rev. B [98](https://doi.org/10.1103/PhysRevB.98.214402), 214402 (2018).
[26] J. H. Ryoo, C.-H. Park, and I. Souza, Computation of
intrinsic spin Hall conductivities from first principles us[ing maximally localized Wannier functions, Phys. Rev. B](https://doi.org/10.1103/PhysRevB.99.235113)
99, [235113](https://doi.org/10.1103/PhysRevB.99.235113) (2019).
[27] N. Marzari and D. Vanderbilt, Maximally localized gen
eralized Wannier functions for composite energy bands,
Phys. Rev. B [56](https://doi.org/10.1103/PhysRevB.56.12847), 12847 (1997).
[28] A. A. Mostofi, J. R. Yates, Y.-S. Lee, I. Souza, D. Van
derbilt, and N. Marzari, wannier90: A tool for obtaining maximally-localised Wannier functions, [Computer](https://doi.org/https://doi.org/10.1016/j.cpc.2007.11.016)
Physics [Communications](https://doi.org/https://doi.org/10.1016/j.cpc.2007.11.016) 178, 685 (2008).
[29] A. A. Mostofi, J. R. Yates, G. Pizzi, Y.-S. Lee, I. Souza,
D. Vanderbilt, and N. Marzari, An updated version
of wannier90: A tool for obtaining maximally-localised
Wannier functions, Computer [Physics](https://doi.org/https://doi.org/10.1016/j.cpc.2014.05.003) Communications
185, [2309](https://doi.org/https://doi.org/10.1016/j.cpc.2014.05.003) (2014).
[30] G. Pizzi, V. Vitale, R. Arita, S. Bl¨ugel, F. Freimuth,
G. G´eranton, M. Gibertini, D. Gresch, C. Johnson,
T. Koretsune, J. Iba˜nez-Azpiroz, H. Lee, J.-M. Lihm,
D. Marchand, A. Marrazzo, Y. Mokrousov, J. I. Mustafa,
Y. Nohara, Y. Nomura, L. Paulatto, S. Ponc´e, T. Ponweiser, J. Qiao, F. Th¨ole, S. S. Tsirkin, M. Wierzbowska,
N. Marzari, D. Vanderbilt, I. Souza, A. A. Mostofi, and
J. R. Yates, Wannier90 as a community code: new features and applications, Journal of [Physics:](https://doi.org/10.1088/1361-648x/ab51ff) Condensed
Matter 32 [,](https://doi.org/10.1088/1361-648x/ab51ff) 165902 (2020).
[31] J. I. Mustafa, S. Coh, M. L. Cohen, and S. G. Louie,
Automated construction of maximally localized Wannier
functions for bands with nontrivial topology, [Phys.](https://doi.org/10.1103/PhysRevB.94.125151) Rev.
B 94, [125151](https://doi.org/10.1103/PhysRevB.94.125151) (2016).
[32] A. Damle, L. Lin, and L. Ying, Compressed repre
sentation of kohn–sham orbitals via selected columns
of the density matrix, Journal of [Chemical](https://doi.org/10.1021/ct500985f) Theory
and [Computation](https://doi.org/10.1021/ct500985f) 11, 1463 (2015), pMID: 26574357,
[https://doi.org/10.1021/ct500985f.](https://arxiv.org/abs/https://doi.org/10.1021/ct500985f)
[33] A. Damle and L. Lin, Disentanglement via entan
glement: A unified method for Wannier localization,
Multiscale Modeling & [Simulation](https://doi.org/10.1137/17M1129696) 16, 1392 (2018),
[https://doi.org/10.1137/17M1129696.](https://arxiv.org/abs/https://doi.org/10.1137/17M1129696)
[34] V. Vitale, G. Pizzi, A. Marrazzo, J. R. Yates, N. Marzari,
and A. A. Mostofi, Automated high-throughput Wannierisation, npj Computational [Materials](https://doi.org/10.1038/s41524-020-0312-y) 6, 66 (2020).
[35] Z. Zhang, R.-W. Zhang, X. Li, K. Koepernik, Y. Yao,
and H. Zhang, High-throughput screening and automated processing toward novel topological insulators,
The Journal of Physical [Chemistry](https://doi.org/10.1021/acs.jpclett.8b02800) Letters 9, 6224
[(2018),](https://doi.org/10.1021/acs.jpclett.8b02800) [https://doi.org/10.1021/acs.jpclett.8b02800.](https://arxiv.org/abs/https://doi.org/10.1021/acs.jpclett.8b02800)
[36] K. F. Garrity and K. Choudhary, Database of Wannier
tight-binding Hamiltonians using high-throughput density functional theory (2020), [arXiv:2007.01205](https://arxiv.org/abs/2007.01205) [cond[mat.mtrl-sci].](https://arxiv.org/abs/2007.01205)
[37] JARVIS-WannierTB database, `[https://www.ctcms.](https://www.ctcms.nist.gov/jarviswtb/)`
`[nist.gov/jarviswtb/](https://www.ctcms.nist.gov/jarviswtb/)` .
[38] `WannierBerri` code, `[https://wannier-berri.org/](https://wannier-berri.org/)` .
[39] PyPI repository, `[https://pypi.org/project/](https://pypi.org/project/wannierberri)`
`[wannierberri](https://pypi.org/project/wannierberri)` .
[40] `WannierBerri` git repository, `[https://github.com/](https://github.com/stepan-tsirkin/wannier-berri)`
`[stepan-tsirkin/wannier-berri](https://github.com/stepan-tsirkin/wannier-berri)` ().
[41] During the work on the code and on the manuscript, the
author did not receive any funding from Basque institutions or foundations. Usage of Basque language is motivated by a coincidental similarity to the Berry phase,
and by good memories of the years that the author spent
in the Basque region.
[42] J. W. Cooley and J. W. Tukey, An algorithm for the ma
chine computation of the complex Fourier series, Math.
Computation 19, 297–301 (1965).
[43] M. Heideman, D. Johnson, and C. Burrus, Gauss and
the history of the fast Fourier transform, IEEE ASSP
Magazine 1, 14 (1984).
[44] P. Duhamel and M. Vetterli, Fast fourier transforms: A
tutorial review and a state of the art, Signal [Processing](https://doi.org/https://doi.org/10.1016/0165-1684%0x2890%0x2990158-U)
19, [259](https://doi.org/https://doi.org/10.1016/0165-1684%0x2890%0x2990158-U) (1990).
[45] C. Van Loan, _Computational_ _Frameworks_ _for_ _the_ _Fast_
_Fourier_ _Transform_ (Society for Industrial and Applied
Mathematics, USA, 1992).
[46] Y. Yao, L. Kleinman, A. H. MacDonald, J. Sinova,
T. Jungwirth, D.-s. Wang, E. Wang, and Q. Niu, First
principles calculation of anomalous Hall conductivity in
ferromagnetic bcc Fe, Phys. Rev. Lett. [92](https://doi.org/10.1103/PhysRevLett.92.037204), 037204 (2004).
[47] This is always possible unless _N_ k <sup>_i_</sup> <sup>is</sup> <sup>a</sup> <sup>prime</sup> <sup>number.</sup>
But for really dense grids, we can adjust _N_ k <sup>_i_</sup> <sup>a</sup> <sup>bit,</sup> <sup>to</sup> <sup>be</sup>
factorizable in any way we want.
[48] Because _X_ ( K ) is invariant under translations, here we
are interested in the point group, rather then space
group.
[49] R. Sakuma, Symmetry-adapted Wannier functions in the
[maximal localization procedure, Phys. Rev. B](https://doi.org/10.1103/PhysRevB.87.235109) 87, 235109
[(2013).](https://doi.org/10.1103/PhysRevB.87.235109)
[50] P. Giannozzi, O. Baseggio, P. Bonf`a, D. Brunato, R. Car,
I. Carnimeo, C. Cavazzoni, S. de Gironcoli, P. Delugas,
F. Ferrari Ruffino, A. Ferretti, N. Marzari, I. Timrov,
A. Urru, and S. Baroni, Quantum espresso toward the
exascale, The Journal of [Chemical](https://doi.org/10.1063/5.0005082) Physics 152, 154105
[(2020),](https://doi.org/10.1063/5.0005082) [https://doi.org/10.1063/5.0005082.](https://arxiv.org/abs/https://doi.org/10.1063/5.0005082)
[51] Wannier90 code, `[http://www.wannier.org/](http://www.wannier.org/)` .
[52] The first is written by Wannier90, the other two by the
interface of the ab initio code (e.g. pw2wannier90.x).
[53] `multiprocessing` python module, `[https://pypi.org/](https://pypi.org/project/multiprocessing)`
`[project/multiprocessing](https://pypi.org/project/multiprocessing)` .
[54] D. Destraz, L. Das, S. S. Tsirkin, Y. Xu, T. Neupert,
J. Chang, A. Schilling, A. G. Grushin, J. Kohlbrecher,
L. Keller, P. Puphal, E. Pomjakushina, and J. S.
White, Magnetism and anomalous transport in the Weyl
semimetal PrAlGe: possible route to axial gauge fields,
npj Quantum [Materials](https://doi.org/10.1038/s41535-019-0207-7) 5, 5 (2020).
[55] N. Nagaosa, J. Sinova, S. Onoda, A. H. MacDonald, and
N. P. Ong, Anomalous Hall effect, Rev. [Mod.](https://doi.org/10.1103/RevModPhys.82.1539) Phys. 82,
[1539](https://doi.org/10.1103/RevModPhys.82.1539) (2010).
[56] D. Xiao, Y. Yao, Z. Fang, and Q. Niu, Berry-phase effect
in anomalous thermoelectric transport, Phys. [Rev.](https://doi.org/10.1103/PhysRevLett.97.026603) Lett.
97, [026603](https://doi.org/10.1103/PhysRevLett.97.026603) (2006).
[57] I. Sodemann and L. Fu, Quantum nonlinear Hall effect
induced by Berry curvature dipole in time-reversal invariant materials, Phys. Rev. Lett. [115](https://doi.org/10.1103/PhysRevLett.115.216806), 216806 (2015).
[58] S. Zhong, J. E. Moore, and I. Souza, Gyrotropic magnetic
effect and the magnetic moment on the Fermi surface,
Phys. Rev. Lett. [116](https://doi.org/10.1103/PhysRevLett.116.077201), 077201 (2016).
[59] M. Kawamura, Fermisurfer: Fermi-surface viewer provid
ing multiple representation schemes, [Computer](https://doi.org/https://doi.org/10.1016/j.cpc.2019.01.017) Physics
[Communications](https://doi.org/https://doi.org/10.1016/j.cpc.2019.01.017) 239, 197 (2019).
[60] M. van Setten, M. Giantomassi, E. Bousquet, M. Ver
straete, D. Hamann, X. Gonze, and G.-M. Rignanese,
The PseudoDojo: Training and grading a 85 element
optimized norm-conserving pseudopotential table, [Com-](https://doi.org/https://doi.org/10.1016/j.cpc.2018.01.012)
puter Physics [Communications](https://doi.org/https://doi.org/10.1016/j.cpc.2018.01.012) 226, 39 (2018).
[61] D. R. Hamann, Optimized norm-conserving Vanderbilt
pseudopotentials, Phys. Rev. B [88](https://doi.org/10.1103/PhysRevB.88.085117), 085117 (2013).
[62] VASP code, `[https://www.vasp.at/](https://www.vasp.at/)` .
[63] P. E. Bl¨ochl, Projector augmented-wave method, [Phys.](https://doi.org/10.1103/PhysRevB.50.17953)
Rev. B [50](https://doi.org/10.1103/PhysRevB.50.17953), 17953 (1994).
[64] T. E. Oliphant, _A_ _guide_ _to_ _NumPy_, Vol. 1 (Trelgol Pub
lishing USA, 2006).
[65] P. Virtanen, R. Gommers, T. E. Oliphant, M. Haber
land, T. Reddy, D. Cournapeau, E. Burovski, P. Pe
terson, W. Weckesser, J. Bright, S. J. van der Walt,
M. Brett, J. Wilson, K. Jarrod Millman, N. Mayorov,
A. R. J. Nelson, E. Jones, R. Kern, E. Larson, C. Carey,
˙I. Polat, Y. Feng, E. W. Moore, J. Vand erPlas, D. Laxalde, J. Perktold, R. Cimrman, I. Henriksen, E. A. Quintero, C. R. Harris, A. M. Archibald, A. H. Ribeiro,
F. Pedregosa, P. van Mulbregt, and Contributors, SciPy
1.0: Fundamental Algorithms for Scientific Computing
in Python, Nature [Methods](https://doi.org/https://doi.org/10.1038/s41592-019-0686-2) 17, 261 (2020).
[66] pyFFTW python module, `[https://github.com/pyFFTW/](https://github.com/pyFFTW/pyFFTW)`
`[pyFFTW](https://github.com/pyFFTW/pyFFTW)` .
[67] M. Frigo and S. G. Johnson, The design and implementa
tion of FFTW3, Proceedings of the IEEE 93, 216 (2005),
special issue on “Program Generation, Optimization, and
Platform Adaptation”.
[68] `lazy-property` python module, `[https://pypi.org/](https://pypi.org/project/lazy-property)`
`[project/lazy-property](https://pypi.org/project/lazy-property)` .
[69] `Wannier90` git repository, `[https://github.com/](https://github.com/wannier-developers/wannier90)`
`[wannier-developers/wannier90](https://github.com/wannier-developers/wannier90)` ().
[70] QuantumEspresso code, `[https://www.](https://www.quantum-espresso.org/)`
`[quantum-espresso.org/](https://www.quantum-espresso.org/)` .
[71] J. D. Hunter, Matplotlib: A 2d graphics environment,
Computing in Science & Engineering 9, 90 (2007).
[72] Inkscape vector graphics editor, `[https://inkscape.org](https://inkscape.org)` .
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.