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 条
  • [41] SHARC meets TEQUILA: mixed quantum-classical dynamics on a quantum computer using a hybrid quantum-classical algorithm
    Gil, Eduarda Sangiogo
    Oppel, Markus
    Kottmann, Jakob S.
    Gonzalez, Leticia
    CHEMICAL SCIENCE, 2025, 16 (02) : 596 - 609
  • [42] Quantum-classical limit of quantum correlation functions
    Sergi, A
    Kapral, R
    JOURNAL OF CHEMICAL PHYSICS, 2004, 121 (16): : 7565 - 7576
  • [43] Classicalization of quantum variables and quantum-classical hybrids
    Koide, T.
    PHYSICS LETTERS A, 2015, 379 (36) : 2007 - 2012
  • [44] Quantum-classical hybrid quantum superdense coding
    Yang, Wei
    Huang, Liusheng
    Liu, An
    Tian, Miaomiao
    Miao, Haibo
    PHYSICA SCRIPTA, 2013, 88 (01)
  • [45] Quantum dynamics in open quantum-classical systems
    Kapral, Raymond
    JOURNAL OF PHYSICS-CONDENSED MATTER, 2015, 27 (07)
  • [46] Hybrid quantum-classical model of quantum measurements
    Buric, N.
    Popovic, D. B.
    Radonjic, M.
    Prvanovic, S.
    PHYSICAL REVIEW A, 2013, 87 (05):
  • [47] Hybrid Koopman C* -formalism and the hybrid quantum-classical master equation 
    Bouthelier-Madre, C.
    Clemente-Gallardo, J.
    Gonzalez-Bravo, L.
    Martinez-Crespo, D.
    JOURNAL OF PHYSICS A-MATHEMATICAL AND THEORETICAL, 2023, 56 (37)
  • [48] Davydov model: The quantum, mixed quantum-classical, and full classical systems
    CruzeiroHansson, L
    Takeno, S
    PHYSICAL REVIEW E, 1997, 56 (01) : 894 - 906
  • [49] Prerelaxation in quantum, classical, and quantum-classical two-impurity models
    Elbracht, Michael
    Potthoff, Michael
    PHYSICAL REVIEW RESEARCH, 2024, 6 (03):
  • [50] Quantum-Classical Correspondence of Shortcuts to Adiabaticity
    Okuyama, Manaka
    Takahashi, Kazutaka
    JOURNAL OF THE PHYSICAL SOCIETY OF JAPAN, 2017, 86 (04)