Estimating the gradient and higher-order derivatives on quantum hardware

Andrea Mari, Thomas R. Bromley, Nathan Killoran
8/14/2020
quant-ph

Official code: XanaduAI/derivatives-of-variational-circuits (12 stars, Jupyter Notebook, Apache-2.0, last commit 2020-08-19).

Abstract

For a large class of variational quantum circuits, we show how arbitrary-order derivatives can be analytically evaluated in terms of simple parameter-shift rules, i.e., by running the same circuit with different shifts of the parameters. As particular cases, we obtain parameter-shift rules for the Hessian of an expectation value and for the metric tensor of a variational state, both of which can be efficiently used to analytically implement second-order optimization algorithms on a quantum computer.

Show full abstract

We also consider the impact of statistical noise by studying the mean squared error of different derivative estimators. In the second part of this work, some of the theoretical techniques for evaluating quantum derivatives are applied to their typical use case: the implementation of quantum optimizers. We find that the performance of different estimators and optimizers is intertwined with the values of different hyperparameters, such as a step size or a number of shots. Our findings are supported by several numerical and hardware experiments, including an experimental estimation of the Hessian of a simple variational circuit and an implementation of the Newton optimizer.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
128Jupyter Notebook, PythonAug 11, 20206 years agoApache-2.0

Similar Papers

Cite this paper

@article{mari2020estimating,
  title  = {Estimating the gradient and higher-order derivatives on quantum hardware},
  author = {Andrea Mari and Thomas R. Bromley and Nathan Killoran},
  year   = {2020},
  eprint = {2008.06517},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.06517}
}

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/2008.06517.svg)](https://codeofpaper.com/paper/2008.06517)

Discussion