# RL-Guided Contraction of Symbolic Tensor Networks for Quantum Circuit Equivalence

*Suhaib Al-Rousan, Christian Schilling, Max Tschaikowski, Kim Larsen*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151179) · [OpenReview](https://openreview.net/forum?id=cQ7bzhrYxe) · [Open on the map](../papers.html#p151179)

Category: [AI for Molecules, Materials & Genomics](../pcat/8.md) › [Quantum Optimization and Control](../pgroup/184.md) · Type: new method · Keywords: quantum circuit equivalence, tensor network contraction, tensor decision diagram, reinforcement learning, graph neural network

## Summary
The paper introduces an RL-guided framework that learns a graph-neural-network policy to balance arithmetic complexity and tensor decision diagram size during contraction of symbolic tensor networks for quantum circuit equivalence.

## Explained to a 5-year-old
We want to check if two quantum recipes do the same thing. To do that, we turn them into pictures made of blocks and combine the blocks. Choosing the order to combine them can make the pictures huge. We teach a computer program to pick a good order so the pictures stay small. This helps us make sure the quantum recipes are correct.

## Explained to a 5-year-old, longer
Checking if two quantum recipes give the same result is important for making sure they work. One way to do this is to change the recipes into a picture made of many small blocks. Then we combine those blocks step by step to see if the whole picture matches. The order in which we combine the blocks can make the picture grow very big, like a huge stack. If the picture becomes too big, it becomes hard to work with and uses a lot of computer memory. People have tried to guess good orders, but sometimes their guesses are not great. Another idea is to use a special kind of picture called a tensor decision diagram, which is more compact. Even with this compact picture, the order still matters a lot for how fast we can finish. The paper teaches a computer program using a kind of learning called reinforcement learning to decide the best order. The program looks at the picture as a graph and learns which steps keep the picture small. By following the learned order, the picture stays manageable and the checking process runs faster. This helps engineers verify quantum circuits more reliably in real-world quantum computers.

## For a technical reader
The paper addresses the problem of verifying quantum circuit equivalence by contracting tensors derived from the circuits, where the contraction order heavily influences computational cost and memory usage. Existing heuristic policies for tensor network contraction do not transfer well to the more compact tensor decision diagram (TDD) representation, leading to suboptimal performance. The authors propose an RL-guided framework that learns a graph neural network policy to balance arithmetic complexity against TDD size during contraction. Experiments show that the learned policy effectively reduces symbolic representation size while keeping arithmetic cost reasonable, outperforming baseline contraction strategies. This approach can be integrated into quantum compiler pipelines to improve the scalability and reliability of circuit equivalence checking.

## Problem
Verifying that two quantum circuits are equivalent is challenging because contracting tensors can lead to exponential growth in size, and choosing an efficient contraction order is difficult. This problem is especially acute when using compact symbolic representations like tensor decision diagrams, where existing policies are suboptimal.

## Method
The approach formulates contraction order selection as a reinforcement learning problem and trains a graph neural network policy to navigate the trade-off between arithmetic complexity and the size of the tensor decision diagram representation. The learned policy is applied during iterative tensor contraction to keep both computational cost and symbolic size manageable.

## Results
The experiments show that the learned policy successfully reduces the symbolic representation size while maintaining reasonable arithmetic complexity.

## Contributions
We propose an RL-based framework that learns a graph neural network policy tailored for tensor decision diagram contraction, addressing the mismatch between tensor network and TDD policies. This provides a new way to control both computational cost and symbolic size in quantum circuit equivalence checking.

## Practical relevance
The approach enables more scalable and reliable verification of quantum circuits in compiler pipelines, facilitating the deployment of quantum hardware.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151179)
