Abstract
We introduce the generative quantum eigensolver (GQE), a new quantum computational framework that operates outside the variational quantum algorithm paradigm by applying classical generative models to quantum simulation. The GQE algorithm optimizes a classical generative model to produce quantum circuits with desired properties. Here, we develop a transformer-based implementation, which we name the generative pre-trained transformer-based (GPT) quantum eigensolver (GPT-QE). We show a proof-of-concept of training and pretraining of GPT-QE applied to electronic structure Hamiltonians, and demonstrate its ability illustrated by surpassing coupled cluster singles and doubles (CCSD) for the strong bond dissociation of the nitrogen molecule and approaching chemical accuracy. We also demonstrate the method on real quantum hardware.
Introduction
For the past decade, the Variational Quantum Eigensolver (VQE) has been the primary approach for near-term quantum chemistry. However, VQE faces significant challenges, primarily due to its reliance on a fixed circuit structure (ansatz) with optimizable parameters. This rigidity often leads to "barren plateaus"—regions of the parameter space where gradients vanish—and limits the circuit's ability to adapt to different physical regimes.
The Generative Quantum Eigensolver (GQE) framework proposes a paradigm shift: instead of optimizing parameters within a fixed circuit, we optimize a classical generative model to "write" the circuit structure itself. By offloading the intelligence of circuit design to classical deep learning architectures, GQE bypasses many of the optimization hurdles inherent in VQE.
The GPT-QE Framework
The authors implement GQE using a decoder-only Transformer architecture, termed GPT-QE. This approach treats quantum circuit construction as a natural language generation task.
Circuits as Language
In GPT-QE, an "operator pool" (a set of possible quantum gates) is defined as a vocabulary. A sequence of these gates forms a "document," which corresponds to the quantum circuit. The Transformer is trained to predict the next gate in the sequence, effectively learning the "grammar" of efficient quantum states.
Training and Optimization
The training loop involves the Transformer suggesting a batch of circuits, which are then evaluated on a Quantum Processing Unit (QPU) or simulator to measure their energy. These results populate a replay buffer. The model is updated using reinforcement learning techniques, specifically Logit Matching and Group Relative Policy Optimization (GRPO), to align the model's internal probabilities with lower energy outcomes.
A key innovation is coefficient reweighting, which allows for data recycling. Since different molecular geometries often share underlying Pauli strings, data from one bond length can be mathematically transformed to train the model for another, reducing the need for expensive quantum measurements.
Experimental Results
The researchers evaluated GPT-QE on electronic structure Hamiltonians for $H_2$, $LiH$, $BeH_2$, and $N_2$ using the STO-3G basis set.
- Chemical Accuracy: GPT-QE achieved chemical accuracy (error < 1.6 mHa) for $H_2$ and $LiH$ across various bond lengths.
- Surpassing CCSD: In the strong bond dissociation regime of $N_2$, where standard classical approximations like Coupled Cluster Singles and Doubles (CCSD) typically fail, GPT-QE successfully captured complex electronic correlations and outperformed CCSD.
- Hardware Validation: Experiments conducted on the 127-qubit IBM ibm_kawasaki device, utilizing Zero-Noise Extrapolation (ZNE), matched ideal simulations within a margin of 0.002 Hartree.
- Adaptive Complexity: The model demonstrated an ability to adapt circuit depth based on the complexity of the state, using fewer gates for simple bonds and automatically increasing depth for more complex configurations.
Discussion and Future Work
GPT-QE demonstrates the potential of merging classical generative AI with quantum simulation. By moving optimizable parameters to a classical neural network, the framework leverages the efficient training dynamics of deep learning while using quantum hardware solely for energy evaluation.
Future work will focus on scaling the approach to larger molecular systems, exploring more generic hardware-native gate sets, and implementing "Conditional GPT-QE," where molecular geometries could serve as prompts to instantly generate optimal circuits. Additionally, hybrid approaches using GQE to find initial circuits for subsequent VQE fine-tuning offer a promising path forward.
Summary updated