cs.AISep 4, 2026

LLM-Driven Algorithm Design for Quantum Circuit Synthesis based on Binary Decision Diagrams

Authors: Yoonju Sim, Federico Berto, Chuanbo Hua, Jinkyoo Park, Changhyun Kwon

Organizations: Department of Industrial and Systems Engineering, KAIST, Daejeon, 34141, Republic of Korea · Radical Numerics, California, USA · Omelet, Inc., Daejeon, 34051, Republic of Korea

Abstract

Quantum circuits are central to implementing quantum algorithms on quantum devices, where quantum gates must be reversible. Many quantum algorithms rely on Boolean functions, which must therefore be implemented reversibly within quantum circuits. Reversible circuit synthesis provides a way to translate such Boolean functions into reversible circuits. Binary decision diagrams (BDDs) offer a scalable approach to this task, but the resulting BDDs and circuits depend heavily on variable ordering. Existing ordering heuristics commonly minimize BDD size because it is closely tied to the circuit size. However, BDD size is an imperfect proxy for the quantum cost of the synthesized circuit (QCC). We propose QuantumEvo, an evolutionary framework that uses an LLM as a heuristic generator for QCC-aware BDD variable ordering. Instead of predicting orderings directly, QuantumEvo searches over ordering heuristics initialized from multiple heuristic families. Candidate heuristics directly manipulate variable orderings using standard BDD operations and are selected by downstream QCC. The discovered heuristic, HGA-QE, modifies the sifting step inside a genetic algorithm so that the procedure is better aligned with QCC. Across the benchmark set, HGA-QE achieves a 70.9% tie-or-win rate against the per-function best baseline and is strictly best on 13.5% of the functions. The results demonstrate broadly competitive QCC performance, with HGA-QE showing a clearer relative advantage in strict wins on the two benchmark suites drawn from sources different from the data used for heuristic discovery.

Figures & tables

Appendix figures & tables26 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Discovering state-of-the-art quantum circuits with large language models

    Oct 15, 2026Andi Gu, Alek H. Kemeny, Susanne F. Yelin +1Large Language Model-Guided Optimization

  2. Evolutionary Discovery of Bivariate Bicycle Codes with LLM-Guided Search

    Jun 1, 2026Juan Cruz-Benito, Andrew W. Cross, David Kremer +1Automated Algorithm DiscoveryQuantum Error Correction

  3. Beyond Reinforcement Learning: Fast and Scalable Quantum Circuit Synthesis

    Feb 16, 2026Lukas Theißinger, Thore Gerlach, David Berghaus +1Quantum Circuit Compilation