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

Austin J. Adams, Sharjeel Khan, Arjun S. Bhamra, Ryan R. Abusaada, Anthony Cabrera, Cameron C. Hoechst, Travis S. Humble, Jeffrey S. Young, Thomas M. Conte

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

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.

Original languageEnglish
Title of host publicationCGO 2025 - Proceedings of the 23rd ACM/IEEE International Symposium on Code Generation and Optimization
EditorsJohannes Doerfert, Tobias Grosser, Hugh Leather, P.. Sadayappan
PublisherAssociation for Computing Machinery, Inc
Pages444-458
Number of pages15
ISBN (Electronic)9798400712753
DOIs
StatePublished - Mar 1 2025
Event23rd ACM/IEEE International Symposium on Code Generation and Optimization, CGO 2025 - Las Vegas, United States
Duration: Mar 1 2025Mar 5 2025

Publication series

NameCGO 2025 - Proceedings of the 23rd ACM/IEEE International Symposium on Code Generation and Optimization

Conference

Conference23rd ACM/IEEE International Symposium on Code Generation and Optimization, CGO 2025
Country/TerritoryUnited States
CityLas Vegas
Period03/1/2503/5/25

Funding

The authors thank the anonymous reviewers and Pulkit Gupta for their helpful feedback. We acknowledge support for this work from NSF planning grant #2016666 and through the ORNL STAQCS project. Support for this work also came from the U.S. Department of Energy, Office of Science, Advanced Scientific Computing Research Accelerated Research in Quantum Computing Program under field work proposal ERKJ332. This research was supported in part through research infrastructure and services provided by the Rogues Gallery testbed [37, 63] hosted by the Center for Research into Novel Computing Hierarchies (CRNCH) at Georgia Tech. The Rogues Gallery testbed is primarily supported by the NSF under NSF Award Number #2016701.

Keywords

  • domain-specific languages
  • Quantum compilation

Fingerprint

Dive into the research topics of 'Asdf: A Compiler for Qwerty, a Basis-Oriented Quantum Programming Language'. Together they form a unique fingerprint.

Cite this