[Paper Review] Practical and efficient quantum circuit synthesis and transpiling with Reinforcement Learning
The paper introduces reinforcement learning (RL) to synthesize and route quantum circuits, achieving near-optimal results for Clifford, Linear Function, and Permutation circuits and significantly reducing routing overhead, with much faster performance than SAT solvers.
This paper demonstrates the integration of Reinforcement Learning (RL) into quantum transpiling workflows, significantly enhancing the synthesis and routing of quantum circuits. By employing RL, we achieve near-optimal synthesis of Linear Function, Clifford, and Permutation circuits, up to 9, 11 and 65 qubits respectively, while being compatible with native device instruction sets and connectivity constraints, and orders of magnitude faster than optimization methods such as SAT solvers. We also achieve significant reductions in two-qubit gate depth and count for circuit routing up to 133 qubits with respect to other routing heuristics such as SABRE. We find the method to be efficient enough to be useful in practice in typical quantum transpiling pipelines. Our results set the stage for further AI-powered enhancements of quantum computing workflows.
Motivation & Objective
- Motivate integration of AI tools into quantum computing workflows to enhance transpilation and circuit optimization.
- Develop a generic RL framework that yields near-optimal circuit synthesis for Clifford, Linear Function, and Permutation circuits under device connectivity constraints.
- Demonstrate RL-driven circuit routing that improves two-qubit gate depth and count while remaining computationally efficient.
- Show practicality of RL methods within real-world transpilation pipelines and discuss scalability and integration with existing tooling.
Proposed method
- Frame circuit synthesis as a sequential decision process where the agent selects gates to reduce an operator to the identity.
- Train an RL agent using curriculum learning to gradually tackle harder target operators, with rewards for reaching identity and penalties for gate count/depth.
- Inference strategies include greedy, sampling, and top-k/top-p gate selection based on the agent’s output probabilities.
- Represent Clifford circuits with a Clifford tableau (matrix-only, phase ignored) and train a neural network to map operator representations to gate actions under connectivity constraints.
- Extend the RL framework to circuit routing by treating SWAPs as actions and optimizing layout and gate metrics.
- Compare RL-based methods against SAT solvers and heuristic approaches, and benchmark on Clifford, Permutation, and Linear Function circuits as well as routing tasks.

Experimental results
Research questions
- RQ1Can reinforcement learning synthesize near-optimal Clifford, Linear Function, and Permutation circuits under native device constraints and connectivity?
- RQ2How does RL-based circuit routing perform in terms of two-qubit gate depth and count compared to existing routing heuristics like SABRE?
- RQ3Is the RL approach practical for integration into real quantum transpilation pipelines in terms of runtime and scalability?
- RQ4What are the performance and scalability limits of RL synthesis and routing when scaled to larger qubit counts and circuit sizes?
- RQ5Can a single RL framework generalize across different circuit families and connectivity graphs, or is topology-specific training required?
Key findings
- RL synthesis achieves near-optimal CNOT count and depth for Clifford circuits on constrained connectivity (example provided: 7-qubit Clifford with H connectivity).
- For permutation circuits, RL attains 100% optimal SWAP count and depth for 8-L topology and 65-HH/27-HH variants in benchmarks, with substantially faster runtimes than SAT solvers.
- For linear function circuits, RL demonstrates near-optimal results up to 9 qubits; for Clifford up to 11 qubits; for Permutation up to 65 qubits, with routing demonstrations up to 133 qubits.
- RL routing yields about 20% reduction in CNOT depth over BIP-based routing and maintains or slightly improves CNOT count on 8–10 qubit quantum volume circuits routed to linear connectivity; 8-iteration RL routing can outperform standard transpilers in depth and gate counts.
- Generic RL routing further reduces CNOT depth by about 40% and lowers two-qubit gate count by ~10% for 133-qubit circuits routed to IBM Torino topology, compared to Qiskit SDK level-3 transpiler.
- The method runs orders of magnitude faster than SAT-based optimization (e.g., seconds vs hours) while delivering substantial quality gains over heuristics, and is suitable for practical deployment in AI-enabled transpilation workflows.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.