Differentiable Quantum Programming with Unbounded Loops

11/08/2022
by   Wang Fang, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/02/2020

On the Principles of Differentiable Quantum Programming Languages

Variational Quantum Circuits (VQCs), or the so-called quantum neural-net...
research
10/22/2021

DQC: a Python program package for Differentiable Quantum Chemistry

Automatic differentiation represents a paradigm shift in scientific prog...
research
10/28/2022

Differentiable Analog Quantum Computing for Optimization and Control

We formulate the first differentiable analog quantum computing framework...
research
07/18/2023

Automatic Differentiation for Inverse Problems with Applications in Quantum Transport

A neural solver and differentiable simulation of the quantum transmittin...
research
05/05/2023

Software-based Automatic Differentiation is Flawed

Various software efforts embrace the idea that object oriented programmi...
research
10/08/2021

Differentiable Programming of Isometric Tensor Networks

Differentiable programming is a new programming paradigm which enables l...
research
12/20/2021

NetKet 3: Machine Learning Toolbox for Many-Body Quantum Systems

We introduce version 3 of NetKet, the machine learning toolbox for many-...

Please sign up or login with your details

Forgot password? Click here to reset