Manuscript Offprint
arXiv:2609.31066Modeling quantum neural network gradient with reinforcement learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Training quantum neural networks (QNNs) on near-term hardware remains hampered by two compounding difficulties: the exponential vanishing of gradient variance known as the barren plateau, and the time and memory cost of differentiating through an -qubit, -layer circuit. We propose RLQ-Grad, a reinforcement-learning-based optimizer in which a classical policy (a spectrally-normalized PPO agent) learns to propose parameter updates directly, conditioned on the QNN's current parameters, loss, accuracy, and previous update. Because the surrogate gradient is emitted by a classical network rather than obtained by differentiating through the unitary , its variance is not constrained by the barren plateau concentration bound, and its cost scales with the number of trainable parameters rather than the Hilbert-space dimension. We prove these properties formally and verify them on a hardware-efficient ansatz across four supervised benchmarks with up to qubits. RLQ-Grad preserves a near-flat gradient-variance curve where backpropagation, parameter-shift, and adjoint differentiation decay by 1 to 2 orders of magnitude. Accounting for the full training pipeline (PPO rollouts, actor-critic updates, and optimizer states), RLQ-Grad needs under 2 MB of memory and runs , , and faster per iteration than these three methods at . It improves top-1 accuracy by up to over gradient-based baselines on circuits of up to 12 qubits, and matches dedicated barren plateau mitigation methods on CIFAR-10 at 14 to 20 qubits, where evolutionary and gradient-free optimizers collapse to chance.
1 Introduction
The emergence of Noisy Intermediate-Scale Quantum (NISQ) devices has established variational quantum algorithms (VQAs) as a leading paradigm for achieving practical quantum advantage [1, 2, 3]. These hybrid quantum-classical frameworks, which include Quantum Neural Networks (QNNs), rely on the iterative optimization of parameterized quantum circuits (PQCs) to minimize a problem-specific cost function [1, 4, 5]. However, the optimization landscape of QNNs is notoriously challenging due to non-convexity, the presence of low-quality local optima, the "barren plateau" phenomenon [6], and the high computational cost of circuit evaluations [7, 1, 8]. To address these hurdles, a burgeoning body of research has explored the application of reinforcement learning (RL) to automate and enhance the optimization of both the variational parameters and the underlying circuit architectures.
Initial efforts in this domain focused on utilizing RL to find optimal variational parameters for fixed-structure circuits, such as the Quantum Approximate Optimization Algorithm (QAOA) [8, 7] which formulated parameter optimization as a learning task, where objective is to train RL policy
*Corresponding author. Email: luutn@ctu.edu.vn.
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
networks on small problem instances to exploit geometrical regularities that generalize to larger, unseen instances. Similarly, [1] introduced a "learning to learn" framework using classical recurrent neural networks (RNNs) as black-box controllers to propose parameter updates for QAOA and Variational Quantum Eigensolvers (VQE), eventually highlights the potential for meta-learning to identify problem-class-specific heuristics that significantly reduce the number of optimization iterations required. Further advancing this theme, [9] proposed an RL scheme for feedback quantum control, demonstrating that an agent can learn smooth, optimal adiabatic schedules for quantum Ising chains that are successfully transferable across system sizes.
Parallel to parameter optimization, some research has shifted toward Quantum Architecture Search (QAS) and circuit optimization, where RL agents autonomously design or refine the circuit structure itself. [10] demonstrated that deep RL could learn generic strategies to reduce circuit depth and gate count by selecting sequences of logically equivalent transformations. For building circuits from scratch, [11] proposed a DRL framework to search for gate sequences that synthesize specific quantum states without prior physical knowledge. [3] and [5] also further refined QAS for chemistry applications, employing feedback-driven curriculum learning to adapt problem complexity and discover gate-efficient ansatzes for molecules like LiH.
Recent advancements have focused on improving the scalability and robustness of these RL-based methods. [12] evaluated SAC-based optimizers capable of minimizing loss across random circuits of varying sizes and objectives. To tackle the prohibitive simulation costs of large systems, [5] introduced TensorRL-QAS, which warm-starts the RL search using tensor network approximations to narrow the search space and accelerate convergence. Additionally, specialized architectures for machine learning tasks have been explored, such as [13] (RL-QMLAS) aim to perform QAS for QAOA problems and [4] (RLVQC), which discovered novel "Ryz-connected" ansatz families for combinatorial optimization. Finally, [2] have systematically investigated the impact of specific techniques (such as data re-uploading [14], output scaling, and metaheuristic strategies [15]) to stabilize training and reduce the parameter count of VQCs within RL environments.
While RL has driven notable advances in QNN research, its integration into supervised learning for QNNs remains largely underexplored. Early efforts framing RL as an exhaustive parameter search over QNN configurations prove fundamentally ill-suited to larger-scale problems [12]. Motivated by these limitations, we make the following contributions:
• A novel RL-based optimizer for QNNs: We introduce RLQ-Grad, an RL-based optimizer in which an agent learns to accurately approximate QNN gradients during training, rather than performing exhaustive parameter search or act as a complete replacement of traditional optimizer. Across a range of benchmarks, RLQ-Grad consistently outperforms conventional gradient-based optimizers in classification accuracy.
• Memory reduction and accelerated computation: Beyond accuracy, RLQ-Grad circumvents the gradient variance decay caused by the barren plateau phenomenon, while replacing the dependence of gradient computation time and memory with a cost that grows only linearly in the number of trainable QNN parameters. RLQ-Grad maintains an approximately flat gradient-variance profile, whereas backpropagation, parameter-shift, and adjoint differentiation exhibit declines of 1 to 2 orders of magnitude. Under full-pipeline accounting (actor, critic, gradient buffers, and Adam states), RLQ-Grad requires 1.95 MB at qubits (versus 6174 MB for backpropagation) and achieves per-iteration CPU speedups of , , and over backpropagation, parameter-shift, and adjoint differentiation, respectively, while also transferring directly to GPU execution.
• Scaling to 20 qubits against stronger baselines: RLQ-Grad improves top-1 accuracy by up to +10% over the strongest gradient-based baseline from 2 to 12 qubits. On CIFAR-10 extended to 20 qubits ( ), it keeps improving where backpropagation stagnates, matches dedicated barren plateau mitigation (layerwise learning [16] and Gaussian initialization [17]), and clearly outperforms evolutionary and gradient-free optimizers (CMA-ES, sep-CMA-ES, SPSA), which collapse to chance.
To the best of our knowledge, this work is the first to successfully employ a reinforcement learning agent as a gradient-based optimizer for QNNs, reducing the memory complexity of gradient computation to linear scaling while remaining acceleratable using modern GPU.
The source code for our paper is available on Zenodo at https://doi.org/10.5281/zenodo.22956233.

Figure 1: Illustration of a n-qubit l-depth HEA circuit utilized in the majority of our experiments.
2.1 Problem Formulation
Let denote a supervised learning dataset where represents the input features and denotes the -class target label. We consider training a parameterized quantum neural network QNN defined by a set of parameters . The goal of QNN supervised training is to minimize an empirical risk function of:
where denotes the output of the quantum model and is a certain type of supervise learning loss function, and traditional QNN optimization relies on gradient estimation techniques such as backpropagation, adjoint differentiation [18] or parameter-shift rule [19]. However, these approaches often suffer from high computational cost and gradient vanishing phenomena. Instead of explicitly computing the gradient , we propose to learn a gradient generator using reinforcement learning.
2.2 QNN selection
In most of our problem, we consider a HEA-like [20] variational quantum circuit composed of n qubits and L layers. Illustration of HEA design used in our work can be found at Figure 1.
In our selected HEA, given classical inputs x, projected inputs over a fully connected layer are encoded through rotation gates as:
Each variational layer consists of parameterized rotations followed by entanglement operations. Let denote the parameters of a rotation gate on qubit in layer , and for parameter of data encode-decode FC layers. The variational unitary is therefore:
where represents a general single-qubit rotation and denotes the entangling operations. Given an input x, the circuit prepares the quantum state:
The model output is obtained by measuring a Pauli observable Z, followed by a fully-connected layer FC that map output measurements to desired class counts:
and resulted output can be utilized as prediction in supervised learning problem . To construct the HEA circuit compatible to our workflow, we utilized both Pennylane [21] and Torchquantum [22] at the base of our QNN framework.
HEA can be considered a universal approximator, see Appendix A for more information.
Algorithm 1 Pseudocode for RLQ-Grad algorithm
Require: Train dataset of samples with stochastic batch , parameterized QNN model , RL policy , total training steps .
1: Initialize all QNN parameters and previous gradient at zero.
2: Compute initial statistic on first stochastic batch , including loss and accuracy .
3: for to do
4: Construct environment state ,
5: Sample action (gradient proposal) from RL agent
6: Assign proposed gradient to QNN parameter.
7: Calculate the rest of the gradient graph components and update with backpropagation.
8: Evaluate updated model training loss and training accuracy .
9: Compute reward .
10: Store transition and update RL policy using collected transitions.
11: end for
12: return Final trained QNN parameters
While showing promising potential as an alternative to construct predictor in supervise learning, HEA and many other quantum classifier tends to suffer from gradient variance decay, stem from quantum barren plateau [23] that prohibit them to converge towards an optimal approximation of given problems .
2.3 RLQ-Grad algorithm
Instead of computing analytical gradients, we formulate QNN training as a RL problem, where a RL agent interacts with the QNN training process and learns to generate parameter updates and termed our methodology RLQ-Grad. The intuition behind RLQ-Grad is to train a RL agent aim to learn a policy parameterized by , which outputs gradient estimates conditioned on the QNN training state. Through interaction with the QNN training environment, the policy gradually learns to generate gradient directions that effectively optimize the quantum model. Pseudocode for RLQ-Grad can be found at Algorithm 1.
In most of our experiments, we use Proximal Policy Optimization (PPO) [24] as our RL agent in our RLQ-Grad algorithm, while also incorporating spectral normalization (SN) [25] improve performance and reducing variance during training. Details on training settings and justification for model selection can be found in Appendix D.
2.3.1 State representation
Given train dataset of samples with stochastic batch , at training step the environment state is defined as:
(6)
where are the current QNN parameters, is the mean training loss, is the mean training accuracy, followed by all flattened trainable parameters' gradient proposed by the agent at the previous step. Proposed gradient is equivalent to RL agent outputs, interpreted as a gradient estimate of optimizable parameter, and after the agent proposed the gradient , it was assigned to QNN parameter gradient.
We intentionally selected QNN that are subject to gradient decay to prove that our method is decay free. See Appendix B for more information regarding definition of plateau.
Finally, we calculate other components in the backpropagation graph (such as linear weights gradient and biases gradient , etc.) and update with Adam optimizer [26] (learning rate , weight decay of , momentum ) along with cosine annealing scheduler [27].
2.3.2 Reward function
We formulate our reward function at timestep using training loss statistic and accuracy statistic over stochastic batch of training set of train set as:
where is a small constant to prevent zero division. The goal to encourages the agent to produce gradients that simultaneously reduce training loss and improve predictive performance.
3 Results
3.1 Surrogate gradient advantages of RLQ-Grad
Figure 2: Comparison of gradient variance of the first trainable parameter in the HEA of gradient computation strategies for a depth-L, n-qubit QNN with trainable parameters. Variance results for RLQ-Grad are obtained from post training agent on BC dataset on Section 3.2.
We assess the advantages of surrogate gradient produced by RLQ-Grad in light of the recently established unified QNN loss landscape theory of [28]. We claim that proposed RLQ-Grad algorithm can generate gradient that free from gradient decay caused by quantum barren plateau [23] over the following theorem:

Theorem 1 (Gradient variance decay free). We established some notations as follow: denotes the Jordan algebra generated by , its automorphism group, and the degrees of freedom of the -th simple component. Let be a QNN whose associated Jordan algebra satisfies:
i.e., the circuit is in a barren plateau . Under RLQ-Grad, the parameter update at step is where is the RL agent's output. Since is not computed by differentiating through , the vanishing of Equation 8 places no constraint on . The variance decay is therefore structurally bypassed.
Proof. See Appendix C.1.
To provide a more practical and comprehensive evaluation of the decay resistance of our method with respect to (w.r.t.) well-established gradient-based approaches, Figure 2 reports the gradient variance of the first trainable parameter in the HEA , as a function of both qubit count and circuit depth . The comparison includes several gradient estimation techniques, namely traditional backpropagation, parameter-shift [19], adjoint differentiation [18], and RLQ-Grad (ours).
Original derivation can be found in Definition 7 of [28].
Denoted in the format for an n-qubit, L-layer HEA. This notation is used universally in our paper.
Backprop
Param-shift
Adjoint-diff
RLQ-Grad (full)

Figure 3: End-to-end memory (a, CPU RAM) and per-iteration CPU wall-clock time (b) of QNN gradient computation methods from 2 to 20 qubits (log scale, mean over 12 trials after 4 warm-up iterations). RLQ-Grad costs cover the full training pipeline: PPO rollout, actor and critic updates, gradient buffers, and Adam optimizer states. Hollow markers denote measurements below the 0.1 MB resolution. Exact values are listed in Appendix D.6.
As illustrated in Figure 2, our method exhibits robustness against decay, indicating a clear advantage over the baseline approaches.
Still, even when is free of variance decay, does the agent's own training suffer from an analogous pathology? We can analyze this question by forming the follow theorem:
Theorem 2 (Plateau unrelated with agent optimization). The RL policy is a classical neural network (e.g. an MLP). Its parameter gradient is computed entirely by classical backpropagation and is therefore not subject to the variance decay phenomenon.
Proof for this theorem can be found at Appendix C.2. Taken together, Theorems 1 and 2 formalize a key advantage of RLQ-Grad: it decouples the optimization signal from the quantum circuit's intrinsic geometry while retaining a fully trainable classical learning mechanism. By construction, the surrogate gradient is not constrained by the variance collapse characterized in Equation 8, allowing meaningful updates even in regimes where standard gradient-based methods fail. At the same time, the learning dynamics of the policy remain governed by well-behaved classical optimization, ensuring that no analogous decay emerges on the agent side. Other properties regarding training conditions and environment setting effects can be found at Appendix F.1 and F.2.
3.1.1 Resource advantages
Table 1: Theoretical complexity of gradient computation strategies for a depth-, -qubit QNN with trainable parameters. Forward pass complexity is identical for all methods and therefore omitted. For an MLP agent of depth and width , counts actor and critic parameters.
| Method | Time Complexity | Memory Complexity |
|---|---|---|
| Backpropagation [21] | ||
| Parameter-shift [19] | ||
| Adjoint differentiation [18] | 1 | |
| RLQ-Grad (actor inference) | ||
| RLQ-Grad (full pipeline) |
To quantify how our method performs with respect to (w.r.t.) well-known gradient-based methods, Table 1 summarises the asymptotic cost of each gradient computation scheme of Figure 2. Backpropagation stores all intermediate statevectors, incurring in both time and memory. Adjoint differentiation costs but reconstructs intermediate states on-the-fly via unitary inversion, so beyond the statevector already held by the forward pass it needs only a constant number of
buffers, i.e. additional memory. The parameter-shift rule evaluates two full forward passes per parameter, giving at , making it the least time/memory-efficient of the three for deep or wide circuits.
RLQ-Grad replaces explicit gradient propagation through the quantum circuit with a learned surrogate estimator. Since the agent operates entirely in the classical domain, its cost depends on its own parameter count , not on the Hilbert space dimension . Because both the state and the action
Table 2: Comparison of top 1 validation accuracy (in percentage, averaged over 4 runs) of gradient computation strategies for a -qubit, -depth HEA. Best performance per variant is denoted in bold and second best is underlined.
| Datasets | Algorithms | Top 1 validation accuracy per configuration | |||||
|---|---|---|---|---|---|---|---|
| 2q1d (Param = 6) | 4q2d (Param = 24) | 6q3d (Param = 54) | 8q4d (Param = 96) | 10q5d (Param = 150) | 12q6d (Param = 216) | ||
| BC | Backpropagation [21] | 80.62 ± 10.64 | 90.86 ± 1.998 | 91.88 ± 2.057 | 91.88 ± 1.126 | 91.96 ± 2.402 | 93.15 ± 2.942 |
| Parameter-shift [19] | 85.71 ± 7.082 | 89.77 ± 1.316 | 89.60 ± 5.526 | 89.77 ± 2.010 | 91.99 ± 5.385 | 92.11 ± 5.526 | |
| Adjoint-differentiation [18] | 83.01 ± 11.64 | 84.93 ± 14.82 | 85.04 ± 3.689 | 87.32 ± 8.476 | 92.75 ± 10.28 | 93.02 ± 8.926 | |
| RLQ-Grad (Ours) | 95.52 ± 0.080 | 95.20 ± 2.379 | 95.79 ± 3.418 | 95.96 ± 0.380 | 96.18 ± 4.178 | 96.58 ± 5.612 | |
| MNIST | Backpropagation [21] | 59.24 ± 3.171 | 78.52 ± 1.371 | 88.81 ± 0.434 | 91.43 ± 0.624 | 91.74 ± 0.305 | 92.48 ± 0.225 |
| Parameter-shift [19] | 56.25 ± 0.419 | 80.59 ± 1.445 | 85.35 ± 0.447 | 87.14 ± 0.406 | 88.43 ± 0.181 | 88.52 ± 0.279 | |
| Adjoint-differentiation [18] | 58.16 ± 2.086 | 79.11 ± 1.902 | 87.42 ± 0.613 | 90.85 ± 0.771 | 92.19 ± 0.151 | 91.96 ± 0.412 | |
| RLQ-Grad (Ours) | 61.36 ± 2.216 | 83.12 ± 0.375 | 90.76 ± 0.462 | 91.78 ± 0.218 | 93.63 ± 0.114 | 95.27 ± 0.297 | |
| F-MNIST | Backpropagation [21] | 72.87 ± 0.312 | 74.77 ± 0.573 | 82.34 ± 0.441 | 81.36 ± 0.407 | 84.62 ± 0.271 | 85.72 ± 0.198 |
| Parameter-shift [19] | 68.84 ± 0.154 | 72.63 ± 0.601 | 79.75 ± 0.518 | 84.12 ± 0.336 | 82.41 ± 0.295 | 82.98 ± 0.266 | |
| Adjoint-differentiation [18] | 73.23 ± 0.576 | 75.96 ± 0.528 | 81.28 ± 0.462 | 83.54 ± 0.388 | 85.08 ± 0.221 | 85.13 ± 0.243 | |
| RLQ-Grad (Ours) | 73.64 ± 0.415 | 76.43 ± 0.442 | 83.15 ± 0.396 | 85.87 ± 0.285 | 86.94 ± 0.204 | 87.62 ± 0.181 | |
| CIFAR10 | Backpropagation [21] | 24.69 ± 1.429 | 33.68 ± 0.990 | 35.02 ± 0.884 | 39.78 ± 0.461 | 40.36 ± 0.375 | 38.05 ± 0.601 |
| Parameter-shift [19] | 26.34 ± 1.585 | 32.11 ± 1.102 | 37.34 ± 0.475 | 37.45 ± 0.722 | 38.12 ± 0.653 | 40.08 ± 0.321 | |
| Adjoint-differentiation [18] | 25.06 ± 0.632 | 31.87 ± 0.955 | 34.76 ± 0.801 | 36.98 ± 0.690 | 37.65 ± 0.588 | 37.52 ± 0.544 | |
| RLQ-Grad (Ours) | 27.17 ± 0.782 | 34.84 ± 0.744 | 37.91 ± 0.533 | 40.72 ± 0.428 | 41.63 ± 0.367 | 41.15 ± 0.352 | |
have dimension , only the input and output layers of the MLP depend on the circuit size, while the hidden layers keep a fixed width . Proposing a gradient (actor inference) therefore costs time. A complete training step must also hold the critic, the gradient buffers, and the two Adam moment estimates, so its memory is . Both costs grow linearly in , hence polynomially in , and are independent of , shifting the computational burden from quantum simulation to classical function approximation. Full derivations are given in Appendix E.
Figure 3 reports the measured end-to-end cost for to 20. Backpropagation grows from 0.0042s to 219.41s per iteration, following its complexity; adjoint differentiation grows from 0.0027s to 59.32s, and parameter-shift, which requires circuit evaluations, from 0.0067s to 693.96s. The full RLQ-Grad pipeline, roughly the cost of an actor-only forward pass, instead stays between 0.0455s and 0.0881s across all configurations. Its fixed overhead makes it slower than analytic differentiation on the smallest circuits, but it overtakes parameter-shift from 6q3d, backpropagation from 8q4d, and adjoint differentiation from 16q8d (the two are tied at 14q7d). At , RLQ-Grad is , , and faster than backpropagation, parameter-shift, and adjoint differentiation, respectively. RLQ-Grad also runs natively on GPU, whereas parameter-shift and adjoint differentiation lack efficient GPU kernels in current QNN frameworks; on an RTX 3090 it is faster than GPU backpropagation at every scale ( to , Appendix D.6).
Memory consumption further delineates the scalability of these methods. Backpropagation grows exponentially from below 0.1 MB to 6174 MB at , while parameter-shift saturates around 20 MB. Adjoint differentiation stays below 0.1 MB at every scale, consistent with its additional memory, and remains the most memory-efficient method. The full RLQ-Grad pipeline grows from 161.22 KB to 1.95 MB, i.e. by KB per QNN parameter, confirming the predicted linear dependence on . This footprint decomposes into actor and critic parameters (), gradient buffers (), and Adam optimizer states (); at 12q6d, for example, the total of 796.14 KB is roughly the actor-only 102.28 KB. Even under this full accounting, RLQ-Grad scales strictly better than backpropagation and parameter-shift, using and less memory at .
3.2 Benchmarking against well-known quantum optimization algorithms
Table 2 and Figure 5 (Appendix D.4) present a comprehensive comparison of gradient computation strategies across multiple datasets for 200 epochs, including: BreastCancer (BC) [29], Fashion-MNIST (F-MNIST) [30], MNIST [31] and CIFAR10 [32], along with HEA configurations across gradient computation methods. Except for model trained on BC dataset with use a batch size of 128 due to small sample size, all dataset used a batch size of 256. We also use a fixed random seed sampler for dataset without predetermined split such as BC, and reduce input dimensionality with PCA (Appendix D.3).
Overall, RLQ-Grad consistently achieves the best performance across all datasets and configurations, demonstrating both strong accuracy and scalability as the number of qubits and circuit depth increase. Across all datasets, accuracy generally improves as the circuit size increases (from 2q1d to 12q6d),
Table 3: CIFAR-10 top-1 validation accuracy (in percentage, mean std over 3 runs) at larger circuit scales. Best performance per configuration is denoted in bold and second best is underlined.
| Type | Method | Top 1 validation accuracy per configuration | |||
|---|---|---|---|---|---|
| 14q7d (Param = 294) | 16q8d (Param = 384) | 18q9d (Param = 486) | 20q10d (Param = 600) | ||
| Gradient-based | Backpropagation [21] | 38.72 ± 3.21 | 40.45 ± 2.67 | 39.86 ± 3.48 | 40.13 ± 2.91 |
| Gradient-free | CMA-ES [33] | 10.10 ± 0.14 | 10.12 ± 0.21 | 10.11 ± 0.20 | 10.13 ± 0.15 |
| sep-CMA-ES [34] | 10.09 ± 0.23 | 10.14 ± 0.17 | 10.11 ± 0.26 | 10.15 ± 0.19 | |
| SPSA [35] | 10.08 ± 0.27 | 10.15 ± 0.18 | 10.11 ± 0.32 | 10.14 ± 0.24 | |
| BP mitigation | Layerwise [16] | 44.73 ± 3.21 | 48.58 ± 2.74 | 50.92 ± 3.47 | 53.16 ± 3.65 |
| Gaussian Init [17] | 43.92 ± 3.15 | 46.87 ± 2.38 | 49.76 ± 3.02 | 52.41 ± 2.71 | |
| Learnable (ours) | RLQ-Grad | 45.86 ± 3.84 | 48.64 ± 2.46 | 51.29 ± 3.16 | 53.02 ± 2.83 |
indicating that higher parameter counts enhance representational capacity. Conventional methods such as backpropagation, parameter-shift, and adjoint differentiation exhibit diminishing returns or instability at higher configurations, whereas RLQ-Grad maintains steady improvements.
On BC, RLQ-Grad outperforms all baselines at every configuration, reaching up to 96.58% with a margin of +2% to +10% over the second-best method. On MNIST, the gap widens with circuit size, and RLQ-Grad surpasses the competitive backpropagation and adjoint differentiation by up to ~3% at 12q6d. On F-MNIST, RLQ-Grad again achieves the highest accuracy, reaching 87.62%. On CIFAR10, overall accuracies are lower due to dataset complexity, but RLQ-Grad still gives the best results at every configuration, with more modest (~2% to 4%) but consistent gains.
Backpropagation generally performs well and often ranks second, especially in simpler datasets (BC, MNIST). Parameter-shift shows competitive performance at smaller scales but struggles to scale efficiently. Adjoint differentiation exhibits higher variance and inconsistent ranking, particularly in deeper circuits. In contrast, RLQ-Grad not only achieves the highest accuracy but also maintains relatively stable variance across runs. A key advantage of RLQ-Grad is its scalability, where performance continues to improve with increasing circuit size without the degradation or saturation observed in other methods. Additionally, its relatively low standard deviation (especially on MNIST, F-MNIST, and CIFAR10) indicates stable training dynamics.
3.3 Scaling to 20 qubits and comparison with stronger baselines
To probe the regime where barren plateaus become acute and where the action space of the agent is largest, we extend CIFAR-10 to qubits () and add two families of baselines: evolutionary and gradient-free optimizers (CMA-ES [33], sep-CMA-ES [34], and SPSA [35]), and QNN-specific barren plateau mitigation (layerwise learning [16] and Gaussian initialization [17]). Results are reported in Table 3.
3.3.1 Action-space scalability and non-stationarity
RLQ-Grad remains stable and improves monotonically up to . The action dimensionality enters the agent only through its input and output layers, while the hidden layers keep a fixed width, so the agent grows linearly and its training difficulty grows sub-linearly in . The environment is non-stationary because the QNN changes under the agent's own actions; PPO with SN handles this through (i) on-policy rollouts, which avoid off-policy staleness, (ii) the clipped surrogate objective, which bounds the divergence between successive policies, and (iii) SN on the critic, which bounds the propagation of TD errors (Appendix D.2). The standard deviations of 2.46 to 3.84 in Table 3, comparable to those of backpropagation and the mitigation baselines, confirm that training remains stable at this scale.
3.3.2 Why reinforcement learning rather than evolutionary search
CMA-ES, sep-CMA-ES, and SPSA collapse to chance () at every scale. This is consistent with [36]: gradient-free optimizers cannot escape the exponential shot-budget scaling of high-dimensional barren plateaus, and the covariance estimation of CMA-ES becomes prohibitive for . RLQ-Grad avoids both issues because its amortized policy learns a state-conditional update rule instead of searching over a covariance model. Layerwise learning and Gaussian initializa-tion reach accuracy comparable to RLQ-Grad, but they remain backpropagation variants that inherit its time and memory (Figure 3). RLQ-Grad matches their accuracy while retaining its computational advantages, which positions it as complementary to landscape-shaping approaches rather than as a replacement.
3.3.3 Are the benchmarks in the barren plateau limited regime?
The range to 12 of Table 2 is best characterized as an early-onset rather than a fully saturated barren plateau regime. Figure 2 shows that gradient variance already decays with slopes of (backpropagation), (parameter-shift), and (adjoint differentiation) over this range, versus for RLQ-Grad, but the decay has not yet dominated final accuracy; this is expected, since barren plateaus become acute at for global observables in generic HEAs [23]. The extended experiments show the pattern predicted if barren plateaus are the operative bottleneck. Backpropagation gains only pp from 12q6d to 20q10d (38.05% 40.13%) although nearly triples (216 600), compared with pp from 2q1d to 12q6d (24.69% 38.05%); its rate of improvement collapses where the barren plateau is expected to activate. Over the same range, layerwise learning and Gaussian initialization gain pp, and RLQ-Grad follows the same trajectory (45.86% 53.02%).
These observations also separate learned-optimizer dynamics from barren plateau mitigation. If RLQ-Grad won through its optimizer dynamics alone, it should outperform mitigation methods that lack such dynamics; instead, the three methods stay within 2 pp of each other from 14q7d to 20q10d, which suggests that all three succeed through the same mechanism, namely avoiding the variance collapse. Conversely, if the advantage were purely a matter of avoiding circuit gradients, any gradient-free method would succeed, which CMA-ES and SPSA rule out. Gradient-freeness (Theorem 1) is therefore necessary but not sufficient, and the contribution of RLQ-Grad is to combine it with amortized policy learning that can handle a high-dimensional action space.
4 Limitations and discussions
Our analysis identifies three concrete regimes in which RLQ-Grad does not offer the advantage suggested by Theorems 1 and 2, and two practical caveats that temper the scope of the reported gains.
Reward concentration in deep barren-plateau regimes. Theorem 1 establishes that the surrogate gradient is not constrained by the Jordan-algebraic variance bound because is emitted by a classical network rather than computed by differentiating through . However, as we show in Proposition 1 (Appendix F.2), the reward is itself a function of the loss , and Wishart-process description implies that concentrates exponentially whenever the circuit is on a barren plateau [28]. In that regime the reward differences used to drive policy gradients vanish at the same rate as conventional cost-function differences, echoing the result of [36] that no gradient-free optimizer (including surrogate-gradient models) can escape the exponential shot-budget scaling of a barren plateau. RLQ-Grad therefore delivers a genuine landscape advantage only when the Jordan algebra leaves the cost non-flat (Condition 1 of Theorem 4); when the cost is truly exponentially flat, RLQ-Grad retains only its computational advantage.
Poor local minima are not bypassed. Theorem 5 (Appendix G.1) shows that, independent of gradient quality, the density of good local minima is exponentially suppressed whenever the overparameterization condition fails. Because RLQ-Grad still converges to a local minimum of the empirical loss, it inherits this obstruction. Figure 6 makes this visible: on the underparameterized F-MNIST configuration the loss surface fragments into sharp basins for every method, RLQ-Grad included.
Input-gradient decay propagates to classical pre-processing. The hybrid architecture we use funnels classical features through an FC layer before the encoding. Theorem 6 and Corollary 2 (Appendix G.2) show that whenever forms (at least) a 2-design, the input-space Jacobian collapses exponentially; all classical layers upstream of the quantum encoding therefore receive vanishing gradients.
Empirical scope. All experiments are conducted on statevector simulators with shot-noise-free measurement: we do not report results on physical hardware, under realistic noise channels, or on non-classification tasks (VQE, QAOA, generative modeling). The four-dataset benchmark of Table 2 spans n = 2 to 12, an early-onset rather than fully saturated barren plateau regime; only CIFAR-10 and the resource benchmarks of Figure 3 are extended to n = 20, which is where the barren plateau starts to become acute for global observables in generic HEAs [23]. At that scale RLQ-Grad matches, but does not exceed, dedicated mitigation methods such as layerwise learning (Table 3), so its advantage over them is computational rather than in accuracy. Finally, the fixed per-iteration overhead of the full RLQ-Grad pipeline makes it slower than analytic differentiation on small circuits (below 6 to 8 qubits on CPU), and adjoint differentiation remains more memory-efficient at every scale we tested.
Transferability and agent cost. The agents reported in Tables 2 and 3 are trained per configuration: a new agent is required for every choice of and dataset. The cost of training the agent alongside the QNN (rollouts, actor and critic updates, optimizer states) is included in Figure 3, but it is not amortized across configurations. A learned-optimizer style meta-training regime that amortizes the agent across circuit scales and tasks (in the spirit of [37] and [1]) is a natural next step but is outside the present scope.
5 Conclusion
We propose RLQ-Grad, a reinforcement-learning optimizer that replaces explicit differentiation of parameterized quantum circuits with a classical policy that directly proposes parameter updates. The key insight is that barren plateaus arise from the distribution of induced by ; by sampling updates from a policy , RLQ-Grad bypasses this distribution entirely, avoiding the associated exponential variance collapse. Since is a finite-width MLP, its training follows standard classical concentration behavior independent of the number of qubits , preventing analogous pathologies.
Trained with PPO and spectral normalization, RLQ-Grad achieves three main outcomes: (i) near-constant gradient variance (slope ) across to 12, compared to decay rates of -0.85, -0.30, and -0.14 for backpropagation, parameter-shift, and adjoint differentiation; (ii) end-to-end time and memory that grow only linearly in the number of QNN parameters and are independent of the Hilbert space dimension, yielding speedups of up to and under 2 MB of memory at once the full agent training pipeline is accounted for; and (iii) accuracy gains of 2% to 10% over gradient-based baselines across four supervised benchmarks, together with parity with dedicated barren plateau mitigation methods on CIFAR-10 up to 20 qubits, where evolutionary and gradient-free optimizers fail.
These results suggest that decoupling the optimization signal from quantum circuit geometry is a viable and complementary strategy to landscape-shaping approaches such as local costs, layerwise training, or structured initialization, matching their accuracy at a fraction of their simulation cost. However, RLQ-Grad does not address loss concentration, underparameterization, or gradient collapse in classical preprocessing layers. Future work includes meta-training across circuit scales, incorporating locality-aware rewards, extending to generative and variational tasks, and evaluating performance on noisy quantum hardware.
Acknowledgments and Disclosure of Funding
This research was financially sponsored in part by VinUniversity, Nhan Trong Luu was co-sponsored by both Can Tho University and VinUniversity.
References
[1] G. Verdon, M. Broughton, J. R. McClean, K. J. Sung, R. Babbush, Z. Jiang, H. Neven, and M. Mohseni, “Learning to learn with quantum neural networks via classical neural networks,” arXiv preprint arXiv:1907.05415, 2019.
[2] M. Kölle, T. Witter, T. Rohe, G. Stenzel, P. Altmann, and T. Gabor, “A study on optimization techniques for variational quantum circuits in reinforcement learning,” in 2024 IEEE International Conference on Quantum Software (QSW), pp. 157–167, IEEE, 2024.
[3] M. Ostaszewski, L. M. Trenkwalder, W. Masarczyk, E. Scerri, and V. Dunjko, “Reinforcement learning for optimization of variational quantum circuit architectures,” Advances in neural information processing systems, vol. 34, pp. 18182–18194, 2021.
[4] S. Foderà, G. Turati, R. Nembrini, M. F. Dacrema, and P. Cremonesi, “Reinforcement learning for variational quantum circuits design,” arXiv preprint arXiv:2409.05475, 2024.
[5] A. Kundu and S. Mangini, “Tensorrl-qas: Reinforcement learning with tensor networks for improved quantum architecture search,” arXiv preprint arXiv:2505.09371, 2025.
[6] J. R. McClean, S. Boixo, V. N. Smelyanskiy, R. Babbush, and H. Neven, “Barren plateaus in quantum neural network training landscapes,” Nature communications, vol. 9, no. 1, p. 4812, 2018.
[7] S. Khairy, R. Shaydulin, L. Cincio, Y. Alexeev, and P. Balaprakash, “Learning to optimize variational quantum circuits to solve combinatorial problems,” in Proceedings of the AAAI conference on artificial intelligence, vol. 34, pp. 2367–2375, 2020.
[8] S. Khairy, R. Shaydulin, L. Cincio, Y. Alexeev, and P. Balaprakash, “Reinforcement-learning-based variational quantum circuits optimization for combinatorial problems,” arXiv preprint arXiv:1911.04574, 2019.
[9] M. M. Wauters, E. Panizon, G. B. Mbeng, and G. E. Santoro, “Reinforcement-learning-assisted quantum optimization,” Physical Review Research, vol. 2, no. 3, p. 033446, 2020.
[10] T. Fösel, M. Y. Niu, F. Marquardt, and L. Li, “Quantum circuit optimization with deep reinforcement learning,” arXiv preprint arXiv:2103.07585, 2021.
[11] E.-J. Kuo, Y.-L. L. Fang, and S. Y.-C. Chen, “Quantum architecture search via deep reinforcement learning,” arXiv preprint arXiv:2104.07715, 2021.
[12] O. Lockwood, “Optimizing quantum variational circuits with deep reinforcement learning,” arXiv preprint arXiv:2109.03188, 2021.
[13] X. Dai, T.-C. Wei, S. Yoo, and S. Y.-C. Chen, “Quantum machine learning architecture search via deep reinforcement learning,” in 2024 IEEE International Conference on Quantum Computing and Engineering (QCE), vol. 1, pp. 1525–1534, IEEE, 2024.
[14] A. Pérez-Salinas, A. Cervera-Lierta, E. Gil-Fuster, and J. I. Latorre, “Data re-uploading for a universal quantum classifier,” Quantum, vol. 4, p. 226, 2020.
[15] F. S. Gharehchopogh, “Quantum-inspired metaheuristic algorithms: comprehensive survey and classification,” Artificial Intelligence Review, vol. 56, no. 6, pp. 5479–5543, 2023.
[16] A. Skolik, J. R. McClean, M. Mohseni, P. Van Der Smagt, and M. Leib, “Layerwise learning for quantum neural networks,” Quantum Machine Intelligence, vol. 3, no. 1, p. 5, 2021.
[17] K. Zhang, L. Liu, M.-H. Hsieh, and D. Tao, “Escaping from the barren plateau via gaussian initializations in deep variational quantum circuits,” in Advances in Neural Information Processing Systems, vol. 35, pp. 18612–18627, 2022.
[18] T. Jones and J. Gacon, “Efficient calculation of gradients in classical simulations of variational quantum algorithms,” arXiv preprint arXiv:2009.02823, 2020.
[19] K. Mitarai, M. Negoro, M. Kitagawa, and K. Fujii, “Quantum circuit learning,” Physical Review A, vol. 98, no. 3, p. 032309, 2018.
[20] L. Leone, S. F. Oliviero, L. Cincio, and M. Cerezo, “On the practical usefulness of the hardware efficient ansatz,” Quantum, vol. 8, p. 1395, 2024.
[21] V. Bergholm, J. Izaac, M. Schuld, C. Gogolin, S. Ahmed, V. Ajith, M. S. Alam, G. Alonso-Linaje, B. AkashNarayanan, A. Asadi, J. M. Arrazola, U. Azad, S. Banning, C. Blank, T. R. Bromley, B. A. Cordier, J. Ceroni, A. Delgado, O. D. Matteo, A. Dusko, T. Garg, D. Guala, A. Hayes, R. Hill, A. Ijaz, T. Isacsson, D. Ittah, S. Jahangiri, P. Jain, E. Jiang, A. Khandelwal, K. Kottmann, R. A. Lang, C. Lee, T. Loke, A. Lowe, K. McKiernan, J. J. Meyer, J. A. Montañez-Barrera, R. Moyard, Z. Niu, L. J. O'Riordan, S. Oud, A. Panigrahi, C.-Y. Park, D. Polatajko, N. Quesada, C. Roberts, N. Sá, I. Schoch, B. Shi, S. Shu, S. Sim, A. Singh, I. Strandberg, J. Soni, A. Száva, S. Thabet, R. A. Vargas-Hernández, T. Vincent, N. Vitucci, M. Weber, D. Wierichs, R. Wiersema, M. Willmann, V. Wong, S. Zhang, and N. Killoran, "Pennylane: Automatic differentiation of hybrid quantum-classical computations," arXiv preprint arXiv:1811.04968, 2018.
[22] H. Wang, Y. Ding, J. Gu, Z. Li, Y. Lin, D. Z. Pan, F. T. Chong, and S. Han, “Quantumnas: Noise-adaptive search for robust quantum circuits,” in The 28th IEEE International Symposium on High-Performance Computer Architecture (HPCA-28), 2022.
[23] M. Larocca, S. Thanasilp, S. Wang, K. Sharma, J. Biamonte, P. J. Coles, L. Cincio, J. R. McClean, Z. Holmes, and M. Cerezo, “Barren plateaus in variational quantum computing,” Nature Reviews Physics, vol. 7, no. 4, pp. 174–189, 2025.
[24] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” 2017.
[25] F. Gogianu, T. Berariu, M. C. Rosca, C. Clopath, L. Busoniu, and R. Pascanu, “Spectral normalisation for deep reinforcement learning: an optimisation perspective,” in International Conference on Machine Learning, pp. 3734–3744, PMLR, 2021.
[26] D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” arXiv preprint arXiv:1412.6980, 2014.
[27] I. Loshchilov and F. Hutter, “Sgdr: Stochastic gradient descent with warm restarts,” arXiv preprint arXiv:1608.03983, 2016.
[28] E. R. Anschuetz, “A unified theory of quantum neural network loss landscapes,” arXiv preprint arXiv:2408.11901, 2024.
[29] M. Zwitter and M. Soklic, “Breast Cancer.” UCI Machine Learning Repository, 1988. DOI: https://doi.org/10.24432/C51P4M.
[30] H. Xiao, K. Rasul, and R. Vollgraf, “Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms,” arXiv preprint arXiv:1708.07747, 2017.
[31] L. Deng, “The mnist database of handwritten digit images for machine learning research [best of the web],” IEEE signal processing magazine, vol. 29, no. 6, pp. 141–142, 2012.
[32] A. Krizhevsky, G. Hinton, et al., “Learning multiple layers of features from tiny images,” 2009.
[33] N. Hansen, “The cma evolution strategy: A tutorial,” arXiv preprint arXiv:1604.00772, 2016.
[34] M. N. Omidvar and X. Li, “A comparative study of cma-es on large scale global optimisation,” in Australasian Joint Conference on Artificial Intelligence, pp. 303–312, Springer, 2010.
[35] J. C. Spall, “Implementation of the simultaneous perturbation algorithm for stochastic optimization,” IEEE Transactions on aerospace and electronic systems, vol. 34, no. 3, pp. 817–823, 1998.
[36] A. Arrasmith, M. Cerezo, P. Czarnik, L. Cincio, and P. J. Coles, “Effect of barren plateaus on gradient-free optimization,” Quantum, vol. 5, p. 558, 2021.
[37] M. Andrychowicz, M. Denil, S. Gomez, M. W. Hoffman, D. Pfau, T. Schaul, B. Shillingford, and N. De Freitas, “Learning to learn by gradient descent by gradient descent,” Advances in neural information processing systems, vol. 29, 2016.
[38] K. Hornik, “Approximation capabilities of multilayer feedforward networks,” Neural networks, vol. 4, no. 2, pp. 251–257, 1991.
[39] N. T. Luu, D. T. Luu, N. N. Pham, and T. C. Truong, “Parameter efficient hybrid spiking-quantum convolutional neural network with surrogate gradient and quantum data-reupload,” PeerJ Computer Science, vol. 12, p. e3554, 2026.
[40] C.-Y. Park, M. Kang, and J. Huh, “Hardware-efficient ansatz without barren plateaus in any depth,” arXiv preprint arXiv:2403.04844, 2024.
[41] M. Cerezo, A. Sone, T. Volkoff, L. Cincio, and P. J. Coles, “Cost function dependent barren plateaus in shallow parametrized quantum circuits,” Nature communications, vol. 12, no. 1, p. 1791, 2021.
[42] E. Grant, L. Wossnig, M. Ostaszewski, and M. Benedetti, “An initialization strategy for addressing barren plateaus in parametrized quantum circuits,” Quantum, vol. 3, p. 214, 2019.
[43] A. Raffin, A. Hill, A. Gleave, A. Kanervisto, M. Ernestus, and N. Dormann, “Stable-baselines3: Reliable reinforcement learning implementations,” Journal of Machine Learning Research, vol. 22, no. 268, pp. 1–8, 2021.
[44] T. Haarnoja, A. Zhou, P. Abbeel, and S. Levine, “Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor,” in International conference on machine learning, pp. 1861–1870, Pmlr, 2018.
[45] S. Fujimoto, H. Hoof, and D. Meger, “Addressing function approximation error in actor-critic methods,” in International conference on machine learning, pp. 1587–1596, PMLR, 2018.
[46] T. P. Lillicrap, J. J. Hunt, A. Pritzel, N. M. O. Heess, T. Erez, Y. Tassa, D. Silver, and D. P. Wierstra, “Continuous control with deep reinforcement learning,” Sept. 15 2020. US Patent 10,776,692.
[47] J. Schulman, S. Levine, P. Abbeel, M. Jordan, and P. Moritz, “Trust region policy optimization,” in International conference on machine learning, pp. 1889–1897, PMLR, 2015.
[48] R. S. Sutton and A. G. Barto, Reinforcement learning: An introduction, vol. 1. MIT press Cambridge, 1998.
[49] N. Bjorck, C. P. Gomes, and K. Q. Weinberger, “Towards deeper deep reinforcement learning with spectral normalization,” Advances in neural information processing systems, vol. 34, pp. 8242–8255, 2021.
[50] N. T. Luu, T. Moreaux, V. Khaustov, V. Khaustova, M. Mataar, T. Krueger, Z. S. Raphael, J. Wang, D. T. Luu, P. N. Nam, and T. C. Thang, “Robust reinforcement learning quadcopter control system for offshore cement wind turbine construction,” IEEE Access, vol. 14, pp. 51918–51942, 2026.
[51] C. Lee, “Adjoint differentiation.” PennyLane Demos, Nov 2021. Last updated: September 22, 2025.
[52] E. Fontana, D. Herman, S. Chakrabarti, N. Kumar, R. Yalovetzky, J. Heredge, S. H. Suresh-babu, and M. Pistoia, “Characterizing barren plateaus in quantum ansätze with the adjoint representation,” Nature Communications, vol. 15, no. 1, p. 7171, 2024.
[53] M. Ragone, B. N. Bakalov, F. Sauvage, A. F. Kemper, C. Ortiz Marrero, M. Larocca, and M. Cerezo, “A lie algebraic theory of barren plateaus for deep parameterized quantum circuits,” Nature Communications, vol. 15, no. 1, p. 7172, 2024.
[54] S. Wang, E. Fontana, M. Cerezo, K. Sharma, A. Sone, L. Cincio, and P. J. Coles, “Noise-induced barren plateaus in variational quantum algorithms,” Nature communications, vol. 12, no. 1, p. 6961, 2021.
[55] L. Metz, N. Maheswaranathan, C. D. Freeman, B. Poole, and J. Sohl-Dickstein, “Tasks, stability, architecture, and compute: Training more effective learned optimizers, and using them to train themselves,” arXiv preprint arXiv:2009.11243, 2020.
A Universal Approximation Capability of HEA
The expressive power of the HEA circuit adopted in this work is grounded in the Universal Approximation Theorem (UAT) [38], which we restate for completeness.
Theorem 3 ([38]). Let and let be any nonconstant, bounded, and continuous function. Then for every and every , there exist , , and such that the single-hidden-layer network
satisfies .
PQCs admit an analogous universality result. This construction endows even single-qubit QNNs with universal approximation capability over compact domains [14, 39]. The HEA used in this work inherits this property: with sufficient depth and data re-uploading, it can approximate arbitrary continuous classification functions to any prescribed precision.
B Quantum Barren Plateaus
Barren plateaus [23] refer to the exponential concentration of PQC loss landscapes, wherein both output and gradient variances vanish exponentially in the number of qubits n, rendering gradient-based optimization infeasible at scale.
Definition 1 ([23]). Let be a PQC acting on an n-qubit state , and let for an observable . The circuit is said to exhibit a barren plateau over base if
where depends on the choice of and .
The gradient variance bound in Equation 10 implies that the number of circuit evaluations required to estimate to fixed precision grows exponentially in , making training intractable on near-term hardware. This concentration is mechanistically linked to the degree to which the parameter distribution approximates a unitary -design: deep HEA circuits approach a 2-design [40], which is sufficient to force for global observables [23]. Mitigation strategies include the use of local cost functions [41], structured initialization [42], layer-wise training [16], and hybrid architectures [39].
C Proofs of main theorems
C.1 Proof of Theorem 1
In standard gradient-based QNN training, the parameter update is:
and the barren plateau renders exponentially in , stalling optimisation . In RLQ-Grad, the update is instead
The quantity is the output of the policy network , a purely classical computation. Its distribution is determined by the agent parameters and the state , neither of which involves differentiating through . Consequently, is statistically independent of , and the barren plateau variance bound places no constraint on . The update therefore proceeds regardless of circuit depth or qubit count.
The barren plateau condition Equation 8 is a statement about the distribution of over the parameter ensemble induced by . In RLQ-Grad, the gradient applied to is , a function of the RL agent's classical parameters and state . Neither depends on differentiating through the quantum circuit and consequently, the Wishart process concentration result has no bearing on . The update proceeds regardless of the algebraic structure of . [28] also show that the precise scaling is governed by and the entanglement structure of with respect to (through ), not solely by circuit depth.
Note that Theorem 1 is also structural: it holds for any RL policy and any circuit , irrespective of whether the agent produces useful gradient estimates. It establishes only that the exponential vanishing pathology is absent from the update rule itself.
C.2 Proof of Theorem 2
The policy loss depends on only through the classical computation . Differentiating via the chain rule gives
where is the Jacobian of the MLP output with respect to its weights. This quantity is governed by classical backpropagation through a feedforward network and satisfies standard gradient
Noted in previous analysis of [6], where they characterised the barren plateau as , arising from approximate 2-design behaviour at large depth.
Which is Equation 8, originally derived from Corollary 4 of [28].
Table 4: Preliminary studies on different agent type with RLQ-Grad. is correspondingly 400 for BC, 46800 for MNIST and FMNIST, 39000 for CIFAR10.
| Agents | Buffer type | Buffer size | Params | MACs | Top 1 validation accuracy per dataset | |||
|---|---|---|---|---|---|---|---|---|
| BC | MNIST | F-MNIST | CIFAR10 | |||||
| SAC | Replay | 1000000 | 17,038 | 16,640 | 95.61 ± 1.519 | 65.53 ± 0.521 | 72.27 ± 0.437 | 28.64 ± 0.516 |
| TD3 | Replay | 1000000 | 16,648 | 16,256 | 96.71 ± 0.380 | 68.55 ± 0.989 | 73.52 ± 0.367 | 28.72 ± 0.287 |
| DDPG | Replay | 1000000 | 11,079 | 10,816 | 85.53 ± 6.837 | 55.23 ± 0.372 | 65.28 ± 0.098 | 23.14 ± 0.457 |
| TRPO | Rollout | 10,695 | 10,432 | 93.20 ± 1.899 | 60.27 ± 0.298 | 70.65 ± 0.428 | 26.46 ± 0.623 | |
| PPO | Rollout | 5,575 | 5,440 | 90.05 ± 4.760 | 59.52 ± 0.212 | 68.52 ± 0.534 | 25.12 ± 0.961 | |
concentration bounds for finite-width MLPs. In particular, its variance is polynomial in the network width d and depth , not exponential in n. Since no quantum circuit evaluation appears in this computation, no gradient variance decay stemming from quantum barren plateau can arise.
D Miscellaneous and settings
D.1 Preliminary studies and agent training settings
In our main experiments, we train the agent using the Proximal Policy Optimization (PPO) [24] algorithm with the default multilayer perceptron policy as implemented in Stable-Baselines3 (SB3) [43]. Justifications for this selection are made based on the results of our preliminary study across different model types, as noted in Table 4.
Table 4 shows a consistent performance hierarchy across all datasets, with off-policy methods (Soft Actor-Critic (SAC) [44], Twin Delayed Deep Deterministic (TD3) [45], Deep Deterministic Policy Gradient (DDPG) [46]) outperforming on-policy counterparts (Trust Region Policy Optimization (TRPO) [47] and PPO). In particular, TD3 achieves the best overall accuracy on all four datasets, followed closely by SAC, while DDPG exhibits the weakest performance among replay-based methods. On-policy methods (TRPO and PPO) consistently lag behind, indicating a performance gap between replay-buffer-based and rollout-based training strategies under the same architectural constraints.
A clear distinction emerges between replay and rollout buffers. Replay-based agents (SAC, TD3, DDPG) significantly outperform rollout-based agents (TRPO, PPO) across all datasets. This trend is especially pronounced on more complex datasets such as CIFAR10, where TD3 and SAC achieve approximately accuracy, compared to for TRPO and for PPO.
Despite relatively small differences in parameter count and MACs, performance varies substantially. TD3 and SAC have comparable computational costs ( parameters and MACs), yet TD3 consistently achieves slightly better accuracy with lower variance. DDPG, while having fewer parameters (), suffers from significantly degraded performance and higher variance.
All methods achieve high accuracy on the simplest dataset (BC), with TD3 reaching , while performance drops significantly as dataset complexity increases. The relative ordering of methods, however, remains consistent across datasets. Variance across runs further differentiates the methods. TD3 demonstrates both high accuracy and low variance, indicating stable training dynamics. In contrast, DDPG and PPO exhibit larger standard deviations (e.g., 6.837 and 4.760 on BC).
On the other hand, PPO achieves competitive performance relative to TRPO despite having nearly half the parameters and MACs (5,575 vs. 10,695), making them an interesting candidate to further improve on. Furthermore, while achieving higher accuracy in overall, agents that used replay buffer (such as SAC, TD3 and DDPG) are significantly more memory consuming on CPU/GPU in comparison with those that use rollout buffers, eventually failing the promise of low resource consumption that we made initially.
All benchmarked policy and value networks are jointly optimized using stochastic gradient descent with a fixed learning rate of . The minibatch size is statically set to be equal with
Still, note that Theorem 2 does not assert that is well-behaved in all respects. Classical MLPs can suffer from vanishing or exploding gradients when is large, a problem addressed by standard techniques (batch normalisation, residual connections, careful initialisation). Critically, however, these pathologies are independent of n and do not worsen as the quantum system scales.
total_supervised_training_epoch. To preserve memory efficient and avoid asynchronous gradient propose/model update problem, we only use 1 environment to train all the RL agents. At each training iteration, all agent that use rollout buffer collects a rollout of length (rollout buffer size) equal to the total training steps, calculated as:
after which the collected transitions are used to perform multiple epochs of minibatch updates. This rollout configuration is motivated by the observation that larger values of lead to more stable training dynamics and ultimately improved convergence, even over prolonged training durations. Benchmarking results that support this claim using TRPO and PPO on MNIST can be found in Table 5.
Table 5: Accuracy comparison of PPO and TRPO across length on MNIST.
| Agents | Top 1 validation accuracy per dataset | ||||
|---|---|---|---|---|---|
| TRPO | |||||
| PPO | |||||
We also fixed agent initialization random seed to ensure reproducibility across runs. Unless otherwise specified, all other agent hyperparameters (e.g., clipping range, number of epochs, GAE parameters, and entropy coefficient) are kept at their default values provided by SB3.
D.2 Stabilization tricks with spectral normalization
Training RL agents with function approximation is notoriously unstable, particularly in the bootstrapped regime of temporal-difference (TD) learning where approximation errors compound through iterated Bellman updates [48]. Spectral normalization (SN) has emerged as a principled remedy for this instability, with demonstrated effectiveness in stabilizing Q-networks [25] and actor-critic architectures [49, 50]. To avoid this problem, we can adopt SN as a method for stabilizing the training process of our algorithm. Consider a feed-forward network with layers:
where is the ReLU activation for all hidden layers (). For a designated subset of layers , SN replaces each weight matrix with its spectrally normalized counterpart:
where denotes the largest singular value (spectral norm) of , is a small constant preventing degenerate scaling, and a stop-gradient is applied to during backpropagation so that normalization acts as a constraint rather than a differentiable transformation.
By capping the spectral norm of each layer, SN enforces a Lipschitz bound on the end-to-end mapping. Specifically, for a network with ReLU activations, the Lipschitz constant satisfies:
which directly limits how rapidly the network output can change with respect to its input. In the RL context, this Lipschitz constraint serves two critical purposes: (i) it bounds the propagation of approximation error through bootstrapped TD targets, preventing the runaway divergence observed in unconstrained networks [49]; and (ii) it promotes smoother value landscapes, improving generalization across nearby states.
Which is around 200, meaning that the rollout buffer is shuffled and split into batches of 200 samples for agent gradient updates with SGD.
Beyond its regularization effect, SN induces a data-dependent modulation of gradient magnitudes that fundamentally alters the optimization dynamics. Under a bias-scaling reformulation [25], the pre-activations of the normalized network satisfy:
The loss computed on the normalized network and the gradient with respect to the unnormalized parameters is therefore:
where is the Jacobian of all layers subsequent to layer and . Equation 19 reveals that SN imposes a global rescaling of all gradients by , the inverse product of spectral norms across normalized layers. As network weights grow during training (a natural consequence of fitting increasingly complex value landscapes), increases monotonically, progressively attenuating gradient magnitudes. This gradient rescaling has a particularly consequential interaction with adaptive optimizers. Recall the Adam update rule [26]:
where and are bias-corrected estimates of the first and second gradient moments, respectively. When gradients are globally rescaled as (with at iteration ), the moment estimates transform as:
Substituting into the Adam update yields:
The key observation is that SN effectively multiplies the damping constant by , which grows monotonically over training. This induces a natural three-phase optimization trajectory:
-
Early training ( ): The modified update Equation 22 reduces to standard Adam. The optimizer retains its full adaptive behavior, enabling rapid initial learning and efficient exploration of the loss landscape.
-
Mid training ( growing): The inflated denominator uniformly reduces step sizes across all parameters, acting as a stabilizer that dampens sensitivity to noisy gradient estimates, which is particularly important in RL, where minibatch composition and advantage estimation introduce high variance.
-
Late training ( ): The update asymptotically approaches
which is equivalent to SGD with momentum at a decaying effective learning rate . This automatic transition from adaptive to momentum-based updates is highly desirable: adaptive methods excel at navigating the complex early-training landscape but suffer from poor curvature estimates in the non-stationary TD regime, whereas SGD with momentum provides more stable convergence near optima [25].
This optimization-centric interpretation is empirically validated by [25], who show that explicit schedulers mimicking either the gradient rescaling (DIVGRAD) or the -scaling (MULEPS) of SN recover comparable performance gains, even in regimes where full SN fails to train.
We apply SN selectively to the value and policy networks following the power iteration scheme described in Algorithm 2. Each normalized layer maintains a pair of auxiliary vectors (u, v) that approximate the leading left and right singular vectors of via a single power iteration step per training update (with a negligible computational overhead).
To understand the contribution of SN on different network components, we evaluate three configurations on the BC dataset for the 2-qubit HEA problem (Figure 4): SN applied to the last layer of both
Algorithm 2 RL Training with Spectral Normalization
Require: Dataset (replay buffer or on-policy batch), trainable networks , normalized layer set
1: for each training iteration do 2: Sample batch 3: for each layer in do 4: if then 5: if not yet initialized then 6: Initialize 7: end if 8: 9: 10: {Clamp spectral norm to } 11: end if 12: end for 13: Compute RL loss using normalized weights 14: Update via gradient descent on 15: end for

(a) PolicySN[-1] + ValueSN[-1].

(b) ValueSN[-1].

(c) No SN.
Figure 4: Accuracy convergence of RLQ-Grad (with PPO) variants (with (a) both last layer of policy and value function SN, (b) only last layer of value function SN [25] and (c) no SN applied) on BC dataset (denoted blue with fluctuation region) when compare with maximum achievable accuracy of other gradient calculating methods on 2-qubits HEA.
the policy and value networks (PolicySN[-1] + ValueSN[-1]), SN applied to only the last layer of the value network (ValueSN[-1] [25]), and no SN applied.
The most striking difference across configurations is in convergence reliability. Configuration (a), with SN on both networks, achieves the fastest and most stable convergence, reaching near-optimal accuracy (> 93%) within approximately 50 training epochs with minimal variance across runs. Configuration (b), with SN on the value network alone, also converges to comparable final accuracy, albeit with a slightly delayed onset, consistent with the value network being the primary source of bootstrap-induced instability. In contrast, configuration (c) without SN exhibits dramatically higher variance (visible as the wide blue fluctuation band) and slower, less reliable convergence, with some runs failing to reach the performance plateau within the allotted training budget.
The comparison between configurations (b) and (c) isolates the stabilizing effect of SN on the critic. The value network directly participates in computing TD targets, making it the primary channel through which approximation errors are amplified. By constraining the Lipschitz constant of the critic, SN bounds the magnitude of these compounding errors (Equation 17), preventing the catastrophic overestimation that often destabilizes training. The near-identical final performance of configurations (a) and (b) suggests that value network normalization accounts for the majority of the stability gains.
While policy network SN is not strictly necessary for convergence, configuration (a) demonstrates a measurable advantage in convergence speed over (b). We attribute this to the implicit learning rate scheduling effect that normalizing the policy network introduces an additional spectral radius factor into the gradient rescaling (Equation 19), providing finer-grained control over the policy update magnitude.
Across all three configurations, the converged accuracy of our RLQ-Grad method matches or exceeds the maximum achievable accuracy of alternative gradient calculation methods (Backprop, Param-shift; shown as dashed horizontal lines in Figure 4). Notably, even the unstabilized variant (c) can achieve competitive final accuracy in successful runs, but its high variance makes it unreliable in practice.
Table 6: Accuracy comparison between ValueSN[-1] and non-SN PPO across datasets.
| Agents | Params | MACs | Top 1 validation accuracy per dataset | |||
|---|---|---|---|---|---|---|
| BC | MNIST | F-MNIST | CIFAR10 | |||
| PPO | 5,575 | 5,440 | 90.05 ± 4.760 | 59.52 ± 0.212 | 68.52 ± 0.534 | 25.12 ± 0.961 |
| PPO (SN) | 11847 | 10,432 | 95.52 ± 0.080 | 61.36 ± 2.216 | 73.64 ± 0.415 | 27.17 ± 0.782 |
Table 6 demonstrates that incorporating SN into PPO yields consistent improvements across all datasets. PPO (SN) outperforms the baseline PPO in every case, with particularly notable gains on BC (+5.47%) and F-MNIST (+5.12%). Even on more challenging datasets such as CIFAR10, SN provides a measurable improvement (+2.05%). The magnitude of improvement varies across datasets. Larger gains are observed on intermediate-complexity datasets (e.g., F-MNIST), while improvements are more modest on MNIST and CIFAR10.
The improvements in accuracy come at the cost of increased model complexity. PPO (SN) approximately doubles both the parameter count (11,847 vs. 5,575) and MACs (10,432 vs. 5,440). Despite this, the performance gains are disproportionately large relative to the increase in computational cost, particularly on BC and F-MNIST.
D.3 Input dimensionality reduction
We employ Principal Component Analysis (PCA) to project the high-dimensional input into a lower-dimensional subspace while preserving maximal global variance. To determine the optimal number of features , we evaluate the Cumulative Explained Variance Ratio (CEVR), defined as where represents the eigenvalue associated with the -th principal component, is the input dimension and captures approximately of the total variance.
D.4 Accuracy convergence curves
Figure 5 shows the validation accuracy convergence of RLQ-Grad on the 2-qubit HEA for the four datasets of Table 2, compared with the maximum accuracy achieved by the other gradient computation methods.

(a) BC.

(b) MNIST dataset.

(c) F-MNIST dataset.

(d) CIFAR-10 dataset.
Figure 5: Accuracy convergence of RLQ-Grad (denoted blue with fluctuation region) when compare with maximum achievable accuracy of other gradient calculating methods on 2-qubits HEA.
D.5 Hardware specifications
Since adjoint differentiation and parameter-shift rule currently lack efficient GPU implementations comparable to backpropagation and our proposed method, the resource allocation benchmark in Figure 3 was conducted on a CPU (AMD Ryzen 5 5600G) to assure fairness, averaging 12 timed trials after 4 warm-up iterations. The GPU comparison between RLQ-Grad and backpropagation (Table 9) was run on an NVIDIA RTX 3090 and averaged over 15 trials. In contrast, for accuracy evaluations where minimizing training time is critical, experiments for our method and backpropagation were performed on an NVIDIA RTX 3090 (24GB) GPU.
D.6 Full resource benchmark values
Tables 7, 8, and 9 list the exact values behind Figure 3 and the GPU comparison. Rather than measuring only the actor's forward pass, all RLQ-Grad entries account for the complete training pipeline (PPO rollout, policy and value updates, gradient buffers, and Adam states).
Table 7: End-to-end CPU RAM usage of gradient computation methods ( to 20 qubits).
| Method | 2q1d | 4q2d | 6q3d | 8q4d | 10q5d | 12q6d | 14q7d | 16q8d | 18q9d | 20q10d |
|---|---|---|---|---|---|---|---|---|---|---|
| Backpropagation | < 0.1 MB | 187.15 KB | 416.55 KB | 619.74 KB | 1.96 MB | 10.10 MB | 63.30 MB | 282.70 MB | 1227 MB | 6174 MB |
| Parameter-shift | < 0.1 MB | 282.89 KB | 1.06 MB | 6.38 MB | 7.32 MB | 9.98 MB | 18.59 MB | 22.37 MB | 24.23 MB | 22.55 MB |
| Adjoint-differentiation | < 0.1 MB | < 0.1 MB | < 0.1 MB | < 0.1 MB | < 0.1 MB | < 0.1 MB | < 0.1 MB | < 0.1 MB | < 0.1 MB | < 0.1 MB |
| RLQ-Grad (full) | 161.22 KB | 215.64 KB | 306.35 KB | 433.33 KB | 596.60 KB | 796.14 KB | 1.02 MB | 1.30 MB | 1.61 MB | 1.95 MB |
Table 8: Per-iteration CPU wall-clock time (in seconds) of gradient computation methods.
| Method | 2q1d | 4q2d | 6q3d | 8q4d | 10q5d | 12q6d | 14q7d | 16q8d | 18q9d | 20q10d |
|---|---|---|---|---|---|---|---|---|---|---|
| Backpropagation | 0.0042 | 0.0123 | 0.0260 | 0.1295 | 0.1033 | 0.1662 | 0.2719 | 0.5112 | 2.3262 | 219.41 |
| Parameter-shift | 0.0067 | 0.0425 | 0.1333 | 0.3921 | 0.9860 | 2.3931 | 5.2019 | 16.2818 | 66.3288 | 693.96 |
| Adjoint-differentiation | 0.0027 | 0.0055 | 0.0109 | 0.0161 | 0.0266 | 0.0569 | 0.0836 | 0.6666 | 10.0897 | 59.3241 |
| RLQ-Grad (full) | 0.0455 | 0.0545 | 0.0641 | 0.0565 | 0.0815 | 0.0858 | 0.0842 | 0.0862 | 0.0875 | 0.0881 |
Table 9: Per-iteration GPU wall-clock time (in milliseconds, NVIDIA RTX 3090, 15 trials). Parameter-shift and adjoint differentiation are omitted as they lack efficient GPU kernels in current QNN frameworks.
| Method | 2q1d | 4q2d | 6q3d | 8q4d | 10q5d | 12q6d | 14q7d | 16q8d | 18q9d | 20q10d |
|---|---|---|---|---|---|---|---|---|---|---|
| Backpropagation | 23.37 | 65.54 | 126.96 | 218.95 | 322.98 | 451.28 | 605.74 | 807.99 | 1026.45 | 1457.06 |
| RLQ-Grad (full) | 22.51 | 56.60 | 111.49 | 184.76 | 276.88 | 390.89 | 523.60 | 785.93 | 957.31 | 1190.83 |
E Derivation process of quantum gradient calculation methods
Assuming we have a QNN with qubits and parameterized gates (or layers), let denote the number of trainable parameters, typically . A quantum state on qubits is represented as a complex vector , so storing a single state requires a memory complexity of .
E.1 Forward pass complexity
Every gate acts on the full statevector, leading to a computational cost of per gate application. Therefore, the total cost of the forward pass is , and this factor remain unchanged since benchmarked optimization algorithms only affect gradient computations.
E.2 Backward pass complexity
E.2.1 Backpropagation
Let the circuit be composed of unitary operators . The forward evolution is with . Define the adjoint state where is the observable; the backward recursion is:
For a parameterized gate , we have , so differentiating and collecting both the bra and ket contributions yields:
With evolution steps we obtain a time complexity of . For memory complexity, since all intermediate states must be stored, we have .
E.2.2 Parameter-Shift Rule
When using parameter-shift [19], for a parameter the gradient is computed as:
where each evaluation requires a full forward pass. Thus, computing the gradient for all parameters requires . Since only one statevector is needed at a time per parameter update, the memory complexity is theoretically . Still, in practice many framework such as Pennylane [21] accumulate all parameters gradient and update the model as a whole, leading to a practical memory complexity of .
E.2.3 Adjoint differentiation
The reverse-mode gradient computation derived in [18] (or for short "adjoint differentiation" as noted in some materials [51]) is mathematically equivalent to traditional backpropagation, but exploits the reversible structure of quantum circuits to achieve improved memory efficiency.
In classical neural networks, backpropagation computes gradients via reverse-mode accumulation:
requiring storage of all intermediate activations , leading to memory scaling proportionally with . In quantum neural networks, the analogous reverse propagation is:
which is directly analogous to multiplication by the transposed Jacobian in classical backpropagation. The gradient of the expectation value with respect to parameter is:
where the backward state and the reconstructed forward state satisfy the recursions (traversed from down to ):
Here is the reconstructed forward state at layer , obtained by applying the inverse gate to the current forward state rather than storing it from the forward pass.
Because quantum circuits are unitary and therefore reversible, the intermediate forward states need not be stored; they are recomputed on-the-fly during the backward sweep. Consequently, all gradients are obtained in a single reverse pass at a cost of , matching backpropagation's time complexity while reducing the memory required beyond the forward statevector to , since only a fixed number of working buffers (the current forward and backward states) are kept regardless of and .
E.3 RLQ-Grad
In the case of our RLQ-Grad, gradient evaluation reduces to a forward pass through the MLP actor. For an -layer network of hidden width , whose input and output both have dimension , the input layer costs , the hidden layers cost each, and the output head costs . Summing the three terms gives , with activation memory .
The full training pipeline additionally runs the critic, backpropagates through actor and critic during PPO updates, and maintains the Adam optimizer. Let denote the joint actor and critic parameter count. The resident memory consists of the parameters ( ), their gradient buffers ( ), and the Adam first and second moments ( ), i.e. . This predicts the measured split of approximately 26% (parameters), 26% (gradients), and 52% (Adam states) reported in Section 3.1.1. Each PPO update step likewise costs per sample. Both quantities are linear in and independent of .
F Further discussion of other properties
F.1 Optimal conditions for RLQ-Grad trainability
In this part, we further extend our theoretical framework by assessing the optimal condition for RLQ-Grad to converge upon training, viewed as the following theorem:
Theorem 4 (Optimal conditions for RLQ-Grad trainability). Let be an n-qubit HEA circuit with associated JAWS . RLQ-Grad achieves efficient training if and only if both of the following conditions hold:
• Condition 1 (C1): Structured QNN on supervise problem satisfy:
ensures the loss (and hence the reward for RLQ-Grad) is sufficiently sensitive to parameter changes for the agent to receive a meaningful training signal (informativeness).
• Condition 2 (C2): Selected QNN achieve overparameterization as:
ensures local minima concentrate near the global minimum, so that any convergent optimizer finds a good solution.
Proof. We can prove this theorem by contradiction as:
• Necessity of (C1). If (C1) fails and the loss concentrates exponentially and is indistinguishable from a constant in the reward. By Proposition 1, the mutual information , and the agent cannot improve its policy.
• Necessity of (C2). If (C2) fails, by Theorem 5 the density of local minima near the global optimum is exponentially suppressed. Any convergent optimizer terminates at a poor local minimum with probability exponentially close to 1, regardless of gradient quality. This applies to RLQ-Grad without exception.
• Sufficiency. When (C1) holds, the reward is informative and the agent receives a nonvanishing gradient signal through the reward differences. When (C2) holds, good local minima are dense and any convergent optimizer finds a near-optimal solution. Since the agent’s own training is governed by a classical MLP whose gradient pathologies are independent of n (Theorem 2 below), and the policy class is a universal approximator by the UAT (Appendix A), the combination is sufficient for efficient training.
□
F.2 Under Wishart process framework, how does this affect agent reward informativeness?
[28] also prove that in QNN, the parameter gradient distribution is not Gaussian but follows a Wishart process: the joint distribution of conditioned on is:
where are i.i.d. standard normal and are independent -distributed with degrees of freedom. This has the following consequence for the informativeness of the RLQ-Grad reward:
Proposition 1. The reward is a monotone function of and . Under the Wishart process description, the loss value is itself Wishart-distributed with degrees of freedom , and the gradient is conditionally distributed as in Equation 33. Two consequences follow:
By Theorem 1 of [28]

(a) BC, backprop.

(b) BC, param-shift.

(c) BC, adjoint-diff.

(d) BC, RLQ-Grad.




(e) F-MNIST, backprop. (f) F-MNIST, param-shift. (g) F-MNIST, adjoint-diff. (h) F-MNIST, RLQ-Grad.
Figure 6: Loss landscape visualization across benchmarked gradient computation methods over HEA-2b1q on BC and F-MNIST. Loss landscape change from smooth on BC dataset (overparameterized) to becomes more noisy (underparameterized) with sharp local minima in F-MNIST.
-
The gradient magnitude scales as , so the gradient is correlated with the loss value. The reward , which depends on , therefore carries information about the gradient magnitude even in the absence of direct gradient computation.
-
In the barren plateau regime, exponentially, causing both the gradient and its correlation with the reward to vanish simultaneously. This is the fundamental obstruction: when the loss concentrates, so does the reward, and the agent receives no directional signal.
Proof. Point 1 follows directly from Equation 33: , and is recoverable (up to noise) from . The mutual information therefore whenever at a distinguishable level above noise. In the barren plateau regime, , so the conditional gradient distribution of Equation 33 also concentrates at zero, making the reward differences unresolvable, eventually proved point .
Combining Theorems 1 and 2, RLQ-Grad offers a genuine advantage over conventional gradient methods precisely when the circuit satisfies condition 1 but not the gradient-variance condition. This corresponds to circuits with non-trivial Jordan algebraic structure (e.g., LASA circuits [52, 53]) where the loss landscape is non-flat but standard gradient computation is exponentially expensive. In circuits where condition 2 itself fails (i.e., the loss is truly exponentially flat) no method can efficiently train the quantum parameters, and the primary utility of RLQ-Grad is instead its computational advantage (Appendix E.3) rather than any landscape-related benefit.
G Further discussion of limitations
G.1 Poor local minima obstruction
The previous analysis identified only the barren plateau as an obstruction to RLQ-Grad. [28] identify a second, independent obstruction absent from earlier analyses:
Theorem 5 (Poor local minima obstruction). Under the JAWS framework [28], even when the barren plateau condition of Equation 8 is non-vanishing (i.e., gradients are not exponentially suppressed), the density of local minima near the global minimum is exponentially small if and only if the network is underparameterized:
By Corollary 4 of [28].
where is the number of trained parameters, corresponds to the field of the -th Jordan component, and is the degrees of freedom. In this regime, an optimizer (including RLQ-Grad) converges to a poor local minimum with overwhelming probability, regardless of gradient quality.
Proof. The density of local minima at loss value is (to leading multiplicative order) a convolution of Gamma distributions :
where is the overparameterization ratio. When for some (Equation 34 violated), the Gamma distribution has exponential tails, placing an exponentially small fraction of local minima near . Since any gradient-based optimizer (and any surrogate that produces descent directions) converges to a local minimum, it converges to a poor one with probability exponentially close to 1. RLQ-Grad is not exempt from this, since the obstruction is in the loss landscape geometry, not in the gradient computation mechanism.
More critically, barren plateaus and poor local minima are independent obstructions . A circuit can be:
-
Barren plateau affected and underparameterized (doubly obstructed),
-
Barren plateau free but underparameterized (gradient information present, but all accessible local minima are poor),
-
Overparameterized but barren plateau affected (good minima exist but are unreachable by gradient methods),
-
Both barren plateau free and overparameterized.
While RLQ-Grad bypasses obstruction 3 by replacing the quantum gradient. It does not bypass obstruction 2, which is independent of gradient quality. A visualization of loss landscape across benchmarked gradient computation method can be found in Figure 6.
G.2 Barren plateau induced input gradient decay
Consider a QNN where the n-qubit input state is prepared via amplitude encoding using rotations, followed by a trainable unitary (e.g. a HEA in our experiments). The input gradient is structurally analogous to the parameter gradient, yet the two objects differ in a crucial respect: is randomized during initialization, whereas is a fixed data point. The question is therefore: whether , viewed as a random variable over the ensemble of weight initializations, also concentrates exponentially near zero?
Short answer is yes, the same Weingarten-calculus argument that governs weight barren plateaus applies to input gradients, provided the trainable block forms (at least) a unitary 2-design. However, the interpretation differs: the concentration is over at a fixed x, not over the data distribution. To further understand this problem, we can formalize the following theorem:
Theorem 6 (Input quantum gradient decay). For a fixed input vector define the encoding state:
Let be an L-layer HEA with parameters drawn uniformly, and let be an observable with . The loss is:
By Corollary 6 of [28].
By Definition 7 of [28].
The input gradient with respect to component is:
where is the Heisenberg-picture observable, and denotes the symmetrised (anti-commutator-like) combination arising from the product rule. Equivalently, by the parameter-shift rule applied to ,
Let the trainable block with layers form an exact unitary 2-design on when is drawn uniformly from . Fix any input and any observable with . Then for every coordinate , input gradient converge toward zero mean with exponentially small variance , for a universal constant independent of , , and . The probabilistic concentration can also be quantified as .
Equations 36 and the analogous formula for HEA parameter gradient are formally identical: both are half the difference of two expectation values obtained by shifting a rotation angle by . The distinction is that is a stochastic variable while is fixed, consequently the randomness in the input gradient comes entirely from . We can proceed to prove our theorem as follow:
Proof. From the parameter-shift representation in Equation 36:
where are two fixed product states (they depend on but not on ). Write .
Because forms a 1-design, we would have:
and therefore:
which is the same for both and , giving:
Since , the variance equals the second moment:
For any fixed normalised state and any 2-design, the Weingarten formula gives
This formula holds for any fixed unit vector ; it does not require to be random. Substituting (both are unit vectors) into Equation 37 and using :
A tighter bound follows from (since ) and :
For the cross term, the 2-design formula for two different states , gives:
Since , the cross term satisfies . Combining, and absorbing numerical prefactors into the constant :
By Chebyshev's inequality,
This completes the proof for all claims.
Let the setup be as in Theorem 6. The following distinctions hold between the input gradient and the weight gradient :
• Source of randomness: Both and are random variables over . The input is deterministic in while the parameter itself is part of and contributes additional variance to .
• Variance bound: Both satisfy , with the same asymptotic scaling. The constant may differ: for the gate participates in the 2-design argument on both sides of the circuit; for the encoding gate is fixed.
• Dependence on the data point: is independent of (to leading order) because the Weingarten formula Equation 37 depends only on , not on which unit vector is.
• Practical implication: The weight barren plateau obstructs training while the input-gradient barren plateau obstructs input-space optimisation, eventually affecting: quantum adversarial attacks, gradient-based feature attribution (quantum analogues of saliency maps), and hybrid quantum-classical architectures (in our case, the fully connected layers that encode map classical input to actual HEA input, formalize in Corollary 2) that backpropagate through the quantum layer.
Results from Theorem 6 also lead to following corollaries and remarks:
Corollary 1 (Full input Jacobian). Under the conditions of Theorem 6, the expected squared Frobenius norm of the input Jacobian satisfies
Since exponentially, the entire Jacobian collapses to zero.
Corollary 2 (Backpropagation through a quantum layer). In a hybrid quantum-classical network, the classical layers preceding the quantum encoding receive gradients scaled by J. By the corollary above, , so the classical pre-processing layers also experience exponentially vanishing gradients, regardless of their own architecture.
Remark 1 (Noise exacerbates the effect). Under depolarising noise with per-gate error rate p, the effective observable seen by the input state is attenuated. By the same argument as [54] for weight gradients, one obtains:
which is doubly exponentially suppressed in L compared to the noiseless bound.
Remark 2 (Local cost functions offer no relief for input gradients). For weight gradients, replacing a global O with a local k-qubit observable reduces the variance from to [41]. This mitigation still applies to :
However, because the input dimension equals n, a reduction to qubits in the observable may destroy the expressiveness needed to solve the learning task, presenting a fundamental expressiveness-trainability trade-off for input gradients.
H Broader Impact
RLQ-Grad is a methodological contribution to the optimization of quantum neural networks and does not target a specific deployed application. We nevertheless identify several downstream considerations.
Positive impacts
By replacing statevector propagation with an forward pass through a small MLP, RLQ-Grad reduces the CPU cost of simulation-based QNN training by 2 to 4 orders of magnitude at qubits in our benchmarks, once the full agent training pipeline is accounted for (while adding a small fixed overhead on circuits below roughly 8 qubits). This lowers the carbon footprint of QML research and widens access for groups without access to large-scale accelerators. Reliable QNN training is a prerequisite for variational approaches to quantum chemistry, condensed-matter simulation, and combinatorial optimization, all of which carry societal upside (e.g., catalyst design, battery materials, logistics). A stable, gradient-variance-flat optimizer reduces the run-to-run noise that currently complicates empirical comparisons in the field, supporting healthier scientific norms.
Negative and dual-use considerations
Any work that makes near-term variational quantum algorithms more practical contributes, incrementally, to the ecosystem progressing toward fault-tolerant quantum computers capable of breaking RSA and elliptic-curve cryptography. This is a diffuse, long-horizon concern rather than an immediate risk (RLQ-Grad operates on small HEAs and does not itself bring factoring-relevant circuits within reach) but it is the standard dual-use note for QML work. Organizations handling long-lived secrets should continue migrating to post-quantum cryptographic primitives. The update rule produced by is not an analytic gradient and cannot be inspected with the tools developed for parameter-shift or adjoint differentiation. In safety/compliance-critical hybrid pipelines, this opacity may hinder auditing, failure-mode analysis, and reward-specification validation (failure modes familiar from the learned-optimizer literature [37, 55]). As a general-purpose QNN optimizer, RLQ-Grad could be applied to any supervised objective, including ones with negative social externalities (surveillance, biometric identification, autonomous targeting). The same disclaimer applies as to any generic optimization advance; we do not see a specific misuse channel unique to the quantum setting at current hardware scales.
Mitigations
We recommend that practitioners deploying RLQ-Grad (a) log both the surrogate gradient and the analytic gradient on held-out probes during training to detect reward-hacking or silent drift, (b) retain analytic gradient verification in regimes where it remains tractable, and (c) report per-configuration agent training cost alongside the amortized QNN training cost for fair comparisons.