Optimizing Quantum Circuits via ZX Diagrams using Reinforcement Learning and Graph Neural Networks

📅 2025-04-04
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
In the NISQ era, noise in two-qubit gates—particularly CNOT gates—severely degrades quantum circuit reliability. Method: This paper introduces the first end-to-end reinforcement learning (RL)-based ZX-calculus optimization framework. It maps quantum circuits to ZX-diagrams, encodes structural information via graph neural networks, and jointly employs Monte Carlo tree search and policy gradient RL to autonomously discover optimal rewriting sequences within the ZX-calculus space—bypassing handcrafted rule limitations. Contribution/Results: The method discovers high-order, generalizable optimization patterns. Evaluated on diverse random circuits, it reduces CNOT count by over 20% on average—outperforming state-of-the-art optimizers. Its strong generalization across circuit families and compatibility with hardware constraints demonstrate significant practical potential for near-term quantum compilation and deployment.

Technology Category

Application Category

📝 Abstract
Quantum computing is currently strongly limited by the impact of noise, in particular introduced by the application of two-qubit gates. For this reason, reducing the number of two-qubit gates is of paramount importance on noisy intermediate-scale quantum hardware. To advance towards more reliable quantum computing, we introduce a framework based on ZX calculus, graph-neural networks and reinforcement learning for quantum circuit optimization. By combining reinforcement learning and tree search, our method addresses the challenge of selecting optimal sequences of ZX calculus rewrite rules. Instead of relying on existing heuristic rules for minimizing circuits, our method trains a novel reinforcement learning policy that directly operates on ZX-graphs, therefore allowing us to search through the space of all possible circuit transformations to find a circuit significantly minimizing the number of CNOT gates. This way we can scale beyond hard-coded rules towards discovering arbitrary optimization rules. We demonstrate our method's competetiveness with state-of-the-art circuit optimizers and generalization capabilities on large sets of diverse random circuits.
Problem

Research questions and friction points this paper is trying to address.

Reducing two-qubit gates in noisy quantum circuits
Optimizing circuits via ZX diagrams and reinforcement learning
Discovering arbitrary optimization rules beyond heuristics
Innovation

Methods, ideas, or system contributions that make the work stand out.

ZX calculus and reinforcement learning for circuit optimization
Graph neural networks to explore circuit transformations
Tree search for optimal ZX rewrite rule sequences
🔎 Similar Papers
No similar papers found.
Alexander Mattick
Alexander Mattick
PhD student, Fraunhofer IIS
Reinforcement LearningConstrained OptimizationBayesian Methods
Maniraman Periyasamy
Maniraman Periyasamy
Fraunhofer Institute for Integrated Circuits IIS
Quantum ComputationQuantum Machine LearningReinforcement LearningDeep Learning
C
Christian Ufrecht
Fraunhofer Institut für Integrierte Schaltungen IIS, Nürnberg, Germany
A
Abhishek Y. Dubey
Fraunhofer Institut für Integrierte Schaltungen IIS, Nürnberg, Germany
Christopher Mutschler
Christopher Mutschler
Division Director Positioning and Networks, Fraunhofer IIS
Reinforcement LearningMachine LearningIndoor PositioningIndoor Navigation
A
A. Plinge
Fraunhofer Institut für Integrierte Schaltungen IIS, Nürnberg, Germany
D
Daniel D. Scherer
Fraunhofer Institut für Integrierte Schaltungen IIS, Nürnberg, Germany