Skip to main content
QUICK REVIEW

[Paper Review] Quantum Algorithms for Reinforcement Learning with a Generative Model

Daochen Wang, Aarthi Sundaram|arXiv (Cornell University)|Dec 15, 2021
Quantum Computing Algorithms and ArchitectureComputer Science23 references13 citations
TL;DR

This paper presents quantum algorithms for reinforcement learning in Markov decision processes (MDPs) using a quantum generative model, achieving quadratic speedups over classical methods in the effective time horizon (1/(1−γ)), action space size (A), and approximation error (ϵ). The algorithms compute optimal policies, value functions, and Q-functions with improved sample complexity, and prove optimality of the Q-function algorithm via a matching quantum lower bound.

ABSTRACT

Reinforcement learning studies how an agent should interact with an environment to maximize its cumulative reward. A standard way to study this question abstractly is to ask how many samples an agent needs from the environment to learn an optimal policy for a $γ$-discounted Markov decision process (MDP). For such an MDP, we design quantum algorithms that approximate an optimal policy ($π^*$), the optimal value function ($v^*$), and the optimal $Q$-function ($q^*$), assuming the algorithms can access samples from the environment in quantum superposition. This assumption is justified whenever there exists a simulator for the environment; for example, if the environment is a video game or some other program. Our quantum algorithms, inspired by value iteration, achieve quadratic speedups over the best-possible classical sample complexities in the approximation accuracy ($ε$) and two main parameters of the MDP: the effective time horizon ($\frac{1}{1-γ}$) and the size of the action space ($A$). Moreover, we show that our quantum algorithm for computing $q^*$ is optimal by proving a matching quantum lower bound.

Motivation & Objective

  • To design quantum algorithms that efficiently approximate optimal policies, value functions, and Q-functions in discounted Markov decision processes (MDPs).
  • To achieve improved sample complexity over classical methods by leveraging quantum access to a generative model of the environment.
  • To prove that the quantum algorithm for computing the optimal Q-function is optimal by establishing a matching quantum lower bound.
  • To explore the limits of quantum speedups in reinforcement learning under standard assumptions, particularly in terms of ϵ, Γ = 1/(1−γ), and A.
  • To identify open problems in extending quantum speedups to model-based algorithms and broader MDP classes.

Proposed method

  • The algorithms are based on a quantum generative model that allows access to state transition probabilities via quantum superposition, enabling coherent access to the environment’s dynamics.
  • The core approach adapts value iteration to the quantum setting, using amplitude amplification and amplitude estimation to accelerate convergence.
  • A quantum circuit is systematically constructed from a classical simulator circuit by making it reversible and then quantizing it using Hadamard transforms and quantum gates.
  • The quantum generative model is formalized as a unitary operation that prepares a superposition over next states with amplitudes proportional to their transition probabilities.
  • The algorithms use quantum amplitude estimation to estimate value functions and Q-functions with precision ϵ, achieving a quadratic speedup in ϵ and other key parameters.
  • The construction ensures that the quantum access model is realizable whenever a classical simulator exists, such as in video games or programmatic environments.

Experimental results

Research questions

  • RQ1Can quantum algorithms achieve a quadratic speedup in sample complexity for approximating the optimal Q-function in an MDP with a generative model?
  • RQ2Is the quantum algorithm for computing the optimal Q-function optimal in terms of sample complexity, and can this optimality be proven via a quantum lower bound?
  • RQ3Can similar quantum speedups be achieved for approximating the optimal value function and policy, and how do they scale with Γ = 1/(1−γ), A, and ϵ?
  • RQ4What are the limitations of quantum speedups in reinforcement learning when the state space size S is large, and why is S not improved in the quantum bounds?
  • RQ5Can quantum algorithms be extended to model-based approaches or to settings with function approximation, and what are the potential for greater speedups in special MDP classes?

Key findings

  • The quantum algorithm for computing the optimal Q-function achieves a sample complexity of O(SAΓ^1.5 / ϵ), which is quadratically better than the best classical bound of O(SAΓ^3 / ϵ^2).
  • A matching quantum lower bound of Ω(SAΓ^1.5 / ϵ) is proven, establishing that the quantum algorithm for q∗ is optimal up to logarithmic factors.
  • For the optimal value function v∗ and policy π∗, the quantum algorithm achieves a sample complexity of O(SAΓ^1.5 / ϵ), matching the upper bound for q∗, and offering a quadratic speedup over classical methods.
  • The quantum algorithm for π∗ achieves a sample complexity of O(S√A Γ^1.5 / ϵ), which is optimal under the assumption that A is constant or in certain parameter regimes.
  • The results show that quantum speedups are possible in terms of ϵ, Γ, and A, but not in terms of S, indicating that the state space size remains a fundamental bottleneck.
  • The paper identifies open problems, including achieving optimal quantum algorithms across all parameters and extending results to model-based quantum algorithms or function approximation settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.