arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.06469quant-phcs.ET
收藏

IBM Quantum Engine Compiler的设计与架构

Design and architecture of the IBM Quantum Engine Compiler

Michael B. Healy, Reza Jokar, Soolu Thomas, Vincent R. Pascuzzi, Kit Barton, Thomas A. Alexander, Roy Elkabetz, Brian C. Donovan, Hiroshi Horii, Marius Hillenbrand

AI总结:

本研究介绍了IBM Quantum生产环境所用的开源qe-compiler的设计架构,该编译器基于MLIR框架构建,支持多层量子计算表示、分层目标建模与多阶段编译,具备高可扩展性以适配量子计算未来发展。

摘要:

在本研究中,我们阐述了目前已在IBM Quantum系统生产环境中使用的开源Quantum Engine Compiler(qe-compiler,量子引擎编译器)的设计与架构。qe-compiler基于LLVM的多级中间表示(Multi-Level Intermediate Representation,MLIR)框架构建,包含多种方言的定义,可在多个抽象层级上表示参数化量子计算,同时提供Python绑定与诊断系统。该编译器采用基于Bison和Flex构建的开源LALR词法分析器与解析器,生成抽象语法树并将其转换为高层MLIR方言。其内置可扩展的分层目标系统,可在编译阶段建模控制系统的异构特性。编译器通过流水线接口添加基于目标的通用编译通道,将输入逐步转换为低层中间表示(含LLVM IR),还可借助LLVM后端与工具链生成机器可执行二进制文件。qe-compiler的设计具备可扩展性、可维护性、高性能与可伸缩性,旨在支撑量子计算的未来发展。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑