Skip to main content
QUICK REVIEW

[Paper Review] Unentangled quantum reinforcement learning agents in the OpenAI Gym

Jen-Yueh Hsiao, Yuxuan Du|arXiv (Cornell University)|Mar 27, 2022
Neural Networks and Reservoir ComputingComputer Science15 citations
TL;DR

This paper proposes a variational quantum circuit (VQC)-based reinforcement learning agent using single-qubit parametrized circuits without entangling gates, integrated with a classical neural network for post-processing. It demonstrates faster convergence and superior sample efficiency than classical fully-connected networks in CartPole and Acrobot, and achieves the first successful training of a quantum RL agent in LunarLander—validated on real IBM quantum hardware.

ABSTRACT

Classical reinforcement learning (RL) has generated excellent results in different regions; however, its sample inefficiency remains a critical issue. In this paper, we provide concrete numerical evidence that the sample efficiency (the speed of convergence) of quantum RL could be better than that of classical RL, and for achieving comparable learning performance, quantum RL could use much (at least one order of magnitude) fewer trainable parameters than classical RL. Specifically, we employ the popular benchmarking environments of RL in the OpenAI Gym, and show that our quantum RL agent converges faster than classical fully-connected neural networks (FCNs) in the tasks of CartPole and Acrobot under the same optimization process. We also successfully train the first quantum RL agent that can complete the task of LunarLander in the OpenAI Gym. Our quantum RL agent only requires a single-qubit-based variational quantum circuit without entangling gates, followed by a classical neural network (NN) to post-process the measurement output. Finally, we could accomplish the aforementioned tasks on the real IBM quantum machines. To the best of our knowledge, none of the earlier quantum RL agents could do that.

Motivation & Objective

  • Address the sample inefficiency of classical reinforcement learning (RL) in large state-action spaces.
  • Demonstrate that quantum RL agents can achieve comparable or better performance with significantly fewer trainable parameters.
  • Design a scalable, near-term quantum RL architecture that operates without entangling gates and is compatible with NISQ devices.
  • Achieve training success in challenging environments like LunarLander using a minimal quantum circuit and real quantum hardware.
  • Provide empirical evidence of quantum advantage in sample efficiency for RL in the NISQ era.

Proposed method

  • Employ a single-qubit variational quantum circuit (VQC) with parametrized Pauli rotations as the quantum feature map, avoiding entangling gates to reduce error rates.
  • Use a classical feedforward neural network to process the measurement outcomes of the quantum circuit, forming a hybrid quantum-classical policy network.
  • Apply proximal policy optimization (PPO) as the training algorithm for the quantum RL agent across multiple OpenAI Gym environments.
  • Implement the quantum circuit on both simulator and real IBM quantum processors (e.g., ibmq_quito) to validate hardware feasibility.
  • Optimize the VQC using gradient-based methods with differentiable quantum circuits, leveraging parameter-shift rules for gradient computation.
  • Use a reward-based training loop with exploration strategies to balance exploitation and exploration in continuous and discrete control tasks.

Experimental results

Research questions

  • RQ1Can a quantum RL agent with a minimal quantum circuit (single qubit, no entangling gates) outperform classical RL agents in sample efficiency?
  • RQ2Can such a quantum agent successfully solve challenging continuous control tasks like LunarLander in the OpenAI Gym environment?
  • RQ3Does the proposed hybrid quantum-classical architecture achieve faster convergence than classical fully-connected neural networks under identical optimization settings?
  • RQ4Is the proposed quantum RL agent trainable and stable on real noisy intermediate-scale quantum (NISQ) hardware?
  • RQ5What is the trade-off between model complexity (number of trainable parameters) and learning performance in quantum vs. classical RL?

Key findings

  • The quantum RL agent achieved faster convergence than classical fully-connected neural networks in both CartPole and Acrobot environments under the same optimization process.
  • The quantum agent required at least one order of magnitude fewer trainable parameters than classical models to reach comparable performance.
  • The first successful training of a quantum RL agent in the LunarLander environment was achieved using a single-qubit VQC without entangling gates.
  • The quantum agent was successfully deployed and executed on real IBM quantum devices, including ibmq_quito, demonstrating hardware feasibility.
  • The absence of entangling gates significantly reduced circuit depth and error rates, enabling reliable execution on NISQ hardware.
  • The hybrid architecture—VQC followed by a classical neural network—proved effective for post-processing measurement outcomes and policy optimization.

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.