Source-linked AI summary

AI-Assisted Discovery of CNOT Decompositions for Quantum Permutations on Constrained Topologies

Daniele Lizzio Bosco, Jacopo Cossio, Simone Faro, Francesco Pio Marino, Gabriele Messina, Carla Piazza, Giuseppe Serra

arXiv:2610.37045v1cs.AI

TL;DR

Limited qubit connectivity makes the cost of executing quantum circuits depend on how they are compiled to the hardware topology, while AI-assisted methods' role in discovering deterministic compilation principles remains largely unexplored. The paper uses AlphaCNOT to identify and formalize a remote-transposition construction and a deterministic permutation-synthesis method, and finds additional reductions from intermediate CNOT fusion.

  • Problem

    The paper asks which opportunities direct CNOT synthesis can exploit that SWAP-based routing excludes under constrained connectivity.

    Source: §1 · pp. 1–2
  • Method

    The authors inspect AlphaCNOT decompositions, prove a topology-legal remote-transposition construction, and use it in Global Transpositions, a minimum-cost decomposition method.

    Source: §1 · p. 2
  • Results

    At graph distance d>1, remote transpositions need at most 6d−4 CNOTs versus 6d−3 for the SWAP-based construction; experiments also reveal intermediate CNOT fusion.

    Source: §1 · pp. 2–3
  • Takeaways & Limitations

    AI-assisted synthesis can reveal reusable constructions and compilation principles, as well as a broader fusion mechanism that remains not fully characterized.

    Source: §1 · p. 3

    Global Transpositions returns to the permutation subgroup after each transposition, so direct circuits using outside-subgroup intermediates can be shorter; optimality of the 6d−4 bound remains unproved.

    Source: §3 · p. 7, §4 · p. 9

Abstract

from arXiv · show

Efficient quantum circuit compilation is challenging for quantum computers, where limited qubit connectivity can introduce substantial overhead in the implementation of logical operations. Recent AI-assisted synthesis methods have shown considerable potential for reducing circuit complexity, but their role in uncovering principles that can guide the design of new deterministic compilation algorithms remains largely unexplored. In this work, we investigate this perspective for the synthesis of quantum permutations into CNOT circuits under constrained qubit connectivity. Using AlphaCNOT as an exploratory tool, we identify a recurring decomposition for remote transpositions that improves on the construction based on adjacent SWAP routing. For two qubits at graph distance $d>1$, the discovered pattern yields a topology-legal implementation using at most $6d-4$ CNOT gates, compared to the $6d-3$ gates required by the corresponding SWAP-based construction. We formalize this observation through a constructive proof to define Global Transpositions, a deterministic synthesis method that searches for a minimum-cost decomposition of an entire permutation into topology-aware logical transpositions. The resulting method subsumes optimal SWAP routing within its synthesis model and provides certified upper bounds on the topology-constrained CNOT cost. Our experiments also reveal circuits that cannot be expressed as concatenations of independently synthesized transpositions. Instead, these circuits exploit intermediate linear transformations that temporarily leave the permutation subgroup and combine partial effects of multiple logical operations, a mechanism we call intermediate CNOT fusion. Our results show that AI-assisted synthesis can support not only circuit optimization, but also the discovery of reusable identities, provable constructions, and hidden mechanisms in quantum circuit compilation.

1. Introduction

The paper asks which CNOT-level opportunities are excluded by SWAP routing on constrained topologies, then uses AlphaCNOT to uncover and formalize reusable structures for permutation synthesis.

1. Introduction

  • Constrained connectivity makes compilation cost depend on the target topology, and minimum-SWAP routing does not necessarily minimize the CNOT count after expansion.This leaves open which opportunities direct CNOT synthesis can exploit beyond SWAP-based routing.Source: §1 · pp. 1–2
  • AlphaCNOT outputs serve as evidence for recurring structures that can be formalized, rather than only as optimized circuits.The study examines constant-depth circuits for quantum rotations and permutations as a benchmark for further CNOT-level reductions.Source: §1 · p. 2
  • At graph distance d>1, remote transpositions use at most 6d−4 CNOTs, one fewer than the 6d−3 required by the corresponding SWAP-based construction.The authors give a constructive proof of this topology-legal implementation.Source: §1 · p. 2
  • Global Transpositions finds a minimum-cost decomposition into topology-aware transpositions and is never worse than optimal SWAP routing expanded into CNOT gates.It is exact within the restricted model of concatenated, independently synthesized transpositions.Source: §1 · pp. 2–3
  • Direct synthesis can beat that model by jointly sharing partial effects through intermediate linear transformations outside the permutation subgroup.The authors call this mechanism Intermediate CNOT Fusion; it is experimentally visible but not yet fully characterized.Source: §1 · pp. 2–3

2. Background

The background introduces constant-depth circuits for rotations and permutations as the study's baseline, then describes AlphaCNOT as an exploratory tool for topology-aware CNOT synthesis.

2. Background

  • The background reviews the constant-depth circuit family used as a baseline and the AI-based optimizer [7] used in the analysis.It focuses on concepts needed for the paper rather than reproducing the original works' full technical details.Source: §2 · p. 3

2.1. Constant-Depth Quantum Rotations and Permutations

  • Faro et al. implement rotations in two parallel SWAP layers and extend the construction to arbitrary permutations through disjoint cycles, preserving constant depth and linear size.These structured circuits provide a benchmark for testing whether direct CNOT synthesis can further reduce gate counts.Source: §2.1 · p. 3

2.2. AI-Based CNOT Optimization

  • AlphaCNOT searches for CNOT sequences that reduce an invertible binary parity matrix to identity, with topology-aware actions restricted to gates supported by the coupling graph.Its model-based reinforcement learning combines neural networks and Monte Carlo Tree Search; the paper inspects its outputs to identify structures for deterministic constructions.Source: §2.2 · p. 4
  • Because AlphaCNOT search is stochastic, the experiments report either a single run or the best result from ten independent runs.The authors use AlphaCNOT as an exploratory tool, rather than treating it only as a black-box optimizer.Source: §2.2 · p. 4

3. Discovery of local primitives

AlphaCNOT’s recurring remote-transposition pattern motivates a topology-legal construction using at most 6d−4 CNOTs for distance d>1. A constructive proof establishes this bound, one gate fewer than the corresponding SWAP-based construction.

3. Discovery of local primitives

  • AlphaCNOT’s single-shot means followed the 3-at-distance-1, 6d−4-at-distance-greater-than-1 pattern in most cases, while best-of-ten found the formula for every tested transposition.The reported table covers mean single-shot counts across transpositions of distance d for selected topologies.Source: §3 · p. 5, Table 1 · p. 6
  • At distance d>1, every remote transposition admits a topology-legal circuit of at most 6d−4 CNOTs, one fewer than the 6d−3 SWAP construction.For distance 2, the figure contrasts 8 CNOTs for τ(0, 2) with 9 from three adjacent SWAPs.Source: §3 · p. 5, Figure 2 · p. 6
  • The proof reduces endpoints to a shortest-path line and inducts from an eight-CNOT distance-2 base, adding six CNOTs per distance step.The recurrence L(d) = L(d−1) + 6 with L(2) = 8 yields L(d) = 6d−4.Source: §3 · pp. 6–7
  • The construction proves only an upper bound; exhaustive searches through five-qubit topologies found no shorter circuit, leaving general optimality conjectural.The authors report that a general proof of optimality remains open.Source: §3 · p. 7
  • The certified transposition costs become building blocks for a deterministic global synthesis algorithm that chooses among them for arbitrary permutations.The next method formalizes this idea using minimum-cost decompositions.Source: §3 · p. 7

4. Global Transpositions Algorithm

Global Transpositions synthesizes a permutation by searching over topology-weighted logical transpositions rather than only adjacent SWAPs. Dijkstra gives a minimum-cost decomposition within that model, whose circuits certify an upper bound and are no worse than optimal SWAP routing.

4. Global Transpositions Algorithm

  • Global Transpositions assigns each logical transposition a topology-dependent CNOT cost and searches a weighted Cayley graph over S_n for a minimum-cost decomposition of the target permutation.The decomposition is chosen over the whole target permutation, not independently cycle by cycle.Source: §4 · p. 8
  • Dijkstra recovers a minimum-weight transposition chain, which is expanded into topology-legal CNOT blocks.The algorithm computes graph distances and transposition weights before searching from the identity permutation.Source: §4 · p. 9
  • The method is exact only within its restricted model of concatenated transposition blocks, while its concrete circuits certify an upper bound on the topology-constrained CNOT optimum.The model returns to the permutation subgroup after each logical transposition and cannot represent CNOT-level fusions between blocks.Source: §4 · p. 9
  • Global Transpositions never costs more than optimal adjacent-SWAP routing expanded gate by gate, and longer transpositions may improve on that route.The method can reproduce an adjacent-SWAP path because adjacent SWAPs are included among its transpositions.Source: §4 · p. 9
  • All-pairs distance preprocessing takes O(n(n + |E|)) time via repeated BFS, while the search explores the n!-state permutation space.Source: §4 · p. 9
  • Exact synthesis remains computationally challenging, and whether topology-induced costs permit stronger approximation guarantees or specialized efficient algorithms remains open.Source: §4 · p. 10

5. Beyond Transpositions: Intermediate CNOT Fusion

Direct CNOT synthesis can improve on even a globally optimized concatenation of transposition blocks. Intermediate CNOT fusion accounts for this remaining gap, while the paper’s definition and scope are specifically relative to transpositions.

Definition and scope

  • The definition compares a topology-legal CNOT circuit with the minimum-cost concatenation of independently synthesized transposition blocks.It is specifically relative to transpositions; extending it to longer cycles would require different tools or optimal costs for each cycle.Source: §5 · p. 10

Minimal example

  • On 4𝐿 for σ = [2, 3, 1, 0], Global Transpositions uses 14 CNOTs, while direct AlphaCNOT synthesis uses 13, which bidirectional BFS certifies as optimal.The three independently synthesized blocks cost 3 + 3 + 8 CNOTs.Source: §5 · p. 11, Figure 4 · p. 11

Full evaluation

  • AlphaCNOT averages 21.83 CNOTs, versus 22.55 for Global Transpositions and 23.85 for SWAP synthesis across the sampled targets.The direct-synthesis gap is 0.72 CNOTs, or 3.2% relative to Global Transpositions, and occurs on every tested constrained topology.Source: Table 3 · p. 11, §5 · p. 12

Intermediate CNOT fusion

  • Intermediate CNOT fusion explains reductions beyond globally selecting transpositions and assigning improved individual costs to their independent blocks.The 13-CNOT example saves a gate only when the complete permutation is synthesized as one circuit, rather than by summing independently synthesized blocks.Source: §5 · pp. 11–12

Additional examples

  • Examples show that AlphaCNOT can find non-trivial CNOT reductions unavailable through optimal synthesis over S_n, although AlphaCNOT is not optimal in general.The paper suggests intermediate CNOT fusions play a major role in efficient decompositions of permutation circuits.Source: §5 · p. 12

6. Discussion and Future Directions

AlphaCNOT revealed both a reusable remote-transposition construction formalized in Global Transpositions and additional CNOT savings from intermediate linear transformations outside the permutation subgroup. The discussion identifies open questions about when fusion occurs, how much it saves, and whether non-permutation intermediates are necessary for optimal circuits.

6. Discussion and Future Directions

  • AlphaCNOT exposed a remote-transposition pattern yielding at most 6d-4 CNOT gates for endpoints at graph distance d>1, which the authors formalized constructively.This pattern led to Global Transpositions, which minimizes the cost of decomposing a permutation into topology-aware logical transpositions.Source: §6 · p. 12
  • Intermediate CNOT Fusion combines effects across transposition boundaries by traversing linear transformations outside the permutation subgroup before returning to the target permutation.This mechanism can produce reductions beyond independently optimized transposition blocks.Source: §6 · p. 12
  • AlphaCNOT outputs can be inspected for recurring patterns that support constructive proofs and deterministic synthesis, while also exposing limits of permutation-only intermediate-state approaches.The remote-transposition pattern led to a proof and algorithm; fusion revealed the limitation of restricting intermediate states to the permutation subgroup.Source: §6 · p. 12
  • Open questions include when fusion is possible, its maximum CNOT savings, whether it can be identified from the permutation and coupling graph, and whether non-permutation intermediates are necessary for optimality.The authors also raise extending pattern-derived deterministic synthesis rules to other circuit families and compilation problems.Source: §6 · p. 12

Declaration on Generative AI

The authors report using ChatGPT for grammar and spelling checks and to paraphrase and reword some paragraphs, then reviewing and editing the content and taking responsibility for the publication.

Declaration on Generative AI

  • ChatGPT was used for grammar and spelling checks and to paraphrase and reword certain paragraphs; the authors reviewed and edited the content and take full responsibility.Source: Declaration on Generative AI · p. 13
Loading 2610.37045v1…