arXiv:2610.23296quant-phOct 2026

Manuscript Offprint

arXiv:2610.23296

Learning angles for quantum approximate optimization

Johannes Jakubik, Isabelle Wittmann, Zaheed Gaffoor, Gciniwe Simphiwe Baloyi, Craig Mahlasi, Etienne Vos, Thomas Brunschwiler, Daniel J. Egger

Johannes Jakubik, †^{\dagger} Isabelle Wittmann, Zaheed Gaffoor, Gciniwe Simphiwe Baloyi, Craig Mahlasi, Etienne Vos, Thomas Brunschwiler, and Daniel J. Egger †^{\dagger}

IBM Research

The Quantum Approximate Optimization Algorithm (QAOA) and its variants are leading algorithms to help solve challenging combinatorial optimization problems. QAOA maps these problems to Ising Hamiltonians such that their ground state is the desired solution. Candidate solutions are then drawn from a variational quantum circuit. The performance of QAOA hinges on a set of variational angles. However, finding good angles is an instance-specific and computationally expensive non-convex classical optimization task. Here, we learn the mapping from the problem instance to high-quality QAOA angles. Our learned models replace the per-instance optimization, that we call the solver, with a single forward pass that is several orders of magnitude faster than the solver with a near identical quality. Our models further generalize to unseen topologies such as Barabási–Albert and 2D grid graphs. Experiments on quantum hardware confirm that QAOA samples with angles produced by our open-source models are indistinguishable from solver angles. Crucially, models sensitive to the topology of the problem instance increase the quality of the QAOA angles. Our work amortizes a major bottleneck in QAOA by an up-front data generation and training cost. Importantly, this cost can be amortized over time in settings where many similar problems are optimized on a regular basis, as is often the case in applications for industry.

I. INTRODUCTION

Combinatorial optimization underlies problems throughout logistics, finance, and the physical sciences [1–3]. Yet, many of the most important instances are NP-hard and remain intractable for exact classical methods at scale [4, 5]. By processing information with the laws of quantum mechanics, quantum computers offer new algorithmic tools to tackle such problems [6]. The quantum approximate optimization algorithm (QAOA) [7] aims to solve combinatorial problems by finding the ground state of a corresponding Hamiltonian HCH_C [8]. QAOA samples candidate solutions from a quantum state built by alternating p layers of e−iγkHCe^{-i\gamma_k H_C} and e−iβkHMe^{-i\beta_k H_M}. Here, HMH_M is the mixer Hamiltonian, whose easy-to-prepare ground state is the initial state. Crucially, the performance of QAOA depends on the 2p angles β\beta, γ\gamma. Finding good angles is, however, expensive: the optimization landscape is non-convex and rugged, and locating high-quality angles can be NP-hard [9].

This bottleneck motivates many QAOA angle selection methodologies [10], ranging from analytic fixed-angle conjectures [11] to a wide variety of machine-learning (ML) strategies to predict, transfer, extrapolate, or optimize ( β\beta, γ\gamma). Methods that directly predict instance-specific QAOA angles are often confined to small, classically simulable graphs of up to roughly 20 nodes and shallow depths. Other approaches reach larger graph sizes or depths through angle transfer, depth extrapolation, or continued instance-specific optimization. Existing ML approaches therefore address distinct aspects of the broader problem of learning QAOA angles under substantially varying experimental settings, see App. A. Therefore, it remains an open question whether learned models can directly predict high-quality angles across a broad range of problem sizes and topologies without further per-instance optimization.

To address this question, we frame QAOA angle selection as a supervised, graph-level regression problem. For a given target depth pp, a single neural network maps a weighted graph representing the optimization problem directly to the 2p2p QAOA angles. This replaces costly per-instance angle optimization with a single inexpensive forward pass. The following points summarize our contributions: (i) We train and evaluate a wide range of ML models on a dataset of QAOA angles comprising 12 191 weighted MAXCUT instances spanning random regular, Erdős–Rényi, and heavy-hex topologies with up to 144 nodes. By rescaling γ\gamma on a per-instance basis, we remove the weight-dependent scale of HCH_C and enable a single model to learn across graph families and weight distributions. (ii) Across circuit depths p∈{1,…,5}p \in \{1, \ldots, 5\}, the predicted angles achieve approximation ratios close to those obtained by COBYLA [12] without post-prediction optimization. This reduces the time to obtain β\beta and γ\gamma by several orders of magnitude, yielding a favorable trade-off between solution quality and runtime. (iii) A single trained model generalizes to graphs substantially larger than those seen in training (up to 200 nodes) and to unseen topologies such as Barabási–Albert and 2D-grid graphs, without any per-instance retraining or fine-tuning. (iv) We evaluate our predicted angles on IBM superconducting quantum hardware for heavy-hex graphs up to depth p=3p = 3 and open-source our training and inference code together with pretrained model weights.

The rest of the paper is organized as follows. Sec. II reviews ML approaches for QAOA and provides a high-level overview of our method. Sec. III introduces QAOA and the analytic fixed-angle baseline. Sec. IV describes the

†^{\dagger} Corresponding authors: johannes.jakubik1@ibm.com, deg@zurich.ibm.com.

data generation process and ML models. Sec. V presents and discusses the results. We conclude in Sec. VI.