Lune

PLDI2020Top-tier venue

On the principles of differentiable quantum programming languages

Shaopeng Zhu, Shih-Han Hung, Shouvanik Chakrabarti, Xiaodi Wu

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Differentiable Analog Quantum Computing for Optimization and ControlJiaqi Leng, Yuxiang Peng, Yi-Ling Qiao, Ming C. Lin et al.NeurIPS 2022 · 24 citations

Builds on1

  1. A simple differentiable programming languageMartín Abadi, Gordon D. PlotkinPOPL 2020 · 49 citations

Related papers

  1. Exponentially Many Local Minima in Quantum Neural NetworksXuchen You, Xiaodi WuICML 2021 · 67 citations
  2. Alternating Layered Variational Quantum Circuits Can Be Classically Optimized Efficiently Using Classical ShadowsAfrad Basheer, Yuan Feng, Christopher Ferrie, Sanjiang LiAAAI 2023 · 13 citations
  3. QOC: quantum on-chip training with parameter shift and gradient pruningHanrui Wang, Zirui Li, Jiaqi Gu, Yongshan Ding et al.DAC 2022 · 43 citations
  4. Concentration of Data Encoding in Parameterized Quantum CircuitsGuangxi Li, Ruilin Ye, Xuanqiang Zhao, Xin WangNeurIPS 2022 · 42 citations
  5. Quantum Deep Equilibrium ModelsPhilipp Schleich, Marta Skreta, Lasse Bjørn Kristensen, Rodrigo A. Vargas-Hernández et al.NeurIPS 2024 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines