An LLVM-based C++ Compiler Toolchain for Variational Hybrid
Quantum-Classical Algorithms and Quantum Accelerators
- URL: http://arxiv.org/abs/2202.11142v1
- Date: Tue, 22 Feb 2022 19:32:50 GMT
- Title: An LLVM-based C++ Compiler Toolchain for Variational Hybrid
Quantum-Classical Algorithms and Quantum Accelerators
- Authors: Pradnya Khalate, Xin-Chuan Wu, Shavindra Premaratne, Justin Hogaboam,
Adam Holmes, Albert Schmitz, Gian Giacomo Guerreschi, Xiang Zou, A. Y.
Matsuura
- Abstract summary: This paper presents an LLVM-based C++ compiler toolchain to efficiently execute variational hybrid quantum-classical algorithms.
We introduce a set of extensions to the C++ language for programming these algorithms.
We evaluate the framework's performance by running quantum circuits that prepare Thermofield Double (TFD) states.
- Score: 0.8323133408188051
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Variational algorithms are a representative class of quantum computing
workloads that combine quantum and classical computing. This paper presents an
LLVM-based C++ compiler toolchain to efficiently execute variational hybrid
quantum-classical algorithms on a computational system in which the quantum
device acts as an accelerator. We introduce a set of extensions to the C++
language for programming these algorithms. We define a novel Executable and
Linking Format (ELF) for Quantum and create a quantum device compiler component
in the LLVM framework to compile the quantum part of the C++ source and reuse
the host compiler in the LLVM framework to compile the classical computing part
of the C++ source. A variational algorithm runs a quantum circuit repeatedly,
each time with different gate parameters. We add to the quantum runtime the
capability to execute dynamically a quantum circuit with different parameters.
Thus, programmers can call quantum routines the same way as classical routines.
With these capabilities, a variational hybrid quantum-classical algorithm can
be specified in a single-source code and only needs to be compiled once for all
iterations. The single compilation significantly reduces the execution latency
of variational algorithms. We evaluate the framework's performance by running
quantum circuits that prepare Thermofield Double (TFD) states, a
quantum-classical variational algorithm.
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) - Quantum Subroutine for Variance Estimation: Algorithmic Design and Applications [80.04533958880862]
Quantum computing sets the foundation for new ways of designing algorithms.
New challenges arise concerning which field quantum speedup can be achieved.
Looking for the design of quantum subroutines that are more efficient than their classical counterpart poses solid pillars to new powerful quantum algorithms.
arXiv Detail & Related papers (2024-02-26T09:32:07Z) - Quantum Clustering with k-Means: a Hybrid Approach [117.4705494502186]
We design, implement, and evaluate three hybrid quantum k-Means algorithms.
We exploit quantum phenomena to speed up the computation of distances.
We show that our hybrid quantum k-Means algorithms can be more efficient than the classical version.
arXiv Detail & Related papers (2022-12-13T16:04:16Z) - 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) - Efficient parameterised compilation for hybrid quantum programming [0.0]
Near term quantum devices have the potential to outperform classical computing.
These devices use hybrid classical-quantum algorithms such as Variational Eigensolvers.
We have implemented explicit parameters that prevent recompilation of the whole program in Quantum programming framework OpenQL.
arXiv Detail & Related papers (2022-08-16T11:45:08Z) - Entanglement and coherence in Bernstein-Vazirani algorithm [58.720142291102135]
Bernstein-Vazirani algorithm allows one to determine a bit string encoded into an oracle.
We analyze in detail the quantum resources in the Bernstein-Vazirani algorithm.
We show that in the absence of entanglement, the performance of the algorithm is directly related to the amount of quantum coherence in the initial state.
arXiv Detail & Related papers (2022-05-26T20:32:36Z) - Arline Benchmarks: Automated Benchmarking Platform for Quantum Compilers [0.0]
Open-source software package, Arline Benchmarks, is designed to perform automated benchmarking of quantum compilers.
We compare several quantum compilation frameworks based on a set of important metrics.
We propose a concept of composite compilation pipeline that combines compiler-specific circuit optimizations in a single compilation stack.
arXiv Detail & Related papers (2022-02-28T18:48:01Z) - 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) - 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) - OpenQL : A Portable Quantum Programming Framework for Quantum
Accelerators [0.0]
We propose a quantum programming framework named OpenQL, which includes a high-level quantum programming language and its associated quantum compiler.
Our experiments show that OpenQL allows the execution of the same high-level algorithm on two different qubit technologies, namely superconducting qubits and Si-Spin qubits.
arXiv Detail & Related papers (2020-05-27T11:23:16Z)
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.