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 条
  • [1] Quingo: A Programming Framework for Heterogeneous Quantum-Classical Computing with NISQ Features
    Fu, X.
    Yu, Jintao
    Su, Xing
    Jiang, Hanru
    Wu, Hua
    Cheng, Fucheng
    Deng, Xi
    Zhang, Jinrong
    Jin, Lei
    Yang, Yihang
    Xu, Le
    Hu, Chunchao
    Huang, Anqi
    Huang, Guangyao
    Qiang, Xiaogang
    Deng, Mingtang
    Xu, Ping
    Xu, Weixia
    Liu, Wanwei
    Zhang, Yu
    Deng, Yuxin
    Wu, Junjie
    Feng, Yuan
    ACM TRANSACTIONS ON QUANTUM COMPUTING, 2021, 2 (04):
  • [2] Extending Python']Python for Quantum-classical Computing via Quantum Just-in-time Compilation
    Nguyen, Thien
    Mccaskey, Alexander J.
    ACM TRANSACTIONS ON QUANTUM COMPUTING, 2022, 3 (04):
  • [3] A Backend-agnostic, Quantum-classical Framework for Simulations of Chemistry in C++
    Claudino, Daniel
    McCaskey, Alexander J.
    Lyakh, Dmitry I.
    ACM TRANSACTIONS ON QUANTUM COMPUTING, 2023, 4 (01):
  • [4] XACC: a system-level software infrastructure for heterogeneous quantum-classical computing*
    McCaskey, Alexander J.
    Lyakh, Dmitry, I
    Dumitrescu, Eugene F.
    Powers, Sarah S.
    Humble, Travis S.
    QUANTUM SCIENCE AND TECHNOLOGY, 2020, 5 (02):
  • [5] A Heterogeneous Quantum-Classical Computing System Targeting Noisy Intermediate-Scale Quantum Technology
    Fu X.
    Zheng Y.
    Su X.
    Yu J.
    Xu W.
    Wu J.
    Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2021, 58 (09): : 1875 - 1896
  • [6] CUDA Quantum: The Platform for Integrated Quantum-Classical Computing
    Kim, Jin-Sung
    McCaskey, Alex
    Heim, Bettina
    Modani, Manish
    Stanwyck, Sam
    Costa, Timothy
    2023 60TH ACM/IEEE DESIGN AUTOMATION CONFERENCE, DAC, 2023,
  • [7] A language and hardware independent approach to quantum-classical computing
    McCaskey, A. J.
    Dumitrescu, E. F.
    Liakh, D.
    Chen, M.
    Feng, W.
    Humble, T. S.
    SOFTWAREX, 2018, 7 : 245 - 254
  • [8] Tierkreis: a Dataflow Framework for Hybrid Quantum-Classical Computing
    Sivarajah, Seyon
    Heidemann, Lukas
    Lawrence, Alan
    Duncan, Ross
    2022 IEEE/ACM THIRD INTERNATIONAL WORKSHOP ON QUANTUM COMPUTING SOFTWARE (QCS), 2022, : 12 - 21
  • [9] Hybrid Quantum-Classical Computing for Future Network Optimization
    Fan, Lei
    Han, Zhu
    IEEE NETWORK, 2022, 36 (05): : 72 - 76
  • [10] Hybrid quantum-classical convolutional neural networks with privacy quantum computing
    Huang, Siwei
    Chang, Yan
    Lin, Yusheng
    Zhang, Shibin
    QUANTUM SCIENCE AND TECHNOLOGY, 2023, 8 (02)