Introduction

The physical and chemical properties of solid-state materials are remarkably varied and extensive. Nevertheless, upon tracking their origins, it becomes evident that the quantum behaviors of valence electrons are crucial. Consequently, a precise characterization of the microscopic behavior of valence electrons in solid-state materials is a fundamental requirement in the field of condensed matter physics.

Electromagnetic theory posits the existence of long-range Coulomb interactions among electrons. In scenarios where the interaction between electrons is significantly less than their kinetic energy, a single-particle approximation can be employed to analyze the motion of electrons within a solid. This foundational approach has led to the development of classical band theory, which has effectively elucidated the fundamental characteristics of conventional metals, semiconductors, and insulators. These materials are typically categorized as weakly correlated or non-correlated. In contrast, there exist strongly correlated materials1, such as certain transition metal oxides2, copper-based3 and iron-based4 unconventional superconductors, as well as cerium-based5 and plutonium-based6 heavy fermion systems. The electronic structures of these materials frequently exhibit narrow and partially filled d- or f-electron energy bands. In these cases, the Coulomb interaction among electrons is considerably greater than their kinetic energy, rendering the single-particle approximation inadequate7. The collective motion of numerous electrons in strongly correlated materials leads to a variety of exotic phenomena, including colossal magnetoresistance, Mott metal-insulator transitions, unconventional superconductivity, non-Fermi liquid behavior, heavy fermion behavior, and the Kondo effect2,3,4,5,6,8. Classical band theory falls short in providing a coherent explanation for these phenomena. Consequently, the advancement of a theory for strongly correlated electrons that transcends classical band theory represents a prominent area of research within condensed matter physics9.

The development of a theoretical framework for strongly correlated electrons typically commences with the examination of simplified models that encapsulate strong correlation effects. While this approach significantly alleviates the complexity of the problem, it remains a challenging task, as most models characterized by strong correlations lack exact analytical solutions. Compounding this challenge is the fact that in strongly correlated systems, the bare Coulomb interaction is substantial, rendering conventional perturbation theory inapplicable. The advent of dynamical mean-field theory (dubbed DMFT) has provided valuable insights into this pressing issue10. The fundamental premise of DMFT is that, in the limit of infinite dimensions, the electron self-energy Σ is local and momentum-independent. Consequently, a general interacting lattice model can be self-consistently transformed into a single quantum impurity model, from which the properties of the original lattice model can be inferred by solving the quantum impurity model11. It is important to note that DMFT is inherently a local theory. Although it adopts a mean-field approximation to address spatial fluctuations of quantum states, which is equivalent to ignoring the non-local aspects of electron correlations, it rigorously accounts for temporal fluctuations and comprehensively captures the local components of electron correlations10. In principle, for interacting models, local correlations are of primary significance, while non-local correlations are often negligible. Consequently, over the past two decades, DMFT has emerged as a pivotal tool in the investigation of strongly correlated models. Through the application of DMFT, the understanding of various strongly correlated systems, including the Hubbard model, the tJ model, and the periodic Anderson model, has reached unprecedented levels, leading to the resolution of numerous longstanding physical challenges11. Currently, DMFT has evolved into numerous extensions, enabling its application to the study of disordered, inhomogeneous, and non-equilibrium systems12,13,14.

Merely addressing strongly correlated models is insufficient, it is imperative to investigate the electronic structures and physical properties of realistic materials. The DMFT method is adept at managing correlation effects among electrons, yet it is primarily applicable to the analysis of model Hamiltonians10,11. On the contrary, classical band theory, exemplified by the widely utilized density functional theory (dubbed DFT), while inadequate in accurately addressing electron–electron interactions in strongly correlated materials, excels in elucidating crystal field splitting and the chemical environment of realistic materials without reliance on empirical parameters. Given that both methodologies possess distinct advantages and limitations that complement one another, it is natural to integrate them to formulate the DFT + DMFT approach. The standard procedure for DFT + DMFT calculations is delineated as follows15,16. Initially, a conventional DFT calculation is performed to derive the band structure under the single-particle approximation, followed by the construction of a model Hamiltonian for the correlated orbitals of interest, devoid of empirical parameters. Subsequently, interaction terms, including Coulomb interactions and spin-orbit coupling, are incorporated into this model Hamiltonian. Finally, the DMFT method is employed to solve the effective model Hamiltonian, thereby extracting the ground state and spectroscopic properties of realistic materials. The pioneering application of the DFT + DMFT method to investigate the photoelectron spectrum of La-doped SrTiO3 was conducted by Anisimov et al.17. Since that time, the DFT + DMFT method has become a dominant approach in the realm of first-principles calculations for strongly correlated materials. Particularly in recent years, during the surge of research into various unconventional superconductors18,19,20,21, strongly correlated kagome materials22,23,24, and cerium-based heavy fermion materials25,26,27, the DFT + DMFT method has shown its unique brilliance.

In the past decade, significant efforts have been dedicated to the development of efficient first-principles software packages for DFT + DMFT calculations, thereby facilitating the broader application of this method. Currently, several open-source DFT+DMFT packages have been released, including w2dynamics28, TRIQS29,30,31, ALPSCore32,33, eDMFT34,35,36, DCore37, Questaal38, Abinit39,40,41, ABACUS42, ComDMFT43, DMFTwDFT44, and solid_dmft45, among others. Notably, the w2dynamics, TRIQS, and ALPSCore packages primarily incorporate high-performance quantum impurity solvers, utilizing the hybridization expansion continuous-time quantum Monte Carlo algorithm (dubbed CT-HYB)46,47,48. Other software packages, with the exceptions of eDMFT35 and ComDMFT49, do not incorporate individual quantum impurity solvers; instead, they typically employ publicly available CT-HYB impurity solvers. These packages offer flexible interfaces to connect DFT codes with quantum impurity solvers, supporting both fully self-consistent and one-shot DFT + DMFT calculations aiming at investigating the electronic structures and lattice dynamics of strongly correlated materials50,51,52. They are capable of producing various physical observables, such as spectral functions, Fermi surfaces, total energies, forces, and phonon band structures, which can be readily compared with experimental data. Notably, the Questaal38 and ComDMFT43 packages can incorporate the quasiparticle approximation (dubbed GW)53 within the DFT part and support the GW+DMFT calculation mode54,55. Additionally, the w2dynamics package can interface with the AbinitioDΓA code56 to facilitate ab initio dynamical vertex approximation (DΓA) calculations57,58,59. Overall, while these packages exhibit similarities, their distinctions primarily arise from the selection of DFT codes and the definitions of local basis sets employed in constructing low-energy effective Hamiltonians.

Though many DFT + DMFT software packages have been published, another open-source implementation is always beneficial for the community. In this paper, we are pleased to introduce Zen, a new DFT + DMFT toolkit. This toolkit offers the following features: (i) It supports two types of local orbitals: projected local orbitals (interfaced with VASP60,61) and maximally localized Wannier functions (interfaced with Quantum ESPRESSO62,63 and Wannier9064). (ii) It includes two quantum impurity solvers: the natural orbitals renormalization group solver (dubbed NORG)65,66 and the CT-HYB solver (interfaced with iQIST67,68). The NORG impurity solver operates at zero temperature, while the CT-HYB impurity solver works for finite temperature. These two quantum impurity solvers are complementary. (iii) It features a powerful analytic continuation backend, namely ACFlow69, which implements several state-of-the-art analytic continuation methods, including the maximum entropy method, stochastic analytic continuation, and stochastic pole expansion, among others. ACFlow can convert single-particle or two-particle correlation functions from the imaginary time or imaginary frequency axis to the real-frequency axis. (iv) The Zen toolkit is developed using the Julia programming language and supports large-scale parallel calculations. Furthermore, it can be executed in interactive mode, allowing users to monitor calculations and dynamically adjust computational parameters. After extensive testing, we suggest that this toolkit is well-suited for first-principles calculations of correlated d-electron materials.

The remainder of this paper is organized as follows. Firstly, we provide a brief overview of the core components of the Zen toolkit, including the flowchart, DFT codes, DMFT engine, quantum impurity solvers, and utilities for analytic continuation. Secondly, we summarize the computational parameters and then present the benchmark results for the correlated metal SrVO3, the unconventional superconductor La3Ni2O7, and the Mott insulator MnO, comparing them with previously published theoretical and experimental results. Finally, a brief discussion is provided.

DFT + DMFT method

The theoretical foundation and computational procedure of the DFT + DMFT method are now well established15,16. This section will focus on the overall framework of Zen, briefly describing the features and underlying formulas for the major computational components, with particular emphasis on the differences between Zen and the other DFT + DMFT calculation softwares. The technical details of Zen will be presented in a successive paper.

Flowchart

Here’s a brief overview of the basic steps about how to perform charge fully self-consistent DFT + DMFT calculations using Zen (see Fig. 1)15. (i) DFT calculation. At first, we need to perform standard DFT calculations to obtain electronic structures of the materials. By choosing a reasonable local basis, the low-energy effective Hamiltonian for correlated orbitals and important ligand orbitals is constructed. This step provides a starting point for the DFT+DMFT calculation. (ii) DMFT self-consistency. The low-energy effective Hamiltonian is supplemented with the local interaction term. Then it is solved self-consistently within the DMFT framework11. To be more specific, it is mapped onto an effective impurity model, where the correlated electrons are treated as an impurity embedded in a non-interacting bath. The local impurity problem is solved using various quantum impurity solvers. The impurity solver generates new Green’s function G and self-energy function Σ for the impurity model. G and Σ are then used to calculate new bath Green’s function G0 and hybridization function Δ. They will be fed back into the impurity solver again. The process is repeated until the hybridization function and self-energy function converge to a consistent solution. (iii) Charge self-consistency. In addition to the DMFT self-consistency loop, a charge self-consistency step is superimposed to ensure that the total charge density of the material is converged. This involves adjusting the charge density until the total charge matches the expected value. (iv) Analysis. Once the self-consistent solution is converged, we should analyze the results to extract physical properties such as the density of states, spectral functions, and other relevant quantities. (v) Validation. We have to validate the results by comparing them with experimental data or other theoretical results. If necessary, the computational model or parameters should be refined, and the calculation could be repeated.

Fig. 1: Schematic picture of the standard DFT + DMFT calculation flowchart as implemented in the Zen toolkit.
figure 1

HKS(k): Low-energy effective Hamiltonian for correlated orbitals and ligand orbitals. PR(k): Projection matrix between local basis and Kohn-Sham basis. Δ: Hybridization function. Σ: Self-energy function. G: Green’s function. μ: Fermi level. ρ: Density matrix. The DFT interface (pink box) supports the VASP and Quantum ESPRESSO codes. The quantum impurity solvers (green box) can be NORG or CT-HYB. The analytic continuation calculations are done by the ACFlow toolkit (gray box). See main text for more details.

In the Zen toolkit, the above computational steps are encapsulated in four components. They are the DFT, DMFT, quantum impurity solver, and post-processing components. The four components exchange parameters and data through files. They are manipulated by the Zen core library, which is written in Julia language. By using the Zen core library, the users can perform DFT + DMFT calculations step by step.

DFT codes

Now the Zen toolkit is interfaced with two popular DFT codes, namely VASP60,61 and Quantum ESPRESSO62,63. Both codes implement the pseudopotential plane-wave method. In the present work, the projector augmented wave (dubbed PAW) method is adopted70.

The VASP interface builds on the projected local orbitals (dubbed PLO) scheme39, where the resulting Kohn-Sham states \(| \Psi \left.\right\rangle\) from DFT calculations are projected on localized orbitals \(| \chi \left.\right\rangle\), which defines a basis for setting up a Hubbard-like model Hamiltonian. As is described in detail in ref. 39, the projection matrix P between \(| \chi \left.\right\rangle\) and \(| \Psi \left.\right\rangle\) in the PAW framework can be written as

$${P}^{{\bf{R}}}({\bf{k}})=\sum _{i}\langle {\chi }^{{\bf{R}}}| {\phi }_{i}\rangle \langle {\tilde{p}}_{i}| {\tilde{\Psi }}_{{\bf{k}}}\rangle .$$
(1)

Here, the index i denotes the PAW channel n, the angular momentum quantum number l, and its magnetic quantum number m. \(| {\chi }^{{\bf{R}}}\left.\right\rangle\) are localized basis functions associated with the correlated site R. \(| {\tilde{\Psi }}_{{\bf{k}}}\left.\right\rangle\) are the pseudo-Kohn-Sham states. \(| {\phi }_{i}\left.\right\rangle\) and \(| {\tilde{p}}_{i}\left.\right\rangle\) are the all-electron partial waves and the standard PAW projectors, respectively. They can be extracted from the PAW dataset directly. The projection matrix P will be calculated and written into the file “LOCPROJ” by the VASP code. The Zen toolkit will parse this file, read in the projection matrix, and filter out the Kohn-Sham states that do not belong to the given energy window. Then the projection matrix is further orthogonalized to make sure that the local basis in the restricted energy window is orthonormal.

The Quantum ESPRESSO interface62,63 should be used in conjunction with the Wannier90 code64. It supports two different schemes. One is the traditional PLO scheme as introduced above39. When this scheme is used, the Zen toolkit will extract the projection matrix from the “seedname.amn” file. Another scheme builds on the maximally-localized Wannier functions (MLWF)71. The symmetry-adapted Wannier functions (SAWF) are also supported72. The Udis(k) and U(k) matrices are responsible for disentangling the correlated orbitals, and transforming Bloch bands \(| {u}_{{\bf{k}}}\left.\right\rangle\) into Wannier orbitals \(| {w}_{{\bf{R}}}\left.\right\rangle\). The Zen toolkit will read the two matrices from files “seedname_u_dis.mat” and “seedname_u.mat”, respectively. Finally, the two matrices are combined to build the projection matrix P.

We note that both the VASP and Quantum ESPRESSO interfaces support DFT+DMFT charge self-consistent calculations. That is to say the two codes can read the DMFT correction to the density matrix ρ, and then restart the DFT calculation to generate a new projection matrix P.

DMFT engine

In the Zen toolkit, the DMFT engine is developed with the Fortran 90 language. The following tasks should be accomplished in the DMFT engine.

Lattice Green’s function

The expression for lattice Green’s function is as follows16:

$${G}^{{\bf{R}}}(i{\omega }_{n})=\frac{1}{{\Omega }_{{\rm{bz}}}}\int\,{d}^{3}{\bf{k}}\,{P}^{{\bf{R}}}({\bf{k}})G({\bf{k}},i{\omega }_{n}){P}^{{\bf{R}}* }({\bf{k}}),$$
(2)
$$G({\bf{k}},i{\omega }_{n})=\frac{1}{(i{\omega }_{n}+\mu ){\mathbb{I}}-{H}_{{\rm{KS}}}({\bf{k}})-\Sigma (i{\omega }_{n})+{\Sigma }_{{\rm{dc}}}}.$$
(3)

Here, Ωbz is the volume of the first Brillouin zone, PR(k) is the projection matrix, \({\mathbb{I}}\) is the identity matrix, μ is the Fermi level, HKS(k) is the Kohn–Sham Hamiltonian, and Σdc is the double counting term for self-energy function. Note that the right-hand side of Eq. (2) is a typical Brillouin zone integration in the complex-energy plane. The Lambin-Vigneron analytical tetrahedron method73 is employed to calculate this integral. In order to accelerate the calculation, the integration algorithm is fully parallelized over the k-points.

Hybridization function

The hybridization function Δ(iωn) describes the hybridization effect between impurity electrons and conduction electrons. Its expression is as follows11:

$$\Delta (i{\omega }_{n})=i{\omega }_{n}-{E}_{{\rm{imp}}}-{G}^{-1}(i{\omega }_{n})-\Sigma (i{\omega }_{n}),$$
(4)

where the impurity level Eimp reads

$${E}_{{\rm{imp}}}=\frac{1}{{\Omega }_{{\rm{bz}}}}\int\,{d}^{3}{\bf{k}}\,[{H}_{{\rm{KS}}}({\bf{k}})-{\Sigma }_{{\rm{dc}}}-\mu {\mathbb{I}}].$$
(5)

Both the hybridization function and impurity level are essential inputs for the quantum impurity solvers.

Orbital occupancy

Given the Fermi level μ, to calculate the orbital-resolved impurity occupancy Nα is not a trivial problem. In principle, the orbital occupancy is defined by

$${N}_{\alpha }=T\sum _{{\bf{k}}}\sum _{n}\frac{1}{i{\omega }_{n}+\mu -{\epsilon }_{\alpha {\bf{k}}}(i{\omega }_{n})},$$
(6)

where α is the orbital index, ϵαk(iωn) are the eigenvalues of the Hamiltonian HKS(k) + Σ(iωn) − Σdc. But the above equation is seldom used in practical calculations because there is a long “tail” \(\propto \frac{1}{i{\omega }_{n}}\). If we want to use Eq. (6), we have to consider a large number of Matsubara frequency points to obtain accurate Nα. This is rather inefficient. In order to overcome this problem, we adopt the following equation to evaluate Nα:

$${N}_{\alpha }=\sum _{{\bf{k}}}f({\epsilon }_{\alpha {\bf{k}}}^{\infty }-\mu )+2T\sum _{{\bf{k}},n}\left[\frac{1}{i{\omega }_{n}+\mu -{\epsilon }_{\alpha {\bf{k}}}}-\frac{1}{i{\omega }_{n}+\mu -{\epsilon }_{\alpha {\bf{k}}}^{\infty }}\right].$$
(7)

Here, f(ϵ) is the Fermi-Dirac distribution function, and \({\epsilon }_{\alpha {\bf{k}}}^{\infty }\) are actually the eigenvalues of the Hamiltonian HKS(k) + Σ(i) − Σdc. The first term in the right hand side of Eq. (7) is the contribution of the “tail” part, while the second term is from the contributions of the residual part34.

Double counting term

When combining DFT and DMFT, the electron-electron interactions are included in both the DFT part (through the exchange-correlation functional) and the DMFT part (through the local quantum impurity solver). To avoid double counting these interactions, a correction term must be subtracted from the self-energy function Σ. This correction term is what we call the double counting term Σdc. Now the exact expression for Σdc is not known. In the DMFT engine, the following empirical formulas are supported to subtract the double counting term: (i) Fully localized limit (FLL) scheme74.

$${\Sigma }_{{\rm{dc}}}=U\left(N-\frac{1}{2}\right)-\frac{J}{2}(N-1).$$
(8)

Here N means the total impurity occupancy, which should be changed dynamically during the DFT + DMFT iterations. The FLL scheme is usually employed in the calculations for Mott insulators and band insulators. In general, N in Eq. (8) is replaced with n0, the nominal impurity occupancy. It is called the nominal double counting in the literature36. (ii) Around mean-field (AMF) scheme74.

$${\Sigma }_{{\rm{dc}}}=\frac{UN}{2}+(U-J)\frac{Nl}{2l+1}.$$
(9)

Here l denotes the quantum number of angular momentum of correlated orbitals. For d-electron systems, l = 2. The AMF scheme is suitable for strongly correlated metals. (iii) Held’s scheme15.

$${\Sigma }_{{\rm{dc}}}=\bar{U}\left(N-\frac{1}{2}\right),$$
(10)

where the averaged interaction \(\bar{U}\) reads

$$\bar{U}=\frac{U+(M-1)(2U-5J)}{2M-1}.$$
(11)

Here M is the number of correlated orbitals.

Fermi level

During the DFT + DMFT iterations, the Fermi level μ should be adjusted dynamically, such that the impurity occupancy is equal to the nominal one. For given Σ(iωn), the eigenvalues ϵαk and \({\epsilon }_{\alpha {\bf{k}}}^{\infty }\) are at first calculated. Then Eq. (7) is used to evaluate the impurity occupancy for the current Fermi level. By using the classic bisection algorithm, it is easy to determine the desired Fermi level.

Charge fully self-consistency

The DFT + DMFT density matrix ρ is calculated in the Kohn–Sham space:

$$\rho ({\bf{k}})=\sum _{n}G({\bf{k}},i{\omega }_{n}){e}^{i{\omega }_{n}{0}^{+}}.$$
(12)

Then correction to the DFT density matrix ρ0 reads:

$$\Delta \rho ({\bf{k}})=\rho ({\bf{k}})-{\rho }_{0}({\bf{k}}).$$
(13)

Note that ρ(k) is a non-diagonal matrix, while ρ0(k) is diagonal. Δρ(k) should be transformed into real space, and then fed back to the DFT codes to start a new DFT + DMFT iteration. Once ρ(k) is less than a given critical value, it is suggested that the charge density is converged and we can terminate the calculation.

NORG impurity solver

The NORG method is an innovative approach within the field of quantum many-body physics, designed to address the complex problem of interacting electron systems. Traditional methods, such as exact diagonalization (ED) and quantum Monte Carlo (QMC), face severe limitations due to exponential scaling in computational complexity and the notorious sign problem, respectively. The NORG method offers a non-perturbative alternative that is particularly adept at handling strong electron correlations across various coupling regimes.

The NORG method is grounded in the concept of natural orbitals, which are the eigenvectors of the single particle density matrix. These natural orbitals provide a basis for representing many-body wave functions in an optimized manner. The NORG method involves an iterative renormalization group procedure that constructs a structured subspace by projecting onto active natural orbitals. This allows for the accurate solution of quantum impurity problems with multiple impurities, which is beyond the scope of traditional numerical renormalization group methods that are limited to at most two impurities66. The core of the NORG algorithm involves several steps: Starting with an arbitrary but complete set of natural orbitals, selecting a subset to form a subspace, constructing an effective Hamiltonian, diagonalizing it to obtain the ground state, forming the single particle density matrix, and diagonalizing it to obtain a new set of natural orbitals. This process is iterated until convergence65.

The Zen toolkit includes a high-performance NORG impurity solver written in C++. The impurity solver introduces a “shortcut” trick that significantly improves the efficiency of the NORG algorithm by imposing restrictions on the orbital occupancy distribution, thereby reducing the Hilbert space dimension. This “shortcut” NORG method has been demonstrated to be dramatically faster than the general NORG method, offering a powerful tool for studying ground state and low-energy properties of quantum cluster-impurity models. Quite recently, this NORG impurity solver has been embedded into the eDMFT package34 to study unconventional superconductivity and electron correlations in La3Ni2O775. The technical details of NORG will be presented in a successive paper.

CT-HYB impurity solver

The impurity solvers based on the quantum Monte Carlo (QMC) algorithms exhibit several advantages. First of all, they are built on top of the imaginary time action, in which the infinite bath has been integrated out. Second, they can treat arbitrary couplings, and can thus be applied to all kinds of phases, including the metallic phase, insulating state, and phases with spontaneous symmetry breaking. Third, the QMC impurity solvers are numerically exact with a controllable numerical error. These are the reasons why the QMC impurity solvers are considered as the method of choice in the DMFT and DFT + DMFT calculations11,16. The CT-HYB impurity solver is an important variation of the continuous-time quantum Monte Carlo (CT-QMC) method46. In this impurity solver, the partition function of the quantum impurity problem is diagrammatically expanded in the impurity-bath hybridization term. Then the diagrammatic expansion series is evaluated by the Metropolis Monte Carlo algorithm. The continuous-time nature of the algorithm means that the impurity operators can be placed at any arbitrary position on the imaginary time interval, so that time discretization errors can be completely avoided. Perhaps the CT-HYB is the most popular and powerful QMC impurity solver so far, since it can be used to solve multi-orbital impurity models with general interactions at low temperature35,47,48.

In the Zen toolkit, the well established iQIST package is imported to contribute highly optimized CT-HYB impurity solvers67,68, which support both the segment representation48 and general matrix representation47 algorithms. The former is suitable for the impurity models with density–density type interaction term. While the latter suits the impurity models with general interaction terms (such as rotationally invariant interaction with spin-orbit coupling term). The segment representation algorithm is extremely efficient. But the general matrix representation algorithm needs much more effort. In the iQIST package, the following strategies are adopted to accelerate the calculations. (i) The local Hamiltonian is partitioned into sub-blocks, which are labeled by using good quantum numbers35. A smart auto-partition algorithm suggested by P. Seth et al. is implemented31. Of course, the users can specify the partition scheme manually. (ii) The Hilbert space of the impurity problem can be truncated dynamically or by the nominal impurity occupancy. (iii) The lazy trace evaluation trick76, sparse matrix multiplication, and red-black tree algorithm31 are implemented to speed the computation of trace term in the Monte Carlo transition probability35,47. (iv) The CT-HYB impurity solvers are fully parallelized by using the message passing interface (MPI). In addition, the iQIST package can measure the single-particle Green’s functions, two-particle Green’s functions, and vertex functions. It supports the Legendre orthogonal polynomial representation77 and intermediate representation78 for Green’s functions and improved estimator for self-energy functions79. These tricks can suppress the random noise effectively.

Just like the other QMC impurity solvers, the CT-HYB impurity solver suffers from the fermionic sign problem. This problem becomes severe when the hybridization function is non-diagonal, or spin-orbit coupling is present, or the system’s temperature is relatively low. Thus, the calculated results by the CT-HYB impurity solver become unreliable. At this time, we could turn to the NORG impurity solver.

Analytic continuation

Often quantum impurity solvers working on the Matsubara axis are used within the DFT + DMFT framework. Their outputs are usually Matsubara Green’s functions G(iωn) and self-energy functions Σ(iωn). In order to compare with the experimental results, they must be converted into real-frequency axis. Especially, to calculate the momentum-resolved spectral function A(k, ω), Fermi surface, and optical conductivity σ(ω), real-frequency self-energy function Σ(ω) is an essential input. Notice that G(iωn) and the spectral function A(ω) are related by the following Laplace transformation:

$$G(i{\omega }_{n})=\mathop{\int}\nolimits_{-\infty }^{\infty }\frac{A(\omega )}{i{\omega }_{n}-\omega }d\omega .$$
(14)

Given G(iωn), solving Eq. (14) to extract A(ω) is the so-called analytic continuation problem80. Once A(ω) is obtained, the retarded Green’s function G(ω) can be easily evaluated via the Kramers–Kronig transformation. To extract Σ(ω) from Σ(iωn), we should at first subtract the Hartree–Fock term ΣHF from Σ(iωn):

$$\tilde{\Sigma }(i{\omega }_{n})=\Sigma (i{\omega }_{n})-{\Sigma }_{{\rm{HF}}}.$$
(15)

And then an auxiliary Green’s function Gaux(iωn) is constructed:

$${G}_{{\rm{aux}}}(i{\omega }_{n})=\frac{1}{i{\omega }_{n}-\tilde{\Sigma }(i{\omega }_{n})}.$$
(16)

Next, we perform analytic continuation for Gaux(iωn) to get Gaux(ω). By inverting Eqs. (15) and (16), we finally obtain Σ(ω).

Until now, analytic continuation is still a challenging, yet to be solved problem. In the Zen toolkit, a full-fledged analytic continuation package, namely ACFlow69, is included. It supports various analytic continuation methods, including the maximum entropy method (MaxEnt)80, Nevanlinna analytical continuation (NAC)81, barycentric rational function approximation (BarRat), stochastic analytic continuation (SAC)82,83, stochastic optimization method (SOM)84, and stochastic pole expansion (SPX)85,86, etc. These methods have their own pros and cons. For examples, the MaxEnt method is quite efficient, but it tends to generate smooth and broad spectral function80. The BarRat method is even more efficient than the MaxEnt method. It can resolve both sharp and broad spectral functions. But sometimes the sum-rules about the spectral functions might be violated. The SPX method employs the pole representation to approximate Matsubara Green’s function and relies on a simulated annealing algorithm to figure out the optimal pole representation. It is somewhat time-consuming, but it can resolve fine features in the spectra85,86. The ACFlow package provides some diagnostic tools. With them, we can easily compare and crosscheck the analytic continuation results obtained by various methods. The ACFlow package supports parallel computing. Furthermore, it is developed with the Julia language, which makes it more interactive with the other components of the Zen toolkit.

Results

In this section, we would like to benchmark the Zen toolkit. Here, we consider three typical examples, including the correlated metal SrVO3, unconventional superconductor La3Ni2O7, and Mott insulator MnO. The calculated results are compared with the experimental data and previous DFT + DMFT results, if available.

General setup

All the DFT + DMFT calculations were done by using the Zen toolkit. The relevant parameters are collected in Table 1.

Table 1 The DFT + DMFT computational parameters used in the present work

For the DFT part, only the VASP interface was tested60,61. We chose the experimental crystal structures for the three compounds. Core and valence electrons were treated within the PAW formalism70. The generalized-gradient approximation (GGA) was used for the exchange-correlation functional within the Perdew–Burke–Ernzerhof (PBE) approach87. The Brillouin zone was sampled using a Γ-centered Monkhorst-Pack k-point grid. For the sake of simplicity, the systems were restricted to being nonmagnetic. Once the DFT calculations were converged, the PLO scheme was applied to construct the projection matrices for V-3d, Ni-3d, and Mn-3d orbitals. For the DMFT part, the double counting terms were built with the FLL scheme74. In Eq. (8), the impurity occupancy N was fixed to the nominal one36. The interaction parameters, including Coulomb repulsion interaction U and Hund’s exchange interaction J, were obtained from the references88,89,90. For the quantum impurity solvers part, both the NORG and CT-HYB impurity solvers were used. Here, only the density-density type interactions were considered. In other words, the pair-hopping and spin-flip terms were ignored. The NORG impurity solver works at zero temperature, corresponding to β = . We set an effective inverse temperature βeff = 50π eV−1 for the effective Matsubara frequencies ωn = (2n + 1)π/βeff = 0.02(2n + 1) eV in the calculation of Matsubara Green’s functions. We found that four bath orbitals per impurity orbital are adequate to faithfully describe the non-interacting electron bath in the quantum impurity model derived from the DMFT91. So the number of bath orbitals per impurity orbital nb was set to at least 4. A parallel Lanczos algorithm was employed to achieve high-performance computation in finding the ground state and Green’s function. 64 CPU cores were utilized in the calculations. For the CT-HYB impurity solver, β = 40.0 eV−1, which corresponds to approximately 290 K. The Legendre orthogonal polynomial representation for the Green’s function77 and the improved estimator for self-energy function79 were adopted to suppress the stochastic noises. The number of Monte Carlo sweeps was 108 per process, and 64 CPU cores were utilized in the calculations.

For SrVO3 and La3Ni2O7, we performed charge fully self-consistent DFT + DMFT calculations. For each DFT + DMFT iteration, 10 DFT internal cycles and a one-shot DMFT calculation were executed. In most cases, 60 DFT + DMFT iterations were adequate to obtain well converged charge density ρ and total energy Etot. The converged criteria for total energy was set to 10−6 eV, respectively. For MnO, we performed one-shot DFT + DMFT calculations. That is to say, the self-energy function, instead of total energy and charge density, was converged. The converged criterion for self-energy function was set to 10−4 eV. Usually 40 DMFT iterations were enough. Once the DFT + DMFT calculations were converged, we just used the ACFlow package69 to perform analytic continuation to extract the spectral functions A(ω) and real-frequency self-energy functions Σ(ω). The analytic continuation calculations were at first done by the SPX method85 and then crosschecked by the MaxEnt method80.

Correlated metal SrVO3

SrVO3 is a typical correlated metal. It crystallizes in a cubic perovskite structure. Its space group is \(Pm\overline{3}m\). The experimental lattice parameter is a = 3.8410 Å92. The electronic structure of SrVO3 is quite simple. Under cubic crystal fields, the five V-3d orbitals should be split into triply degenerate t2g orbitals and double degenerate eg orbitals. The three t2g orbitals cross the Fermi level. They are well separated from the empty eg orbitals and the fully occupied O-2p orbitals. Thus, a minimal model for SrVO3 can include only the three t2g orbitals. This makes SrVO3 an ideal system to examine various beyond-DFT methods39,93,94. In the present work, both the t2g and eg orbitals were treated as correlated. The corresponding interaction parameters and projection window are summarized in Table 1.

Figure 2 shows the calculated Green’s functions and self-energy functions. Let’s focus on the Matsubara data at first. Though the calculations were done at different temperatures, overall the results obtained by the NORG and CT-HYB impurity solvers agree quite well with each other. The only exception lies in \({\rm{Im}}\Sigma (i{\omega }_{n})\) for eg orbitals as obtained by using the CT-HYB impurity solver. It exhibits obvious oscillations in the range of 1.5–6 eV [see Fig. 2f]. We believe that such oscillations can be attributed to the improved estimator for self-energy function. In general, this estimator can suppress random noises, but sometimes it might induce some sorts of oscillations in the mid-frequency range46,79. These oscillations are hardly eliminated through increasing the Monte Carlo samplings. We note that another approach to evaluate the self-energy function is through the Dyson equation, instead of Monte Carlo sampling. But this method is numerically unstable. It suffers more significant oscillations at high-frequency region. In addition, we can see that low-frequency part of \({\rm{Im}}\Sigma (i{\omega }_{n})\) for the t2g orbitals exhibits quasi-linear behavior, and the intercept at iωn → 0 is nearly zero, which is consistent with the Fermi liquid theory.

Fig. 2: Calculated Green’s functions and self-energy functions for V’s t2g and eg orbitals in SrVO3.
figure 2

a, e \({\rm{Im}}G(i{\omega }_{n})\). b, f \({\rm{Im}}\Sigma (i{\omega }_{n})\). c, g \({\rm{Re}}\Sigma (\omega )\). d, h \({\rm{Im}}\Sigma (\omega )\). The upper panels are for the t2g orbitals, and the lower panels are for the eg orbitals. The vertical dashed lines denote the Fermi levels.

Next, we turn to the real-frequency self-energy functions. By using the following equation:

$${m}^{* }/m=1/Z=1-{\left.\frac{\partial {\rm{Re}}\Sigma (\omega )}{\partial \omega }\right|}_{\omega = 0},$$
(17)

we can easily calculate the electronic effective masses m* and quasiparticle weights Z for correlated orbitals. We find that m*/m for the t2g orbitals is approximately 1.8, which is consistent with previous DFT + DMFT calculations39,93. Furthermore, \({\rm{Im}}\Sigma (\omega =0)\) for t2g orbitals are close to zero, which indicates that the low-energy electron scattering is trivial.

Figure 3 shows the spectral functions for V-3d’s t2g and eg orbitals. The photoemission spectrum is shown in this figure for comparison95. For the t2g orbitals, their spectra exhibit two broad peaks around −1.8 eV and 2.0 eV. They are actually the lower and upper Hubbard bands. Near the Fermi level, besides the quasiparticle peak (at ω = 0), two shoulder peaks appear at ω = −0.1 eV and 0.4 eV. These features are consistent with the experimental data96 and previous DFT + DMFT calculations39,88,93. Especially, the lower Hubbard band at ω = −1.8 eV and the left shoulder peak at ω = −0.1 eV are clearly seen in the photoemission spectrum95. For the eg orbitals, their spectra exhibit two broad peaks from 1.0 eV to 8.0 eV. They are totally unoccupied. Overall, the spectra obtained by the two impurity solvers are quite similar. But there are still small differences, because the two solvers work at different temperatures. The peaks in the vicinity of the Fermi level obtained by NORG are sharper and narrower than those obtained by CT-HYB, which implies that the quasiparticles are more coherent at lower temperatures.

Fig. 3: Calculated spectral functions for V’s t2g and eg orbitals in SrVO3.
figure 3

They were extracted from Matsubara Green’s functions G(iωn) by analytic continuation calculations. The experimental spectrum (empty circles) was taken from ref. 95. The vertical dashed line denotes the Fermi level.

Unconventional superconductor La3Ni2O7

Superconductivity has been discovered in the high-pressure phase of La3Ni2O7 with transition temperature up to 80 K97. Previous experiments and theoretical calculations suggest that the Ni-3d orbitals are correlated18,98,99. Furthermore, it is the Hund’s mechanism that dominates the electronic correlations in La3Ni2O719,90. Around 14 GPa, this material undergoes a structural transition from Amam phase to Fmmm phase. We note that the five Ni-3d orbitals are also split into three t2g orbitals and two eg orbitals in the Fmmm phase. The t2g orbitals are fully occupied, while the eg orbitals (\({d}_{{x}^{2}-{y}^{2}}\) and \({d}_{{z}^{2}}\)) are partially occupied. Here, we just focus on the Fmmm phase of La3Ni2O7, and only the two eg orbitals are explicitly considered in the quantum impurity model.

Figure 4 shows the calculated Green’s functions and self-energy functions for Ni’s eg orbitals. For \({\rm{Im}}G(i{\omega }_{n})\), both NORG and CT-HYB impurity solvers give consistent results. The functions are convex, implying metallic behaviors. For \({\rm{Im}}\Sigma (i{\omega }_{n})\) of the \({d}_{{x}^{2}-{y}^{2}}\) and \({d}_{{z}^{2}}\) orbitals, the results obtained by CT-HYB impurity solver exhibit oscillating behaviors again in the mid-frequency region. Just as discussed above, these oscillations are probably related to the improved estimator for self-energy function79. For \({\rm{Re}}\Sigma (\omega )\), the quasilinear region is quite small near the Fermi level, the corresponding slope for \({d}_{{z}^{2}}\) is larger than that of \({d}_{{x}^{2}-{y}^{2}}\). It is suggested that this material is strongly correlated. And the \({d}_{{z}^{2}}\) orbital is more correlated than the \({d}_{{x}^{2}-{y}^{2}}\). For \({\rm{Im}}\Sigma (\omega )\), they deviate from zero at ω = 0, which indicates considerable low-energy electron scattering and violation of the Fermi liquid theory. We note that orbital differentiation and non-Fermi-liquid behavior are two key signatures of Hundness22,100. Thus, the Fmmm phase of La3Ni2O7 is likely a candidate of Hund metal19,90,99.

Fig. 4: Calculated Green’s functions and self-energy functions for Ni’s 3\({d}_{{x}^{2}-{y}^{2}}\) and 3\({d}_{{z}^{2}}\) orbitals in La3Ni2O7.
figure 4

a, e \({\rm{Im}}G(i{\omega }_{n})\). b, f \({\rm{Im}}\Sigma (i{\omega }_{n})\). c, g \({\rm{Re}}\Sigma (\omega )\). d, h \({\rm{Im}}\Sigma (\omega )\). Panels ad correspond to the Ni’s 3\({d}_{{x}^{2}-{y}^{2}}\) orbitals, and panels eh correspond to the Ni’s 3\({d}_{{z}^{2}}\) orbitals. The vertical dashed lines denote the Fermi levels.

Next, we study the orbital-resolved spectral functions for the Ni’s \(3{d}_{{x}^{2}-{y}^{2}}\) and \(3{d}_{{z}^{2}}\) orbitals. As shown in Fig. 5, the spectra obtained by the NORG and CT-HYB impurity solvers are roughly consistent with each other. The spectra from the NORG impurity solver exhibit more structures (i.e., shoulder peaks) near the Fermi level, while the spectra from the CT-HYB impurity solver are broader and smoother. This discrepancy can be ascribed to the finite temperature effect. We find that the quasiparticle peak of the \({d}_{{z}^{2}}\) orbital is narrower than that of the \({d}_{{x}^{2}-{y}^{2}}\) orbital. Thus, it is suggested that the \({d}_{{z}^{2}}\) orbital is more renormalized than the \({d}_{{x}^{2}-{y}^{2}}\) orbital, which agrees with previous DFT+DMFT calculations using the eDMFT code90.

Fig. 5: Calculated spectral functions for Ni’s \(3{d}_{{x}^{2}-{y}^{2}}\) and \(3{d}_{{z}^{2}}\) orbitals in La3Ni2O7.
figure 5

The vertical dashed lines denote the Fermi levels.

Mott insulator MnO

The third example is MnO, which is a typical Mott insulator. It crystallizes in the rock-salt structure (the space group is \(Fm\overline{3}m\)). The lattice parameter a = 4.4457 Å. At ambient pressure, its band gap is about 2.0 eV. Around 90–105 GPa, MnO is expected to undergo an insulator-to-metal transition. The corresponding volume collapse, represented as V/V0, is approximately 0.68–0.63101,102,103. Previous DFT + DMFT calculations have suggested that the insulator-to-metal transition is orbital-selective, with a simultaneous spin state transition occurring89. In the present work, we performed one-shot DFT + DMFT calculations for V/V0 = 0.53 and 1.0 to examine whether the Zen toolkit can successfully reproduce the metallic and insulating phases of MnO.

Figure 6 presents the calculated Green’s functions and self-energy functions for the Mn’s t2g and eg orbitals. The curves for \({\rm{Im}}G(i{\omega }_{n})\) are concave, indicating insulating characteristics. The CT-HYB impurity solver exhibits significant fluctuations in the mid-frequency region of \({\rm{Im}}\Sigma (i{\omega }_{n})\). However, in the low-frequency range, the results obtained from the NORG and CT-HYB impurity solvers show good agreement. Both \({\rm{Re}}\Sigma (\omega )\) and \({\rm{Im}}\Sigma (\omega )\) display sharp and divergent features between −4.0 eV and 0.0 eV, which are characteristic of a correlated insulator. Notably, the results from the NORG impurity solver closely align with those from the CT-HYB impurity solver in the range of −2.0 eV to 2.0 eV. It appears that the numerical fluctuations in \({\rm{Im}}\Sigma (i{\omega }_{n})\) do not significantly impact the analytically continued Σ(ω).

Fig. 6: Calculated Green’s functions and self-energy functions for Mn-3d orbitals in MnO at ambient pressure.
figure 6

a, e \({\rm{Im}}G(i{\omega }_{n})\). b, f \({\rm{Im}}\Sigma (i{\omega }_{n})\). c, g \({\rm{Re}}\Sigma (\omega )\). d, h \({\rm{Im}}\Sigma (\omega )\). Panels ad correspond to the t2g orbitals, and panels eh correspond to the eg orbitals. The vertical dashed lines denote the Fermi levels.

The spectral functions are illustrated in Fig. 7. At ambient pressure, the calculated spectra exhibit a significant gap (approximately 2.0 eV), which is consistent with the experimental results104. When the volume is substantially decreased (V/V0 = 0.53), a quasiparticle peak emerges at the Fermi level, indicating that the material transitions into a metallic state. In fact, the Mott insulator-metal transition occurs at larger volumes or lower pressures. Due to the considerable differences in the bandwidths of the t2g and eg orbitals, the Mott transitions in these orbitals do not occur simultaneously. There exists a significant range of volume (or pressure) in which the t2g orbitals are metallic while the eg orbitals remain in insulating states. This phenomenon is referred to as the orbital-selective Mott phase89. Such behavior is a common characteristic of transition metal monoxides105,106. From Fig. 7b, d, we observe that both t2g and eg orbitals contribute to the quasiparticle peak. Furthermore, by utilizing the NORG impurity solver, additional features can be resolved.

Fig. 7: Calculated spectral functions for Mn’s t2g and eg orbitals in MnO at V/V0 = 1.0 (left panels) and 0.53 (right panels).
figure 7

The experimental data was extracted from ref. 104. The vertical dashed lines denote the Fermi level.

Jan Kuneš et al. pointed out that there is collapse of magnetic moment during the pressure-driven Mott transition in MnO89. To verify this viewpoint, we studied the spin states and orbital occupancies for Mn’s t2g and eg orbitals. Figure 8 shows the calculated probabilities of the possible spin states. The magnetic moment M can be calculated as follows:

$$M=\sum _{i}{P}_{i}{S}_{i},$$
(18)

where Pi is the probability of the ith spin state and Si is the corresponding total spin. At ambient pressure, the S = 5/2 state is dominant, and the magnetic moment is about 4.7 μB. Now the system is in high-spin state, the major electronic configuration is \({t}_{2g}^{3}{e}_{g}^{2}\). Under high pressure, the contributions from the S = 5/2 state can be ignored. It is the S = 1/2 state that makes the predominant contribution. The related electronic configuration becomes \({t}_{2g}^{5}{e}_{g}^{0}\). The total magnetic moment M is reduced to 1.3 μB. Clearly, there is a pressure-driven high-spin state (S = 5/2) to low-spin state (S = 1/2) transition in MnO. We confirm previously calculated results again89.

Fig. 8: Probabilities of spin states in MnO at ambient pressure (V/V0 = 1.0) and high pressure (V/V0 = 0.53).
figure 8

The results are obtained by the CT-HYB impurity solver.

Discussion

In this paper, we present a new ab initio many-body computational toolkit, Zen, which enables fully self-consistent DFT + DMFT calculations for correlated d-electron materials. This toolkit is now interfaced with the VASP code via the PLO scheme and with the Quantum ESPRESSO code via the MLWF scheme. It incorporates two highly efficient impurity solvers: NORG and CT-HYB. What distinguishes Zen from other existing DFT + DMFT packages is the NORG impurity solver, which can handle multi-orbital quantum impurity models with general interactions. It operates at zero temperature and is free from the fermionic sign problem, making it a promising alternative and complement to the CT-HYB impurity solver.

We selected three strongly correlated materials—SrVO3, La3Ni2O7, and MnO to benchmark the Zen toolkit. We conducted systematic DFT+DMFT calculations to investigate the electronic structures of these materials. Our calculated results align closely with experimental data and previous DFT + DMFT calculations, where available. Notably, the results obtained using the NORG impurity solver are consistent with those derived from the CT-HYB impurity solver. Minor discrepancies can be attributed to temperature effects. These benchmarks demonstrate that Zen is a reliable tool for studying strongly correlated materials. In the future, we aim to extend its capabilities to include additional features, such as lattice dynamics calculations50,52 and the exact double counting term36.

Zen is an open-source toolkit. Its source code can be downloaded from GitHub107. We have an open-source package for the NORG impurity solver, which can be downloaded from GitHub108.