We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Computer Science & Information Technology/Extending C++ for Heterogeneous Quantum-Classical Computing
PeriodicalsComputer Science & Information Technology

Extending C++ for Heterogeneous Quantum-Classical Computing

Checking your access to this record.

Abstract & Overview

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.

Cite this record

Alexander McCaskey, Thien Nguyen, Anthony SANTANA, Daniel Claudino, Tyler Kharazi, Hal Finkel (2021). Extending C++ for Heterogeneous Quantum-Classical Computing. ACM Transactions on Quantum Computing, 2(2), 1–36. https://doi.org/10.1145/3462670

Copy in another style

McCaskey, A., Nguyen, T., SANTANA, A., Claudino, D., Kharazi, T., & Finkel, H. (2021). Extending C++ for Heterogeneous Quantum-Classical Computing. ACM Transactions on Quantum Computing, 2(2), 1–36. https://doi.org/10.1145/3462670
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.