# Reinforcement Learning for Adaptive Composition of Quantum Circuit Optimisation Passes

DevFeed: [Reinforcement Learning for Adaptive Composition of Quantum Circuit Optimisation Passes](<https://devfeed.tech/articles/reinforcement-learning-for-adaptive-composition-of-quantum-circuit-optimisation-passes-120383.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2601.21629>)

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

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [agent](<https://devfeed.tech/tags/agent.md>), [circuit](<https://devfeed.tech/tags/circuit.md>), [circuits](<https://devfeed.tech/tags/circuits.md>), [composition](<https://devfeed.tech/tags/composition.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [learning](<https://devfeed.tech/tags/learning.md>), [optimisation](<https://devfeed.tech/tags/optimisation.md>), [quant-ph](<https://devfeed.tech/tags/quant-ph.md>), [quantum](<https://devfeed.tech/tags/quantum.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>)

## AI overview

The study trains a reinforcement learning agent to choose sequences of PyTKET passes that reduce two-qubit gate counts, adapting pass composition to individual circuits. Across the diverse test set, the agent removed a mean 57.7% and median 56.7% of two-qubit gates, compared with 41.8% and 50.0% for the next-best default sequence. The agent sometimes forgoes immediate reward to improve the final gate count. The approach separates designing optimisation passes from deciding how to use them; the supplied abstract does not describe broader evaluation or implementation details.

## Source excerpt

arXiv:2601.21629v2 Announce Type: replace-cross 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 \%)$, compared to $(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.