On the Principles of Differentiable Quantum Programming Languages

04/02/2020
by   Shaopeng Zhu, et al.
0

Variational Quantum Circuits (VQCs), or the so-called quantum neural-networks, are predicted to be one of the most important near-term quantum applications, not only because of their similar promises as classical neural-networks, but also because of their feasibility on near-term noisy intermediate-size quantum (NISQ) machines. The need for gradient information in the training procedure of VQC applications has stimulated the development of auto-differentiation techniques for quantum circuits. We propose the first formalization of this technique, not only in the context of quantum circuits but also for imperative quantum programs (e.g., with controls), inspired by the success of differentiable programming languages in classical machine learning. In particular, we overcome a few unique difficulties caused by exotic quantum features (such as quantum no-cloning) and provide a rigorous formulation of differentiation applied to bounded-loop imperative quantum programs, its code-transformation rules, as well as a sound logic to reason about their correctness. Moreover, we have implemented our code transformation in OCaml and demonstrated the resource-efficiency of our scheme both analytically and empirically. We also conduct a case study of training a VQC instance with controls, which shows the advantage of our scheme over existing auto-differentiation for quantum circuits without controls.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/08/2022

Differentiable Quantum Programming with Unbounded Loops

The emergence of variational quantum applications has led to the develop...
research
11/12/2018

PennyLane: Automatic differentiation of hybrid quantum-classical computations

PennyLane is a Python 3 software framework for optimization and machine ...
research
04/28/2020

Linear Dependent Type Theory for Quantum Programming Languages

Modern quantum programming languages integrate quantum resources and cla...
research
06/30/2019

Variational Quantum Circuits and Deep Reinforcement Learning

Recently, machine learning has prevailed in many academia and industrial...
research
10/06/2021

Exponentially Many Local Minima in Quantum Neural Networks

Quantum Neural Networks (QNNs), or the so-called variational quantum cir...
research
10/08/2021

Differentiable Programming of Isometric Tensor Networks

Differentiable programming is a new programming paradigm which enables l...
research
06/03/2023

Correcting auto-differentiation in neural-ODE training

Does the use of auto-differentiation yield reasonable updates to deep ne...

Please sign up or login with your details

Forgot password? Click here to reset