Enabling Retargetable Optimizing Compilers for Quantum Accelerators via a Multi-Level Intermediate Representation
Thien Nguyen, Alexander McCaskey

TL;DR
This paper introduces a multi-level IR framework that enables fast, retargetable quantum compilers supporting OpenQASM 3, with significant optimizations and compatibility with classical compiler techniques.
Contribution
It presents a novel multi-level IR built on MLIR for quantum compilers, supporting OpenQASM 3 and enabling rapid, optimized quantum-classical compilation.
Findings
Compiler is 1000x faster than Python approaches
Achieves 5-10x faster compilation than existing quantum compilers
Reduces entangling operations by 10x, lowering noise
Abstract
We present a multi-level quantum-classical intermediate representation (IR) that enables an optimizing, retargetable, ahead-of-time compiler for available quantum programming languages. To demonstrate our architecture, we leverage our proposed IR to enable a compiler for version 3 of the OpenQASM quantum language specification. We support the entire gate-based OpenQASM 3 language and provide custom extensions for common quantum programming patterns and improved syntax. Our work builds upon the Multi-level Intermediate Representation (MLIR) framework and leverages its unique progressive lowering capabilities to map quantum language expressions to the LLVM machine-level IR. We provide both quantum and classical optimizations via the MLIR pattern rewriting sub-system and standard LLVM optimization passes, and demonstrate the programmability, compilation, and execution of our approach via…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Quantum Information and Cryptography · Parallel Computing and Optimization Techniques
