A MLIR Dialect for Quantum Assembly Languages
- URL: http://arxiv.org/abs/2101.11365v1
- Date: Wed, 27 Jan 2021 13:00:39 GMT
- Title: A MLIR Dialect for Quantum Assembly Languages
- Authors: Alexander McCaskey, Thien Nguyen
- Abstract summary: We demonstrate the utility of the Multi-Level Intermediate Representation (MLIR) for quantum computing.
We extend MLIR with a new quantum dialect that enables the expression and compilation of common quantum assembly languages.
We leverage a qcor-enabled implementation of the QIR quantum runtime API to enable a retargetable (quantum hardware agnostic) compiler workflow.
- Score: 78.8942067357231
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: We demonstrate the utility of the Multi-Level Intermediate Representation
(MLIR) for quantum computing. Specifically, we extend MLIR with a new quantum
dialect that enables the expression and compilation of common quantum assembly
languages. The true utility of this dialect is in its ability to be lowered to
the LLVM intermediate representation (IR) in a manner that is adherent to the
quantum intermediate representation (QIR) specification recently proposed by
Microsoft. We leverage a qcor-enabled implementation of the QIR quantum runtime
API to enable a retargetable (quantum hardware agnostic) compiler workflow
mapping quantum languages to hybrid quantum-classical binary executables and
object code. We evaluate and demonstrate this novel compiler workflow with
quantum programs written in OpenQASM 2.0. We provide concrete examples
detailing the generation of MLIR from OpenQASM source files, the lowering
process from MLIR to LLVM IR, and ultimately the generation of executable
binaries targeting available quantum processors.
Related papers
- Quantum Compiling with Reinforcement Learning on a Superconducting Processor [55.135709564322624]
We develop a reinforcement learning-based quantum compiler for a superconducting processor.
We demonstrate its capability of discovering novel and hardware-amenable circuits with short lengths.
Our study exemplifies the codesign of the software with hardware for efficient quantum compilation.
arXiv Detail & Related papers (2024-06-18T01:49:48Z) - A Cross-Platform Execution Engine for the Quantum Intermediate Representation [1.4078224649226623]
We describe and demonstrate the QIR Execution Engine (QIR-EE) for parsing, interpreting, and executing QIR across multiple hardware platforms.
We demonstrate an implementation that uses the XACC quantum hardware-accelerator library to dispatch quantum programs on different commercial quantum platforms and numerical simulators.
arXiv Detail & Related papers (2024-04-22T15:59:41Z) - QParallel: Explicit Parallelism for Programming Quantum Computers [62.10004571940546]
We present a language extension for parallel quantum programming.
QParallel removes ambiguities concerning parallelism in current quantum programming languages.
We introduce a tool that guides programmers in the placement of parallel regions by identifying the subroutines that profit most from parallelization.
arXiv Detail & Related papers (2022-10-07T16:35:16Z) - Quantum Circuit Transformations with a Multi-Level Intermediate
Representation Compiler [1.5855260762884629]
We present a novel adaptation of the multi-level intermediate representation (MLIR) integrated into a quantum compiler.
We first present how MLIR enables quantum circuit transformations for efficient execution on quantum computing devices.
We demonstrate that mirror circuits inserted during compilation may test hardware performance.
arXiv Detail & Related papers (2021-12-20T16:59:27Z) - Enabling Retargetable Optimizing Compilers for Quantum Accelerators via
a Multi-Level Intermediate Representation [78.8942067357231]
We present a multi-level quantum-classical intermediate representation (IR) that enables an optimizing, retargetable, ahead-of-time compiler.
We support the entire gate-based OpenQASM 3 language and provide custom extensions for common quantum programming patterns and improved syntax.
Our work results in compile times that are 1000x faster than standard Pythonic approaches, and 5-10x faster than comparative standalone quantum language compilers.
arXiv Detail & Related papers (2021-09-01T17:29:47Z) - Tensor Network Quantum Virtual Machine for Simulating Quantum Circuits
at Exascale [57.84751206630535]
We present a modernized version of the Quantum Virtual Machine (TNQVM) which serves as a quantum circuit simulation backend in the e-scale ACCelerator (XACC) framework.
The new version is based on the general purpose, scalable network processing library, ExaTN, and provides multiple quantum circuit simulators.
By combining the portable XACC quantum processors and the scalable ExaTN backend we introduce an end-to-end virtual development environment which can scale from laptops to future exascale platforms.
arXiv Detail & Related papers (2021-04-21T13:26:42Z) - Quantum Accelerator Stack: A Research Roadmap [0.0]
We present the idea of a quantum accelerator which contains the full stack of the layers of an accelerator.
Qbits are defined as perfect qubits, implying they do not decohere and perform good quantum gate operations.
The logic is expressed in the universal quantum-classical hybrid computation language developed in the group, called OpenQL.
arXiv Detail & Related papers (2021-02-03T12:33:12Z) - Extending C++ for Heterogeneous Quantum-Classical Computing [56.782064931823015]
qcor is a language extension to C++ and compiler implementation that enables heterogeneous quantum-classical programming, compilation, and execution in a single-source context.
Our work provides a first-of-its-kind C++ compiler enabling high-level quantum kernel (function) expression in a quantum-language manner.
arXiv Detail & Related papers (2020-10-08T12:49:07Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.