Skip to main content
QUICK REVIEW

[Paper Review] Automated quantum programming via reinforcement learning for combinatorial optimization

Keri A. McKiernan, Erik Davis|arXiv (Cornell University)|Aug 21, 2019
Quantum Computing Algorithms and ArchitectureComputer Science1 references13 citations
TL;DR

This paper proposes a reinforcement learning framework for automated quantum programming to solve combinatorial optimization problems on both simulated and real gate-based quantum computers. Using Proximal Policy Optimization (PPO), agents learn to generate short, high-quality quantum circuits that outperform untrained agents and p=1 QAOA, demonstrating generalization across problem instances and between simulation and physical hardware.

ABSTRACT

We develop a general method for incentive-based programming of hybrid quantum-classical computing systems using reinforcement learning, and apply this to solve combinatorial optimization problems on both simulated and real gate-based quantum computers. Relative to a set of randomly generated problem instances, agents trained through reinforcement learning techniques are capable of producing short quantum programs which generate high quality solutions on both types of quantum resources. We observe generalization to problems outside of the training set, as well as generalization from the simulated quantum resource to the physical quantum resource.

Motivation & Objective

  • To develop a general reinforcement learning framework for automated quantum programming in hybrid quantum-classical systems.
  • To address the challenge of programming near-term quantum hardware, which is unintuitive and error-prone due to noise and limited qubit coherence.
  • To enable agents to generate compact quantum circuits that produce high-quality solutions for combinatorial optimization problems (COPs).
  • To evaluate generalization of trained agents across unseen problem instances and between simulated and physical quantum resources.
  • To explore the scalability and transferability of reinforcement learning for quantum program synthesis beyond standard heuristic approaches like QAOA.

Proposed method

  • Formalizes a reinforcement learning environment using OpenAI Gym’s API, defining state space, action space, and reward function for quantum program synthesis.
  • Defines the action space as a finite set of discrete single-qubit gates (e.g., RZ, RY rotations), enabling discrete control over quantum circuit construction.
  • Uses the expectation value of a problem-specific cost Hamiltonian as the reward signal, rescaled to [0,1] for stable training.
  • Employs a shared actor-critic neural network architecture with the PPO algorithm to optimize policies for quantum circuit generation.
  • Iteratively constructs quantum programs by appending gates, evaluating on quantum resources (simulator or real QPU), and updating the policy based on observed rewards.
  • Observations include both quantum state measurements and problem-specific features (e.g., graph structure), enabling the agent to reason about problem context.

Experimental results

Research questions

  • RQ1Can reinforcement learning effectively generate short, high-quality quantum programs for combinatorial optimization problems on both simulated and physical quantum hardware?
  • RQ2To what extent do trained agents generalize to problem instances outside the training distribution?
  • RQ3How does the performance of RL-generated programs compare to the standard p=1 QAOA heuristic on identical problem sets?
  • RQ4Can the agent’s policy generalize from simulation to real quantum processors, despite differences in noise and gate fidelity?
  • RQ5What are the implications of the method’s scalability as problem size increases, particularly in terms of training time and circuit depth?

Key findings

  • Trained reinforcement learning agents consistently outperformed untrained agents and p=1 QAOA in generating high-quality solutions across both simulated and physical quantum resources.
  • The agents demonstrated generalization to unseen problem instances, indicating the emergence of transferable strategies beyond overfitting to training data.
  • Generalization was observed from simulated quantum resources to physical quantum processors, suggesting robustness to noise and hardware imperfections.
  • The shortest possible gate sequences (e.g., X gates only) were found to be optimal for certain problems, and the policy learned to avoid suboptimal rotations, aligning with theoretical expectations.
  • The PPO algorithm enabled stable and efficient training without extensive hyperparameter tuning, supporting the feasibility of the framework for practical deployment.
  • The framework shows potential for extension to non-diagonal Hamiltonians and other quantum programming tasks, particularly with modifications to observation and reward design.

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.