DOE PAGES title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Retargetable Optimizing Compilers for Quantum Accelerators via a Multi-Level Intermediate Representation

Journal Article · · IEEE Micro

In this work, we present a multi-level quantum-classical intermediate representation (IR) that enables an optimizing, retargetable compiler for available quantum languages. Our work builds upon the Multi-level Intermediate Representation (MLIR) framework and leverages its unique progressive lowering capabilities to map quantum languages 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 standard benchmarks and test cases. In comparison to other standalone language and compiler efforts available today, our work results in compile times that are 1000x faster than standard Pythonic approaches, and 5-10x faster than comparative standalone quantum language compilers. Our compiler provides quantum resource optimizations via standard programming patterns that result in a 10x reduction in entangling operations, a common source of program noise. We see this work as a vehicle for rapid quantum compiler prototyping.

Research Organization:
Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
Sponsoring Organization:
USDOE Office of Science (SC)
Grant/Contract Number:
AC05-00OR22725
OSTI ID:
1883985
Journal Information:
IEEE Micro, Journal Name: IEEE Micro Journal Issue: 5 Vol. 42; ISSN 0272-1732
Publisher:
IEEECopyright Statement
Country of Publication:
United States
Language:
English

References (6)

Quantum programming languages journal November 2020
XACC: a system-level software infrastructure for heterogeneous quantum–classical computing journal February 2020
A MLIR Dialect for Quantum Assembly Languages conference October 2021
High-Performance Computing with Quantum Processing Units journal May 2017
QCOR: A Language Extension Specification for the Heterogeneous Quantum-Classical Model of Computation
  • Mintz, Tiffany M.; McCaskey, Alexander J.; Dumitrescu, Eugene F.
  • ACM Journal on Emerging Technologies in Computing Systems, Vol. 16, Issue 2 https://doi.org/10.1145/3380964
journal April 2020
Extending C++ for Heterogeneous Quantum-Classical Computing journal July 2021