quant-phJan 29, 2026

Reinforcement Learning for Adaptive Composition of Quantum Circuit Optimisation Passes

Authors: Daniel Mills, Ifan Williams, Jacob Swain, Gabriel Matos, Enrico Rinaldi, Alexander Koziell-Pipe

Organizations: Quantinuum, Terrington House, 13–15 Hills Road, Cambridge CB2 1NL, United Kingdom · Quantinuum, Partnership House, Carlisle Place, London SW1P 1BX, United Kingdom

Abstract

Many quantum software development kits provide a suite of circuit optimisation passes. These passes have been highly optimised and tested in isolation. However, the order in which they are applied is left to the user, or else defined in general-purpose default pass sequences. While general-purpose sequences miss opportunities for optimisation which are particular to individual circuits, designing pass sequences bespoke to particular circuits requires exceptional knowledge about quantum circuit design and optimisation. Here we propose and demonstrate training a reinforcement learning agent to compose optimisation-pass sequences. In particular the agent's action space consists of passes for two-qubit gate count reduction used in default PyTKET pass sequences. For the circuits in our diverse test set, the (mean, median) fraction of two-qubit gates removed by the agent is (57.7%, 56.7%)(57.7\%, \ 56.7 \%), compared to (41.8%, 50.0%)(41.8 \%, \ 50.0 \%) for the next best default pass sequence. In doing so our model demonstrates the ability to forgo reward to improve the final two-qubit gate count. Our approach clearly separates the problem of designing circuit optimisation passes from the problem of using them optimally in practice. We expect this separation of concerns to facilitate innovations in both areas.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Transpiler Autotuning with Predictive Models for Quantum Circuit Optimization

    Jul 31, 2026Piotr Malkowski, Domenik Eichhorn, Joshua Ammermann +4Quantum Circuit OptimizationQuantum Circuit Compilation

  2. QAP-Router: Tackling Qubit Routing as Dynamic Quadratic Assignment with Reinforcement Learning

    May 12, 2026Kien X. Nguyen, Ankit Kulshrestha, Ilya Safro +1Quantum Circuit CompilationCombinatorial Optimization

  3. Reinforcement Learning for Parameterized Quantum State Preparation: A Comparative Study

    Feb 18, 2026Gerhard Stenzel, Isabella Debelic, Michael Kölle +4Quantum Circuit SynthesisQuantum State Preparation