Differentiable Quantum Programming with Unbounded Loops
- URL: http://arxiv.org/abs/2211.04507v1
- Date: Tue, 8 Nov 2022 19:07:06 GMT
- Title: Differentiable Quantum Programming with Unbounded Loops
- Authors: Wang Fang, Mingsheng Ying, Xiaodi Wu
- Abstract summary: We provide the first differentiable quantum programming framework with unbounded loops.
We introduce a randomized estimator for derivatives to deal with the infinite sum in the differentiation of unbounded loops.
We showcase an exciting application of our framework in automatically identifying close-to-optimal parameters for several parameterized quantum applications.
- Score: 10.648855845619705
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: The emergence of variational quantum applications has led to the development
of automatic differentiation techniques in quantum computing. Recently, Zhu et
al. (PLDI 2020) have formulated differentiable quantum programming with bounded
loops, providing a framework for scalable gradient calculation by quantum means
for training quantum variational applications. However, promising parameterized
quantum applications, e.g., quantum walk and unitary implementation, cannot be
trained in the existing framework due to the natural involvement of unbounded
loops. To fill in the gap, we provide the first differentiable quantum
programming framework with unbounded loops, including a newly designed
differentiation rule, code transformation, and their correctness proof.
Technically, we introduce a randomized estimator for derivatives to deal with
the infinite sum in the differentiation of unbounded loops, whose applicability
in classical and probabilistic programming is also discussed. We implement our
framework with Python and Q#, and demonstrate a reasonable sample efficiency.
Through extensive case studies, we showcase an exciting application of our
framework in automatically identifying close-to-optimal parameters for several
parameterized quantum applications.
Related papers
- Parallel Quantum Computing Simulations via Quantum Accelerator Platform Virtualization [44.99833362998488]
We present a model for parallelizing simulation of quantum circuit executions.
The model can take advantage of its backend-agnostic features, enabling parallel quantum circuit execution over any target backend.
arXiv Detail & Related papers (2024-06-05T17:16:07Z) - Refinement calculus of quantum programs with projective assertions [5.151896714190243]
This paper introduces a refinement calculus tailored for quantum programs.
We first study the partial correctness of nondeterministic programs within a quantum.
We also present their semantics in transforming a postcondition to the weakest liberal postconditions.
arXiv Detail & Related papers (2023-11-23T22:12:57Z) - Quantum Conformal Prediction for Reliable Uncertainty Quantification in
Quantum Machine Learning [47.991114317813555]
Quantum models implement implicit probabilistic predictors that produce multiple random decisions for each input through measurement shots.
This paper proposes to leverage such randomness to define prediction sets for both classification and regression that provably capture the uncertainty of the model.
arXiv Detail & Related papers (2023-04-06T22:05:21Z) - Quantum gradient evaluation through quantum non-demolition measurements [0.0]
We discuss a Quantum Non-Demolition Measurement protocol to estimate the derivatives of a cost function with a quantum computer.
This is a key step for the implementation of variational quantum circuits.
arXiv Detail & Related papers (2023-01-17T19:00:08Z) - Fundamental limitations on optimization in variational quantum
algorithms [7.165356904023871]
A leading paradigm to establish such near-term quantum applications is variational quantum algorithms (VQAs)
We prove that for a broad class of such random circuits, the variation range of the cost function vanishes exponentially in the number of qubits with a high probability.
This result can unify the restrictions on gradient-based and gradient-free optimizations in a natural manner and reveal extra harsh constraints on the training landscapes of VQAs.
arXiv Detail & Related papers (2022-05-10T17:14:57Z) - Quantum algorithms for quantum dynamics: A performance study on the
spin-boson model [68.8204255655161]
Quantum algorithms for quantum dynamics simulations are traditionally based on implementing a Trotter-approximation of the time-evolution operator.
variational quantum algorithms have become an indispensable alternative, enabling small-scale simulations on present-day hardware.
We show that, despite providing a clear reduction of quantum gate cost, the variational method in its current implementation is unlikely to lead to a quantum advantage.
arXiv Detail & Related papers (2021-08-09T18:00:05Z) - Natural parameterized quantum circuit [0.0]
We introduce the natural parameterized quantum circuit (NPQC) that can be initialised with a Euclidean quantum geometry.
For a general class of quantum circuits, the NPQC has the minimal quantum Cram'er-Rao bound.
Our results can be used to enhance currently available quantum processors.
arXiv Detail & Related papers (2021-07-29T14:54:04Z) - Variational Quantum Optimization with Multi-Basis Encodings [62.72309460291971]
We introduce a new variational quantum algorithm that benefits from two innovations: multi-basis graph complexity and nonlinear activation functions.
Our results in increased optimization performance, two increase in effective landscapes and a reduction in measurement progress.
arXiv Detail & Related papers (2021-06-24T20:16:02Z) - Quantum circuit architecture search for variational quantum algorithms [88.71725630554758]
We propose a resource and runtime efficient scheme termed quantum architecture search (QAS)
QAS automatically seeks a near-optimal ansatz to balance benefits and side-effects brought by adding more noisy quantum gates.
We implement QAS on both the numerical simulator and real quantum hardware, via the IBM cloud, to accomplish data classification and quantum chemistry tasks.
arXiv Detail & Related papers (2020-10-20T12:06:27Z) - QUANTIFY: A framework for resource analysis and design verification of
quantum circuits [69.43216268165402]
QUANTIFY is an open-source framework for the quantitative analysis of quantum circuits.
It is based on Google Cirq and is developed with Clifford+T circuits in mind.
For benchmarking purposes QUANTIFY includes quantum memory and quantum arithmetic circuits.
arXiv Detail & Related papers (2020-07-21T15:36:25Z) - On the Principles of Differentiable Quantum Programming Languages [13.070557640180004]
Variational Quantum Circuits (VQCs) are predicted to be one of the most important near-term quantum applications.
We propose the first formalization of auto-differentiation techniques for quantum circuits.
arXiv Detail & Related papers (2020-04-02T16:46:13Z)
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.