English

Extending the OmpSs-2 Programming Model for Hybrid Quantum-Classical Programming

Emerging Technologies 2025-03-03 v1 Quantum Physics

Abstract

The OmpSs-2 programming model is used in HPC programs to parallelize code and offload code to accelerators. In this work, we extend the offloading capability to quantum computers. We explain the necessary changes to the Clang compiler and the Nanos6 runtime, which are both part of OmpSs-2. In addition, we develop a simulator that simulates a quantum computer in the network and receives the jobs offloaded by the runtime. Four detailed examples show how our programming model can be used to write hybrid quantum-classical software. The examples are random number generation, a parameter scan using the mean-field ansatz, a variational algorithm using this ansatz, and handwritten digit recognition using a hybrid convolutional neural network.

Keywords

Cite

@article{arxiv.2502.21104,
  title  = {Extending the OmpSs-2 Programming Model for Hybrid Quantum-Classical Programming},
  author = {Philip Döbler and David Álvarez and Lucas J. Menger and Thomas Lippert and Vicenç Beltran and Manpreet Singh Jattana},
  journal= {arXiv preprint arXiv:2502.21104},
  year   = {2025}
}
R2 v1 2026-06-28T22:01:56.800Z