WannierNLQG: A Julia package for nonlinear optical responses and quantum geometry from Wannier tight-binding models

arXiv:2609.10411 · cond-mat.mes-hall, cond-mat.mtrl-sci · Submitted 2026-09-09 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Quantum Radio. Generated commentary on the latest quantum physics and condensed matter papers.

Kai: We're looking at the paper: "WannierNLQG: A Julia package for nonlinear optical responses and quantum geometry from Wannier tight-binding models".

Paper summary: Kai: So, we're looking at this paper called "WannierNLQG: A Julia package for nonlinear optical responses and quantum geometry from Wannier tight-binding models". What's the core idea here?

Mira: Basically, they are introducing this new framework. They say that understanding nonlinear optical responses and quantum geometry is really connected when you look at electronic stuff in materials.

Lev: So what's the main claim of this paper? What do they actually build with this WannierNLQG package?

Kai: It’s an extensible Julia framework designed to calculate both nonlinear optical responses and various quantities in quantum geometry directly starting from Wannier tight-binding models.

Mira: They claim that their architecture is gauge consistent and aware of degeneracies, which gives them a solid foundation to extend calculations for nonlinear response at any order, plus adding more geometric quantities into quantum geometry.

Lev: That sounds ambitious, but what are they actually testing with this framework in the current release? What are the immediate things they have evaluated?

Kai: Right now, they’re evaluating ordinary, spin, and photon drag injection and shift currents. They've tested these both as Brillouin zone integrals and also on k slices.

Mira: And they aren't just stopping there; this framework also provides k-resolved Berry curvature, quantum metric, and their multipoles. Plus things coupling momentum and spin.

Lev: That’s a lot of geometric stuff coming out of one package. How do they handle those tricky situations where you have energy degeneracies in the band structure?

Kai: They tackle the numerical difficulty in nonlinear optical response calculations by offering four different ways to formulate the shift current, instead of just relying on one method.

Mira: They have the conventional method, a projector trace formulation, a generalized Wilson loop formulation, and a geometric loop formulation at finite momentum.

Lev: So they're providing options for how you calculate that shift current? Which one seems to be the most promising for actual computation on hardware right now?

Kai: The paper shows that the projector comparison gives a specific error value, where epsilon L squared is about one point five times ten to the negative four, and epsilon max is about two point nine times ten to the negative four.

Mira: That projector formulation result looks much better than the conventional result which gave two point two four times ten to the negative three and four point three one times ten to the negative three.

Lev: So they’re showing that for frozen datasets, this projector method is closer in terms of accuracy compared to what was done conventionally. What does that mean for running things on real hardware?

Paper summary: Kai: In fact, in frozen tests across three materials with similar compute units, WannierNLQG achieved paired speedups in warm time to solution of eight point four four times over WannierBerri twenty-six point seven zero.

Mira: That’s a significant speedup when you look at the warm-time performance. It suggests this framework is viable for larger problems than just small test cases.

Lev: Speedups are good, but how does this affect the overhead when you move this to a real quantum error correction setup? What's the practical reality of that eight point four four times improvement?

Kai: Lev, from an engineering standpoint, we’re looking at how much resource overhead is required for the gauge-consistent treatment and degeneracy awareness. That’s where things get interesting.

Mira: I’m wondering about the assumptions they make when they build this common foundation for extending calculations across arbitrary perturbative orders. What specific physical assumptions are driving those extensions?

Lev: If you're pushing to higher orders, the complexity of tracking all those gauge-consistent objects really adds up fast on actual superconducting qubit platforms. The overhead lands somewhere in the measurement time.

Kai: So, they’ve also included experimental symmetry workflows that adapt Wannier construction based on symmetry requirements. That helps when you are trying to map theoretical models onto real material structures.

Mira: It makes sense that having those symmetry-adapted inputs is important when dealing with realistic multiband materials where the structure matters a lot for the results.

Lev: What about those photon drag responses they mentioned? The paper highlights that these are qualitatively different from standard nonlinear optical responses because of finite momentum. How does your current setup handle that difference?

Kai: The conventional shift current response uses a generalized complex shift vector building block, which they evaluate using a sum rule form to avoid gauge-dependent differentiation.

Mira: But for photon drag, the geometric loop formulation for the shift current is evaluated from a closed gauge invariant loop instead of differentiating those velocity matrices. That’s what makes it different at finite momentum.

Lev: So you’re comparing a derivative-based approach with a loop-based approach to handle that finite momentum connection between states at k alpha equals k minus q over two and k beta equals k plus q over two?

Kai: Exactly. The geometric loop formulation for photon drag shift current is evaluated from a closed gauge invariant loop rather than by differentiating gauge dependent velocity matrices.

Mira: So, the paper is giving us tools to calculate these responses at finite momentum, which existing software often restricts to just zero momentum. That opens up a lot more physics for materials science.

Lev: If this framework can handle finite momentum, that’s important because real light interactions aren't always at zero momentum transfer. It changes the kinds of physical processes you can model directly from the tight-binding models.

Paper summary: Kai: And that leads into their future work, where they plan to extend this shared geometric infrastructure to other nonlinear optical and transport responses like thermoelectric or magnetoelectric effects.

Mira: They also mention incorporating electron phonon coupling and excitonic effects in the future work, which should bring in even more physical processes into the calculations.

Lev: Those couplings introduce a lot more complexity for error correction because you’re dealing with different types of interactions simultaneously. That’s where it gets really hard to implement practically.

Kai: So, to wrap up this look at "WannierNLQG: A Julia package for nonlinear optical responses and quantum geometry from Wannier tight-binding models", the main point is that they give us a unified way to compute both nonlinear optical response and quantum geometry from tight-binding models.

Mira: They provide a gauge consistent, degeneracy aware architecture that allows you to extend these calculations systematically across different orders and incorporate new geometric quantities.

Lev: The implication for hardware is that it provides a path toward higher accuracy in calculating things like shift currents, showing better performance than conventional methods on specific material examples.

Kai: It's about providing a consistent structure for these kinds of complex calculations, whether you are working with ordinary responses or more exotic photon drag effects at finite momentum.

Mira: The authors show how to move beyond the zero momentum limit and handle those off-diagonal k elements that connect states at different crystal momenta.

Lev: For someone building real hardware, it means having a well-defined way to estimate the computational cost of these geometric calculations before you start optimizing for qubit fidelity.

Kai: So, the title "WannierNLQG: A Julia package for nonlinear optical responses and quantum geometry from Wannier tight-binding models" really captures what this paper is about.

Mira: It’s about using a specific tool to connect nonlinear optical response and quantum geometry directly with the tight-binding models of materials.

Lev: In simpler terms, it means they built a unified software package that lets you do both things at once, which is important for connecting theory to what we measure experimentally.

Kai: It gives researchers a way to systematically handle those complex calculations, ensuring gauge consistency and awareness of band degeneracies when dealing with these quantum material properties.

Mira: The real value is that it opens up the door to calculating things like shift currents at finite momentum, which wasn't really accessible before in this software domain.

Lev: For anyone listening, it means there’s a new set of tools for materials science calculations that can handle more physical phenomena than just the simple zero momentum case.

Conclusion: Kai: So, we're wrapping up this look at WannierNLQG, that Julia package for nonlinear optical responses and quantum geometry from tight-binding models.

Mira: It really is a unified tool now, connecting the response you measure directly to those underlying electronic models.

Kai: What I find interesting is how they’ve structured the whole workflow, from model input all the way to evaluating those geometric objects and optical quantities.

Mira: They built this gauge consistent and degeneracy aware architecture, which means you can push these calculations out across different perturbative orders without losing track of things.

Kai: And they've given us these options for calculating shift currents—conventional methods, projector traces, generalized Wilson loops—which is pretty neat because it addresses the numerical instability issues.

Mira: The comparison they did showed that the projector formulation was much closer to what you'd expect on frozen datasets compared to the conventional approach.

Kai: That accuracy gain is significant, especially when you look at how fast this framework runs, showing speedups over other tools like WannierBerri.

Mira: It shows that for people doing first principles calculations on real materials, this approach is a solid foundation for getting reliable results.

Kai: The authors are looking ahead to adding more responses like thermoelectric and magnetoelectric effects, and incorporating electron phonon coupling.

Mira: That next step will definitely broaden the physics they can model, pushing it beyond just optical signals.

Kai: This suggests that we're moving toward a platform where you can tackle much more complex material problems with a consistent set of tools.

Center for Quantum Matter, School of Physics, Zhejiang University · Department of Physics, City University of Hong Kong

cond-mat.mes-hall, cond-mat.mtrl-sci

Submitted: 2026-09-09

Updated: 2026-12-02

Comments: 22 pages, 5 figures

Code: https://github.com/ZhuochengLu/WannierNLQG

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 100/100

The gist: Nonlinear optical responses and quantum geometry are central to understanding electronic phenomena in quantum materials and are deeply intertwined.<ref:2609.10411#pg5>.

Key concepts

WannierNLQG
A Julia package designed to calculate nonlinear optical responses and quantum geometry using Wannier tight-binding models. It organizes model preparation, geometric objects, and response evaluation into a shared workflow for efficient computation.
Quantum Geometry
A concept in condensed matter physics that describes the geometric properties of electronic states. The framework calculates quantities like k-resolved Berry curvature and quantum metric from Wannier models to understand how momentum and spin are coupled.
Finite Momentum Responses
The framework moves beyond the zero momentum limit by supporting responses at finite momentum (q). This is crucial for accurately describing phenomena like photon drag, where states are connected across different k-points.
Shift Current Formulations
The paper explores several ways to calculate shift currents, including conventional methods and projector trace formulations. These alternatives help avoid numerical instabilities and gauge dependence when dealing with degenerate energy levels.

Terminology

Summary

Nonlinear optical responses and quantum geometry are central to understanding electronic phenomena in quantum materials and are deeply intertwined. p. 0<ref:2609.10411#pg5>. The framework introduces WannierNLQG, an extensible Julia framework that enables the computation of nonlinear optical responses and quantities in quantum geometry directly from Wannier tight-binding models. p. 0<ref:2609.10411#pg5>. Its gauge-consistent, degeneracy-aware architecture provides a common foundation for extending calculations of nonlinear response across arbitrary perturbative orders and for incorporating additional quantities in quantum geometry. p. 0<ref:2609.10411#pg5>. The current release evaluates ordinary, spin, and photon drag injection and shift currents, both as Brillouin-zone integrals and on k slices. p. 0<ref:2609.10411#pg5>. The framework also provides k-resolved Berry curvature, quantum metric, and their multipoles, together with additional quantities in quantum geometry and quantities coupling momentum and spin. p. 0<ref:2609.10411#pg5>. Complementing these core capabilities, experimental symmetry workflows support Wannier construction adapted to symmetry. p. 0<ref:2609.10411#pg5>. The documentation details formula conventions, the TaskConfig interface, and auditable output formats. p. 0<ref:2609.10411#pg5>. Together, these capabilities support first-principles calculations of nonlinear response and quantum geometry in realistic multiband materials. p. 0<ref:2609.10411#pg5>

Framework Architecture

The WannierNLQG framework is organized around a common workflow connecting model preparation, task-dependent geometric and optical objects, and response evaluation.<ref:2609.10411#pg5>. This organization brings subspace treatments, broader analysis of quantum geometry, and matrix elements at finite momentum into a shared computational workflow. p. 2<ref:2609.10411#pg5>. The TaskConfig interface combines a ModelInput, one Brillouin-zone sampling object, named TaskSpec objects, and execution and output settings. p. 8<ref:2609.10411#pg9, "A TaskConfig combines a ModelInput, one Brillouin-zone sampling object, named TaskSpec objects, and execution and output settings">. p. 8 The Core layer evaluates observables while the IO layer supplies model data. p. 8<ref:2609.10411#pg9, "The Core and IO layers supply model data, MatrixElements constructs the required geometric and optical objects, Responses evaluates observables, and Runtime orchestrates validation, execution, and output">

Handling Degeneracies

The framework addresses the numerical difficulty in nonlinear optical response calculations by offering alternative formulations for shift current:

  1. Conventional method. p. 0<ref:2609.10411#pg2, "Conventional Wannier interpolation schemes circumvent this instability by replacing the direct derivative with a sum-over-states formulation within the Wannier subspace">

  2. Projector trace formulation. p. 2<ref:2609.10411#pg3>

  3. Generalized Wilson loop formulation. p. 2<ref:2609.10411#pg5>

  4. Geometric loop formulation at finite momentum. p. 2<ref:2609.10411#pg8>

Finite Momentum Responses

A major limitation in existing software is the restriction to the spatially uniform q = 0 limit, which WannierNLQG overcomes by supporting responses at finite momentum.<ref:2609.10411#pg3, "Photon drag nonlinear optical responses are qualitatively different: finite photon momentum connects states at kα = k − q/2 and kβ = k + q/2">

The conventional shift current response is defined by the generalized complex shift vector building block, which is evaluated via a sum-rule form to avoid gauge-dependent differentiation.<ref:2609.10411#pg7, "The conventional implementation therefore evaluates the same shift vector building block through the sum rule for the generalized derivative">. p. 6 The geometric loop formulation for photon drag shift current is evaluated from a closed gauge-invariant loop rather than by differentiating gauge-dependent velocity matrices. p. 8<ref:2609.10411#pg8>

Validation and Performance

The paper validates the methodology using GeS and 2H-bilayer MoS2 examples, showing that the projector formulation is closer than the conventional result for frozen datasets.<ref:2609.10411#pg13, "the projector comparison gives \epsilon_L^2 = 1. p. 657 \times 10^{-4} and \epsilon_{max} = 2.90 \times 10^{-4}, whereas the conventional comparison gives 2. p. 824 \times 10^{-3} and 4.31 \times 10^{-3}, respectively">. Furthermore, in frozen tests of the full conventional shift current tensor across three materials at matched numbers of nominal compute units, WannierNLQG achieved paired speedups in warm time to solution of 8. p. 244–15.83× over WannierBerri 26. p. 17.0.<ref:2609.10411#pg17>

Future Directions

Future development will extend the shared geometric infrastructure to additional nonlinear optical and transport responses, including thermoelectric, magnetoelectric, and optoelectric effects.<ref:2609.10411#pg19>. Incorporating electron–phonon coupling and excitonic effects will broaden the physical processes represented in these calculations. p. 1<ref:2609.10411#pg19>

Code Availability

The source code of WannierNLQG corresponding to this article is available in the GitHub repository under the GNU General Public License version 2 only (GPL-2.0-only).<ref:2609.10411#pg18, "The source code of WannierNLQG corresponding to this article is available in the GitHub repository under the GNU General Public License version 2 only (GPL-2. p. 00-only)">. The material-specific input files, representative numerical outputs, numerical metadata, and post-processing materials supporting the GeS and 2H-bilayer MoS2 results are publicly available in Mendeley Data, Version 1 [47]. p. 0<ref:2609.10411#pg22, "The material-specific input files, representative numerical outputs, numerical metadata, and post-processing materials supporting the GeS and 2H-bilayer MoS2 results are publicly available in Mendeley Data, Version 1 [47]">

References

The paper cites numerous foundational works across various domains including Wannier functions and quantum geometry.<ref:2609.10411#pg20>. Key references include work on Maximally localized generalized wannier functions for composite energy bands. p. 1<ref:2609.10411#pg20> and the development of Wannier90 as a tool for obtaining maximally-localised wannier functions. p. 1<ref:2609.10411#pg3> and the work on Projectability disentanglement for accurate and automated electronic-structure hamiltonians. p. 1<ref:2609.10411#pg3> as well as studies on nonlinear optical responses. p. 0<ref:2609.10411#pg20> and quantum geometry in condensed matter phenomena. p. 1<ref:2609.10411#pg5>

Key references include work on Generalized wilson loop method for nonlinear light-matter interaction.<ref:2609.10411#pg20, "Generalized wilson loop method for nonlinear light-matter interaction"> and studies on photon drag photovoltaic effects and quantum geometric nature. p. 0<ref:2609.10411#pg8> as well as the development of WannierNLQG as a tool for nonlinear optical responses. p. 2<ref:2609.10411#pg20> and studies on symmetry-adapted wannier functions. p. 0<ref:2609.10411#pg3> as well as studies on post-hoc symmetrization of the Hamiltonian and realspace operators. p. 3<ref:2609.10411#pg3> as well as studies on irreducible-k-mesh integration in an invariant tensor basis. p. 0<ref:2609.10411#pg5> and studies on the geometric loop formulation for photon drag shift current. p. 2<ref:2609.10411#pg8> as well as studies on the Zeeman quantum geometry. p. 0<ref:2609.10411#pg5> and studies on the triple phase product and Hermitian curvature tensor. p. 0<ref:2609.10411#pg15, "the triple phase product and Hermitian curvature tensor"> as well as studies on the Zeeman Berry curvature. p. 0<ref:2609.10411#pg5>.

Key references include work on the comparison of DFT and Wannier-TB electronic structures. p. 1 p. 1 p. 1<ref:2609.10411#pg5> and studies on nonlinear optical responses. p. 0 p. 0<ref:2609.10411#pg5> as well as studies on quantum geometry resolved by subspace. p. 0<ref:2609.10411#pg5> and studies on photon drag responses at finite q. p. 0<ref:2609.10411#pg8>.

Key references include work on the performance comparison with WannierBerri. p. 1<ref:2609.10411#pg5> and studies on the comparison of DFT and Wannier-TB electronic structures. p. 0<ref:2609.10411#pg5> as well as studies on nonlinear optical responses. p. 0<ref:2609.10411#pg5>.

Key references include work on the comparison of DFT and Wannier-TB electronic structures.<ref:2609.10411#pg5> and studies on nonlinear optical responses.<ref:2609.10411#pg5>.

Key references include work on the comparison of DFT and Wannier-TB electronic structures.<ref:2609.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Unified framework for nonlinear optical response and quantum geometry computation in Wannier tight-binding models is established, allowing extensions across arbitrary perturbative orders and incorporating additional quantities in quantum geometry. This enables first-principles calculations of nonlinear response and quantum geometry in realistic multiband materials by connecting quantum geometry with quantitative materials modeling for a broad range of optoelectronic, spintronic, and photovoltaic applications.

  2. Gauge-consistent subspace treatments are systematically implemented through projector, Wilson loop, and geometric loop formulations for shift current calculations. This allows the framework to evaluate nonlinear response quantities on degenerate subspaces where individual eigenvectors are basis dependent, offering a gauge-covariant replacement for single-band derivatives as described in Section 3.6.

  3. Finite photon momentum allows for the calculation of photon drag nonlinear optical responses, including shift and injection currents, by connecting states at distinct crystal momenta. This capability is realized through the geometric loop formulation (Eq. 29), which evaluates response quantities from a closed gauge-invariant loop rather than differentiating gauge-dependent velocity matrices or using multi-band sum rule expressions.

  4. Symmetry workflows support Wannier construction adapted to symmetry, symmetrization of tight-binding models, and reduction of spatially uniform response integrals to irreducible k-point orbits and invariant tensor components. These expert paths can be used independently or in sequence, sharing a common provenance model while remaining operationally distinct from the core response integration loop.

  5. The software interface provides a grouped public response interface with a TaskConfig that combines ModelInput, Brillouin-zone sampling object, TaskSpec objects, and execution settings. This allows users to select specific method and calculation types (e.g., Conventional, Projector) for various quantities (e.g., Shift Current) consistently across integral and k-slice modes.

  6. Performance comparisons show that WannierNLQG achieves paired speedups in warm time to solution of 8.44–15.83 times over WannierBerri 26.7.0 for the full conventional shift current tensor on GeS, Nb3I8, and GaAs when using complete k meshes and matched compute units. This indicates the efficiency gains from the mixed-Fourier strategy and optimized in-place execution compared to direct Fourier transform methods used in previous codes like postw90.x.

Sources

Related papers