Towards Supporting QIR: Steps for Adopting the Quantum Intermediate Representation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Stade, Yannick, Burgholzer, Lukas, Wille, Robert
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908764204957696
author Stade, Yannick
Burgholzer, Lukas
Wille, Robert
author_facet Stade, Yannick
Burgholzer, Lukas
Wille, Robert
contents Intermediate representations (IRs) play a crucial role in the software stack of a quantum computer to facilitate efficient optimizations for executing an application on hardware. One of those IRs is the Quantum Intermediate Representation (QIR), which builds on the classical LLVM compiler infrastructure. In this article, we outline different approaches to how QIR can be adopted. This exploration culminates in a demonstration of what it takes to turn an existing quantum circuit simulator into a QIR runtime and that such a transition is less daunting than it might seem at first. We further show that switching to QIR does not entail any performance deficits compared to the original simulator. On the contrary, the presented steps effortlessly allow adding support for arbitrary classical control flow to any classical simulator. We conclude with an outlook on future directions using QIR. The implemented QIR runtime is available under https://github.com/munich-quantum-toolkit/core.
format Preprint
id arxiv_https___arxiv_org_abs_2411_18682
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Towards Supporting QIR: Steps for Adopting the Quantum Intermediate Representation
Stade, Yannick
Burgholzer, Lukas
Wille, Robert
Quantum Physics
Emerging Technologies
Intermediate representations (IRs) play a crucial role in the software stack of a quantum computer to facilitate efficient optimizations for executing an application on hardware. One of those IRs is the Quantum Intermediate Representation (QIR), which builds on the classical LLVM compiler infrastructure. In this article, we outline different approaches to how QIR can be adopted. This exploration culminates in a demonstration of what it takes to turn an existing quantum circuit simulator into a QIR runtime and that such a transition is less daunting than it might seem at first. We further show that switching to QIR does not entail any performance deficits compared to the original simulator. On the contrary, the presented steps effortlessly allow adding support for arbitrary classical control flow to any classical simulator. We conclude with an outlook on future directions using QIR. The implemented QIR runtime is available under https://github.com/munich-quantum-toolkit/core.
title Towards Supporting QIR: Steps for Adopting the Quantum Intermediate Representation
topic Quantum Physics
Emerging Technologies
url https://arxiv.org/abs/2411.18682