Manuscript Offprint

arXiv:2609.11248

Generative Replay Mitigates Sample Starvation in Quantum Architecture Search

Akash Kundu, Amit Kumar Jaiswal, Sebastian Feld, Prayag Tiwari

Abstract

Reinforcement learning (RL) can automate quantum architecture search, but its scalability is limited when useful circuit trajectories become rare in the rapidly expanding search space. Existing replay mechanisms reuse observed transitions; the proposed learned model produces additional predicted one step transitions from real state-action seeds. Here we introduce GenQAS, a tensor network-guided RL framework that combines a fixed matrix product state warm-start with prioritized generative replay. A learned local transition model generates synthetic circuit transitions on demand and mixes them with real experience during Double Deep Q-Network updates. Under a random exploration analysis, near ground state circuits occupy a rapidly shrinking region of the accessible state space. We investigate whether real data anchored synthetic replay can improve the effective training signal in this regime. Across chemical Hamiltonian benchmarks from 6 to 12 qubits, GenQAS improves fixed-budget success probability and identifies compact circuits at competitive energy error. At 12 qubits, it improves final success probability by up to 7.0×7.0\times over passive replay. On a 15-qubit transverse field Ising model, GenQAS increases success probability from 12% to 21%. In a noisy 6-qubit BeH 2_{2} transfer experiment, generative replay reduces the steps to chemical accuracy by 92.7%. These results show that generative replay can mitigate sample starvation in quantum architecture search and support more resource efficient circuit discovery.

Keywords: Conditional generative model, Quantum architecture search, Replay buffer, Reinforcement learning, Tensor network

1 Introduction

The performance of near-term and early fault tolerant quantum algorithms are limited by qubit count, imperfect gate execution and hardware noise [1–3]. Gate-based quantum processors provide a leading platform for their implementation [4–10]. However, increasing the number of physical qubits alone does not guarantee practical utility, as achievable performance also depends on error rates, connectivity, control quality, and the reliably executable circuit depth [11, 12]. This issue is particularly important for variational quantum algorithms [13], in which a parameterized quantum circuit (PQC) U(θ,C)U(\boldsymbol{\theta}, \mathcal{C}), defined by a discrete architecture C\mathcal{C} and continuous parameters θ\boldsymbol{\theta}, prepares the state ∣ψ(θ,C)⟩=U(θ,C)∣0⟩⊗N|\psi(\boldsymbol{\theta}, \mathcal{C})\rangle = U(\boldsymbol{\theta}, \mathcal{C}) |0\rangle^{\otimes N}.

(a) Replay buffer is starved of good signal

Super-exponential sparsity of good circuits: As N grows, replay is starved of high-quality trajectories (Theorem 2.1 in main text):

ρgood(N)≤exp⁡(−c2N)\rho_{\text{good}}(N) \leq \exp(-c2^N)

(b) A replay buffer in typical RL-QAS training

Figure

Qubits (N)

Bad circuits

Good but not optimal circuits

High quality circuits

(c) GenQAS turns replay into active memory

Figure

DDQN update

Mixed mini-batch

Imagined replay

Hardware-efficiency frontier

Fig. 1: GenQAS converts passive replay into active experience generation. a, Under weakly informed exploration, high-quality circuit trajectories become increasingly sparse as the system size grows. b, Uniform and prioritized replay can only resample previously observed transitions, so the density of useful experience declines as the search space expands. c, GenQAS starts from an MPS-derived circuit, retains real transitions, learns a local transition model and generates synthetic transitions on the fly. Real and generated samples are mixed during Double-DQN updates, supporting the search for low-error circuits with fewer entangling gates.

The parameters are optimized by minimizing an objective such as C(θ,C)=⟨ψ(θ,C)∣H∣ψ(θ,C)⟩C(\boldsymbol{\theta}, \mathcal{C}) = \langle \psi(\boldsymbol{\theta}, \mathcal{C}) | H | \psi(\boldsymbol{\theta}, \mathcal{C}) \rangle utilizing powerful classical optimizers accessed through SciPy [14]. The structure of a PQC strongly influences the accuracy, trainability, and hardware cost of a VQAs. Two broad PQC design strategies are commonly used in literature. Problem-inspired ansätze encode prior knowledge of the target problem, for example by constructing parameterized circuits from Trotterized evolutions under terms of the problem Hamiltonian, as in the Hamiltonian variational ansatz [15], or from physically motivated excitation operators, as in unitary coupled-cluster [16] and adaptive VQE methods [17]. In contrast, hardware-efficient architectures consist of layers of native single- and two-qubit operations arranged to match device connectivity and minimize compilation overhead. The architectures are guided either by problem structure [18] or hardware constraints [19].

Although such fixed PQC architecture can be effective, they may be either insufficiently expressive to access the relevant region of Hilbert space and often stuck in the local minima. To address these limitations a third way was introduced through quantum architecture search (QAS) [20–22]. The core mechanism of QAS is to automatically constructing PQC architectures from a prescribed gate set, enabling the circuit structure to adapt to the target task and hardware constraints.

Reinforcement learning (RL) has emerged as a versatile framework for quantum technologies, including the adaptive control of quantum error correction, where an agent uses error-detection events to continuously adjust hardware control parameters during computation [23]. RL also provides a natural formulation for automated quantum circuit design and optimization. In the early fault tolerant setting, AlphaTensor-Quantum [24] formulates the optimization of Clifford+T circuits as a symmetric tensor-decomposition problem and uses RL to search for low-rank decompositions corresponding to circuits with reduced T-count. In VQAs, RL can instead be used for QAS, in which an agent sequentially constructs a parameterized quantum circuit by selecting gate types and their locations [22, 25–28].

This flexibility creates a rapidly expanding decision space. Let G1G_1 and G2G_2 denote the available single- and two-qubit gate families, respectively, and let ENE_N denote the set of hardware-allowed two-qubit couplings on an N-qubit device. The number of available actions at each circuit-construction step is

∣AN∣=∣G1∣N⏟1−qubit+∣G2∣∣EN∣⏟2−qubit+1,(1)|\mathcal{A}_{N}|=\underbrace{|\mathcal{G}_{1}|N}_{1-qubit}+\underbrace{|\mathcal{G}_{2}||\mathcal{E}_{N}|}_{2-qubit}+1, \tag{1}

where the final term denotes termination. For a fully connected device with undirected couplings, ∣EN∣=N(N−1)/2|\mathcal{E}_N| = N(N - 1)/2. Consequently, a construction process of maximum depth TT can encounter up to ∣AN∣T|\mathcal{A}_N|^T gate sequences, while the dimension of the underlying Hilbert space grows as 2N2^N. Evaluating each candidate architecture generally further requires continuous parameter optimization and repeated objective estimation using a quantum simulator or processor. RL-QAS must therefore learn from a limited number of costly interactions within a search space that grows combinatorially with circuit depth and rapidly with system size. For overviews of RL-based quantum circuit optimization and design, we refer the reader to Refs. [29, 30].

Recent methods mitigate different aspects of this scaling challenge. Curriculum-based RL-QAS adapts the difficulty of the search task during training [31], while training-free approaches use proxy metrics to prioritize candidate architectures before costly variational evaluation [32]. One-shot methods, such as QuantumNAS [33], reuse parameters across candidate architectures and incorporate hardware-aware objectives. These approaches reduce the cost of evaluating or prioritizing candidate circuits, but do not directly augment the transition data available to an RL agent during sequential architecture construction. TensorRL-QAS [34] addresses a complementary aspect of scalability through physically informed initialization. It uses a matrix product state (MPS), obtained with density matrix renormalization group calculations, to construct a problem-informed initial circuit that is subsequently refined by a double deep Q-network agent. The MPS warm start places the agent in a more relevant region of circuit space and reduces exploration of clearly unpromising architectures. However, after initialization, the agent still learns only from transitions explicitly collected through interactions with the environment. GenQAS addresses this remaining limitation by learning a generative transition model from real experience and using it to produce on-demand synthetic transitions for DDQN updates, thereby increasing the effective training signal without additional quantum-classical circuit evaluations.

Experience replay is commonly used to improve sample efficiency by reusing these interactions. Uniform replay samples stored transitions without regard to their learning value, whereas prioritized experience replay increases the sampling frequency of transitions associated with a larger temporal-difference error or another relevance signal [35, 36]. Prioritization can therefore make better use of a useful transition after it has been observed. Nevertheless, both approaches remain passive with respect to the set of experiences available for learning: they can change how frequently an observed transition is reused, but they cannot create informative experience that was never collected. As the circuit search space expands, useful trajectories constitute an increasingly small fraction of the agent's interaction history, and the learning signal becomes diluted by a much larger number of low-value alternatives. We refer to this decline in the density of informative experience as sample starvation.

Our theoretical analysis formalizes this limitation under the assumptions stated in the Results. For weakly informed exploration over sufficiently expressive circuit ensembles, we show that the measure of near ground state experience decreases exponentially with the dimension of the accessible Hilbert space. This statement characterizes the geometry of random exploration rather than assuming that every learned policy follows the Haar distribution. It nevertheless exposes an important limitation of passive replay during the early stages of search: reweighting previously collected transitions cannot alter the probability that informative transitions were encountered in the first place. One approach to mitigating this limitation is to augment, rather than only reorder, the transitions used in value function updates.

Generative replay provides such a mechanism by learning a model of the local transition dynamics from real interactions [37–41]. Quantum circuit construction is particularly suitable for this approach because the current circuit and the selected gate constrain the subsequent circuit state, the associated reward and whether the construction process terminates. A learned transition model can therefore generate additional training samples around observed state-action pairs without requiring a new quantum-classical evaluation for every generated transition. The main challenge is model bias: synthetic transitions are beneficial only when they remain sufficiently consistent with the real environment to support stable off-policy learning. Generative replay must consequently remain anchored in real experience and control how strongly generated samples influence policy optimization.

Here we introduce GenQAS, a tensor network-guided reinforcement learning framework that augments passive experience replay with on-demand synthetic transitions for QAS (Fig. 1). GenQAS combines the fixed matrix product state (MPS) initialization and Double-DQN search backbone of TensorRL-QAS with a learned local transition model. Given a circuit state and gate action, the model predicts the resulting circuit state, reward and termination probability. These predictions define synthetic one-step transitions that are generated from real state-action seeds and mixed with real transitions during value-function updates.

The MPS initialization and generative replay provide complementary inductive biases. The MPS-derived circuit places the agent in a physically meaningful low-energy region of circuit space, whereas generative replay increases the amount of training signal extracted from subsequent interactions. Crucially, synthetic transitions are generated on demand and are not stored as replacements for real experience. The replay buffer therefore remains grounded in environment interactions, while the generation ratio GrG_{r} controls the contribution of synthetic experience to each update. This design seeks to improve sample efficiency without requiring additional quantum-classical parameter optimization calls.

Under the random exploration and Hamiltonian assumptions considered here, we show that near ground state circuit trajectories become rapidly sparse with increasing system size. This creates a regime in which resampling observed transitions alone does not increase the support of the observed transition distribution. Within this analytical setting, MPS-seeded generative replay improves the effective density of informative training samples relative to uniform and prioritized replay. The benefit depends on maintaining sufficient agreement between the learned transition model and the underlying QAS environment, thereby motivating the use of real transitions as the persistent replay distribution.

We evaluate GenQAS under matched training budgets on 6-qubit BeH₂, 8-, 10- and 12-qubit H₂O, and a 15-qubit transverse-field Ising model. At 12 qubits, GenQAS increases final success probability from 12% for the strongest passive baseline to 77%, corresponding to a 7.0× improvement. At 15 qubits, it improves the best success probability from 15% with prioritized replay to 21%, a 40% relative increase. Across the tested systems, GenQAS also identifies circuits with competitive energy errors, reduced CNOT counts and circuit depth. In a noisy 6-qubit BeH₂ experiment, transfer of the generative replay mechanism reduces the number of search steps required to obtain the first chemical-accuracy solution from 9053 to 660.

We further evaluate GenQAS on a 4-qubit Clifford-synthesis task, in which the agent must construct a circuit matching a target Clifford operation without variational parameter optimization. In this fully discrete setting, GenQAS exceeds the performance of the passive RL baseline, and the generation frequency provides an additional control over the trade-off between synthetic experience and stable off-policy learning. Together, these results show that model-augmented replay can mitigate sample starvation in RL-QAS and can improve circuit discovery when informative environment interactions are sparse and expensive.

References (64)