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.
mat2qubit: A lightweight pythonic package for qubit encodings of vibrational, bosonic, graph coloring, routing, scheduling, and general matrix problems
Pulse-Level Compilation of Measurement-Free Recovery in Transmon Circuits
Beijing National Laboratory for Condensed Matter Physics, Institute of Physics, Chinese Academy of Sciences(中国科学院物理研究所凝聚态物理国家实验室);School of Physical Sciences, University of Chinese Academy of Sciences(中国科学院大学物理科学学院);Beijing Academy of Quantum Information Sciences(北京量子信息科学研究院);Hefei National Laboratory(合肥国家实验室)
QROB: Quantifying Realization Overhead in Quantum Compilation via Reverse Construction
Beijing Academy of Quantum Information Sciences(北京量子信息科学研究院);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Institute of Physics, Chinese Academy of Sciences(中国科学院物理研究所);Hefei National Laboratory(合肥国家实验室)