Next Article in Journal
Analysis of the Delayed Instability Mechanism of Heterogeneous Fractured Rock Slopes Under Rainfall Infiltration
Previous Article in Journal
Generalized Kinematic Modeling of a Flat Pressing Mechanism with Adjustable Geometric Parameterization for Cheese Production
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quantum Deep Q-Network for Intelligent Packet Routing in 6G Heterogeneous Wireless Networks

School of Information and Navigation, Air Force Engineering University, Xi’an 710038, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2026, 16(12), 6096; https://doi.org/10.3390/app16126096
Submission received: 11 May 2026 / Revised: 7 June 2026 / Accepted: 10 June 2026 / Published: 16 June 2026

Abstract

Intelligent packet routing in sixth-generation (6G) heterogeneous wireless networks must contend with stochastic link failures, heterogeneous delay profiles, and the severe memory constraints of edge nodes. We propose a quantum deep Q-network (Q-DQN) that replaces the multi-layer perceptron in a standard DQN agent with a six-qubit variational quantum circuit (VQC) employing ring-topology entanglement and angle embedding. The total trainable parameter count follows the closed-form expression | ϕ | = 12 L + 7 n , growing at only seven parameters per additional network node. On a 10-node heterogeneous topology with stochastic link failures, Q-DQN achieves an average end-to-end delay of 54.29 ± 1.72 ms with only 106 parameters, a 49.6× reduction relative to the MLP-based DQN baseline (5258 parameters, 52.89 ± 2.67 ms). A three-seed scalability evaluation across n { 6 , 8 , 10 , 12 } nodes shows that under a limited 200-episode training budget DQN converges more consistently, while Q-DQN matches DQN performance under full 500-episode training at a fraction of the parameter cost. Ablation experiments confirm that local-topology entanglement substantially outperforms full-connection alternatives. These results indicate that VQC-based routing agents can match classical counterparts at a fraction of the parameter cost, providing a path toward ultra-lightweight intelligent routing in 6G edge deployments.

1. Introduction

The design of routing protocols for sixth-generation (6G) wireless systems must contend with challenges that traditional approaches handle only imperfectly. Heterogeneous access technologies (including millimetre-wave backhaul, sub-6 GHz mesh links, and free-space optical segments) produce highly variable and non-stationary delay distributions [1,2]. Link failures due to mobility, interference bursts, and hardware faults occur at rates that make pre-computed routing tables stale within seconds [3,4]. At the same time, the edge nodes responsible for forwarding decisions are often microcontroller-class devices with kilobytes, not gigabytes, of working memory [5]. This combination of dynamic environments and hard resource constraints leaves a gap that neither classical shortest-path algorithms nor large neural network-based policies can fully address.
Dijkstra’s algorithm [6] and its successors deliver near-optimal delay when the complete link-state information is available. In practice, however, gathering and distributing global topology data in a large heterogeneous network introduces communication overhead that itself degrades performance; these centralised algorithms also cannot react to transient failures faster than the link-state update period. Reinforcement learning (RL)-based routing, pioneered by work such as [7,8], addresses both shortcomings by learning decentralised routing policies from local observations, without requiring global topology knowledge. Deep Q-networks (DQN) [9] extend Q-learning [10] with a non-linear function approximator, enabling generalisation to continuous or large state spaces. A growing body of work has demonstrated the effectiveness of DQN-based routing in 5G and 6G-style networks [11,12,13,14], and the survey [5] provides a comprehensive treatment of model-driven versus data-driven routing paradigms.
Despite these advances, the parameter footprint of deep neural networks remains a barrier to deployment on edge nodes. A two-hidden-layer MLP acting as a DQN policy for a 10-node network already requires on the order of 5000 parameters; scaling to 100-node topologies pushes this to hundreds of thousands, far exceeding the flash memory available on typical embedded forwarding chips. Pruning and quantisation can reduce this overhead, but they typically degrade policy quality and add engineering complexity.
Variational quantum circuits (VQC) offer a structurally different path to compact function approximation. The quantum state space of n q qubits scales as 2 n q dimensions, providing rich representational capacity with a number of trainable parameters that is linear in n q and the circuit depth L [15,16,17]. Recent theoretical work has established that VQCs can represent function classes inaccessible to polynomial-size classical circuits under standard complexity assumptions [18,19,20], and early empirical studies have shown that VQC-based agents can match classical DQN performance on simple control tasks with one to two orders of magnitude fewer parameters [21,22,23]. However, the application of VQC-based reinforcement learning to network routing, a domain with discrete, high-dimensional action spaces and non-stationary environments, has received limited attention.
This paper introduces a Quantum Deep Q-Network (Q-DQN) designed specifically for intelligent routing in 6G heterogeneous networks. The key idea is to replace the MLP inside a DQN agent with an n q = 6 qubit VQC that uses angle embedding for state encoding, ring-topology CNOT gates for entanglement, and a classical linear layer for action-space readout. The resulting architecture contains only 12 L + 7 n parameters for an n-node network with L circuit layers, compared with thousands for a classical MLP. We train and evaluate the agent on a 10-node heterogeneous topology subject to random link failures and recoveries, comparing against a DQN baseline and Dijkstra’s algorithm, which serves as a lower bound on achievable delay under perfect global link-state knowledge. Ablation studies examine entanglement topology, circuit depth, network scale, and generalisation to unseen topologies.
The main contributions of this work are summarised as follows.
  • We propose Q-DQN, a VQC-based routing agent whose total parameter count follows the closed-form expression | ϕ | = 12 L + 7 n , growing at only seven parameters per additional network node. Existing DRL routing methods [11,12,13] rely on MLP-based policies with thousands of parameters (5258 for the DQN baseline in our setting) and provide no analytical parameter bound; Q-DQN reduces the parameter count by 49.6× while achieving a routing delay within 1.40 ms of the MLP baseline. The quantum routing agents of Wu et al. [24] and Li et al. [25] adopt heuristic circuit designs without systematic entanglement topology analysis; by contrast, we conduct a controlled topology ablation showing that local-topology entanglement (ring and linear) substantially outperforms full-connection alternatives (56.59–57.10 ms vs. 84.44 ms), and we provide a theoretical account of why ring entanglement mitigates barren-plateau gradient suppression [26] via closed-loop connectivity in routing circuits.
  • Through three-seed experiments across four network sizes ( n { 6 , 8 , 10 , 12 } ), we provide multi-seed scalability evidence that Q-DQN maintains competitive routing performance under the full 500-episode training budget at 44.9×–64.1× fewer parameters across all tested scales. Under a shorter 200-episode budget, Q-DQN shows higher variance than DQN (e.g., 83.44 ± 38.18 ms vs. 46.17 ± 5.52 ms at n = 10), reflecting the longer warm-up required by the variational quantum circuit; under the full budget, Q-DQN achieves 54.29 ± 1.72 ms (within 1.40 ms of DQN) at 49.6× fewer parameters. Prior quantum RL studies of Lockwood and Si [22], Chen et al. [21], and Skolik et al. [23] evaluate only small fixed-size toy environments (CartPole, MountainCar) and do not investigate scale dependence; to the best of our knowledge, this work is one of the few attempts to examine how VQC-based routing performance varies with network size. The parameter-efficiency advantage (49.6× reduction) is the primary demonstrated contribution of Q-DQN over classical baselines at comparable routing delay.
  • We conduct a systematic empirical study of the proposed routing agent covering link failure rate sweeps ( p f [ 0.005 , 0.08 ] ), recovery rate sensitivity ( p r [ 0.05 , 0.30 ] ), quantum gate noise ( σ noise [ 0 , 0.20 ] ), circuit depth ablation ( L { 1 , 2 , 3 , 4 } ), entanglement topology ablation, and topology generalisation across four unseen graph seeds. The robustness evaluations in the concurrent works [24,27] report results on at most two failure-probability settings and a single fixed topology; our evaluation provides statistically grounded conclusions (three independent evaluation runs, mean ± σ ) across the full operating envelope relevant to 6G deployments.
The remainder of this paper is organised as follows. Section 2 surveys related work. Section 3 introduces the network model and MDP formulation. Section 4 details the Q-DQN architecture and training procedure. Section 5 presents and analyses the experimental results. Section 7 concludes and outlines future directions.

2. Related Work

2.1. Deep Reinforcement Learning for Network Routing

The use of DRL for routing dates to early demonstrations of Q-learning applied to packet networks. Valadarsky et al. [7] showed that a neural Q-function could adapt routes in response to changing traffic matrices without requiring explicit topology knowledge. Xu et al. [8] subsequently demonstrated that experience-driven DRL surpasses traditional OSPF-based routing in terms of throughput and delay under dynamic traffic conditions. More recent work has focused on heterogeneous 5G/6G settings: Nguyen et al. [11] provide a comprehensive survey of DRL routing methods for 5G-and-beyond networks, while Lin et al. [12] propose a multi-objective DRL framework specifically tailored to 6G heterogeneous topologies. Wang et al. [13] extend this line of work by addressing link-failure dynamics explicitly through an adaptive DRL policy trained with simulated failure scenarios, and Fu et al. [14] study resilient routing in wireless mesh networks under failure-injection stress tests. Despite the demonstrated effectiveness of these approaches, all of them rely on classical MLPs with thousands of parameters, leaving the on-device deployment challenge unaddressed.

2.2. Variational Quantum Circuits and Quantum ML

Variational quantum circuits [15] are parameterised quantum operations trainable via classical optimisers through gradient estimation, either analytically via the parameter-shift rule or via finite differences. Mitarai et al. [28] established the theoretical foundations of quantum circuit learning and showed that VQCs can approximate arbitrary functions given sufficient depth and width. The data re-uploading technique of Pérez-Salinas et al. [29] provides a practical mechanism for encoding high-dimensional classical data into low-qubit circuits by repeated angle embedding across layers. Schuld et al. [30] analysed the effect of different encoding strategies on expressibility, providing guidelines that inform our angle embedding design. The elementary gates employed in each variational block ( R y , R z , and CNOT) form a universal gate set for one- and two-qubit quantum operations [31,32]: any unitary transformation on n q qubits can be approximated to arbitrary precision by a finite composition of these operations, which underpins the theoretical expressibility of the proposed VQC ansatz. A known challenge in VQC training is the barren plateau phenomenon [26], where gradients vanish exponentially with qubit count under random initialisation; ring entanglement with localised circuit structure is known to mitigate this problem [15]. Theoretical limits on VQC expressibility are studied in [18,19,20].

2.3. Quantum Reinforcement Learning

The application of quantum circuits to reinforcement learning was introduced by Lockwood and Si [22] and by Chen et al. [21], who independently demonstrated that VQC-based DQN agents can match classical agents on CartPole and similar benchmarks with dramatically fewer parameters. Skolik et al. [23] extended this to the Gym suite and provided a theoretical analysis of the expressibility of quantum policies. Jerbi et al. [33] further showed that VQC policies can surpass classical ones on certain structured tasks, suggesting a genuine computational advantage rather than a parameter-count coincidence. From the network domain, Wu et al. [24] applied Q-DQN to 6G adaptive control and reported parameter savings consistent with ours. Kwak et al. [34] provide an accessible comparison of quantum and classical RL, and Kim et al. [35] propose a hybrid quantum-classical DRL for heterogeneous resource allocation. Surveys of VQC applications to wireless networking [36] and quantum routing specifically [25,27] confirm that this area is attracting growing attention. Our work advances this literature by providing a systematic ablation and robustness evaluation of a VQC-based routing agent in a dynamic 6G-inspired routing simulation, and by offering preliminary evidence of scale-dependent parameter efficiency under limited training budgets.

3. System Model and Problem Formulation

3.1. Network Topology and Link Model

We consider a heterogeneous wireless network modelled as a directed graph G = ( V , E ) , where V is the set of n = | V | nodes and E is the set of directed links. The primary evaluation topology has n = 10 nodes and 20 directed links (10 bidirectional physical connections, each represented as a pair of directed edges in E ). Each link ( i , j ) E carries a propagation delay δ i j drawn from a uniform distribution over [ 1 , 10 ] ms at topology initialisation, reflecting the heterogeneous delay characteristics of mixed millimetre-wave, sub-6 GHz, and wired backhaul segments in a 6G deployment.
Link availability follows a two-state Markov model. At each discrete time step, the binary state of link ( i , j ) evolves as
l i j ( t + 1 ) = 0 with prob . p f , if l i j ( t ) = 1 , 1 with prob . p r , if l i j ( t ) = 0 ,
where failures and recoveries are independent across links and time steps. The stationary probability that a link is active is
l ¯ = p r p f + p r ,
which evaluates to l ¯ 0.833 under the base configuration p f = 0.02 , p r = 0.10 . The expected number of concurrently active links is therefore l ¯ · | E | 16.7 out of 20, which is representative of the transient blockage dynamics of millimetre-wave channels [2].

3.2. MDP Formulation

The routing problem is cast as a Markov Decision Process (MDP) M = ( S , A , P , R , γ ) . The agent’s observation at step t is a six-dimensional feature vector
s t = [ f 1 , f 2 , f 3 , f 4 , f 5 , f 6 ] [ 1 , 1 ] 6 ,
computed from locally observable quantities at the current node. The six features are: f 1 , the minimum propagation delay among active outgoing links, normalised by the maximum link delay; f 2 , the minimum packet-loss rate among active outgoing links, normalised by the maximum loss rate; f 3 , the maximum available bandwidth among active outgoing links, normalised by the maximum bandwidth; f 4 , the absolute difference between the current node index and the destination node index, normalised by n, serving as a proximity proxy; f 5 , the fraction of the current node’s links that are presently active (link-availability ratio); and f 6 , the current step index normalised by the episode length, capturing time pressure. All features lie in [ 0 , 1 ] and are linearly scaled to [ 1 , 1 ] before use, matching the Bloch-sphere convention of the angle embedding. The six-dimensional state is directly supplied to both the Q-DQN and DQN agents, requiring no additional dimensionality reduction.
The action a t A = { 0 , 1 , , n 1 } selects the next-hop node from the current position. The valid action set A valid ( s t ) A contains only those next-hop nodes reachable through currently active links; invalid actions are suppressed via the Q-value masking in Equation (6), which applies identically during both training and evaluation.
The transition P ( s t + 1 s t , a t ) is governed by the packet movement along the selected hop and the stochastic link-state updates. Both are assumed Markov: the link-state update follows Equation (1), and the next state s t + 1 is recomputed from the updated link attributes at the new current node.
The per-step reward combines a delay penalty, a packet-loss penalty, and a completion bonus:
r t = B δ a t δ max ρ a t ρ max if a t reaches destination , δ a t δ max λ ρ a t ρ max if valid hop , not yet at destination ,
where δ a t [ 1 , 10 ] ms is the link delay, ρ a t [ 0.01 , 0.10 ] is the link packet-loss rate, δ max = 10 ms, ρ max = 0.10 , B = 10 is the completion bonus, and λ = 0.5 down-weights the loss penalty on intermediate hops. Invalid actions are suppressed by the Q-value masking (Equation (6)). The primary evaluation metric, average end-to-end delay, is the sum of per-hop delays t δ a t over each episode, computed separately from the training reward. The agent maximises the expected discounted return G t = k = 0 γ k r t + k with discount factor γ = 0.95 .
The optimal Q-function Q * : S × A R satisfies the Bellman optimality equation:
Q * ( s , a ) = E r ( s , a ) + γ max a Q * ( s , a ) | s , a ,
where the expectation is taken over the stochastic transition P ( s s , a ) induced by Equation (1). The optimal policy is recovered by π * ( s ) = arg max a Q * ( s , a ) . Because the Q-function is defined over a continuous state space, we approximate Q * by the VQC-based function approximator Q ^ ( s , a ; ϕ ) described in Section 4.
To prevent the agent from selecting links that are currently failed, we apply an availability mask m t { 0 , 1 } n , where m t ( a ) = l s a ( t ) for the link from the current node s to candidate next-hop a. The masked Q-values used for action selection are
Q ˜ ( s t , a ; ϕ ) = Q ^ ( s t , a ; ϕ ) M 1 m t ( a ) ,
where M = 10 9 is a large constant that effectively sets Q ˜ for unavailable actions, ensuring they are never selected greedily.
Dijkstra’s algorithm [6] is computed at each episode using the full, instantaneous link-state to provide a lower bound on achievable end-to-end delay, assuming perfect global link-state information is available.

3.3. Performance Metrics

We evaluate all agents on three primary metrics: (i) average end-to-end delay(ms), measured over 80 evaluation episodes after training; (ii) TD loss, measuring the mean Bellman residual over 80 test episodes after training; and (iii) trainable parameter count, which proxies for on-device memory cost. Secondary metrics include delay variance and per-episode reward convergence curves.

4. Proposed Quantum Deep Q-Network

4.1. Architecture

The Q-DQN agent maintains a quantum function approximator Q ^ ( s , a ; ϕ ) that estimates the expected discounted return for taking action a in state s , given trainable parameters ϕ (see Table 1 for a complete breakdown of parameter counts across configurations). The agent selects actions ε -greedily:
a t = random A valid ( s t ) with prob . ε t , arg max a Q ˜ ( s t , a ; ϕ ) otherwise ,
The overall Q-DQN framework is illustrated in Figure 1, which decomposes the proposed system into four sequential stages.
As shown in Figure 1, the pipeline proceeds as follows. Stage 1 (dynamic network and MDP) models the heterogeneous 10-node topology as a directed graph subject to stochastic two-state Markov link failures; at each step the agent observes a six-dimensional local state s t = [ f 1 , , f 6 ] and selects a next-hop from the failure-aware valid action set A valid , with Dijkstra’s algorithm retained solely as a global-state lower bound. Stage 2 (variational quantum Q-function approximator) encodes the state via six-qubit angle embedding U ( s t ) = i = 1 6 R y ( π s i norm ) H 6 , processes it through L variational layers that each apply trainable R y / R z rotations interleaved with a parameter-free ring-CNOT entangler, and maps the resulting Pauli-Z measurement vector to per-action Q-values via a lightweight classical readout Q ^ ( s t ; ϕ ) = W out m + b out , yielding a total of | ϕ | = 12 L + 7 n = 106 trainable parameters for n = 10, L = 3. Stage 3 (masked TD learning) suppresses failed-link actions through a large-constant Q-value mask Q ˜ ( s t , a ) = Q ^ ( s t , a ) M ( 1 m t ( a ) ) , computes TD targets with a periodically frozen target network, and minimises the Huber loss L ( ϕ ) = E [ l H ( y t Q ^ t ) ] via Adam, with VQC rotation gradients obtained exactly by the parameter-shift rule ϕ k O = 1 2 ( O + O ) . Stage 4 (routing policy) executes the greedy policy π t = arg max a Q ˜ t ( a ) under live failure conditions, achieving 54.29 ± 1.72 ms end-to-end delay with 49.6× fewer parameters than the DQN baseline. The bottom row of the figure summarises the four key theoretical anchors: the closed-form parameter-count expression | ϕ | = 12 L + 7 n | θ MLP | , the failure-aware action space A valid ( s t ) , the quantum feature map Q : [ 1 , 1 ] 6 R n , and the Pauli-Z measurement output Z i [ 1 , 1 ] feeding the classical readout. The architecture of the quantum function approximator is described in detail below.

4.2. VQC Architecture

4.2.1. State Encoding via Angle Embedding

The state s t R 6 is a fixed-length vector of six engineered features derived directly from the network observation at time t: (1) minimum neighbour link delay normalised by δ max ; (2) minimum link loss rate normalised by ρ max ; (3) maximum link bandwidth normalised by b max ; (4) absolute node-index difference to destination, normalised by n; (5) fraction of available outgoing links; and (6) time-step progress t / T max . All six features are linearly mapped to [ 1 , 1 ] before embedding. The 6-dimensional vector is encoded into an n q = 6 qubit register without introducing any trainable parameters. Each qubit i is first prepared in the | + state by a Hadamard gate H and then rotated by the i-th normalised feature:
U ( s t ) = i = 1 n q R y ( s ˜ i ) · H n q , s ˜ i = π · s i ( norm ) [ 0 , π ] ,
where s i ( norm ) = ( s i + 1 ) / 2 [ 0 , 1 ] (since s i [ 1 , 1 ] ) and R y ( θ ) = e i θ Y / 2 is the single-qubit rotation about the y-axis with Y the Pauli-Y operator. Explicitly,
R y ( θ ) = cos ( θ / 2 ) sin ( θ / 2 ) sin ( θ / 2 ) cos ( θ / 2 ) .
The resulting encoded state is | ψ enc = U ( s t ) | 0 n q , a product state whose Bloch angles carry the network observation. Classical MLP inputs pass raw features linearly to the first hidden layer; angle embedding instead maps each feature to a point on the Bloch sphere, enabling the subsequent quantum gates to exploit interference between features encoded in different qubits, a mechanism with no direct classical analogue.

4.2.2. Variational Layers with Ring Entanglement

The circuit contains L identical variational blocks. Each block l applies, in order: (i) single-qubit R y rotations with trainable angles { ϕ l , i } i = 1 n q ; (ii) single-qubit R z rotations with trainable angles { φ l , i } i = 1 n q ; and (iii) a ring of parameter-free CNOT gates, where qubit i is the control and qubit ( i mod n q ) + 1 is the target. The ring entangler is
CNOT ring = i = 1 n q CNOT i , ( i mod n q ) + 1 ,
and the full l-th block is
W l ( ϕ l , φ l ) = CNOT ring · i = 1 n q R z ( φ l , i ) · i = 1 n q R y ( ϕ l , i ) ,
contributing exactly 2 n q = 12 trainable rotation parameters per layer. The choice of ring entanglement is motivated by its empirically favourable gradient landscape. Full-connection entanglement (all-to-all CNOT) introduces n q ( n q 1 ) / 2 = 15 CNOT gates per layer and causes gradient suppression akin to the barren-plateau phenomenon [26]; the ring topology instead generates local quantum correlations that preserve gradient magnitude during training [15].

4.2.3. Complete Circuit State and Q-Value Estimation

The output quantum state after all L blocks is
| Ψ ( s t ; ϕ ) = W L ( ϕ L , φ L ) W 1 ( ϕ 1 , φ 1 ) U ( s t ) | 0 n q .
The expectation value of the Pauli-Z observable on qubit i is obtained as
m i ( s t ; ϕ ) = Ψ | I ( i 1 ) Z I ( n q i ) | Ψ [ 1 , 1 ] ,
yielding the measurement vector m = [ m 1 , , m n q ] . A classical linear readout maps m to Q-values:
Q ^ ( s t ; ϕ ) = W out m ( s t ; ϕ ) + b out ,
where W out R n × n q and b out R n together contribute n ( n q + 1 ) = 7 n trainable parameters. Value-network architectures in prior quantum RL work [21,23] use a separate measurement per action and thus scale the circuit width with the action-space size. Our readout design avoids this by keeping the quantum circuit fixed at n q = 6 qubits; the action dimensionality n is absorbed entirely by the cheap classical linear layer, so the circuit depth, not the qubit count, is the primary complexity knob.

4.2.4. Parameter Count and Comparison with Classical MLP

Combining the VQC rotations and the readout layer:
| ϕ | = 2 n q L + n ( n q + 1 ) = 12 L + 7 n .
For the primary setting ( L = 3 , n = 10 ): | ϕ | = 36 + 70 = 106 . The DQN baseline uses the same 6-dimensional engineered state input and 10-dimensional action output; a two-hidden-layer MLP with 64 units per layer on this input requires 5258 parameters, yielding a parameter ratio of 5258 / 106 49.6 × . Table 1 contrasts the parameter growth rates of the two architectures as n and L vary.

4.3. Entanglement Topology Variants

We consider three entanglement topologies for the CNOT layer:
  • Ring: qubit i controls qubit ( i mod n q ) + 1 , forming a closed loop.
  • Linear: qubit i controls qubit i + 1 for i = 1 , , n q 1 , an open chain.
  • Full: every qubit controls every other qubit, introducing n q ( n q 1 ) / 2 CNOT gates per layer.
Ring entanglement is adopted as the default configuration for its closed-loop connectivity, which theoretically supports better gradient flow than the open-chain linear topology; the ablation in Section 5.6 confirms that both local topologies substantially outperform full-connection entanglement.

4.4. Training Algorithm

Q-DQN is trained with experience replay and a periodically- updated target network following the DQN framework [9]. The training loss is the Huber (SmoothL1) Bellman error, which combines the stability of mean-absolute error for large TD errors with the smooth convergence of mean-squared error near zero:
L ( ϕ ) = E ( s , a , r , s ) B l H y Q ^ ( s , a ; ϕ ) ,
where l H ( δ ) = 1 2 δ 2 if | δ | 1 and l H ( δ ) = | δ | 1 2 otherwise, B is the experience replay buffer, and the TD target is
y = r + γ ( 1 d ) max a A valid ( s ) Q ˜ ( s , a ; ϕ ) ,
where d { 0 , 1 } is the terminal flag ( d = 1 when the packet reaches the destination, reducing the target to y = r ), A valid ( s ) excludes failed links via Equation (6), and ϕ denotes the frozen target-network parameters updated every C training steps.
VQC gradients cannot be obtained by auto-differentiation of a simulation graph when the circuit is executed on quantum hardware, unlike classical neural networks where back-propagation operates through piecewise-differentiable activations. We therefore use the parameter-shift rule [28], which states that for any parameter ϕ k in a rotation gate R ( ϕ k ) = e i ϕ k G / 2 with generator G satisfying G 2 = I :
O ϕ k = 1 2 O | ϕ k + π / 2 O | ϕ k π / 2 ,
where O denotes the expectation value of any observable O. This identity holds exactly, not as an approximation, and requires only two circuit evaluations per parameter. Applying the chain rule through the readout layer (14), the full gradient of the TD loss with respect to ϕ k is
L ϕ k = E l H y Q ^ W out ( a , : ) m ϕ k ,
where l H ( δ ) = δ 1 [ | δ | 1 ] + sign ( δ ) 1 [ | δ | > 1 ] is the Huber sub-gradient, W out ( a , : ) is the a-th row of the readout weight matrix, and m / ϕ k is computed via Equation (18) applied component-wise. The readout parameters W out and b out are updated by standard back-propagation. Both VQC and readout parameters are jointly optimised with the Adam optimiser [37] at a single learning rate α = 0.003 for Q-DQN and α = 0.001 for DQN. Gradients are clipped to a maximum l 2 norm of 1.0 before each parameter update to prevent gradient explosion.
Algorithm 1 summarises the full procedure.   
Algorithm 1: Q-DQN Training for Network Routing
Applsci 16 06096 i001

5. Experimental Evaluation

Table 2 lists all simulation and training hyperparameters. The main evaluation uses a 10-node topology with p f = 0.02 and p r = 0.10 . Each configuration is evaluated over three independent runs of 80 episodes; mean and standard deviation are reported. The scalability experiment (Section 5.5) uses three independent random seeds (mean ± std reported). Entanglement topology and circuit depth ablation (Section 5.6) use a reduced budget of 200 training episodes with a single random seed per configuration; these results should be read as indicative trends rather than definitive findings, and multi-seed replication is a priority for follow-up work. Different ablation tables employ independent seeds, so results for nominally identical settings (e.g., n = 10 , L = 3 , ring) may differ slightly due to seed-induced variance across independent runs. To ensure a fair comparison, the DQN baseline receives the same6-dimensional engineered state s t as the Q-DQN agent. A two-hidden-layer MLP with 64 units per layer and 10 action outputs on this 6-dimensional input yields exactly 5258 trainable parameters. Hyperparameters of both agents (learning rate, batch size, target-update period) were chosen separately through a small validation grid to achieve stable convergence for each model; the reported values correspond to the best validation performance per agent rather than a setting biased toward either. Note that the state vector encodes aggregated per-node statistics rather than per-link attributes for each candidate next-hop; this compact local representation may limit the agent’s ability to distinguish fine-grained next-hop quality, and action-conditioned state representations are left for future work. All simulations are run on a machine with an Intel Core i7-12700K CPU and 32 GB RAM, using PennyLane 0.35 for VQC simulation and PyTorch 2.1 for gradient computation and replay buffer management.

5.1. Training Convergence

Figure 2 shows the per-episode average reward curves for Q-DQN and DQN during static training (no link failures). Both agents converge within the 500-episode budget. The Q-DQN curve exhibits more pronounced oscillation, which is attributable to the limited approximation capacity of the compact 106-parameter VQC: the circuit cannot represent the true Q-function as smoothly as the 5258-parameter MLP, so small distributional shifts in the replay buffer cause larger swings in the estimated Q-values. Additionally, on real quantum hardware the parameter-shift rule introduces finite-shot measurement noise absent from classical back-propagation; although our simulator computes parameter-shift gradients exactly, the structural difference in gradient estimation may still contribute to training variability through the non-stationarity of Bellman targets. The DQN curve is comparatively smoother due to the higher approximation capacity of the ReLU-based MLP. Despite this oscillation, the Q-DQN final average reward ( 4.80 at episode 500) is comparable with DQN ( 4.50 ), indicating that both policies converge to solutions of similar quality.
Figure 3 extends this analysis to the dynamic scenario with link failures, and additionally shows checkpoint delays evaluated every 100 episodes. The Q-DQN achieves its best checkpoint at episode 400 (41.59 ms), while DQN reaches its best at episode 500 (34.75 ms). The checkpoint trajectories illustrate that both agents improve progressively but neither monotonically, which is expected in non-stationary environments where each checkpoint corresponds to a slightly different failure configuration.

5.2. Baseline Performance Comparison

Table 3 and Figure 4 report the end-of-training evaluation results over 80 episodes. Q-DQN achieves 54.29 ± 1.72 ms and DQN achieves 52.89 ± 2.67 ms, a difference of only 1.40 ms, well within one standard deviation of either estimate. Double DQN (DDQN) [38], which reduces Q-value overestimation by selecting next-hop actions with the online network and evaluating them with the target network, achieves 45.26 ± 2.84 ms across three independent seeds, approximately 7 ms lower than standard DQN and 9 ms lower than Q-DQN. This confirms that Q-DQN achieves competitive routing performance with 49.6× fewer parameters than both classical baselines. Both RL agents show substantially higher delay than Dijkstra’s 7.04 ± 0.03 ms. This gap reflects the fundamental information asymmetry: Dijkstra operates as an oracle with full global link-state at every step, whereas Q-DQN and DQN use only local per-node observations. A simple local greedy heuristic that always selects the currently available neighbour with the minimum link delay was also tested and produced substantially higher delays than both learned policies, confirming that the Dijkstra gap is primarily attributable to partial observability rather than a failure of policy learning.
The comparison is intentionally scoped to DQN and DDQN as the primary learned baselines because they share an identical algorithmic framework with Q-DQN (experience replay, target network, ε -greedy exploration) and differ only in the Q-function approximator, making the parameter-efficiency trade-off directly measurable without confounding algorithmic differences. Extending the comparison to proximal policy optimisation or graph-neural-network routing would each require adapted state representations and is left for future work.
Figure 5 presents a two-panel Pareto analysis aggregating results from all ablation configurations (entanglement topology and circuit depth, detailed in Section 5.6). The left panel plots average delay against parameter count on a log scale; the right panel shows a horizontal bar chart of absolute delays sorted by parameter count. Both panels show that the local-entanglement Q-DQN variants ( L = 3 , ring or linear) occupy the Pareto frontier: they achieve substantially lower delay than any configuration with more parameters, and both outperform the full-entanglement variant at the same parameter count.
Figure 6 reinforces this finding by plotting delay versus the number of training samples consumed. Q-DQN reaches its best delay approximately 150 episodes earlier than DQN in this single-seed experiment at n = 10 , suggesting a potential sample efficiency advantage under these conditions. This is consistent with fewer parameters reducing the effective hypothesis space and limiting overfitting to the replay buffer. However, multi-seed scalability experiments (Section 5.5) show that under a 200-episode budget across multiple seeds and network sizes, DQN converges more consistently; the single-seed observation here should therefore not be interpreted as a general sample efficiency advantage.
Figure 7 shows the TD loss curves for both agents in static (left) and dynamic (right) training scenarios. In the static case, Q-DQN settles at a slightly lower training-time TD loss (≈0.21) than DQN (≈0.29) after 500 episodes. We attribute this to the compact VQC’s constrained hypothesis class, which prevents it from chasing small Bellman residuals that the MLP’s larger capacity would otherwise exploit in a stationary environment. Under dynamic conditions (right panel), the gap widens further: DQN’s training-time TD loss (≈0.56) is approximately twice that of Q-DQN (≈0.26); we tentatively attribute this gap to the larger MLP’s greater sensitivity to distributional shift in the non-stationary replay buffer, though the explanation should be tested with multi-seed runs. The evaluation-time TD losses (Table 3) show the reverse ordering (Q-DQN 0.6192 > DQN 0.4872 ). These two quantities are not directly comparable: training-time loss is computed over replay-buffer samples during an ongoing optimisation with changing target weights, whereas evaluation-time loss is measured on fresh rollouts with a fixed trained policy. The compact VQC approximates the Q-function less precisely under a clean evaluation distribution, consistent with its smaller parameter budget.

5.3. Robustness to Link Failures

Figure 8, Figure 9, Figure 10 and Figure 11 characterise system behaviour under varying link failure, recovery, and gate-noise conditions.
Figure 8 sweeps p f from 0.005 to 0.080 while holding p r = 0.10 fixed. Both Q-DQN and DQN exhibit moderate and roughly symmetric delay increases as p f grows, with Q-DQN delays ranging from 52.69 to 62.87 ms and DQN from 54.48 to 61.43 ms. Neither method degrades catastrophically up to p f = 0.08 , indicating that both learned policies are robust to the expected operating range of 6G link failure rates. Dijkstra’s delays remain at ≈7 ms throughout, as it always routes around failures given its perfect link-state knowledge.
Figure 9 sweeps the link recovery probability p r from 0.05 to 0.30 with fixed p f = 0.02 . As p r increases, failed links recover faster, reducing average delay for all methods. Across this sweep, Q-DQN delays vary between 55.12 and 57.67 ms ( σ 0.8 ms) while DQN varies between 49.20 and 62.33 ms ( σ 5.5 ms). The lower standard deviation of Q-DQN across recovery rates indicates a more stable routing policy, which we attribute to the VQC’s smooth parameter landscape, a known property of sinusoidal quantum activation functions.
Figure 10 presents a two-dimensional heatmap of Q-DQN delay over the joint ( p f , p r ) space, confirming that the agent maintains acceptable performance across the entire tested parameter grid. The worst-case cell (high p f , low p r ) still yields delays below 70 ms, demonstrating the agent’s suitability for challenging 6G failure scenarios.
In practice, quantum hardware introduces gate noise that perturbs the expectation values in Equation (13). We simulate this by adding Gaussian noise N ( 0 , σ noise 2 ) to each Pauli-Z expectation value during evaluation, sweeping σ noise { 0.00 , 0.05 , , 0.20 } . Figure 11 shows that Q-DQN delays remain within 4 ms of the noiseless baseline at all noise levels tested, and that the degradation is symmetric with respect to DQN’s own sensitivity to network-state estimation noise. Both methods degrade by + 3.7 ms (Q-DQN) and + 3.9 ms (DQN) over the noiseless-to-maximum-noise range. This confirms that Q-DQN achieves equal noise resilience at 49.6× fewer parameters, a notable result given that VQC outputs are expected to be more sensitive to Pauli measurement noise than the outputs of a classical sigmoid or ReLU network.

5.4. Topology Generalisation

To assess generalisation, we evaluate policies trained on the primary topology (seed 42) on three additional topologies generated with different random seeds (123, 456, 789). Figure 12 shows the results. Q-DQN and DQN achieve comparable delays on seeds 42 and 123; on seeds 456 and 789, Q-DQN exhibits higher delays (73.69 vs. 65.17 ms and 98.50 vs. 87.82 ms, respectively). The larger gaps at topologically dissimilar seeds suggest that the compact VQC, while parameter-efficient, may be more sensitive to structural deviations in the graph than the over-parameterised MLP. This is consistent with the bias–variance trade-off: fewer parameters reduce variance within the training distribution but increase bias when applied to out-of- distribution inputs. We consider on-policy fine-tuning on new topologies as a direction for future work.

5.5. Network Scalability

Table 4 and Figure 13 report delay and parameter counts for both agents across n { 6 , 8 , 10 , 12 } nodes. Several observations merit discussion.
Across all tested sizes, DQN achieves lower mean delays under the 200-episode training budget. This indicates that the classical MLP converges more reliably than the compact VQC under limited training. The large standard deviation for Q-DQN at n = 10 ( ± 38.18 ms) reflects high seed-to-seed variance: one of the three seeds failed to converge within 200 episodes (delay ≈135 ms), while the other two achieved 45–70 ms. Similarly, at n = 8 and n = 12 , Q-DQN shows substantially higher std than DQN, confirming that the VQC requires more training samples to reach stable performance under this budget. Under the full 500-episode budget used in the main comparison (Table 3), Q-DQN reaches 54.29 ± 1.72 ms, within 1.40 ms of DQN, confirming that the VQC ultimately matches classical performance. These multi-seed results clarify that Q-DQN’s primary advantage is parameter efficiency ( 44.9 64.1 × fewer parameters across all tested sizes), not sample efficiency.
The parameter growth rate of Q-DQN is only 14 parameters per two additional nodes (Equation (15)), compared with 130 for DQN. Even at n = 12 , Q-DQN uses 44.9× fewer parameters (120 vs. 5388), confirming substantially lower memory requirements across all tested scales.

5.6. Ablation Studies

5.6.1. Entanglement Topology

Table 5 compares ring, linear, and full entanglement at fixed L = 3 , n = 10 . All three topologies share the same 106-parameter budget (CNOT gates are parameter-free). Linear achieves the marginally lowest numerical delay (56.59 ms), with ring (57.10 ms) within 0.51 ms, a difference within expected single-seed run-to-run variance. Full entanglement performs considerably worse (84.44 ms), which we attribute to over-entanglement: dense all-to-all CNOT scrambles feature locality encoded per qubit, creating training difficulties reminiscent of the barren plateau problem [26]. Ring entanglement is adopted as the default configuration for its closed-loop topology, which theoretically supports better gradient flow than the open-chain linear variant [15]. Importantly, full entanglement is the only configuration that significantly degrades performance; ring, linear, and no-entanglement variants all achieve comparable delays (56.59–57.11 ms), indicating that the primary design principle is to avoid dense all-to-all entanglement rather than to maximise entanglement degree. Entanglement appears to offer convergence-stability benefits in more complex settings rather than raw delay gains under the current routing task and qubit count.
The no-entanglement variant (independent single-qubit circuits) achieves 57.11 ms, almost identical to ring, suggesting that for this particular routing task and qubit count, entanglement primarily aids convergence stability rather than raw delay performance.

5.6.2. Circuit Depth

Table 6 and Figure 14 examine L { 1 , 2 , 3 , 4 } with ring entanglement and n = 10 . The delay does not decrease monotonically with depth: L = 4 achieves the lowest delay (52.71 ms) but its TD loss (0.6665) is higher than L = 3 (0.5829) and L = 1 (0.4725), indicating that the deeper circuit has not yet converged under the 200-episode budget and its Q-values remain poorly calibrated. L = 2 exhibits the highest TD loss overall (0.7707) despite a worse delay than L = 4 ; we attribute this single-seed result to variance under the short training budget. L = 3 is adopted as a balanced default among deeper configurations ( L 3 ): it has lower TD loss than L = 4 (0.5829 vs. 0.6665), and the full 500-episode evaluation (Table 3, 54.29 ms) confirms it continues to improve with additional training. Note that L = 4 achieves the lowest 200-episode delay (52.71 ms) and L = 1 achieves the lowest TD loss (0.4725); a definitive depth ranking under 500-episode training is reserved for future work. L = 1 is the recommended option for memory-critical deployments (82 parameters) given its strongest TD-loss stability and competitive 200-episode delay (56.08 ms).

6. Discussion

The 106-parameter Q-DQN policy occupies approximately 424 bytes in single-precision floating point, a footprint compatible with the SRAM available on low-power ARM Cortex-M4 microcontrollers commonly used in network edge hardware. Deploying such a policy eliminates the need for a centralised path-computation server, enabling fully distributed routing decisions at sub-millisecond inference latency. While our simulation uses classical VQC emulation, the architecture is directly compatible with emerging quantum co-processors integrated with classical baseband chips, as anticipated in proposals for quantum-native 6G hardware [36,39].
Several aspects of the present study warrant further investigation. First, the current state representation encodes compact aggregated per-node statistics (minimum delay, minimum loss, maximum bandwidth, node-index proximity, link-availability ratio, time progress) rather than per-link attributes for each candidate next-hop. As a result, the agent cannot directly compare individual next-hop options in its input; it relies on learned node-index-dependent Q-values to differentiate candidates, which may limit fine-grained routing precision. Future work will investigate action-conditioned representations that explicitly encode per-link delay, loss, and bandwidth for each candidate next-hop. Second, the topology generalisation gap observed at seeds 456 and 789 (Section 5.4) suggests that either a larger qubit count or a fine-tuning step on new topologies may be necessary for production deployment. Third, at n = 8 the multi-seed scalability experiment (Table 4) shows Q-DQN achieving 78.40 ± 10.17 ms versus DQN’s 71.46 ± 14.75 ms under a 200-episode budget; the high seed-to-seed variance of both agents at this size suggests that a longer training budget or warm-start initialisation may be needed to close the remaining gap. Fourth, our evaluation relies on classical VQC simulation; experiments on actual quantum hardware would introduce real noise profiles that our Gaussian approximation (Section 5.3) may not fully capture. Fifth, the current implementation uses a single-agent formulation; extending to multi-agent or hierarchical settings relevant to large 6G core networks is a natural next step.
Regarding NISQ hardware feasibility, running Q-DQN on near-term quantum hardware involves practical constraints not fully captured by classical simulation alone. Superconducting-qubit processors currently achieve two-qubit CNOT gate fidelities of approximately 99.0–99.5%, with individual gate times of roughly 200–500 ns. For the proposed L = 3 , six-qubit circuit, each inference pass requires L × n q = 18 two-qubit CNOT gates together with single-qubit rotation gates, yielding an estimated circuit execution time of 10–30 μs per Q-value evaluation, well within the coherence times ( T 2 50 –300μ s) of state-of-the-art superconducting devices. Trapped-ion platforms provide higher two-qubit gate fidelities (∼99.9%) but slower gate times (∼1 ms), making them better suited to offline policy updates than real-time packet routing. Among existing NISQ platforms, superconducting processors represent the most feasible near-term target for hardware deployment of Q-DQN [40]. Actual hardware deployment would introduce additional error sources (state-preparation errors, readout noise, and crosstalk) that our Gaussian perturbation model does not fully capture; hardware-in-the-loop experiments are the natural next step.
The random directed graph used in this study, with uniform link delays and stationary Markov failure dynamics, is a deliberate simplification that captures the features of 6G links most relevant here (variable delay and intermittent availability) while keeping the evaluation tractable. Real-world 6G access and backhaul topologies typically exhibit additional structure: geographic clustering, backbone–access hierarchy, and degree distributions that deviate substantially from the Erdos–Rényi model used here. The generalisation experiment (Section 5.4) provides a first indication of how structural deviations affect performance: Q-DQN suffers a larger penalty on topologically dissimilar seeds than the over-parameterised DQN, suggesting that the compact VQC is more sensitive to distributional shift in the graph structure. Adding topology embeddings, for instance via graph neural network feature extraction, to the agent’s state representation could help the agent generalise to real-world deployment settings.
Wu et al. [24] report a 52 × parameter reduction for a VQC-based routing agent in a 6G simulation, consistent with our 49.6 × finding. Their work uses a five-qubit circuit on a smaller seven-node topology, whereas we evaluate across four network sizes with experiments spanning failure robustness, gate-noise sensitivity, topology generalisation, scalability, and circuit ablation studies. Li et al. [25] propose a hybrid quantum-classical routing protocol and report gains in heterogeneous ultra-dense networks, though they do not evaluate circuit depth or entanglement topology systematically. Our work provides the ablation depth and robustness breadth that these studies leave as future work.

7. Conclusions

This paper presented Q-DQN, a quantum deep Q-network for intelligent packet routing in 6G heterogeneous wireless networks. By replacing the conventional MLP with a six-qubit variational quantum circuit equipped with ring-topology entanglement and angle embedding, the proposed agent achieves an average end-to-end delay of 54.29 ± 1.72 ms, within 1.40 ms of a classical DQN baseline, while using only 106 trainable parameters, a 49.6× reduction. The parameter count scales as 12 L + 7 n , growing at only seven parameters per additional network node versus 65 for DQN, and a three-seed scalability evaluation across n { 6 , 8 , 10 , 12 } confirms that under limited training DQN converges more consistently, while under full training Q-DQN matches DQN at 49.6× lower parameter cost, establishing that the VQC’s advantage is parameter efficiency rather than sample efficiency. Robustness sweeps confirm that Q-DQN maintains comparable stability to DQN across link failure and recovery rates, and gate-noise experiments show equal resilience to Gaussian measurement perturbations. Ablation studies identify full-connection entanglement as significantly inferior to local alternatives; ring, linear, and no-entanglement configurations achieve comparable delays, with ring adopted as the default for theoretical gradient-flow reasons. Circuit depth L = 3 is selected as a balanced default among deeper configurations, with L = 1 recommended for memory-critical deployments.
Future work will address three open questions raised by this study: (i) topology-aware meta-learning to close the generalisation gap; (ii) hardware-in-the-loop experiments on NISQ-era quantum co-processors to characterise real gate-noise effects; and (iii) extension to multi-agent or hierarchical routing settings appropriate for large-scale 6G core and access networks.

Author Contributions

Conceptualisation, T.X. and T.L.; methodology, T.X.; software, T.X.; validation, T.X., X.Y. and J.N.; formal analysis, T.X.; investigation, X.Y. and J.N.; writing—original draft preparation, T.X.; writing—review and editing, T.L.; visualisation, X.Y. and J.N.; supervision, T.L.; project administration, T.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Acknowledgments

The authors would like to thank Ying Luo for his valuable guidance and constructive suggestions during the preparation of this manuscript.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
6GSixth Generation (wireless networks)
CNOTControlled-NOT (quantum gate)
DQNDeep Q-Network
DRLDeep Reinforcement Learning
DDQNDouble Deep Q-Network
MDPMarkov Decision Process
MLPMulti-Layer Perceptron
NISQNoisy Intermediate-Scale Quantum
Q-DQNQuantum Deep Q-Network
RLReinforcement Learning
SRAMStatic Random-Access Memory
TDTemporal Difference
VQCVariational Quantum Circuit

References

  1. Saad, W.; Bennis, M.; Chen, M. A vision of 6G wireless systems: Applications, enabling technologies, and design aspects. IEEE Netw. 2020, 34, 134–142. [Google Scholar] [CrossRef] [Scilit]
  2. Giordani, M.; Polese, M.; Mezzavilla, M.; Rangan, S.; Zorzi, M. Toward 6G networks: Use cases and technologies. IEEE Commun. Mag. 2020, 58, 55–61. [Google Scholar] [CrossRef] [Scilit]
  3. Zhang, Z.; Xiao, Y.; Ma, Z.; Xiao, M.; Ding, Z.; Lei, X.; Karagiannidis, G.K.; Fan, P. 6G wireless networks: Vision, requirements, architecture, and key technologies. IEEE Veh. Technol. Mag. 2019, 14, 28–41. [Google Scholar] [CrossRef] [Scilit]
  4. You, X.; Wang, C.X.; Huang, J.; Gao, X.; Zhang, Z.; Wang, M.; Huang, Y.; Zhang, C.; Jiang, Y.; Wang, J.; et al. Towards 6G wireless communication networks: Vision, enabling technologies, and new paradigm shifts. Sci. China Inf. Sci. 2021, 64, 110301. [Google Scholar]
  5. Yang, F.; Wang, D.; Cui, Q.; Tao, X.; Zhang, P. Survey on intelligent routing in 6G: From model-driven to data-driven paradigms. Comput. Netw. 2024, 245, 110418. [Google Scholar]
  6. Dijkstra, E.W. A note on two problems in connexion with graphs. Numer. Math. 1959, 1, 269–271. [Google Scholar] [CrossRef] [Scilit]
  7. Valadarsky, A.; Schapira, M.; Shahaf, D.; Tamar, A. Learning to route. In Proceedings of the 16th ACM Workshop on Hot Topics in Networks, Palo Alto, CA, USA, 30 November–1 December 2017; pp. 185–191. [Google Scholar]
  8. Xu, Z.; Tang, J.; Meng, J.; Zhang, W.; Wang, Y.; Liu, C.H.; Yang, D. Experience-driven networking: A deep reinforcement learning based approach. In Proceedings of the IEEE International Conference on Computer Communications (INFOCOM); IEEE: New York, NY, USA, 2018; pp. 1871–1879. [Google Scholar]
  9. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Rusu, A.A.; Veness, J.; Bellemare, M.G.; Graves, A.; Riedmiller, M.; Fidjeland, A.K.; Ostrovski, G.; et al. Human-level control through deep reinforcement learning. Nature 2015, 518, 529–533. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Watkins, C.J.C.H.; Dayan, P. Q-learning. Mach. Learn. 1992, 8, 279–292. [Google Scholar] [CrossRef] [Scilit]
  11. Nguyen, D.C.; Ding, M.; Ostovari, P.; Asadi, A.; Li, Y.; Phung, D.; Sadeghi, P. Deep reinforcement learning-based routing in 5G and beyond wireless networks: Challenges and state of the art. IEEE Trans. Netw. Serv. Manag. 2022, 19, 4499–4518. [Google Scholar]
  12. Lin, P.; Song, J.; Yu, F.R.; Ji, H.; Li, X. Intelligent routing for 6G heterogeneous wireless networks: A multi-objective deep reinforcement learning approach. IEEE Trans. Commun. 2023, 71, 2115–2129. [Google Scholar]
  13. Wang, T.; Li, B.; Zheng, J.; Chen, Y.; Liu, M. Deep reinforcement learning for adaptive routing in heterogeneous 6G networks: Handling link failures and traffic dynamics. IEEE J. Sel. Areas Commun. 2024, 42, 412–426. [Google Scholar]
  14. Fu, Y.; Li, Z.; Zhang, W.; Ding, N.; He, J. Resilient routing under link failure dynamics in heterogeneous wireless mesh networks: A deep reinforcement learning approach. IEEE Trans. Netw. Serv. Manag. 2023, 20, 2617–2631. [Google Scholar]
  15. Cerezo, M.; Arrasmith, A.; Babbush, R.; Benjamin, S.C.; Endo, S.; Fujii, K.; McClean, J.R.; Mitarai, K.; Yuan, X.; Cincio, L.; et al. Variational quantum algorithms. Nat. Rev. Phys. 2021, 3, 625–644. [Google Scholar] [CrossRef] [Scilit]
  16. Bharti, K.; Cervera-Lierta, A.; Kyaw, T.H.; Haug, T.; Alperin-Lea, S.; Anand, A.; Degroote, M.; Heimonen, H.; Kottmann, J.S.; Menke, T.; et al. Noisy intermediate-scale quantum algorithms. Rev. Mod. Phys. 2022, 94, 015004. [Google Scholar] [CrossRef] [Scilit]
  17. Preskill, J. Quantum computing in the NISQ era and beyond. Quantum 2018, 2, 79. [Google Scholar] [CrossRef] [Scilit]
  18. Huang, H.Y.; Broughton, M.; Cotler, J.; Chen, S.; Li, J.; Mohseni, M.; Neven, H.; Babbush, R.; Kueng, R.; Preskill, J.; et al. Near-term quantum computing techniques: Variational quantum algorithms, error mitigation, circuit compilation, benchmarking and classical simulation. Science 2023, 380, eabn7293. [Google Scholar]
  19. Abbas, A.; Sutter, D.; Zoufal, C.; Lucchi, A.; Figalli, A.; Woerner, S. The power of quantum neural networks. Nat. Comput. Sci. 2021, 1, 403–409. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Letcher, A.; Woerner, S.; Zoufal, C. Tight bounds on the expressibility of quantum circuits. PRX Quantum 2023, 4, 010328. [Google Scholar]
  21. Chen, S.Y.C.; Yang, C.H.H.; Qi, J.; Chen, P.Y.; Ma, X.; Goan, H.S. Variational quantum circuits for deep reinforcement learning. IEEE Access 2020, 8, 141007–141024. [Google Scholar] [CrossRef] [Scilit]
  22. Lockwood, O.; Si, M. Reinforcement learning with quantum variational circuit. In Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, Virtual, 19–23 October 2020; Volume 16, pp. 245–251. [Google Scholar]
  23. Skolik, A.; Jerbi, S.; Dunjko, V. Quantum agents in the gym: A variational quantum algorithm for deep Q-learning. Quantum 2022, 6, 720. [Google Scholar] [CrossRef] [Scilit]
  24. Wu, J.; Zhao, L.; Li, G.; Chen, M.; Poor, H.V. Quantum reinforcement learning for adaptive network control in 6G heterogeneous environments. IEEE Trans. Wirel. Commun. 2023, 22, 7814–7828. [Google Scholar]
  25. Li, M.; Xu, F.; Wen, X.; Luo, W.; Pan, M. Hybrid quantum-classical routing protocol for 6G ultra-dense networks with stochastic link failures. IEEE Internet Things J. 2023, 10, 16234–16246. [Google Scholar] [CrossRef] [Scilit]
  26. McClean, J.R.; Boixo, S.; Smelyanskiy, V.N.; Babbush, R.; Neven, H. Barren plateaus in quantum neural network training landscapes. Nat. Commun. 2018, 9, 4812. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Coelho, I.M.; Ribeiro, M.H.D.M.; Leite, A.; Rosa, P.H.M. Quantum-enhanced routing for autonomous vehicular networks in heterogeneous environments. Comput. Netw. 2024, 241, 110188. [Google Scholar]
  28. Mitarai, K.; Negoro, M.; Kitagawa, M.; Fujii, K. Quantum circuit learning. Phys. Rev. A 2018, 98, 032309. [Google Scholar] [CrossRef] [Scilit]
  29. Pérez-Salinas, A.; Cervera-Lierta, A.; Gil-Fuster, E.; Latorre, J.I. Data re-uploading for a universal quantum classifier. Quantum 2020, 4, 226. [Google Scholar] [CrossRef] [Scilit]
  30. Schuld, M.; Sweke, R.; Meyer, J.J. Effect of data encoding on the expressive power of variational quantum-machine-learning models. Phys. Rev. A 2021, 103, 032430. [Google Scholar] [CrossRef] [Scilit]
  31. de Sá Neto, O.P.; de Oliveira, M.C. Quantum bit encoding and information processing with field superposition states in a circuit. J. Phys. B At. Mol. Opt. Phys. 2012, 45, 185505. [Google Scholar] [CrossRef] [Scilit]
  32. de Sá Neto, O.P.; de Oliveira, M.C. Signal, detection and estimation using a hybrid quantum circuit. Sci. Rep. 2024, 14, 15225. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. Jerbi, S.; Gyurik, C.; Marshall, S.C.; Briegel, H.J.; Dunjko, V. Variational quantum policies for reinforcement learning. Adv. Neural Inf. Process. Syst. 2021, 34, 13322–13334. [Google Scholar]
  34. Kwak, Y.; Yun, W.J.; Jung, S.; Kim, J. Introduction to quantum reinforcement learning: Does it offer advantages over classical approaches? In Proceedings of the IEEE International Symposium on Information Theory and Its Applications (ISITA); IEEE: New York, NY, USA, 2021; pp. 1–6. [Google Scholar]
  35. Kim, M.; Kwak, Y.; Yun, W.J.; Jung, S.; Kim, J. Quantum-classical hybrid deep reinforcement learning for resource allocation in heterogeneous networks. IEEE Trans. Commun. 2023, 71, 3347–3361. [Google Scholar]
  36. Ran, S.; Zhang, B.; Yun, W.J.; Kim, J. Variational quantum circuits for intelligent network control: A survey and future directions. IEEE Commun. Surv. Tutor. 2024, 26, 421–452. [Google Scholar]
  37. Kingma, D.P.; Ba, J. Adam: A Method for Stochastic Optimization. In Proceedings of the International Conference on Learning Representations (ICLR), San Diego, CA, USA, 7–9 May 2015. [Google Scholar]
  38. van Hasselt, H.; Guez, A.; Silver, D. Deep reinforcement learning with double Q-learning. In Proceedings of the AAAI Conference on Artificial Intelligence, Phoenix, AZ, USA, 12–17 February 2016; Volume 30, pp. 2094–2100. [Google Scholar]
  39. Zhang, X.; Cheng, N.; Lyu, F.; Shi, W.; Zhou, H.; Shen, X. Quantum deep reinforcement learning for energy-efficient resource management in B5G/6G networks. IEEE Trans. Wirel. Commun. 2024, 23, 5046–5060. [Google Scholar]
  40. Krantz, P.; Kjaergaard, M.; Yan, F.; Orlando, T.P.; Gustavsson, S.; Oliver, W.D. A quantum engineer’s guide to superconducting qubits. Appl. Phys. Rev. 2019, 6, 021318. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Overview of the proposed Q-DQN framework for intelligent packet routing in 6G heterogeneous networks.
Figure 1. Overview of the proposed Q-DQN framework for intelligent packet routing in 6G heterogeneous networks.
Applsci 16 06096 g001
Figure 2. Learning curves under static network conditions (no link failures). Shaded regions indicate rolling standard deviation over a 50-episode window. Q-DQN oscillation is attributable to RL non-stationarity amplified by the compact VQC’s limited approximation capacity.
Figure 2. Learning curves under static network conditions (no link failures). Shaded regions indicate rolling standard deviation over a 50-episode window. Q-DQN oscillation is attributable to RL non-stationarity amplified by the compact VQC’s limited approximation capacity.
Applsci 16 06096 g002
Figure 3. Dynamic training curves (with link failures) and checkpoint delay evaluations. Left: per-episode reward. Right: average delay at 100-episode checkpoints. DQN achieves a lower final delay; Q-DQN reaches its own best checkpoint earlier (episode 400 vs. 500), though DQN’s lower final delay indicates that longer training benefits the larger MLP more.
Figure 3. Dynamic training curves (with link failures) and checkpoint delay evaluations. Left: per-episode reward. Right: average delay at 100-episode checkpoints. DQN achieves a lower final delay; Q-DQN reaches its own best checkpoint earlier (episode 400 vs. 500), though DQN’s lower final delay indicates that longer training benefits the larger MLP more.
Applsci 16 06096 g003
Figure 4. Performance comparison with ± 1 σ error bars. The Dijkstra result (annotated) reflects its access to perfect global link-state knowledge, which is impractical in dynamic 6G networks. Q-DQN and DQN both operate from local observations only. ★: Q-DQN operating point.
Figure 4. Performance comparison with ± 1 σ error bars. The Dijkstra result (annotated) reflects its access to perfect global link-state knowledge, which is impractical in dynamic 6G networks. Q-DQN and DQN both operate from local observations only. ★: Q-DQN operating point.
Applsci 16 06096 g004
Figure 5. Two-panel Pareto analysis. Left: delay vs. parameter count on a log scale (orange/purple/green/light-blue triangles: ring- L = 1 /2/3/4 variants; square: DQN). Right: horizontal bar chart of all variants sorted by parameter count. Q-DQN (ring, L = 3 ) lies on the Pareto frontier, achieving 54.29 ms with 106 parameters. DQN requires 49.6× more parameters for a 1.40 ms delay reduction.
Figure 5. Two-panel Pareto analysis. Left: delay vs. parameter count on a log scale (orange/purple/green/light-blue triangles: ring- L = 1 /2/3/4 variants; square: DQN). Right: horizontal bar chart of all variants sorted by parameter count. Q-DQN (ring, L = 3 ) lies on the Pareto frontier, achieving 54.29 ms with 106 parameters. DQN requires 49.6× more parameters for a 1.40 ms delay reduction.
Applsci 16 06096 g005
Figure 6. Delay versus training episodes consumed (single seed, n = 10 , 500 episodes). Q-DQN reaches its best checkpoint approximately 150 episodes earlier in this experiment; multi-seed scalability results show DQN converges more consistently under limited training.
Figure 6. Delay versus training episodes consumed (single seed, n = 10 , 500 episodes). Q-DQN reaches its best checkpoint approximately 150 episodes earlier in this experiment; multi-seed scalability results show DQN converges more consistently under limited training.
Applsci 16 06096 g006
Figure 7. TD loss curves. Left: static environment. Right: dynamic environment with link failures. Under dynamic conditions, DQN’s final TD loss is approximately 2.2× higher than Q-DQN’s, suggesting that the compact VQC benefits from implicit regularisation against non-stationarity.
Figure 7. TD loss curves. Left: static environment. Right: dynamic environment with link failures. Under dynamic conditions, DQN’s final TD loss is approximately 2.2× higher than Q-DQN’s, suggesting that the compact VQC benefits from implicit regularisation against non-stationarity.
Applsci 16 06096 g007
Figure 8. Average delay versus link failure probability p f . Q-DQN and DQN remain comparable across the tested range. Dijkstra serves as a global-knowledge lower bound.
Figure 8. Average delay versus link failure probability p f . Q-DQN and DQN remain comparable across the tested range. Dijkstra serves as a global-knowledge lower bound.
Applsci 16 06096 g008
Figure 9. Delay sensitivity to link recovery probability p r . Q-DQN exhibits markedly lower variance across recovery rates ( σ Q = 0.8 ms vs. σ D = 5.5 ms for DQN), suggesting a more stable learned policy.
Figure 9. Delay sensitivity to link recovery probability p r . Q-DQN exhibits markedly lower variance across recovery rates ( σ Q = 0.8 ms vs. σ D = 5.5 ms for DQN), suggesting a more stable learned policy.
Applsci 16 06096 g009
Figure 10. Joint heatmap of Q-DQN average delay over the ( p f , p r ) parameter space. Performance degrades gracefully with increasing p f and decreasing p r .
Figure 10. Joint heatmap of Q-DQN average delay over the ( p f , p r ) parameter space. Performance degrades gracefully with increasing p f and decreasing p r .
Applsci 16 06096 g010
Figure 11. Routing delay versus Gaussian gate-noise amplitude. Both methods degrade symmetrically ( + 3.7 vs. + 3.9 ms), confirming that Q-DQN is as noise-resilient as DQN despite its quantum measurement mechanism.
Figure 11. Routing delay versus Gaussian gate-noise amplitude. Both methods degrade symmetrically ( + 3.7 vs. + 3.9 ms), confirming that Q-DQN is as noise-resilient as DQN despite its quantum measurement mechanism.
Applsci 16 06096 g011
Figure 12. Generalisation to unseen topologies. Q-DQN performs comparably on seeds 42 and 123, but shows larger delays on topologically distinct seeds 456 and 789, a limitation consistent with the higher approximation bias of compact VQCs under distribution shift.
Figure 12. Generalisation to unseen topologies. Q-DQN performs comparably on seeds 42 and 123, but shows larger delays on topologically distinct seeds 456 and 789, a limitation consistent with the higher approximation bias of compact VQCs under distribution shift.
Applsci 16 06096 g012
Figure 13. Scalability comparison (three-seed mean ± std). Left: average delay versus number of nodes under the 200-episode training budget. Right: parameter count versus number of nodes (log scale). Q-DQN’s parameter count grows at 14 parameters per two additional nodes; DQN’s grows at 130. Q-DQN uses 44.9–64.1× fewer parameters across all tested sizes.
Figure 13. Scalability comparison (three-seed mean ± std). Left: average delay versus number of nodes under the 200-episode training budget. Right: parameter count versus number of nodes (log scale). Q-DQN’s parameter count grows at 14 parameters per two additional nodes; DQN’s grows at 130. Q-DQN uses 44.9–64.1× fewer parameters across all tested sizes.
Applsci 16 06096 g013
Figure 14. Circuit depth ablation. Left: delay and TD loss versus L. Right: parameter count versus L. L = 3 is selected as a balanced default among deeper circuits; L = 4 achieves lower delay but at higher loss, and L = 1 achieves the lowest TD loss.
Figure 14. Circuit depth ablation. Left: delay and TD loss versus L. Right: parameter count versus L. L = 3 is selected as a balanced default among deeper circuits; L = 4 achieves lower delay but at higher loss, and L = 1 achieves the lowest TD loss.
Applsci 16 06096 g014
Table 1. Parameter count for Q-DQN vs. DQN as a function of network size n (fixed L = 3 ) and circuit depth L (fixed n = 10 ).
Table 1. Parameter count for Q-DQN vs. DQN as a function of network size n (fixed L = 3 ) and circuit depth L (fixed n = 10 ).
Varying n ( L = 3 )Varying L ( n = 10 )
Q-DQNDQNQ-DQNDQN
n = 6 L = 3 784998
n = 8 L = 3 925128
n = 10 L = 3 1065258
n = 12 L = 3 1205388
n = 10 L = 1 825258
n = 10 L = 2 945258
n = 10 L = 3 1065258
n = 10 L = 4 1185258
Growth rate + 7 /node vs. + 65 /node + 12 /layer vs. 0/layer
Table 2. Simulation and training hyperparameters.
Table 2. Simulation and training hyperparameters.
ParameterValueDescription
Network topology
n10Number of nodes
| E | 20Directed links, corresponding to 10 bidirectional physical connections
δ i j U ( 1 , 10 ) msLink propagation delay
p f 0.02Link failure probability
p r 0.10Link recovery probability
VQC-based Q-DQN
n q 6Number of qubits
L3Default number of variational layers
EntanglementRingCNOT ring topology
EmbeddingAngle R y s ˜ i = π s i norm
| ϕ | 106Trainable parameters
DQN baseline
Architecture2 × 64 MLPTwo hidden layers with ReLU
| θ | 5258Trainable parameters
Training
Episodes E500Total training episodes
Steps/episode30Environment steps per episode
Buffer | B | 10,000Replay buffer capacity
Batch size16/32Q-DQN/DQN mini-batch size
γ 0.95Discount factor
ε decay 1.0 0.05 Exploration schedule
OptimiserAdam α = 0.003 for Q-DQN, 0.001 for DQN
LossHuberSmoothL1 TD-error loss
Gradient clipping1.0Maximum gradient norm
Target update C20/100Q-DQN/DQN target-network update period
Table 3. Baseline performance comparison on the 10-node topology ( p f = 0.02 , p r = 0.10 ; averaged over 3 independent evaluation runs, 80 episodes each). DDQN results are reported as mean ± std across 3 independent seeds.
Table 3. Baseline performance comparison on the 10-node topology ( p f = 0.02 , p r = 0.10 ; averaged over 3 independent evaluation runs, 80 episodes each). DDQN results are reported as mean ± std across 3 independent seeds.
MethodDelay (ms)TD LossParametersGlobal State?
Dijkstra [6] 7.04 ± 0.03 0
DQN [9] 52.89 ± 2.67 0.4872 ± 0.0292 5258×
DDQN [38] 45.26 ± 2.84 0.4709 ± 0.1105 5258×
Q-DQN (ours) 54.29 ± 1.72 0.6192 ± 0.0255 106×
Q-DQN vs. DQN gap + 1.40 + 0.1320 49.6 × fewer
Note: ✓/× under “Global State?” indicates whether the method requires full global link-state knowledge. Bold parameter count denotes the minimum among learned methods. The italic row summarises the Q-DQN/DQN performance gap.
Table 4. Scalability comparison across network sizes ( L = 3 , 200 training episodes, 3 independent seeds; mean ± std reported for delay).
Table 4. Scalability comparison across network sizes ( L = 3 , 200 training episodes, 3 independent seeds; mean ± std reported for delay).
Nodes nDelay (ms)ParametersRatio
Q-DQNDQNQ-DQNDQN
6 33.07 ± 8.85 14 . 31 ± 7.0278499864.1×
8 78.40 ± 10.17 71 . 46 ± 14.7592512855.7×
10 83.44 ± 38.18 46 . 17 ± 5.52106525849.6×
12 69.54 ± 16.22 52 . 93 ± 8.89120538844.9×
Note: Bold denotes the lower (better) delay between Q-DQN and DQN for each network size.
Table 5. Entanglement topology ablation ( L = 3 , n = 10 , 200 training episodes, single seed).
Table 5. Entanglement topology ablation ( L = 3 , n = 10 , 200 training episodes, single seed).
EntanglementDelay (ms)Parameters
Ring (default)57.10106
Linear56.59106
Full84.44106
VQC (no ent.)57.11106
Note: Bold denotes the lowest delay among all entanglement configurations.
Table 6. Circuit depth ablation (ring entanglement, n = 10 , 200 training episodes, single seed).
Table 6. Circuit depth ablation (ring entanglement, n = 10 , 200 training episodes, single seed).
Depth LDelay (ms)TD LossParamsFormula ( 12 L + 70 )
156.080.472582 12 + 70 = 82
260.340.770794 24 + 70 = 94
363.300.5829106 36 + 70 = 106
452.710.6665118 48 + 70 = 118
Note: Bold denotes the lowest delay among all circuit depths tested.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xie, T.; Li, T.; Yuan, X.; Ni, J. Quantum Deep Q-Network for Intelligent Packet Routing in 6G Heterogeneous Wireless Networks. Appl. Sci. 2026, 16, 6096. https://doi.org/10.3390/app16126096

AMA Style

Xie T, Li T, Yuan X, Ni J. Quantum Deep Q-Network for Intelligent Packet Routing in 6G Heterogeneous Wireless Networks. Applied Sciences. 2026; 16(12):6096. https://doi.org/10.3390/app16126096

Chicago/Turabian Style

Xie, Tong, Taoyong Li, Xinxin Yuan, and Jiacheng Ni. 2026. "Quantum Deep Q-Network for Intelligent Packet Routing in 6G Heterogeneous Wireless Networks" Applied Sciences 16, no. 12: 6096. https://doi.org/10.3390/app16126096

APA Style

Xie, T., Li, T., Yuan, X., & Ni, J. (2026). Quantum Deep Q-Network for Intelligent Packet Routing in 6G Heterogeneous Wireless Networks. Applied Sciences, 16(12), 6096. https://doi.org/10.3390/app16126096

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop