Inside Quantum Technology

Microsoft Introduces Quantum Intermediate Representation (QIR) to Serve as Common Interface Between Programming Languages

(InfoWorld) Microsoft has introduced an intermediate representation for quantum programs, called Quantum Intermediate Representation (QIR) to serve as a common interface between programming languages for gate-based quantum computing and target quantum computation platforms. Introduced September 23 and based on the LLVM intermediate language, QIR specifies rules to represent quantum constructs in LLVM. No extensions or modifications to LLVM are necessary.
Microsoft has made the draft QIR specification available in the new Q# language repository on GitHub. The company has also rolled out a compiler extension that generates QIR from Q#; it can be found in the feature/QIR branch of the Q# compiler repository. Directions for using the extension have been posted, as well.
Microsoft said that as quantum computing capabilities mature, most large-scale quantum applications will take advantage of both classical and quantum resources working together. LLVM offers QIR capabilities for describing rich classical computation integrated with quantum computation. LLVM also supports integration with many classical languages and tools already supported by the LLVM tool chain.

Exit mobile version