将量子软件工具整合到(在)MLIR中
Integrating Quantum Software Tools with(in) MLIR
AI总结:
本文旨在通过具体案例研究,指导量子软件工程师将量子工具与MLIR整合,以提升量子软件的模块化和互操作性。
摘要:
编译器将代码转化为行动。它们将高级程序转换为可执行的硬件指令——这是实现可靠且可扩展的量子计算的关键步骤。然而,量子编译仍处于初级阶段,许多现有解决方案都是即兴的,通常独立开发并从头开始。由此导致的缺乏互操作性导致了巨大的潜力损失,因为量子软件工具仍然孤立,无法无缝整合到连贯的工具链中。多级中间表示(MLIR)在经典领域解决了类似挑战。它是在LLVM项目中开发的,该项目长期以来一直 powering robust software stacks 并使编译跨多样化的软件和硬件组件成为可能,特别是在高性能计算环境中。然而,MLIR的学习曲线陡峭,对进入者构成了重大障碍,特别是在量子计算领域,其中大部分软件栈仍主要是由实验人员出于必要而非经验软件工程师来构建的。本文为量子软件工程师提供了一本实用且动手的指南,以克服这一陡峭的学习曲线。通过将Xanadu的PennyLane框架与Munich量子工具包(MQT)联系起来的具体案例研究,我们概述了可操作的整合步骤,突显了最佳实践,并分享了从现实开发中获得的宝贵见解。这项工作旨在支持量子工具开发人员在MLIR的复杂性中导航,并促进其作为快速增长的量子软件工具生态系统中统一桥梁的采用,最终指导更模块化、互操作性和集成的量子软件栈的发展。
英文摘要:
Compilers transform code into action. They convert high-level programs into executable hardware instructions - a crucial step in enabling reliable and scalable quantum computation. However, quantum compilation is still in its infancy, and many existing solutions are ad hoc, often developed independently and from scratch. The resulting lack of interoperability leads to significant missed potential, as quantum software tools remain isolated and cannot be seamlessly integrated into cohesive toolchains. The Multi-Level Intermediate Representation (MLIR) has addressed analogous challenges in the classical domain. It was developed within the LLVM project, which has long powered robust software stacks and enabled compilation across diverse software and hardware components, with particular importance in high-performance computing environments. However, MLIR's steep learning curve poses a significant barrier to entry, particularly in quantum computing, where much of the software stack is still predominantly built by experimentalists out of necessity rather than by experienced software engineers. This paper provides a practical and hands-on guide for quantum software engineers to overcome this steep learning curve. Through a concrete case study linking Xanadu's PennyLane framework with the Munich Quantum Toolkit (MQT), we outline actionable integration steps, highlight best practices, and share hard-earned insights from real-world development. This work aims to support quantum tool developers in navigating MLIR's complexities and to foster its adoption as a unifying bridge across a rapidly growing ecosystem of quantum software tools, ultimately guiding the development of more modular, interoperable, and integrated quantum software stacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。