Resource-Efficient Quantum Reinforcement Learning on NISQ Devices with Dynamic-Circuit Qubit Reuse and Grover-Based Trajectory Search
Authors: Thet Htar Su, Shaswot Shresthamali, Masaaki Kondo
Organizations: Graduate School of Science and Technology, Keio University, Yokohama, Kanagawa 223-8522, Japan · Graduate School of Information Science and Electrical Engineering, Kyushu University, Nishi-ku, Fukuoka 819-0395, Japan · RIKEN Center for Computational Science, Kobe, Hyogo 650-0047, Japan
A resource-efficient quantum reinforcement learning framework for finite-horizon quantum Markov decision processes is presented, employing dynamic-circuit qubit reuse to reduce the interaction-workspace requirements of multi-step execution. The framework integrates quantum state-transition and reward encoding, dynamic-circuit execution, quantum return evaluation, and Grover-based trajectory search. Its central contribution is a dynamic execution model in which a fixed interaction workspace is reused across sequential agent-environment interactions through mid-circuit measurement, qubit reset, and next-state propagation. For the considered benchmark, this approach reduces the interaction-workspace requirement from 7T qubits under a static circuit to a constant seven qubits, independent of the interaction horizon T. This corresponds to a 66% reduction for the three-step benchmark and transforms the interaction-workspace complexity from O(T) to O(1). Trajectory returns are evaluated using reversible quantum arithmetic, and Grover's algorithm identifies the optimal trajectories, so that return evaluation and trajectory search are performed within a unified quantum-native pipeline. Ideal simulations demonstrate that the dynamic implementation preserves the valid trajectory structure of the static formulation, with quantitative comparisons assessing the agreement between their trajectory distributions. Finally, execution on an IBM Heron-class processor demonstrates the feasibility of the proposed dynamic-circuit architecture on noisy intermediate-scale quantum hardware.
Figures & tables
Register name
Type
Width (qubits/bits)
Stored information
Reused across time steps
qState
Quantum
ns
Encodes the current environment state
✓
qAction
Quantum
na
Encodes the candidate action; prepared in uniform superposition at each interaction step
✓
qNextState
Quantum
ns
Encodes the next state generated by the environment transition
✓
qReward
Quantum
nr
Encodes the reward generated at the current interaction step
✓
qAnci[ t ]
Quantum
nr per retained step
Retains reward information from a preceding interaction step for subsequent return calculation and Grover-based trajectory search
×
qReturn
Quantum
ng
Encodes the trajectory return constructed from the retained earlier rewards and the final-step reward
×
Table 1: Quantum registers and classical storage used in the proposed QMDP implementation.
Figure 1: Graphical representation of a classical MDP with four states ( s0 – s3 ), two actions (a0,a1) , and rewards ( r0 – r3 ). Arrows denote state transitions with probabilities P(s′∣s,a) . Transitions under action a0 are shown in blue, and those under action a1 are shown in orange.
Figure 2: Quantum circuit for the benchmark MDP encoding states, actions, stochastic transitions, and rewards into quantum registers. Controlled Ry(θ) rotations encode the transition probabilities P(s′∣s,a) in the next-state register, while CNOT gates encode rewards conditioned on the next states.
Figure 3: Reusable QMDP interaction workspace across three agent–environment interaction steps. Each colored block represents an interaction step (t=0,1,2) . Mid-circuit measurement and reset enable reuse of the qState , qAction , qNextState , and qReward registers across successive steps. After each intermediate measurement, the next-state register remains in its post-measurement computational-basis state and is used through CNOT operations to initialize the state register for the subsequent interaction. This qubit-reuse procedure avoids replication of the interaction registers across time steps and maintains a fixed reusable interaction-workspace width.
Figure 4: Visualization of state-visitation patterns across three time steps for quantum trajectories generated by the dynamic QMDP circuit in an ideal noise-free simulation. Columns represent individual trajectories, rows denote interaction steps, and colors indicate visited states. Trajectories are grouped by their total returns, with red dashed lines indicating group boundaries and binary strings above the panel denoting the corresponding return values.
Aspect
Static QMDP (Ref. Su et al. (2025) )
Dynamic QMDP (This study)
Interaction horizon ( T )
3
3
Interaction-register qubits
21(7×T)
7 (reused across interaction steps)
Interaction-workspace scaling with T
Linear in T
Constant: 2ns+na+nr
Additional quantum registers
A 4-qubit return register
Two 2-qubit retained reward registers and a 4-qubit return register
Total quantum width
25 qubits
15 qubits
Quantum trajectory set
Table 5
Same trajectory set in ideal simulation
Table 2: Comparison between static and dynamic QMDP implementations under identical MDP settings ( T=3 ).
Figure 5: Filtered trajectory distributions obtained from five repeated hardware experiments of the three-step dynamic QMDP on the 133-qubit IBM Heron-class ibm_torino processor. Each bar corresponds to one of the 170 reference trajectories obtained from the ideal three-step QMDP simulation, with stacked colors indicating the retained counts from the first through fifth hardware experiments. The displayed counts include only hardware outcomes matching this reference trajectory set and therefore do not represent the complete raw hardware measurement results.
Table 8
Figure 6: Trajectory distribution obtained from the three-step dynamic QMDP before applying Grover-based trajectory search in the noise-free simulation. The maximum-return trajectories T-151 and T-143, which are targeted for amplification by Grover’s search, are highlighted in orange.
Figure 7: Quantum trajectory distribution after Grover’s search. The horizontal and vertical axes represent trajectory identifiers and measurement counts, respectively. Noise-free simulation and IBM ibm_torino hardware results are shown in green and yellow, respectively. T-151 and T-143 are the maximum-return trajectories targeted by the Grover search. Only outcomes matching the 170 reference trajectories from the ideal three-step dynamic QMDP simulation are displayed; thus, the counts do not represent the complete raw outputs.
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 8: Static QMDP circuit implementation of agent–environment interactions across three time steps ( t=0,1,2 ). Each colored block corresponds to a single interaction step, with separate quantum registers allocated for the state ( qState ), action ( qAction ), next state ( qNextState ), and reward ( qReward ). CNOT gates propagate the next-state information between successive interaction blocks. Unlike the proposed dynamic-circuit implementation, the static formulation allocates distinct interaction registers at each time step, resulting in linear growth of the interaction-workspace width with the interaction horizon Su et al. (2025) .
Trajectory no.
Quantum trajectory
Return : 0001
T-1
‘0001000000101010000000001’
T-2
‘0001000000101010000000100’
T-3
‘0001000000101011000000001’
T-4
‘0001000000101011000000010’
T-5
‘0001000010000000010101100’
Appendix
Table 5: Enumeration of the 170 quantum trajectories and corresponding trajectory indices obtained from the static QMDP implementation over three interaction steps. Each trajectory represents a state–action–next-state–reward sequence and is grouped according to its return. Detailed examples of the timestep-wise decomposition and qubit representation are provided in Tables 3 and 4 , respectively.
Quantum reinforcement learning studies how quantum circuits and algorithms can improve learning, planning, and control in classical or quantum environments.
Quantum reinforcement learning (QRL) is a promising approach to learn effective decision strategies across several applications with stochastic environments. Instead of directly modeling the random variables that govern these environments, existing QRL architectures indirectly approximate environment behavior by estimating expected outcomes, which limits their expressive power and adaptive potential. Overcoming such challenges requires a novel QRL approach that exploits the distributional nature of quantum computers to directly model environment random variables as quantum state distributions. Hence, in this paper, a novel framework dubbed quantum-native reinforcement learning (QnRL) is proposed. QnRL is a distributional RL framework that learns conditional distributions naturally in Hilbert space via superimposed and entangled quantum states. Thus, QnRL can directly model the behavior of stochastic learning environments via the natural properties of quantum systems. QnRL accomplishes this via a novel, proposed quantum amplitude kickback (QuAK) algorithm that enables comparing the n-th power of the m-th moment of multiple superimposed distributions. It is theoretically proven that a conditional action policy distribution is distilled from the moments of a quantum generative model entirely within Hilbert space via QuAK, and optimized via QnRL. This complex distribution composition is also shown to provide extra dimensions for expressing environment correlations that are unknown to purely classical and classically-sampled quantum distributional models. Experimental results across diverse environments show that QnRL achieves up to 82.9% higher evaluation scores, with up to 94.3% fewer parameters on average, more accurately estimates the expected return for unseen observations, and better adapts to varying stochastic conditions compared to the baseline.
Alexander DeRieux, Walid Saad
Bradley Department of Electrical and Computer Engineering, Virginia Tech Institute for Advanced Computing, Alexandria, VA 22305 USA
Quantum Reinforcement Learning (QRL) integrates reinforcement learning with parameterized quantum circuits and is a promising approach to combinatorial optimization. On Noisy Intermediate-Scale Quantum (NISQ) devices, however, decoherence, gate imperfections, and measurement errors reduce policy quality and make learning less reliable. Existing error mitigation techniques are generally applied as fixed corrections that do not adapt to changing noise conditions or to the evolving state of training. This work presents Adaptive Policy-Guided Error Mitigation (APGEM) as a context-aware orchestration layer of the hybrid quantum-classical training loop that dynamically selects the most suitable mitigation strategy during QRL training. APGEM evaluates Zero-Noise Extrapolation (ZNE), Probabilistic Error Cancellation (PEC), Clifford Data Regression (CDR), and Readout Error Mitigation (REM) using policy-level indicators, including quantum-state fidelity, policy entropy, cumulative reward, and approximation ratio, and integrates the selected strategy directly into the reinforcement learning loop. The framework is evaluated on the Capacitated Vehicle Routing Problem (CVRP), a representative NP-hard problem in urban logistics, under a range of NISQ noise models and noise levels. APGEM consistently outperforms conventional static mitigation methods, reaches approximately 94% of the utility of an oracle strategy, maintains higher quantum-state fidelity as noise increases, and produces more stable learning behaviour throughout training. Ablation studies show that the framework learns context-aware mitigation policies that adapt to different noise environments and circuit execution conditions. These findings demonstrate that integrating adaptive error mitigation into the learning process substantially improves the robustness and reliability of QRL on NISQ hardware.
Bisma Majid, Shabir Ahmed Sofi, Mir Mohammad Yousuf
Department of Information Technology, National Institute of Technology Srinagar, Hazratbal, Srinagar, 190006, Jammu and Kashmir, India
Quantum reinforcement learning (QRL) has emerged as a promising approach for controlling quantum systems and accelerating learning tasks with quantum resources. However, most existing QRL formulations still retain a classical reinforcement learning interface: states and actions are often encoded in computational bases and rewards are extracted through measurements. This interface is restrictive for genuinely quantum environments: choosing a measurement can discard entanglement information, while repeated intermediate measurements collapse the evolving state and require costly re-preparation. This motivates a fully QRL framework in which the agent, environment, rewards, and return accumulation are all quantum. In this paper, we take a step toward this goal and introduce a new QRL framework in which both the policy and the environment are modeled by conditional quantum channels. We then propose a quantum policy-gradient algorithm for parameterized conditional quantum channels with a trainable control basis. We also derive finite- and infinite-horizon gradient estimators using a new parameter-shift rule. This rule is needed because policy parameters are shared across repeated interaction blocks and the infinite-horizon objective is not a finite circuit; rather than shifting every occurrence and evaluating the whole trajectory, our estimator shifts only one sampled policy block. Sampling this block from a geometric distribution yields an unbiased gradient estimator under bounded rewards. Finally, we establish convergence of the resulting stochastic gradient-ascent procedure to stationary points under standard smoothness and step-size assumptions.