Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context:
The sparse quantum state simulator in the
qir-runner
is backed byqir-stdlib
. This library can serve as the foundational implementation for QIR instructions across various quantum runtimes that adhere to the QIR specifications. For instance, the C++ quantum runtime in PennyLane-Catalyst leverageslibqir_stdlib.a
for implementation of basic QIR instructions.However, it's important to note that the official release of neither
libqir_stdlib.a
norlibqir_stdlib.so
are yet available. Consequently, for any other quantum runtime aiming to include theqir-stdlib
, it is necessary to install the Rust compiler and build the package with dependencies on the machine. To remove this complexity, we would like to propose including the qir-stdlib artifact as part of the release; therefore facilitating the process for integrating the library into third-party quantum runtimes.Description of the Change:
This primarily necessitates the creation of the
qir-stdlib
artifact includinglibqir_stdlib.a
,qir_stdlib.h
andqir_stdlib.def
.Benefits:
The release of
qir-stdlib
would enable both first- and third-party contributors to utilize and expand upon the standard in other runtimes and simulators that incorporate the QIR interface without any requirements to clone and build the source code.In addition, this would mitigate users from the need to install the Rust compiler and packages, especially considering that not all quantum runtime ecosystems are implemented in Rust.