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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Döbler, Philip, Álvarez, David, Menger, Lucas J., Lippert, Thomas, Beltran, Vicenç, Jattana, Manpreet Singh
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916635388936192
author Döbler, Philip
Álvarez, David
Menger, Lucas J.
Lippert, Thomas
Beltran, Vicenç
Jattana, Manpreet Singh
author_facet Döbler, Philip
Álvarez, David
Menger, Lucas J.
Lippert, Thomas
Beltran, Vicenç
Jattana, Manpreet Singh
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_21104
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Extending the OmpSs-2 Programming Model for Hybrid Quantum-Classical Programming
Döbler, Philip
Álvarez, David
Menger, Lucas J.
Lippert, Thomas
Beltran, Vicenç
Jattana, Manpreet Singh
Emerging Technologies
Quantum Physics
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.
title Extending the OmpSs-2 Programming Model for Hybrid Quantum-Classical Programming
topic Emerging Technologies
Quantum Physics
url https://arxiv.org/abs/2502.21104