Skip to main content
SHARE
Publication

ASDF: A Compiler for Qwerty, a Basis-Oriented Quantum Programming Language

Publication Type
Conference Paper
Book Title
CGO '25: Proceedings of the 23rd ACM/IEEE International Symposium on Code Generation and Optimization
Publication Date
Page Numbers
444 to 458
Publisher Location
New York, United States of America
Conference Name
CGO '25: 23rd ACM/IEEE International Symposium on Code Generation and Optimization
Conference Location
Las Vegas, Nevada, United States of America
Conference Sponsor
ACM SIGPLAN
Conference Date
-

Qwerty is a high-level quantum programming language built on bases and functions rather than circuits. This new paradigm introduces new challenges in compilation, namely synthesizing circuits from basis translations and automatically specializing adjoint or predicated forms of functions. This paper presents ASDF, an open-source compiler for Qwerty that answers these challenges in compiling basis-oriented languages. Enabled with a novel high-level quantum IR implemented in the MLIR framework, our compiler produces OpenQASM 3 or QIR for either simulation or execution on hardware. Our compiler is evaluated by comparing the fault-tolerant resource requirements of generated circuits with other compilers, finding that ASDF produces circuits with comparable cost to prior circuit-oriented compilers.