July 10, 2026
We study an adversarial bandit problem for entanglement-based quantum-network routing over a modest graph corpus. Alice selects an end-to-end repeater route for an Ekert-91 protocol (E91) representing her move, while Eve selects an attack surface, either edge intercept–resend or repeater memory degradation. Payoffs are drawn from cached SeQUeNCe-simulated E91 transcripts, and Alice accepts a turn when the finite-sample statistic violates the Clauser-Horne-Shimony-Holt (CHSH) bound. Performing adversarial co-learning across 50 structured topologies, we find that learned retention tracks a full-matrix minimax reference closely (Pearson \(r=0.99\)): under a one-surface Eve action model, bottleneck families have zero retention, while non-bottleneck families follow a \(1-1/N\) coverage principle. We then fit decision-tree explanation models to graph-, attack-, and route-level topology-corpus targets and report their faithfulness. Finally, we construct prompt records for local language models to summarize the tree evidence, resulting in an open-source explanation workflow for quantum-repeater network games.
quantum, E91, CHSH, adversarial, Exp3, bandits, games, networks, repeaters, XAI, simulations, security
The present works analyses two main questions. Can a standard adversarial bandit, playing from bandit feedback with no topology knowledge, recover the strategic structure of route selection and attack placement in a simulated Ekert-91 (E91) repeater network? Can the learned and reference strategies then be explained—by symbolic representations and small local language models—with measured faithfulness and without security-oriented hallucinations?
In E91, Alice and Bob consume entangled pairs and use Bell-test statistics as a security monitor [1]–[3]. On a repeater network, route choice also induces a classical interdiction game: Alice’s mixed strategy determines which fibers and memories are exposed, while a limited Eve chooses one component to attack. This route-versus-surface structure is well known in zero-sum network interdiction [4]. In the homogeneous case, a component on every Alice–Bob route exposes a fatal bottleneck to Eve, i.e. with \(N\) component-disjoint routes and one attacked surface, uniform routing gives hit probability \(1/N\), hence a retention of \(1-1/N\).
The question is therefore not whether an algorithm can rediscover this coverage logic in a binary graph game. It is whether the same strategic structure remains visible when payoffs are generated by topology-corpus E91 transcripts: CHSH-gated acceptance, shared repeater memories, unattacked failures, and component attacks. Explanations matter because simulator diagnostics are easy to over-interpret as quantum key distribution (QKD) security claims.
SeQUeNCe and NetSquid make quantum-network hardware and control assumptions explicit [5], [6]; recent trapped-ion network nodes motivate high-efficiency parameter scales [7]. Exponential-weight algorithm for Exploration and Exploitation (Exp3) is the standard adversarial bandit [8]; in zero-sum games, no-regret learning supports time-averaged strategies, while terminal multiplicative-weight iterates may fail to converge [9], [10]. For explanation, we use shallow decision trees with reported target fit [11], [12].
SeQUeNCe [5] is a discrete-event simulator of quantum networks with explicit sources, fibers, memories, and control protocols; SeQUeNCe’s repeater module is Barrett–Kok entanglement generation [13] plus entanglement swapping. In our E91 game turn, a budget of 350 entangled pairs is distributed end-to-end over the chosen route; delivered pairs are measured at random E91 settings, a subset is used for the Bell statistics to compute \(S\) [3], and matched basis pairs yield sifted key bits. The public outcome of a turn is one of {accepted, CHSH abort, quantum bit error rate (QBER) abort, delivery failure}, with the CHSH check preceding the QBER check.
For each graph, cached trials define Alice’s payoff matrix \(M\in[0,1]^{|\Pi|\times|\mathcal{E}|}\). Let \(X=\Delta(\Pi)\) and \(Y=\Delta(\mathcal{E})\). The full-matrix reference is \[v^\star=\max_{x\in X}\min_{y\in Y}x^TMy, \qquad R_{\rm oracle}=\mathrm{clip}_{[0,1]}(v^\star/v_0),\] where \(v_0\) is the best no-attack value. We measure learned averaged strategies relative to the Nash equilibrium gap \[g(\bar{x},\bar{y})= \max_{x\in X}x^TM\bar{y} - \min_{y\in Y}\bar{x}^TMy ,\] which is zero at a saddle point of this empirical zero-sum game.
Both players use Exp3 [8]: action probabilities mix normalized weights with uniform exploration, played rewards are importance-weighted, and weights are updated multiplicatively. We use a learning rate of \(\eta_t=\sqrt{\log K/(K(t+10^4))}\) and an exploration parameter \(\gamma_t=\min\{0.2,K\eta_t\}\), where \(K\) is the action-space size and \(t\) is the game-turn. Since no-regret guarantees concern averaged play, all reported strategies are frequency-of-play averages rather than terminal iterates [9], [10].
The corpus holds 50 graphs from eight structural families (single/multi/deep bottleneck, deep/disjoint/layered parallel, length-variant disjoint, Wheatstone chains), with up to 32 routes of at most 7 hops and edge lengths 400–550 m. Fig. 1 shows the primary structural motifs. Eve’s action set is \(\{\text{no attack}\}\cup\mathcal{E}_{\rm ir}\cup\mathcal{E}_{\rm mem}\): one intercept–resend action per eligible edge and one degradation action per internal repeater memory. Intercept–resend is the eavesdropper whose intermediate measurements destroy the CHSH violation [2], while memory degradation models repeater node integrity/availability disturbances [14]. Practical QKD attacks such as detector timing [15] and Trojan-horse probing [16] motivate component-specific threat modelling, but those detector/source side channels are not implemented in this experiment.
To make \(5\times10^5\)-turn co-learning feasible, Exp3 turns are sampled from caches of pre-simulated SeQUeNCe E91 trials. We store 64 trials per route–hop and per attack–hop profile; during training, we sample the matching pool, while the complete-information matrix uses the mean Alice acceptance over 16 cached draws per cell. Alice’s payoff is CHSH-only: after forming the Bell-test sample, a turn is accepted if and only if \(|S|>2\). QBER is logged but not used in the payoff, since the CHSH test dominates the statistics in this simulation. Eve payoff is binary, whether or not her attack lies on Alice’s route.
We use a memory fidelity of \(0.98\) and, based on recent multiplexed trapped-ion network results [7], a memory efficiency of \(0.544\); however, we apply them to a SeQUeNCe Barrett–Kok model; this is a deliberate compromise between accurate device modelling and realistic repeater performance. A pre-run health check expects at least 319 of 350 entangled pairs to be delivered, where 4 of 9 combinations feed the CHSH test for Alice and 2 of 9 combinations feed the key bits. Without unattacked failures, the induced game would be zero-sum; CHSH failures occur on roughly a fifth of clean turns, making the game only approximately zero-sum.
As a control, we aggregate the caches by route depth. Clean baselines violate the CHSH bound at every depth: mean \(|S|\) falls from \(2.75\) at one hop to \(2.37\) at seven hops. Active hits, by contrast, never violate the CHSH bound. QBER adds no independent signal: any attack disruptive enough to corrupt the key already breaks the CHSH violation, and the Bell check occurs first.
The target outcome is the strategic structure. Fig. 2 shows that the minimax reference is nearly determined by two features. Non-bottleneck families track the coverage principle \(1-1/N\) in the node-disjoint path count \(N\), while every bottleneck family collapses to zero retention: Eve parks on the unavoidable cut. Exp3 recovers this reference value. Final learned retention, measured as mean acceptance over the last \(2.5\times10^4\) turns and normalized by \(v_0\), matches oracle retention at Pearson \(r=0.99\) across the 50 graphs. Five high-redundancy graphs sit slightly above one, with maximum ratio \(1.11\), as an artifact of the unclipped finite-sample ratio.
Strategies in Fig. 3 show Eve rarely plays no-attack, and her surface choice is structural: intercept–resend on the cut edge in single-bottleneck graphs, as in Fig. 1a, and memory degradation in multi-bottleneck, deep-bottleneck, and Wheatstone families, where one shared repeater memory covers several routes. Alice mirrors this structure: she spreads nearly uniformly over disjoint routes, but learns a long-tailed hedge on the large multi-bottleneck route sets, with \(0.48\) mass beyond rank 8.
The Nash gap of the time-averaged Exp3 strategies in Fig. 4 shows the median falls from \(2.6\times10^{-2}\) at \(10^5\) turns to \(1.3\times10^{-2}\) at \(5\times10^5\) turns, consistent with the no-regret view that zero-sum multiplicative-weight dynamics should be evaluated through averaged play rather than terminal iterates [8]–[10]. The non-monotonicity is empirical: payoff cells are estimated from discrete cached trials, best responses can switch under small changes in the average mixture, and some unattacked routes fail the finite CHSH test. The final gap grows with joint action-space size \(K_AK_E\) (log–log \(r=0.75\)), but this is not topological vulnerability; high-redundancy non-bottleneck graphs retain the expected \(1-1/N\) minimax value, while the residual gap measures horizon imbalance in the learned mixture.
We fit depth-3 decision-tree regressors to topology-corpus targets; Table 1 reports their faithfulness, which spans the full quality range. The graph-retention tree is nearly exact (\(R^2=0.9984\)): its active rules use bottleneck presence and disjoint-path count, so graph-level tree summaries are faithful to our topology-corpus target. The Eve-action tree is moderately faithful (\(R^2=0.7048\) over 1501 rows), led by target-route coverage and the memory-degradation flag, consistent with the coverage logic of Fig. 3a. The expected-denial and Alice-route trees are weak (\(R^2=0.43\) and \(0.24\)), so route-level tree explanations capture the non-uniqueness of the oracle route target. Learned-target counterparts fitted for the prompt pack behave analogously (learned retention \(R^2=0.98\), learned Eve strategy \(R^2=0.68\)).
These trees are the symbolic object digested by local large language models (LLMs) as part of an otherwise-static prompt requesting a response of at most \(300\) words and structured into 5 sections: graph
interpretation, tree evidence, strategy evidence, caveats, and rubric self-check. The local models were served via Ollama [17]:
llama3.1:8b [18], phi4:14b [19], and nemotron-3-super:120b [20].
| Target | Rows | Train \(R^2\) | Held-out \(R^2\) | Held-out MAE |
|---|---|---|---|---|
| Oracle graph retention | 50 | 0.9984 | 0.9978 | 0.0081 |
| Oracle Eve action probability | 1501 | 0.7048 | 0.6886 | 0.0257 |
| Expected denial vs. oracle Alice | 1501 | 0.4344 | 0.3781 | 0.1305 |
| Oracle Alice route probability | 714 | 0.2437 | 0.1723 | 0.0833 |
3.0pt
In Fig. 5, we present scores for the LLM responses with 4 mechanical categories and 1 subjective human category. All LLMs scored near-perfect on the four mechanical checks, i.e. correctly reported the active decision tree leaf and its predicted value. Yet they were unable to inform why the underlying features produced that outcome. No tested model produced responses exceeding a score of 7 for interpretability.
On a 50-topology corpus of SeQUeNCe E91 transcripts, Exp3 co-learning from pure bandit feedback recovers the minimax strategy structure and equilibrium support: bottlenecks are fatal, retention follows \(1-1/N\), learned retention tracks the oracle reference at \(r=0.99\), and both players’ learned strategies match the coverage logic of the topology. The Nash gap of the averaged strategies decays with horizon, and the residual gap grows with action-space size—finite-horizon learning error, not topological weakness. Decision-tree faithfulness shows graph-level trees are nearly exact, Eve-action trees moderate, and Alice-route trees weak.
Open directions follow from the topology-corpus design: Alice’s payoff is CHSH acceptance, Eve’s payoff is route collision, and each matrix entry is estimated from cached SeQUeNCe trials. Improvements should distinguish better between denial, acceptance, and information leakage with more-explicit finite-sample and finite-key semantics. The hardware fields are controlled simulation parameters, not emulated device physics. By using hardware studies only to motivate the parameter values, we create a non-trivial high-efficiency E91 routing regime. A future improvement should emulate device mappings more precisely. Finally, larger action spaces are less equilibrated over long training runs, and the residual Nash gap exposes horizon imbalance in the learned mixture. A natural next step is to test contextual-bandit variants [22] which exploit route and attack features, rather than treating all actions as uniformly exchangeable under exploration.
We acknowledge funding by the Austrian Federal Ministry of Education, Science, and Research via the Austrian Research Promotion Agency (Forschungsförderungsgesellschaft – FFG) through Quantum Austria project No. and No.. This research was co-funded by the European Union (Quantum Flagship project ASPECTS, Grant Agreement No.). The authors acknowledge OpenAI Codex [23] and Claude Fable 5 [21] for repository development and manuscript editing assistance.
The minimal reproducibility artifact for the topology corpus, payoff-cache construction, learning runs, and figure generation is available at the public GitHub repository [24]. The submitted experiments correspond to commit ba96bb0.
RFI-IRFOS and TU Graz, Graz, Austria; bell.brennan.p@gmail.com↩︎
openmaind FlexCo and TU Graz, Graz, Austria; inti.mendoza@openmaind.ai↩︎
Know Center Research GmbH and University of Graz, Graz, Austria; andreas.truegler@uni-graz.at↩︎
Atominstitut, TU Wien and IQOQI, ÖAW, Vienna, Austria; paul.erker@tuwien.ac.at↩︎