Enabling Retargetable Optimizing Compilers for Quantum Accelerators via
a Multi-Level Intermediate Representation
- URL: http://arxiv.org/abs/2109.00506v1
- Date: Wed, 1 Sep 2021 17:29:47 GMT
- Title: Enabling Retargetable Optimizing Compilers for Quantum Accelerators via
a Multi-Level Intermediate Representation
- Authors: Thien Nguyen and Alexander McCaskey
- Abstract summary: 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.
- Score: 78.8942067357231
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: We present a multi-level quantum-classical intermediate representation (IR)
that enables an optimizing, retargetable, ahead-of-time compiler for available
quantum programming languages. To demonstrate our architecture, we leverage our
proposed IR to enable a compiler for version 3 of the OpenQASM quantum language
specification. We support the entire gate-based OpenQASM 3 language and provide
custom extensions for common quantum programming patterns and improved syntax.
Our work builds upon the Multi-level Intermediate Representation (MLIR)
framework and leverages its unique progressive lowering capabilities to map
quantum language expressions to the LLVM machine-level IR. We provide both
quantum and classical optimizations via the MLIR pattern rewriting sub-system
and standard LLVM optimization passes, and demonstrate the programmability,
compilation, and execution of our approach via standard benchmarks and test
cases. In comparison to other standalone language and compiler efforts
available today, our work results in compile times that are 1000x faster than
standard Pythonic approaches, and 5-10x faster than comparative standalone
quantum language compilers. Our compiler provides quantum resource
optimizations via standard programming patterns that result in a 10x reduction
in entangling operations, a common source of program noise. Ultimately, we see
this work as a vehicle for rapid quantum compiler prototyping enabling language
integration, optimizations, and interoperability with classical compilation
approaches.
Related papers
- mlirSynth: Automatic, Retargetable Program Raising in Multi-Level IR
using Program Synthesis [48.01697184432969]
mlirSynth translates programs from lower-level MLIR dialects to high-level ones without manually defined rules.
We demonstrate its effectiveness reviby raising C programs to two distinct high-level MLIR dialects, which enables us to use existing high-level dialect specific compilation flows.
arXiv Detail & Related papers (2023-10-06T12:21:50Z) - Compiler Optimization for Quantum Computing Using Reinforcement Learning [3.610459670994051]
We propose a reinforcement learning framework for developing optimized quantum circuit compilation flows.
The proposed framework is set up with a selection of compilation passes from IBM's Qiskit and Quantinuum's TKET.
It significantly outperforms both individual compilers in 73% of cases regarding the expected fidelity.
arXiv Detail & Related papers (2022-12-08T19:00:01Z) - 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) - Enabling a Programming Environment for an Experimental Ion Trap Quantum
Testbed [0.615738282053772]
Ion trap quantum hardware promises to provide a computational advantage over classical computing for specific problem spaces.
Ion trap systems currently require both strategies to mitigate high levels of noise and also tools to ease the challenge of programming these systems with pulse- or gate-level operations.
This work focuses on improving the state-of-the-art for quantum programming of ion trap testbeds through the use of a quantum language specification, QCOR.
arXiv Detail & Related papers (2021-10-30T02:28:36Z) - A MLIR Dialect for Quantum Assembly Languages [78.8942067357231]
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.
arXiv Detail & Related papers (2021-01-27T13:00:39Z) - Enabling Dataflow Optimization for Quantum Programs [11.71212583708166]
IR for quantum computing exposes quantum and classical data dependencies for the purpose of optimization.
We present a prototype implementation based on MLIR that includes several quantum-specific optimization passes.
arXiv Detail & Related papers (2021-01-26T19:01: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) - Extending XACC for Quantum Optimal Control [70.19683407682642]
Quantum computing vendors are beginning to open up application programming for direct pulse-level quantum control.
We present an extension to the XACC system-level quantum-classical software framework.
This extension enables the translation of digital quantum circuit representations to equivalent pulse sequences.
arXiv Detail & Related papers (2020-06-04T13:13:55Z)
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.