General parameter-shift rules for quantum gradients

David Wierichs, Josh Izaac, Cody Wang, Cedric Yen-Yu Lin
7/26/2021
quant-ph

Official code: dwierichs/General-Parameter-Shift-Rules (7 stars, Jupyter Notebook, Apache-2.0, last commit 2022-01-26).

Abstract

Variational quantum algorithms are ubiquitous in applications of noisy intermediate-scale quantum computers. Due to the structure of conventional parametrized quantum gates, the evaluated functions typically are finite Fourier series of the input parameters.

Show full abstract

In this work, we use this fact to derive new, general parameter-shift rules for single-parameter gates, and provide closed-form expressions to apply them. These rules are then extended to multi-parameter quantum gates by combining them with the stochastic parameter-shift rule. We perform a systematic analysis of quantum resource requirements for each rule, and show that a reduction in resources is possible for higher-order derivatives. Using the example of the quantum approximate optimization algorithm, we show that the generalized parameter-shift rule can reduce the number of circuit evaluations significantly when computing derivatives with respect to parameters that feed into many gates. Our approach additionally reproduces reconstructions of the evaluated function up to a chosen order, leading to known generalizations of the Rotosolve optimizer and new extensions of the quantum analytic descent optimization algorithm.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This repository contains the code used to produce the data and figures in our paper on general parameter shift rules for quantum gradients

71Jupyter Notebook, PythonJan 21, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{wierichs2021general,
  title  = {General parameter-shift rules for quantum gradients},
  author = {David Wierichs and Josh Izaac and Cody Wang and Cedric Yen-Yu Lin},
  year   = {2021},
  eprint = {2107.12390},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.12390}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.12390.svg)](https://codeofpaper.com/paper/2107.12390)

Discussion