Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

  • Article
  • Published:

Accelerating the calculation of electron–phonon coupling strength with machine learning

A preprint version of the article is available at arXiv.

Abstract

The calculation of electron–phonon couplings (EPCs) is essential for understanding various fundamental physical properties, including electrical transport, optical and superconducting behaviors in materials. However, obtaining EPCs through fully first-principles methods is notably challenging, particularly for large systems or when employing advanced functionals. Here we introduce a machine learning framework to accelerate EPC calculations by utilizing atomic orbital-based Hamiltonian matrices and gradients predicted by an equivariant graph neural network. We demonstrate that our method not only yields EPC values in close agreement with first-principles results but also enhances calculation efficiency by several orders of magnitude. Application to GaAs using the Heyd–Scuseria–Ernzerhof functional reveals the necessity of advanced functionals for accurate carrier mobility predictions, while for the large Kagome crystal CsV3Sb5, our framework reproduces the experimentally observed double domes in pressure-induced superconducting phase diagrams. This machine learning framework offers a powerful and efficient tool for the investigation of diverse EPC-related phenomena in complex materials.

This is a preview of subscription content, access via your institution

Access options

Buy this article

USD 39.95

Prices may be subject to local taxes which are calculated during checkout

Fig. 1: Efficient construction of Hamiltonian matrices and electron–phonon interaction framework using HamGNN.
Fig. 2: Comparison of EPC matrix elements.
Fig. 3: Band structures, mobility convergence and scattering rates of GaAs.
Fig. 4: Crystal structure, Kagome lattice and superconducting transition temperature (Tc) of CsV3Sb5.
Fig. 5: Energy bands, phonon spectrum and atomic vibration modes in the CDW phase of CsV3Sb5.

Similar content being viewed by others

Data availability

The Hamiltonian and Hamiltonian gradient data, generated by HamGNN, are available on Zenodo at https://doi.org/10.5281/zenodo.11204268 (ref. 45) for calculating the carrier mobility of GaAs and the superconducting transition temperature of CsV3Sb5. Source data are provided with this paper.

Code availability

The code for calculating the mobility and superconductivity is available on GitHub (https://github.com/QuantumLab-ZY/HamEPC) and Zenodo at https://doi.org/10.5281/zenodo.12685941 (ref. 46).

References

  1. Giustino, F. Electron–phonon interactions from first principles. Rev. Mod. Phys. 89, 015003 (2017).

    Article  MathSciNet  Google Scholar 

  2. Lee, H. et al. Electron–phonon physics from first principles using the EPW code. NPJ Comput. Mater. 9, 156 (2023).

    Article  Google Scholar 

  3. Brunin, G. et al. Phonon-limited electron mobility in Si, GaAs, and GaP with exact treatment of dynamical quadrupoles. Phys. Rev. B 102, 094308 (2020).

    Article  Google Scholar 

  4. Bardeen, J., Cooper, L. N. & Schrieffer, J. R. Theory of superconductivity. Phys. Rev. 108, 1175–1204 (1957).

    Article  MathSciNet  Google Scholar 

  5. Baroni, S., de Gironcoli, S., Dal Corso, A. & Giannozzi, P. Phonons and related crystal properties from density-functional perturbation theory. Rev. Mod. Phys. 73, 515–562 (2001).

    Article  Google Scholar 

  6. Giustino, F., Cohen, M. L. & Louie, S. G. Electron–phonon interaction using Wannier functions. Phys. Rev. B 76, 165108 (2007).

    Article  Google Scholar 

  7. Marzari, N., Mostofi, A. A., Yates, J. R., Souza, I. & Vanderbilt, D. Maximally localized Wannier functions: theory and applications. Rev. Mod. Phys. 84, 1419–1475 (2012).

    Article  Google Scholar 

  8. Agapito, L. A. & Bernardi, M. Ab initio electron–phonon interactions using atomic orbital wave functions. Phys. Rev. B 97, 235146 (2018).

    Article  Google Scholar 

  9. Heyd, J., Scuseria, G. E. & Ernzerhof, M. Hybrid functionals based on a screened Coulomb potential. J. Chem. Phys. 118, 8207–8215 (2003).

    Article  Google Scholar 

  10. Heyd, J., Scuseria, G. E. & Ernzerhof, M. Erratum: “Hybrid functionals based on a screened Coulomb potential” [J. Chem. Pys. 118, 8207 (2003)]. J. Chem. Phys. 124, 219906 (2006).

    Article  Google Scholar 

  11. Li, Z., Antonius, G., Chan, Y.-H. & Louie, S. G. Electron–phonon coupling from GW perturbation theory: practical workflow combining BerkeleyGW, ABINIT, and EPW. Comp. Phys. Commun. 295, 109003 (2024).

    Article  Google Scholar 

  12. Engel, M., Marsman, M., Franchini, C. & Kresse, G. Electron–phonon interactions using the projector augmented-wave method and Wannier functions. Phys. Rev. B 101, 184302 (2020).

    Article  Google Scholar 

  13. Luo, Y., Desai, D., Chang, B. K., Park, J. & Bernardi, M. Data-driven compression of electron–phonon interactions. Phys. Rev. X 14, 021023 (2024).

    Google Scholar 

  14. Zhong, Y., Yu, H., Su, M., Gong, X. & Xiang, H. Transferable equivariant graph neural networks for the Hamiltonians of molecules and solids. NPJ Comput. Mater. 9, 182 (2023).

    Article  Google Scholar 

  15. Schutt, K. T., Gastegger, M., Tkatchenko, A., Muller, K. R. & Maurer, R. J. Unifying machine learning and quantum chemistry with a deep neural network for molecular wavefunctions. Nat. Commun. 10, 5024 (2019).

    Article  Google Scholar 

  16. Gong, X. et al. General framework for E(3)-equivariant neural network representation of density functional theory Hamiltonian. Nat. Commun. 14, 2848 (2023).

    Article  Google Scholar 

  17. Zhong, Y. et al. Universal machine learning Kohn–Sham Hamiltonian for materials. Chin. Phys. Lett. 41, 077103 (2024).

    Article  Google Scholar 

  18. Chen, K. Y. et al. Double superconducting dome and triple enhancement of Tc in the Kagome superconductor CsV3Sb5 under high pressure. Phys. Rev. Lett. 126, 247001 (2021).

    Article  Google Scholar 

  19. Zhang, Z. et al. Pressure-induced reemergence of superconductivity in the topological kagome metal CsV3Sb5. Phys. Rev. B 103, 224513 (2021).

    Article  MathSciNet  Google Scholar 

  20. Ozaki, T. Variationally optimized atomic orbitals for large-scale electronic structures. Phys. Rev. B 67, 155108 (2003).

    Article  Google Scholar 

  21. Ozaki, T. & Kino, H. Numerical atomic basis orbitals from H to Kr. Phys. Rev. B 69, 195113 (2004).

    Article  Google Scholar 

  22. Qin, X., Shang, H., Xiang, H., Li, Z. & Yang, J. HONPAS: a linear scaling open‐source solution for large system simulations. Int. J. Quantum Chem. 115, 647–655 (2014).

    Article  Google Scholar 

  23. Luo, Z., Qin, X., Wan, L., Hu, W. & Yang, J. Parallel implementation of large-scale linear scaling density functional theory calculations with numerical atomic orbitals in HONPAS. Front. Chem. 8, 589910 (2020).

    Article  Google Scholar 

  24. Lin, P., Ren, X., Liu, X. & He, L. Ab initio electronic structure calculations based on numerical atomic orbitals: basic fomalisms and recent progresses. WIREs Comput. Mol. Sci. 14, e1687 (2023).

    Article  Google Scholar 

  25. Chen, M., Guo, G. C. & He, L. Systematically improvable optimized atomic basis sets for ab initio calculations. J. Phys. Condens. Matter 22, 445501 (2010).

    Article  Google Scholar 

  26. Togo, A. First-principles phonon calculations with Phonopy and Phono3py. J. Phys. Soc. Jpn 92, 012001 (2023).

    Article  Google Scholar 

  27. Togo, A., Chaput, L., Tadano, T. & Tanaka, I. Implementation strategies in phonopy and phono3py. J. Phys. Condens. Matter 35, 353001 (2023).

    Article  Google Scholar 

  28. Giannozzi, P. et al. QUANTUM ESPRESSO: a modular and open-source software project for quantum simulations of materials. J. Phys. Condens. Matter 21, 395502 (2009).

    Article  Google Scholar 

  29. Giannozzi, P. et al. Advanced capabilities for materials modelling with Quantum ESPRESSO. J. Phys. Condens. Matter 29, 465901 (2017).

    Article  Google Scholar 

  30. Noffsinger, J. et al. EPW: A program for calculating the electron–phonon coupling using maximally localized Wannier functions. Comput. Phys. Comm. 181, 2140–2148 (2010).

    Article  Google Scholar 

  31. Zhou, J.-J. & Bernardi, M. Ab initioelectron mobility and polar phonon scattering in GaAs. Phys. Rev. B 94, 201201 (2016).

    Article  Google Scholar 

  32. Ma, J., Nissimagoudar, A. S. & Li, W. First-principles study of electron and hole mobilities of Si and GaAs. Phys. Rev. B 97, 045201 (2018).

    Article  Google Scholar 

  33. Zhou, J.-J. et al. Perturbo: a software package for ab initio electron–phonon interactions, charge transport and ultrafast dynamics. Comput. Phys. Comm. 264, 107970 (2021).

    Article  MathSciNet  Google Scholar 

  34. Wang, Q. et al. Charge density wave orders and enhanced superconductivity under pressure in the Kagome metal CsV3Sb5. Adv. Mater. 33, e2102813 (2021).

    Article  Google Scholar 

  35. Zheng, L. et al. Emergent charge order in pressurized Kagome superconductor CsV3Sb5. Nature 611, 682–687 (2022).

    Article  Google Scholar 

  36. Ortiz, B. R. et al. CsV3Sb5: A Z2 topological Kagome metal with a superconducting ground state. Phys. Rev. Lett. 125, 247002 (2020).

    Article  Google Scholar 

  37. Tan, H., Liu, Y., Wang, Z. & Yan, B. Charge density waves and electronic properties of superconducting Kagome metals. Phys. Rev. Lett. 127, 046401 (2021).

    Article  Google Scholar 

  38. Zhang, J.-F., Liu, K. & Lu, Z.-Y. First-principles study of the double-dome superconductivity in the Kagome material CsV3Sb5 under pressure. Phys. Rev. B 104, 195130 (2021).

    Article  Google Scholar 

  39. Khan, F. S. & Allen, P. B. Deformation potentials and electron–phonon scattering: two new theorems. Phys. Rev. B 29, 3341–3349 (1984).

    Article  Google Scholar 

  40. Chen, X. et al. Highly robust reentrant superconductivity in CsV3Sb5 under pressure. Chin. Phys. Lett. 38, 057402 (2021).

    Article  Google Scholar 

  41. Poncé, S. et al. Temperature dependence of the electronic structure of semiconductors and insulators. J. Chem. Phys. 143, 102813 (2015).

    Article  Google Scholar 

  42. Poncé, S. et al. Temperature dependence of electronic eigenenergies in the adiabatic harmonic approximation. Phys. Rev. B 90, 214304 (2014).

    Article  Google Scholar 

  43. Blochl, P. E. The projector augmented wave (PAW) method: basics and applications. Abstr. Pap. Am. Chem. S. 217, U690 (1999).

    Google Scholar 

  44. Kresse, G. & Joubert, D. From ultrasoft pseudopotentials to the projector augmented-wave method. Phys. Rev. B 59, 1758–1775 (1999).

    Article  Google Scholar 

  45. Zhong, Y. & Liu, S. Dataset for accelerating the calculation of electron–phonon coupling strength with machine learning. Zenodo https://doi.org/10.5281/zenodo.11204268 (2024).

  46. Zhong, Y. & Liu, S. Code for accelerating the calculation of electron–phonon coupling strength with machine learning. Zenodo https://doi.org/10.5281/zenodo.12685941 (2024).

  47. Abdullah, B. J. Size effect of band gap in semiconductor nanocrystals and nanostructures from density functional theory within HSE06. Mater. Sci. Semicond. Process. 137, 106214 (2022).

    Article  Google Scholar 

Download references

Acknowledgements

We would like to express our gratitude to H. Shang and X. Qin for their valuable online discussions on the EPC and use of HONPAS. We acknowledge financial support from the Ministry of Science and Technology of the People’s Republic of China (no. 2022YFA1402901, H.X.), NSFC (grant nos. 11991061, X.-G.G. and 12188101, H.X.), the Guangdong Major Project of the Basic and Applied Basic Research (Future functional materials under extreme conditions—2021B0301030005, H.X.), the Shanghai Science and Technology Program (no. 23JC1400900, H.X.) and the Shanghai Pilot Program for Basic Research – Fudan University 21TQ1400100 (no. 22TQ017, W.C.).

Author information

Authors and Affiliations

Authors

Contributions

H.X. and J.-H.Y. proposed the research and the methodology in this work. Y.Z. and S.L. wrote the codes, performed the EPC calculation and wrote the paper. B.Z. conducted structure relaxation and phonon calculations for CsV3Sb5. Z.T, Y.S. and W.C. checked the formulas and codes. H.X., J.-H.Y. and X.-G.G. revised the paper. All authors discussed the results.

Corresponding authors

Correspondence to Ji-Hui Yang or Hongjun Xiang.

Ethics declarations

Competing interests

The authors declare no competing interests.

Peer review

Peer review information

Nature Computational Science thanks Ting Cao, Yuan Ping and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Primary Handling Editor: Jie Pan, in collaboration with the Nature Computational Science team.

Additional information

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Supplementary Information (download PDF )

Supplementary Figs. 1–8, Discussions 1–3 and Tables 1–4.

Source data

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Zhong, Y., Liu, S., Zhang, B. et al. Accelerating the calculation of electron–phonon coupling strength with machine learning. Nat Comput Sci 4, 615–625 (2024). https://doi.org/10.1038/s43588-024-00668-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • Version of record:

  • Issue date:

  • DOI: https://doi.org/10.1038/s43588-024-00668-7

This article is cited by

Search

Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing