Design and architecture of the IBM Quantum Engine Compiler
Authors:
- Michael B. HealyMHMichael B. Healy
- Reza JokarRJReza Jokar
- Soolu ThomasSTSoolu Thomas
- Vincent R. PascuzziVPVincent R. Pascuzzi
- Kit BartonKBKit Barton
- Thomas A. AlexanderTAThomas A. Alexander
- Roy ElkabetzRERoy Elkabetz
- Brian C. DonovanBDBrian C. Donovan
- Hiroshi HoriiHHHiroshi Horii
- Marius HillenbrandMHMarius Hillenbrand
Preprint
Abstract
In this work, we describe the design and architecture of the open-source Quantum Engine Compiler (qe-compiler) currently used in production for IBM Quantum systems. The qe-compiler is built using LLVM's Multi-Level Intermediate Representation (MLIR) framework and includes definitions for several dialects to represent parameterized quantum computation at multiple levels of abstraction. The compiler also provides Python bindings and a diagnostic system. An open-source LALR lexer and parser built using Bison and Flex generates an Abstract Syntax Tree that is translated to a high-level MLIR dialect. An extensible hierarchical target system for modeling the heterogeneous nature of control systems at compilation time is included. Target-based and generic compilation passes are added using a pipeline interface to translate the input down to low-level intermediate representations (including LLVM IR) and can take advantage of LLVM backends and tooling to generate machine executable binaries. The qe-compiler is built to be extensible, maintainable, performant, and scalable to support the future of quantum computing.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- OpenQASM 3: A Broader and Deeper Quantum Assembly LanguageACM Transactions on Quantum Computing, 2022
- QSSA: an SSA-based IR for Quantum computing2022
- A MLIR Dialect for Quantum Assembly Languages2021
- Variational quantum algorithmsNature Reviews Physics, 2021
- MLIR: Scaling Compiler Infrastructure for Domain Specific Computation2021
- MPFRACM Transactions on Mathematical Software, 2007