Quantum Speedup of Multi-armed Bandits at Scale by Tackling Memory Decoherence

Rohit Muralitharan, Mark S. Squillante, Chen Wang, Xuchuang Wang, Chai Wah WuNeurIPS 2026

TL;DR

Quantum algorithms promise a massive speedup for finding the best option among many choices (the classic "multi-armed bandit" problem), but physical qubits forget their states before large-scale problems can finish running. By treating choices as a passing stream rather than loading them all at once, the authors tame this quantum amnesia—scaling a quantum bandit algorithm to over 1,000 options using just two physical qubits on real IBM hardware, while outperforming classical methods.

What Problem Does This Paper Address?

Imagine facing $n$ slot machines ("arms") and trying to find the one with the highest average payout using as few pulls as possible. Classical algorithms require roughly $O(n/\Delta_{[2]}^2)$ samples, where $\Delta_{[2]}$ is the reward gap between the best and runner-up arms. Quantum computing theoretically slashes this to $O(n/\Delta_{[2]})$—a quadratic speedup—by encoding reward probabilities into quantum amplitudes.

In practice, however, quantum bandits hit a wall: memory decoherence. Qubits are fragile, and their states decay rapidly into noise. The authors break this down into two distinct bottlenecks:

  1. Depth-induced decoherence (a today problem): Near-term (NISQ) quantum computers lack error correction. Running deep sequences of quantum operations takes too long, causing qubits to decohere mid-circuit.
Figure 1: Decoherence ratio for amplitude estimation on IBM Quantum System One (Nighthawk r1 QPU) with a linear regres- sion fit.
  1. Retention-induced decoherence (a tomorrow problem): Even future fault-tolerant computers with active quantum memory (qRAM) cannot hold quantum objects indefinitely. Leaving an arm sitting in memory while testing thousands of others invites decay.

How do you build one unified framework that solves both today's circuit-depth limits and tomorrow's memory-retention limits?

Methods

The authors reframe the problem using streaming multi-armed bandits, where arms arrive one by one. Instead of storing all $n$ arms, the algorithm holds a reigning champion ("KING") and pits it against an arriving "CHALLENGER," keeping at most 2 arms in memory at any moment.

  • For Future Fault-Tolerant Hardware (Bounded-Window Game of Arms): Standard streaming algorithms might keep a strong KING in quantum memory for $O(n)$ steps. Here, if a KING survives $O(\log n)$ challengers, the algorithm invests extra queries via Quantum Amplitude Estimation (QAE) to capture a high-precision classical snapshot of its value, then evicts the quantum state from memory. Future challengers compete against this classical number, capping the quantum retention time (the "decoherence window") at $O(\log n)$.
  • For Current NISQ Hardware: Because deep QAE circuits fail on noisy hardware, the authors restrict circuits to constant depth $O(1)$ using shallow Maximum-Likelihood Amplitude Estimation (MLAE). To boost practical efficiency, they introduce a novel destructive SWAP (dSWAP) test filter: a shallow quantum routine that quickly checks if two arms have nearly identical amplitudes, immediately discarding close, suboptimal challengers without wasting deep estimation queries. They pair this with hardware-aware qubit selection, transpiler barriers, and readout error mitigation.

Datasets

To precisely track estimation errors and query budgets, the authors introduce a synthetic benchmark called the clustered low-variance synthetic dataset.

  • For an $n$-arm problem, $n-1$ background arms have reward amplitudes tightly clustered around $0.5$ (drawn from a narrow Gaussian distribution), while a single best arm is placed at $0.5 + \Delta_{[2]}$ above the max background arm.
  • This mimics a needle-in-a-haystack scenario designed to punish algorithms that waste queries comparing nearly identical suboptimal arms.

Key Insights and Ideas

  • Turn long-lived quantum states into classical numbers: You don't need to keep a champion arm coherent forever. Once an arm proves its worth by surviving $O(\log n)$ rounds, measuring it precisely and saving the classical float shrinks the memory decoherence window exponentially—from $O(n)$ down to $O(\log n)$—without hurting overall asymptotic query complexity.
  • Constant-depth circuits lose the asymptotic race, but win the sprint: Restricting NISQ circuits to $O(1)$ depth theoretically forfeits the quadratic quantum speedup, reverting worst-case complexity back to classical $\Omega(n/\Delta_{[2]}^2)$. Yet, shallow Grover iterations combined with quantum dSWAP filtering shrink the leading constant enough to beat classical algorithms in practice.
  • Decoupling problem size from processor size: Because the streaming setup compares only two arms at a time, hardware qubit count no longer limits the number of arms. Two well-calibrated physical qubits can process thousands of arms sequentially.

Key Results

  • Theoretical Optimum: For fault-tolerant active memory, the algorithm finds the best arm with optimal $O(\frac{n}{\Delta_{[2]}}\log(1/\delta))$ queries, a memory footprint of just 2 arms, and an $O(\log n)$ decoherence window—the first quantum bandit algorithm to achieve a sub-linear $o(n)$ window.
  • Scaling on Real Quantum Hardware: Tested on an IBM Quantum System One (120-qubit Nighthawk r1 processor), the authors scaled best-arm identification to $n = 1,000$ arms using only a single physical pair of qubits (qubits 66 and 67) across reward gaps $\Delta_{[2]} \in \{0.01, 0.05\}$.
  • Beating Classical Baselines: Across both 50-seed statistical simulations (up to 5,000 arms in the appendix) and physical IBM hardware runs, the bounded-depth quantum algorithm consistently achieved higher best-arm identification accuracy and lower simple regret than classical Uniform Sampling and Sequential Halving at comparable query budgets. On hardware, a shallow MLAE refinement depth around $k_R \sim 7$ hit the sweet spot between query efficiency and hardware noise.

Limitations and Future Work

  • Known Gap Assumption: The main exact best-arm algorithms assume prior knowledge of the reward gap $\Delta_{[2]}$ between the top two arms (though an $\varepsilon$-best arm generalization is provided in the appendix).
  • No Asymptotic Speedup on NISQ: Under the $O(1)$ circuit-depth restriction required by current noisy hardware, the theoretical worst-case query complexity remains $\Omega(n/\Delta_{[2]}^2)$; the observed NISQ gains are practical constant-factor improvements rather than asymptotic ones.
  • Depth Tuning: On physical hardware, no single circuit depth $k_R$ was universally optimal across every query budget, leaving dynamic or budget-aware depth selection as an open practical consideration.

Summary updated

Abstract

Recent advances in online learning have achieved an $O(n/\Delta_{[2]})$ query complexity in quantum $n$-arm multi-armed bandits (MABs) for best-arm identification with high constant probability, which represents a quadratic speedup over their classical counterparts. Here and throughout, $\Delta_{[2]}$ is the gap between the mean of the best and second-best arms. However, the implementations of these algorithms remain on a small scale due to various aspects of quantum hardware restrictions. One of the most significant restrictions is *memory decoherence*, in which the qubits quickly lose information after a short period of time. Memory decoherence can occur due to *depth-induced* and *retention-induced* reasons. Depth-induced decoherence happens often in near-term quantum computers, where the noise becomes overwhelming when the circuit is deep. On the other hand, retention-induced decoherence captures future quantum machines, where a quantum memory is promising, but objects stored in the memory for too long can still become decoherent. In this paper, we present a comprehensive treatment of both forms of memory decoherence problems. For retention-induced decoherence, we derive a framework based on streaming bandits, and we obtain an algorithm that finds the best arm with high constant probability using $O(n/\Delta_{[2]})$ queries and an $O(\log{n})$ decoherence window. This is the first quantum algorithm for MABs that achieves an $o(n)$ decoherence window, yielding an exponential improvement. For depth-induced decoherence, we observe that the impact of noise is significant in current quantum computers, and only shallow circuits can avoid significant decoherence. Therefore, we focus on only shallow quantum circuits, and we devise various noise-mitigating implementation techniques and a destructive SWAP test subroutine to speed up the empirical performance. On the IBM Quantum System One machine with the Nighthawk r1 processor (120 qubits), our implementation scales the quantum MABs to over $1000$ arms, and our algorithms consistently achieve significant efficiency improvements over classical bandit algorithms in both real physical experiments and classical computer simulations.
BibTeX
@inproceedings{muralitharan2026quantum,
  author = {Rohit Muralitharan and Mark S. Squillante and Chen Wang and Xuchuang Wang and Chai Wah Wu},
  title = {{Quantum Speedup of Multi-armed Bandits at Scale by Tackling Memory Decoherence}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=FpwVLxul2m},
}
Figure