Skip to content
Bill Ticehurst edited this page Sep 18, 2023 · 17 revisions

Quantum Intermediate Representation (QIR) is a program representation based on LLVM IR. It is developed by the QIR Alliance at https://github.com/qir-alliance/qir-spec

The Q# compiler built as part of this repository can only compile Q# programs to QIR. As not all quantum hardware accepts jobs in QIR format, the tools built from this repository cannot target all hardware.

QIR specifies different profiles for different hardware capabilities. Currently, this toolset can only generate code for the 'base' profile, which does not allow for things such as mid-circuit measurement, classical computation at runtime, etc. The adaptive profile is currently being specified, and we hope to have the compiler in this repo support it soon.