Computing the gradients with respect to all parameters of a quantum neural network using a single circuit

Guang Ping He
7/16/2023
quant-phcs.AIcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Finding gradients is a crucial step in training machine learning models. For quantum neural networks, computing gradients using the parameter-shift rule requires calculating the cost function twice for each adjustable parameter in the network.

Show full abstract

When the total number of parameters is large, the quantum circuit must be repeatedly adjusted and executed, leading to significant computational overhead. Here we propose an approach to compute all gradients using a single circuit only, significantly reducing both the circuit depth and the number of classical registers required. We experimentally validate our approach on both quantum simulators and IBM's real quantum hardware, demonstrating that our method significantly reduces circuit compilation time compared to the conventional approach, resulting in a substantial speedup in total runtime.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{he2023computing,
  title  = {Computing the gradients with respect to all parameters of a quantum neural network using a single circuit},
  author = {Guang Ping He},
  year   = {2023},
  eprint = {2307.08167},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.08167v4}
}

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

Discussion