Extending C++ for Heterogeneous Quantum-Classical Computing. McCaskey, A., Nguyen, T., Santana, A., Claudino, D., Kharazi, T., & Finkel, H. ACM Transactions on Quantum Computing, 2(2):6, June, 2021. doi abstract bibtex 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.
@article{McCaskey2021,
title = {Extending C++ for Heterogeneous Quantum-Classical Computing},
author = {McCaskey, Alexander and Nguyen, Thien and Santana, Anthony and Claudino, Daniel and Kharazi, Tyler and Finkel, Hal},
year = {2021},
month = jun,
journal = tqc,
volume = {2},
number = {2},
eid = {6},
pages = {6},
doi = {10.1145/3462670},
archiveprefix = {arXiv},
eprint = {2010.03935},
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.},
keywords = {domain specific languages, quantum programming, quantum computing, compilers},
bibsource = qplbib
}
Downloads: 0
{"_id":"D2p77DGoqHeGHdSsS","bibbaseid":"mccaskey-nguyen-santana-claudino-kharazi-finkel-extendingcforheterogeneousquantumclassicalcomputing-2021","author_short":["McCaskey, A.","Nguyen, T.","Santana, A.","Claudino, D.","Kharazi, T.","Finkel, H."],"bibdata":{"bibtype":"article","type":"article","title":"Extending C++ for Heterogeneous Quantum-Classical Computing","author":[{"propositions":[],"lastnames":["McCaskey"],"firstnames":["Alexander"],"suffixes":[]},{"propositions":[],"lastnames":["Nguyen"],"firstnames":["Thien"],"suffixes":[]},{"propositions":[],"lastnames":["Santana"],"firstnames":["Anthony"],"suffixes":[]},{"propositions":[],"lastnames":["Claudino"],"firstnames":["Daniel"],"suffixes":[]},{"propositions":[],"lastnames":["Kharazi"],"firstnames":["Tyler"],"suffixes":[]},{"propositions":[],"lastnames":["Finkel"],"firstnames":["Hal"],"suffixes":[]}],"year":"2021","month":"June","journal":"ACM Transactions on Quantum Computing","volume":"2","number":"2","eid":"6","pages":"6","doi":"10.1145/3462670","archiveprefix":"arXiv","eprint":"2010.03935","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.","keywords":"domain specific languages, quantum programming, quantum computing, compilers","bibsource":"Quantum Programming Languages & Verification Bibliography, https://git.io/qpl-bib","bibtex":"@article{McCaskey2021,\n title = {Extending C++ for Heterogeneous Quantum-Classical Computing},\n author = {McCaskey, Alexander and Nguyen, Thien and Santana, Anthony and Claudino, Daniel and Kharazi, Tyler and Finkel, Hal},\n year = {2021},\n month = jun,\n journal = tqc,\n volume = {2},\n number = {2},\n eid = {6},\n pages = {6},\n doi = {10.1145/3462670},\n archiveprefix = {arXiv},\n eprint = {2010.03935},\n 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.},\n keywords = {domain specific languages, quantum programming, quantum computing, compilers},\n bibsource = qplbib\n}\n\n","author_short":["McCaskey, A.","Nguyen, T.","Santana, A.","Claudino, D.","Kharazi, T.","Finkel, H."],"key":"McCaskey2021","id":"McCaskey2021","bibbaseid":"mccaskey-nguyen-santana-claudino-kharazi-finkel-extendingcforheterogeneousquantumclassicalcomputing-2021","role":"author","urls":{},"keyword":["domain specific languages","quantum programming","quantum computing","compilers"],"metadata":{"authorlinks":{}}},"bibtype":"article","biburl":"https://raw.githubusercontent.com/QuantumPL/bib/main/bbt.bib","dataSources":["JG9W34HAXfSxsC6ML"],"keywords":["domain specific languages","quantum programming","quantum computing","compilers"],"search_terms":["extending","heterogeneous","quantum","classical","computing","mccaskey","nguyen","santana","claudino","kharazi","finkel"],"title":"Extending C++ for Heterogeneous Quantum-Classical Computing","year":2021}