OpenQudit: Extensible and Accelerated Numerical Quantum Compilation via a JIT-Compiled DSL
Ed Younis
TL;DR
OpenQudit tackles the performance and extensibility bottlenecks of numerical quantum compilation by introducing the Qudit Gate Language (QGL), a symbolic DSL for gate definitions, paired with an e-graph-based optimization pipeline and a tensor-network virtual machine (TNVM) for fast runtime evaluation. The system uses ahead-of-time compilation to a tensor-network bytecode and a TNVM that eagerly JIT-compiles QGL expressions, enabling rapid unitary and gradient evaluations essential for large-scale PQC synthesis. Key contributions include the QGL design, the two-stage AOT/JIT compilation architecture, the symbolic IR with automatic differentiation, and a practical evaluation showing substantial speedups over state-of-the-art tools. This approach promises easier extensibility for new gate sets and significant throughput gains for high-throughput quantum circuit synthesis, with future directions toward dynamic circuits and hardware backends.
Abstract
High-performance numerical quantum compilers rely on classical optimization, but are limited by slow numerical evaluations and a design that makes extending them with new instructions a difficult, error-prone task for domain experts. This paper introduces OpenQudit, a compilation framework that solves these problems by allowing users to define quantum operations symbolically in the Qudit Gate Language (QGL), a mathematically natural DSL. OpenQudit's ahead-of-time compiler uses a tensor network representation and an e-graph-based pass for symbolic simplification before a runtime tensor network virtual machine (TNVM) JIT-compiles the expressions into high-performance native code. The evaluation shows that this symbolic approach is highly effective, accelerating the core instantiation task by up to $\mathtt{\sim}20\times$ on common quantum circuit synthesis problems compared to state-of-the-art tools.
