AIResearch AIResearch
Back to articles
Quantum Computing

New Quantum Compiler Speeds Up AI Research

OpenQudit uses symbolic expressions to accelerate quantum circuit optimization by up to 20 times, making it easier for scientists to design new quantum operations without deep programming skills.

AI Research
March 26, 2026
4 min read
New Quantum Compiler Speeds Up AI Research

A new framework called OpenQudit is transforming how researchers build and optimize quantum circuits, addressing two major bottlenecks in quantum compilation: slow performance and difficulty in adding new operations. Quantum compilation is essential for running programs on today's quantum processing units (QPUs), which have limited native instructions. Numerical optimization-based s, which use classical algorithms to find efficient gate sequences, have become a cornerstone technique but suffer from repeated, costly evaluations of mathematical functions and their gradients. Moreover, extending these compilers with new quantum operations requires domain experts to manually implement complex analytical gradients, a process described in the paper as difficult and error-prone. OpenQudit tackles these s by allowing users to define quantum gates symbolically, accelerating core tasks significantly and simplifying extensibility for non-experts.

The key finding from the research is that OpenQudit achieves substantial speedups in numerical quantum compilation, with performance improvements of up to approximately 20 times on common problems. In evaluations, OpenQudit demonstrated an average speedup of 19.6 times for 3-qubit quantum circuit synthesis compared to state-of-the-art tools like the Berkeley Quantum Synthesis Toolkit (BQSKit). For example, in multi-start optimization scenarios with 8 runs, OpenQudit provided a 19.6 times speedup for shallow 3-qubit circuits, a frequent subroutine in larger synthesis algorithms. The framework also excels in circuit construction, building a 1023-qubit Quantum Fourier Transform circuit in under a second, significantly faster than other frameworks. These show that the symbolic approach not only enhances performance but also maintains competitive success rates in optimization tasks.

Ology behind OpenQudit centers on the Qudit Gate Language (QGL), a domain-specific language that lets users define quantum operations as symbolic expressions with a syntax mirroring on-paper mathematics. Instead of requiring manual implementation of gradients, as shown in Listing 1 of the paper, QGL allows definitions like the U3 gate with a single, natural expression, from which OpenQudit automatically derives the unitary matrix and its analytical gradient. The compilation pipeline uses e-graphs for symbolic simplification to reduce redundant expressions, leveraging a cost function that prioritizes minimizing expensive trigonometric operations. It then employs a tensor network virtual machine (TNVM) that just-in-time (JIT) compiles these expressions into high-performance native code using LLVM. This pipeline includes an ahead-of-time (AOT) phase that converts quantum circuits into a tensor network representation, optimizes contraction paths, and generates portable bytecode for efficient runtime execution.

Analysis of , detailed in Figures 4, 6, and 7 of the paper, reveals consistent performance gains across various benchmarks. In circuit construction, OpenQudit built a 512-qubit Discrete Time Crystal circuit 18.1 times faster than BQSKit and over 4 times faster than Qiskit and Tket, thanks to an expression caching mechanism that avoids repeated safety checks. For numerical instantiation, OpenQudit showed speedups of 6.8 times for shallow 3-qubit circuits and 6.6 times for 3-qutrit circuits in single-start optimization, with even greater advantages in multi-start scenarios due to amortized AOT compilation costs. The TNVM maintained a low memory footprint, requiring only 211KB for double-precision evaluation of 3-qubit shallow circuits. However, the paper notes limitations, such as the use of a naive Levenberg-Marquardt optimizer that leaves room for improvement in convergence reliability, especially with lower precision like single-precision floating-point numbers.

Of this work are significant for accelerating quantum research and applications. By making it easier for domain experts to define new quantum operations without deep programming expertise, OpenQudit lowers the barrier to exploring novel quantum algorithms and hardware. The performance speedups enable faster iteration in quantum synthesis tasks, which are critical for developing efficient quantum software. The framework's design also supports future extensions, such as handling dynamic circuits with non-unitary operations or targeting GPUs for even greater acceleration. This advancement could streamline quantum compiler development, fostering innovation in fields like quantum machine learning and simulation, where rapid optimization is essential.

Limitations of the approach include the upfront cost of AOT compilation, which, while amortized over multiple optimization runs, may not be negligible for single-use scenarios. The evaluation used double-precision floating-point numbers for stability, but the paper acknowledges that single-precision could offer faster performance if paired with a more robust optimizer. Additionally, the current implementation focuses on unitary operations, leaving dynamic circuits with measurements or noise models for future work. Despite these constraints, OpenQudit represents a substantial step forward in making quantum compilation more accessible and efficient, paving the way for broader adoption in scientific and industrial settings.

Original Source

Read the complete research paper

View on arXiv

About the Author

Guilherme A.

Guilherme A.

Former dentist (MD) from Brazil, 41 years old, husband, and AI enthusiast. In 2020, he transitioned from a decade-long career in dentistry to pursue his passion for technology, entrepreneurship, and helping others grow.

Connect on LinkedIn