arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.04671quant-ph
收藏

通过量子即时编译扩展Python用于量子经典计算

Extending Python for Quantum-Classical Computing via Quantum Just-in-Time Compilation

Thien Nguyen, Alexander J. McCaskey

摘要:

Python是一种流行的编程语言,以其灵活性,可用性,可读性和专注于开发人员的生产力而闻名。由于这些特性,以及近期量子处理器的远程特性,量子软件社区已经在许多大规模的工作中采用了Python。Python的使用使量子代码的快速原型设计成为可能,这直接有利于量子科学计算的相关研究和开发工作。然而,这种快速原型设计能力是以未来性能集成为代价的,用于具有快速反馈的紧密耦合CPU-QPU架构。在这里,我们提出了一种Python语言扩展,通过强大的C++基础设施实现量子实时(QJIT)编译,从而实现异构量子经典计算。我们的工作建立在QCOR C++语言扩展和编译器基础设施的基础上,以实现单源,量子硬件不可知的量子经典计算方法,该方法保留了紧密耦合的CPU-QPU计算模型所需的性能。我们详细介绍了这个Python扩展,它的编程模型和底层软件架构,并提供了一组强大的例子来证明我们的方法的实用性。

英文摘要:

Python is a popular programming language known for its flexibility, usability, readability, and focus on developer productivity. The quantum software community has adopted Python on a number of large-scale efforts due to these characteristics, as well as the remote nature of near-term quantum processors. The use of Python has enabled quick prototyping for quantum code that directly benefits pertinent research and development efforts in quantum scientific computing. However, this rapid prototyping ability comes at the cost of future performant integration for tightly-coupled CPU-QPU architectures with fast-feedback. Here we present a language extension to Python that enables heterogeneous quantum-classical computing via a robust C++ infrastructure for quantum just-in-time (QJIT) compilation. Our work builds off the QCOR C++ language extension and compiler infrastructure to enable a single-source, quantum hardware-agnostic approach to quantum-classical computing that retains the performance required for tightly coupled CPU-QPU compute models. We detail this Pythonic extension, its programming model and underlying software architecture, and provide a robust set of examples to demonstrate the utility of our approach.

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

↑