论文标题
OpenQL:量子加速器的便携式量子编程框架
OpenQL : A Portable Quantum Programming Framework for Quantum Accelerators
论文作者
论文摘要
由于量子算法的潜力解决了棘手的经典问题,量子计算正在迅速发展,并且正在开发和优化更多算法。使用高级语言表达这些量子算法,并使它们在量子处理器上可执行,同时抽象硬件详细信息是一项具有挑战性的任务。首先,量子编程语言应提供直观的编程接口来描述这些算法。然后,编译器必须将程序转换为量子电路,对其进行优化并将其映射到尊重硬件约束的目标量子处理器,例如受支持的量子操作,值和控制电子设备的限制。在本文中,我们提出了一个名为OpenQL的量子编程框架,其中包括高级量子编程语言及其相关的量子编译器。我们介绍了OpenQL的编程接口,我们描述了编译器的不同层,以及如何在不同的量子技术上提供可移植性。我们的实验表明,OpenQL允许在两种不同的量子技术上执行相同的高级算法,即超导码头和Si-Spin Qubits。除了可执行的代码外,OpenQL还产生一个中间量子组件代码(CQASM),该代码是与技术无关的,可以使用QX Simulator进行模拟。
With the potential of quantum algorithms to solve intractable classical problems, quantum computing is rapidly evolving and more algorithms are being developed and optimized. Expressing these quantum algorithms using a high-level language and making them executable on a quantum processor while abstracting away hardware details is a challenging task. Firstly, a quantum programming language should provide an intuitive programming interface to describe those algorithms. Then a compiler has to transform the program into a quantum circuit, optimize it and map it to the target quantum processor respecting the hardware constraints such as the supported quantum operations, the qubit connectivity, and the control electronics limitations. In this paper, we propose a quantum programming framework named OpenQL, which includes a high-level quantum programming language and its associated quantum compiler. We present the programming interface of OpenQL, we describe the different layers of the compiler and how we can provide portability over different qubit technologies. Our experiments show that OpenQL allows the execution of the same high-level algorithm on two different qubit technologies, namely superconducting qubits and Si-Spin qubits. Besides the executable code, OpenQL also produces an intermediate quantum assembly code (cQASM), which is technology-independent and can be simulated using the QX simulator.