Research
Learning to Prepare Molecular Ground States with Transformer Models
Overview Research area: Quantum computing for electronic structure / quantum chemistry, combined with generative AI (transformer language models and reinforcement learning) for quantum circuit synthes

- arXiv
- 2607.22468
- Published
- 2026-07-24
- Authors
- Alex Koziell-Pipe, Jasmine Brewer, Jem Guhit, Marwa H. Farag, Kripa Panchagnula, Gabriel Laude, Fabian Finger, Carlo Gaggioli, Ludmila Szulakowska, Oliver J. Backhouse, Christos Papalitsas, Jason G. Mustakis, Thomas Soini, David Munoz Ramo, Stephen Clark, Elica Kyoseva, Enrico Rinaldi
AI summary
Overview
Research area: Quantum computing for electronic structure / quantum chemistry, combined with generative AI (transformer language models and reinforcement learning) for quantum circuit synthesis.
Technical level: Advanced. The paper assumes familiarity with variational quantum algorithms (VQE, ADAPT-VQE), second-quantized fermionic Hamiltonians, Pauli-string encodings, and modern LLM training pipelines (pretraining, GRPO, self-distillation).
Scope (one sentence): The paper introduces ADAPT-GQE, a framework that trains transformer models to generate ground-state preparation circuits for the drug molecule imipramine, using ADAPT-VQE circuits as training targets, and validates generated circuits on Quantinuum hardware.
What This Paper Is About
Preparing a good approximation to a molecule's ground state is the bottleneck step in most quantum chemistry algorithms, and the leading iterative method, ADAPT-VQE, becomes computationally prohibitive for larger molecules because it must repeatedly evaluate gradients over an operator pool and re-optimize all accumulated parameters. The authors ask whether a generative model can learn the patterns of good circuits from many solved instances and then propose high-quality circuits for new molecular geometries in a single forward pass, without iterative optimization at inference time. They demonstrate this on imipramine, a tricyclic antidepressant chosen as a representative, chemically complex pharmaceutical target.
Key Contributions
-
The ADAPT-GQE framework. A pipeline in which ADAPT-VQE is used offline to generate high-quality reference circuits, which then become supervised training targets for generative models that synthesize complete circuits conditioned on the molecular Hamiltonian.
-
Two complementary transformer instantiations. A 325 million parameter Gemma 3-based model trained from scratch with no prior pretraining, and a 12 billion parameter NVIDIA Nemotron-Nano-12B-v2-Base model (a hybrid Mamba–Transformer with 28 Mamba-2 layers, 28 feedforward layers and 6 self-attention layers) adapted via continual pretraining and supervised fine-tuning.
-
Reinforcement learning that exceeds the training data. For the smaller model, a post-training loop combining GRPO (with the DAPO loss variant) and self-distillation improves circuit accuracy beyond the accuracy of the ADAPT-VQE circuits it was trained on, rather than merely imitating them.
-
Hardware demonstration on a pharmaceutically relevant molecule. Generated circuits for imipramine active spaces of 12–16 qubits were executed on Quantinuum Helios-1, which the authors describe as a milestone for AI-generated quantum chemistry circuits on state-of-the-art quantum hardware.
Main Findings
-
Large speedups over ADAPT-VQE: The abstract reports "order-of-magnitude reductions in circuit generation time relative to ADAPT-VQE while maintaining comparable or improved state-preparation accuracy." The introduction is more specific for the smaller model, stating reductions of "3–4 orders of magnitude relative to ADAPT-VQE" and "substantially more favorable scaling with system size." (The two statements differ in scale as written in the paper.)
-
Accuracy matches or beats the reference data: Across 12–16 qubit active spaces of imipramine, generated circuits "approach or exceed the accuracy of the ADAPT-VQE training data."
-
RL lifts the model past its teacher: Post-training with RL and self-distillation drives accuracy beyond the ADAPT-VQE dataset for the small model, using only rewards on model-generated circuits rather than reference sequences.
-
GPU-accelerated data generation: Using CUDA-Q's state-vector simulator, the 12-qubit case ran 234× faster on a single NVIDIA H100 GPU (43.4 seconds) than on a single CPU core (Intel Xeon Platinum 8480CL, over 10,000 seconds). For 16 qubits, distributing across eight H100 GPUs gave an additional 4.7× speedup relative to a single GPU.
-
Circuit length depends strongly on accuracy target and active space: For 12 qubits, tightening the threshold from 10 mHa to 5 mHa roughly doubled the median operator count from 8 to 19 UCCGSD operators. For 14 qubits, the stricter 5 mHa threshold gave a median of 51 operators versus 15 at 16 mHa. The 16-qubit system at 15 mHa had a median of 50 operators.
-
Dataset scale and composition: Five datasets of approximately 13,000 to 15,700 circuits each. MD conformers make up 76–89%, NEB configurations 8–17%, and out-of-distribution perturbations 4–7%.
-
High generation validity: For trained models, the mean valid fraction of generated sequences exceeds 0.9995, and fewer than 1% of sequences contain any parsing error.
-
Numerical energy results beyond these statements are not reported in the provided excerpt, which is truncated within Section 3.2.4; the detailed Section 4 accuracy results, error tables, and hardware execution statistics are not included in the content supplied.
Methodology in Plain English
Step 1 — Build a diverse set of molecular shapes. Imipramine is flexible, so the authors generated many conformers three ways: molecular dynamics snapshots (OpenMM with the MACE-OFF potential, NVT ensemble with a Langevin thermostat at 360 K, five trajectories of 20 million steps at 0.25 fs), transition pathways between RDKit ETKDG reference conformers (sets of 15 and 122 conformers, each pathway discretized into 30 images via nudged elastic band in ASE), and deliberately perturbed high-energy structures (rattle method, 0.05 Å standard deviation) held out as an out-of-distribution generalization test. Diversity was checked using 9 dihedral angles (6 non-ring, 3 ring).
Step 2 — Solve each conformer with ADAPT-VQE to create training targets. Active spaces were built with PySCF and the 6-31G basis set: (6e,6o) for 12 qubits, (6e,7o) for 14, and (8e,8o) for 16, mapped to qubits with the Jordan–Wigner transformation. UCCGSD pools were used for 12 and 14 qubits, and the more compact UCCSD pool for 16 qubits. Convergence thresholds were 5 and 10 mHa for 12 qubits, 5 and 16 mHa for 14 qubits, and 15 mHa for 16 qubits, with CASCI as reference for 12/14 qubits and CCSD for 16 qubits.
Step 3 — Turn circuits into text. Each circuit is written as a sequence of "operator, coefficient" pairs, with coefficients rounded to 6 decimal places. The small model uses a word-level tokenizer (one token per operator in the pool) plus per-digit tokenization for numbers. The large model reuses its byte-pair encoding tokenizer with a 131,072-token vocabulary, representing an operator by its pool index as a literal string (which may split into up to 3 tokens).
Step 4 — Feed in the Hamiltonian as a non-text input. Rather than writing out every Pauli coefficient as text (which would blow up the context length, since the number of terms grows as O(N⁴)), the authors pass a canonically ordered vector of Pauli coefficients, normalized to [−1, 1], through a residual MLP encoder whose output is injected at the embedding layer. For the small model, this special token is interleaved after every operator-coefficient pair; for the large model, it appears once at the end of the prompt.
Step 5 — Train, then improve with reward. Both models first learn next-token prediction on ADAPT-VQE circuits. The small model then enters a loop: generate circuits, score them by energy via a reward that compares the circuit energy to Hartree–Fock and reference energies, clip the reward at a maximum of 30, update with GRPO/DAPO with a KL penalty, then filter the best sampled circuits per conformer into a new supervised fine-tuning set (self-distillation), repeating with progressively stricter selection.
Step 6 — Run the resulting circuits on hardware. Selected generated circuits were executed on Quantinuum Helios-1.
Why This Matters
Impact on research: The work reframes circuit synthesis as a data-driven, amortized problem: expensive optimization is paid once offline, and the trained model then produces circuits cheaply for new geometries. It also shows that reinforcement learning can push a generative model past the quality of its supervised training data in a quantum chemistry setting, and it demonstrates that different model scales (325M parameters trained from scratch versus a 12B pretrained model) are both viable routes.
Real-world applications:
- Drug stability and degradation prediction: The paper motivates the work through forced degradation studies (acid/base hydrolysis, oxidation, photolysis) used to predict API shelf-life, and the need for first-principles methods to predict degradation pathways and kinetics.
- Pharmaceutical discovery and preclinical development: Accurate electronic-structure modeling of large, flexible, chemically complex molecules is described as essential in early-stage discovery but intractable classically.
- Materials science: The introduction cites materials discovery as a target domain where iterative variational methods become prohibitive.
- Automated quantum workflow construction: The single-forward-pass circuit generation is directly useful wherever circuits must be rebuilt repeatedly for many related molecular configurations.
Industry relevance: The author list spans Quantinuum, NVIDIA, and Pfizer, and the paper connects quantum algorithm research to a concrete industrial chemistry use case with hardware validation.
Future Directions
- Generalization across active spaces. The authors state that models must currently be trained separately per qubit count, because operators are identified by their index in a fixed pool; lifting this would require a pool-independent operator representation and a more general Hamiltonian encoding.
- Cheaper reward signals. The main reward function requires a reference energy such as CASCI, which may be expensive for large active spaces; the appendix reportedly shows slightly lower performance with an alternative reward that needs no reference energy, leaving room for better reference-free objectives.
- Scaling to larger, industrially relevant molecules. The demonstrations cover 12–16 qubit active spaces on imipramine; extending the approach to the larger systems where ADAPT-VQE becomes prohibitive is the stated pathway toward utility-scale quantum computational chemistry.
- Broader hardware validation. Circuits were executed on Quantinuum Helios-1 as a proof of concept, leaving open systematic benchmarking of generated circuits under hardware noise across many conformers and system sizes.
Target Audience
Researchers and practitioners in quantum computing and quantum chemistry (especially those working on variational algorithms, circuit synthesis, and NISQ-era resource reduction); machine learning researchers interested in scientific applications of transformers, multimodal conditioning, and RL post-training; and computational chemists or pharmaceutical R&D scientists evaluating whether quantum methods can address molecular stability and electronic-structure problems. The paper is not suitable as an introductory text — readers will need prior exposure to second quantization, ADAPT-VQE, and modern LLM training.
Authors’ abstract
Quantum state preparation is a key component of many quantum algorithms. Performing this step efficiently is essential for realizing practical quantum advantage in quantum chemistry applications. Iterative algorithms like ADAPT-VQE can produce shallow ground-state preparation circuits, but become computationally prohibitive for the larger molecules relevant to materials science and pharmaceutical development. Here, we introduce ADAPT-GQE, a generative AI framework that learns to synthesize ground-state preparation circuits for electronic structure calculations. We first use ADAPT-VQE to generate high-quality reference circuits, which are then used as targets for training models for circuit generation. Once trained, the model can efficiently propose and score circuits, enabling reinforcement learning (RL) to drive circuit generation accuracy beyond the accuracy of the ADAPT-VQE training data. This pipeline achieves order-of-magnitude reductions in circuit generation time relative to ADAPT-VQE while maintaining comparable or improved state-preparation accuracy. We demonstrate ADAPT-GQE on imipramine, a well-established tricyclic antidepressant that serves as a representative, challenging target for computational modelling in drug stability protocols. We execute generated circuits on Quantinuum Helios-1, representing a milestone for AI-generated quantum chemistry circuits on state-of-the-art quantum hardware. These results establish a pathway toward automated quantum circuit synthesis for utility-scale quantum computational chemistry.