Quantum-Enhanced Neural Exchange-Correlation Functionals

Igor O. Sokolov, Gert‐Jan Both, Arteum D. Bochevarov, Pavel A. Dub, Daniel S. Levine, Christopher T. Brown, Shaheen Acheche, Panagiotis Kl. Barkoutsos, Vincent E. ElfvingarXiv 2024 · DOI

Abstract

Kohn-Sham Density Functional Theory (KS-DFT) provides the exact ground state energy and electron density of a molecule, contingent on the as-yet-unknown universal exchange-correlation (XC) functional. Recent research has demonstrated that neural networks can efficiently learn to represent approximations to that functional, offering accurate generalizations to molecules not present during the training process. With the latest advancements in quantum-enhanced machine learning (ML), evidence is growing that Quantum Neural Network (QNN) models may offer advantages in ML applications. In this work, we explore the use of QNNs for representing XC functionals, enhancing and comparing them to classical ML techniques. We present QNNs based on differentiable quantum circuits (DQCs) as quantum (hybrid) models for XC in KS-DFT, implemented across various architectures. We assess their performance on 1D and 3D systems. To that end, we expand existing differentiable KS-DFT frameworks and propose strategies for efficient training of such functionals, highlighting the importance of fractional orbital occupation for accurate results. Our best QNN-based XC functional yields energy profiles of the H$_2$ and planar H$_4$ molecules that deviate by no more than 1 mHa from the reference DMRG and FCI/6-31G results, respectively. Moreover, they reach chemical precision on a system, H$_2$H$_2$, not present in the training dataset, using only a few variational parameters. This work lays the foundation for the integration of quantum models in KS-DFT, thereby opening new avenues for expressing XC functionals in a differentiable way and facilitating computations of various properties.

Introduction

Kohn-Sham Density Functional Theory (KS-DFT) is the cornerstone of modern quantum chemistry, enabling the prediction of electronic properties for a wide range of materials and molecules. Its central challenge lies in the exchange-correlation (XC) functional, which encapsulates all complex electron-electron interactions. While the exact functional remains unknown, recent advances in machine learning (ML) have shown that neural networks can approximate these functionals with high accuracy. This work explores the potential of Quantum Neural Networks (QNNs) to represent XC functionals, leveraging their inherent compatibility with the quantum nature of electronic systems.

The Differentiable Framework

To effectively train these models, we developed a fully differentiable DFT pipeline. By utilizing differentiable quantum circuits (DQCs) and integrating them with tools like JAX and PySCFAD, we can optimize the XC functional parameters using gradient-based methods. This end-to-end differentiability ensures that the entire Self-Consistent Field (SCF) process can be optimized to minimize energy and density errors.

The differentiable quantum-enhanced DFT framework illustrates the cycle from molecular data generation to functional training and property prediction.

Locality and Embedding Strategies

A key technical consideration in functional design is the degree of locality. Traditional functionals often rely on local density values at specific grid points. However, our research indicates that "global" models—which take the entire density profile as input—significantly outperform local ones in capturing long-range correlations. We compared local models ($L=1$) with global models ($L=N_{grid}$), finding that global embedding is crucial for achieving high accuracy and capturing the non-local nature of exchange-correlation effects.

Locality of functionals and the architectural differences between global and local XC functional embeddings.

Results: Precision and Efficiency

Our QNN-based functionals achieved "chemical precision" (errors $< 1$ mHa) on benchmark systems such as $H_2$ and planar $H_4$. Notably, these quantum models are remarkably parameter-efficient. While classical models often require thousands or even hundreds of thousands of parameters, our QNNs achieved comparable or superior accuracy with only 300 to 700 parameters. This suggests a high information density in quantum representations for chemical tasks.

Furthermore, the models demonstrated robust generalization. A functional trained on $H_2$ and $H_4$ successfully predicted the energy of an unseen $H_2H_2$ system, indicating that the QNN learned fundamental physical principles rather than simple data memorization. We also addressed challenges in 3D systems by implementing a Fractional Orbital (FO) occupation scheme, which reduced energy errors six-fold and smoothed oscillations in potential energy surfaces that typically plague standard integer-occupation models.

Conclusion and Future Outlook

This work establishes a foundation for integrating quantum models into KS-DFT. While current applications are limited to small hydrogen clusters and face challenges regarding shot budgets on real hardware, the results are promising. Future research will focus on scaling these models to larger, more complex molecules and developing grid-invariant quantum embeddings to enhance the universality of the learned functionals. The resilience of these models to noise also suggests they are well-suited for execution on near-term noisy quantum hardware (NISQ).

Summary updated

BibTeX
@misc{sokolov2024quantum,
  author = {Igor O. Sokolov and Gert‐Jan Both and Arteum D. Bochevarov and Pavel A. Dub and Daniel S. Levine and Christopher T. Brown and Shaheen Acheche and Panagiotis Kl. Barkoutsos and Vincent E. Elfving},
  title = {{Quantum-Enhanced Neural Exchange-Correlation Functionals}},
  year = {2024},
  eprint = {2404.14258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.14258},
}
Figure