Extending C++ for Heterogeneous Quantum-Classical Computing

被引:13
|
作者
Mccaskey, Alexander [1 ]
Nguyen, Thien [1 ]
Santana, Anthony [1 ]
Claudino, Daniel [1 ]
Kharazi, Tyler [1 ]
Finkel, Hal [2 ]
机构
[1] Oak Ridge Natl Lab, 1 Bethel Valley Rd, Oak Ridge, TN 37831 USA
[2] Argonne Natl Lab, 1 Thorvald Circle, Lemont, IL USA
来源
关键词
Quantum computing; compilers; domain specific languages; quantum programming;
D O I
10.1145/3462670
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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.
引用
收藏
页数:36
相关论文
共 50 条
  • [31] Quantum-classical molecular dynamics
    Tully, John C.
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 2013, 246
  • [32] Considerations for evaluating thermodynamic properties with hybrid quantum-classical computing work flows
    Stober, Spencer T.
    Harwood, Stuart M.
    Trenev, Dimitar
    Barkoutsos, Panagiotis Kl
    Gujarati, Tanvi P.
    Mostame, Sarah
    PHYSICAL REVIEW A, 2022, 105 (01)
  • [33] Mixed quantum-classical dynamics
    Tully, JC
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 2004, 227 : U272 - U272
  • [34] QUANTUM-CLASSICAL MODEL FOR PHOTODISSOCIATION
    BILLING, GD
    JOLICARD, G
    JOURNAL OF PHYSICAL CHEMISTRY, 1984, 88 (09): : 1820 - 1825
  • [35] Hybrid quantum-classical algorithm for computing imaginary-time correlation functions
    Sakurai, Rihito
    Mizukami, Wataru
    Shinaoka, Hiroshi
    PHYSICAL REVIEW RESEARCH, 2022, 4 (02):
  • [36] Extending visual C++
    Roberts, John
    Dr. Dobb's Journal of Software Tools for Professional Programmer, 1997, 22 (05):
  • [37] HYBRID QUANTUM-CLASSICAL WORKFLOWS IN MODULAR SUPERCOMPUTING ARCHITECTURES WITH THE JULICH UNIFIED INFRASTRUCTURE FOR QUANTUM COMPUTING
    Cavallaro, Gabriele
    Riedel, Morris
    Lippert, Thomas
    Michielsen, Kristel
    2022 IEEE INTERNATIONAL GEOSCIENCE AND REMOTE SENSING SYMPOSIUM (IGARSS 2022), 2022, : 4149 - 4152
  • [38] EXTENDING REXX WITH C++
    SULGER, A
    DR DOBBS JOURNAL, 1994, 19 (10): : 36 - &
  • [39] Implementation of Framework for Quantum-Classical and Classical-Quantum Conversion
    Nimbe, Peter
    Weyori, Benjamin Asubam
    Adekoya, Adebayo Felix
    Awarayi, Nicodemus Songose
    INTERNATIONAL JOURNAL OF THEORETICAL PHYSICS, 2022, 61 (02)
  • [40] Implementation of Framework for Quantum-Classical and Classical-Quantum Conversion
    Nimbe P.
    Weyori B.A.
    Adekoya A.F.
    Awarayi N.S.
    International Journal of Theoretical Physics, 2022, 61 (2)