QAOA-GPT: Efficient Generation of Adaptive and Regular Quantum Approximate Optimization Algorithm Circuits
Ilya Tyagin, Marwa H. Farag, Kyle Sherbert, Karunya Shirali, Yuri Alexeev, Ilya Safro
TL;DR
QAOA-GPT tackles the scalability bottleneck of quantum approximate optimization by training a decoder-only transformer to synthesize problem-specific quantum circuits directly from graph inputs. The model leverages FEATHER graph embeddings and synthetic training data generated from ADAPT-QAOA to produce compact circuits for weighted MaxCut in a single forward pass, avoiding iterative gradient-based optimization. Experiments show that QAOA-GPT achieves high approximation ratios across graph sizes and densities while delivering substantial speedups in circuit generation compared to traditional QAOA/ADAPT-QAOA pipelines. This work demonstrates a viable path for AI-assisted quantum algorithm design and scalable circuit synthesis on near-term hardware.
Abstract
Quantum computing has the potential to improve our ability to solve certain optimization problems that are computationally difficult for classical computers, by offering new algorithmic approaches that may provide speedups under specific conditions. In this work, we introduce QAOA-GPT, a generative framework that leverages Generative Pretrained Transformers (GPT) to directly synthesize quantum circuits for solving quadratic unconstrained binary optimization problems, and demonstrate it on the MaxCut problem on graphs. To diversify the training circuits and ensure their quality, we have generated a synthetic dataset using the adaptive QAOA approach, a method that incrementally builds and optimizes problem-specific circuits. The experiments conducted on a curated set of graph instances demonstrate that QAOA-GPT, generates high quality quantum circuits for new problem instances unseen in the training as well as successfully parametrizes QAOA. Our results show that using QAOA-GPT to generate quantum circuits will significantly decrease both the computational overhead of classical QAOA and adaptive approaches that often use gradient evaluation to generate the circuit and the classical optimization of the circuit parameters. Our work shows that generative AI could be a promising avenue to generate compact quantum circuits in a scalable way.
