Reinforcement learning with learned gadgets to tackle hard quantum problems on real hardware

Akash Kundu, Leopoldo Sarra
10/31/2024
quant-phcs.AIcs.LG

Official code: Aqasch/Gadget_RL (7 stars, Apache-2.0, last commit 2025-04-02).

Abstract

Designing quantum circuits for specific tasks is challenging due to the exponential growth of the state space. We introduce gadget reinforcement learning (GRL), which integrates reinforcement learning with program synthesis to automatically generate and incorporate composite gates (gadgets) into the action space. This enhances the exploration of parameterized quantum circuits (PQCs) for complex tasks like approximating ground states of quantum Hamiltonians, an NP-hard problem. We evaluate GRL using the transverse field Ising model under typical computational budgets (e.g., 2- 3 days of GPU runtime). Our results show improved accuracy, hardware compatibility and scalability. GRL exhibits robust performance as the size and complexity of the problem increases, even with constrained computational resources. By integrating gadget extraction, GRL facilitates the discovery of reusable circuit components tailored for specific hardware, bridging the gap between algorithmic design and practical implementation. This makes GRL a versatile framework for optimizing quantum circuits with applications in hardware-specific optimizations and variational quantum algorithms. The code is available at: https://github.com/Aqasch/Gadget_RL

View on arXivView PDF

Code Implementations(1)

Aqasch/Gadget_RLOfficial100%
Apache-2.0

RL to solve easy problems -> extract useful gadgets -> leverage gadgetized RL to tackle hard problems

71Python, Jupyter NotebookMar 26, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{kundu2024reinforcement,
  title  = {Reinforcement learning with learned gadgets to tackle hard quantum problems on real hardware},
  author = {Akash Kundu and Leopoldo Sarra},
  year   = {2024},
  eprint = {2411.00230},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.00230v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.00230.svg)](https://codeofpaper.com/paper/2411.00230)

Discussion