Affiliation:
1. Oak Ridge National Laboratory, United States
2. Argonne National Laboratory, United States
Abstract
We present qcor—a language extension to C++ and compiler implementation that enables heterogeneous quantum-classical programming, compilation, and execution in a single-source context. Our work provides a first-of-its-kind C++ compiler enabling high-level quantum kernel (function) expression in a quantum-language agnostic manner, as well as a hardware-agnostic, retargetable compiler workflow targeting a number of physical and virtual quantum computing backends. qcor leverages novel Clang plugin interfaces and builds upon the XACC system-level quantum programming framework to provide a state-of-the-art integration mechanism for quantum-classical compilation that leverages the best from the community at-large. qcor translates quantum kernels ultimately to the XACC intermediate representation, and provides user-extensible hooks for quantum compilation routines like circuit optimization, analysis, and placement. This work details the overall architecture and compiler workflow for qcor, and provides a number of illuminating programming examples demonstrating its utility for near-term variational tasks, quantum algorithm expression, and feed-forward error correction schemes.
Funder
US Department of Energy
DOE Office of Science User Facility
Publisher
Association for Computing Machinery (ACM)
Reference48 articles.
1. Matthew Amy and Vlad Gheorghiu. 2019. staq—A full-stack quantum processing toolkit. arXiv:1912.06070. Retrieved from https://arxiv.org/abs/1912.06070. Matthew Amy and Vlad Gheorghiu. 2019. staq—A full-stack quantum processing toolkit. arXiv:1912.06070. Retrieved from https://arxiv.org/abs/1912.06070.
2. Efficient algorithms for maximum likelihood decoding in the surface code;Bravyi Sergey;Phys. Rev. A,2014
3. Cirq Contributors. 2020. Cirq. Retrieved from https://github.com/quantumlib/Cirq. Cirq Contributors. 2020. Cirq. Retrieved from https://github.com/quantumlib/Cirq.
Cited by
13 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献