迈向支持QIR:采用量子中间表示的步骤
Towards Supporting QIR: Steps for Adopting the Quantum Intermediate Representation
AI总结:
本文探讨了如何通过采用QIR来改进量子电路模拟器,展示了转换过程的可行性及性能优势。
摘要:
中间表示(IRs)在量子计算机的软件栈中起着关键作用,有助于在硬件上高效地执行应用程序。其中一种IR是量子中间表示(QIR),它建立在经典的LLVM编译器基础设施之上。本文概述了QIR可以被采用的不同方法。这种探索最终展示了一个将现有量子电路模拟器转换为QIR运行时所需的内容,并表明这种转换比最初想象的要不那么困难。我们进一步表明,转向QIR不会导致与原始模拟器相比的性能损失。相反,所提出的步骤轻松地允许将任意的经典控制流添加到任何经典模拟器中。最后,我们展望了使用QIR的未来方向。实现的QIR运行时可在https://github.com/munich-quantum-toolkit/core上获得。
英文摘要:
Intermediate representations (IRs) play a crucial role in the software stack of a quantum computer to facilitate efficient optimizations for executing an application on hardware. One of those IRs is the Quantum Intermediate Representation (QIR), which builds on the classical LLVM compiler infrastructure. In this article, we outline different approaches to how QIR can be adopted. This exploration culminates in a demonstration of what it takes to turn an existing quantum circuit simulator into a QIR runtime and that such a transition is less daunting than it might seem at first. We further show that switching to QIR does not entail any performance deficits compared to the original simulator. On the contrary, the presented steps effortlessly allow adding support for arbitrary classical control flow to any classical simulator. We conclude with an outlook on future directions using QIR. The implemented QIR runtime is available under https://github.com/munich-quantum-toolkit/core.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。