Diagrammatic Differentiation for Quantum Machine Learning
- URL: http://arxiv.org/abs/2103.07960v1
- Date: Sun, 14 Mar 2021 16:04:56 GMT
- Title: Diagrammatic Differentiation for Quantum Machine Learning
- Authors: Alexis Toumi, Richie Yeung, Giovanni de Felice
- Abstract summary: We show how to calculate diagrammatically the gradient of a linear map with respect to a phase parameter.
For diagrams of parametrised quantum circuits, we get the well-known parameter-shift rule.
We then extend our method to the automatic differentation of hybrid classical-quantum circuits.
- Score: 0.19336815376402716
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: We introduce diagrammatic differentiation for tensor calculus by generalising
the dual number construction from rigs to monoidal categories. Applying this to
ZX diagrams, we show how to calculate diagrammatically the gradient of a linear
map with respect to a phase parameter. For diagrams of parametrised quantum
circuits, we get the well-known parameter-shift rule at the basis of many
variational quantum algorithms. We then extend our method to the automatic
differentation of hybrid classical-quantum circuits, using diagrams with
bubbles to encode arbitrary non-linear operators. Moreover, diagrammatic
differentiation comes with an open-source implementation in DisCoPy, the Python
library for monoidal categories. Diagrammatic gradients of classical-quantum
circuits can then be simplified using the PyZX library and executed on quantum
hardware via the tket compiler. This opens the door to many practical
applications harnessing both the structure of string diagrams and the
computational power of quantum machine learning.
Related papers
- Efficient Learning for Linear Properties of Bounded-Gate Quantum Circuits [63.733312560668274]
Given a quantum circuit containing d tunable RZ gates and G-d Clifford gates, can a learner perform purely classical inference to efficiently predict its linear properties?
We prove that the sample complexity scaling linearly in d is necessary and sufficient to achieve a small prediction error, while the corresponding computational complexity may scale exponentially in d.
We devise a kernel-based learning model capable of trading off prediction error and computational complexity, transitioning from exponential to scaling in many practical settings.
arXiv Detail & Related papers (2024-08-22T08:21:28Z) - Hybrid Quantum-Classical Machine Learning with String Diagrams [49.1574468325115]
This paper develops a formal framework for describing hybrid algorithms in terms of string diagrams.
A notable feature of our string diagrams is the use of functor boxes, which correspond to a quantum-classical interfaces.
arXiv Detail & Related papers (2024-07-04T06:37:16Z) - Fast classical simulation of quantum circuits via parametric rewriting
in the ZX-calculus [0.0]
We show that it is possible to perform the final stage of classical simulation quickly utilising a high degree of GPU parallelism.
We demonstrate speedups upwards of 100x for certain classical simulation tasks vs. the non-parametric approach.
arXiv Detail & Related papers (2024-03-11T14:44:59Z) - TeD-Q: a tensor network enhanced distributed hybrid quantum machine
learning framework [59.07246314484875]
TeD-Q is an open-source software framework for quantum machine learning.
It seamlessly integrates classical machine learning libraries with quantum simulators.
It provides a graphical mode in which the quantum circuit and the training progress can be visualized in real-time.
arXiv Detail & Related papers (2023-01-13T09:35:05Z) - The Quantum Path Kernel: a Generalized Quantum Neural Tangent Kernel for
Deep Quantum Machine Learning [52.77024349608834]
Building a quantum analog of classical deep neural networks represents a fundamental challenge in quantum computing.
Key issue is how to address the inherent non-linearity of classical deep learning.
We introduce the Quantum Path Kernel, a formulation of quantum machine learning capable of replicating those aspects of deep machine learning.
arXiv Detail & Related papers (2022-12-22T16:06:24Z) - A practical overview of image classification with variational
tensor-network quantum circuits [0.5079840826943619]
This paper comprehensively describes tensor-network quantum circuits and how to implement them in simulations.
We illustrate the computational requirements and possible applications by simulating various quantum circuits with PennyLane, an open-source python library for differential programming of quantum computers.
Finally, we demonstrate how to apply these circuits to increasingly complex image processing tasks.
arXiv Detail & Related papers (2022-09-22T14:52:21Z) - Analysis of arbitrary superconducting quantum circuits accompanied by a
Python package: SQcircuit [0.0]
Superconducting quantum circuits are a promising hardware platform for realizing a fault-tolerant quantum computer.
We develop a framework to construct a superconducting quantum circuit's quantized Hamiltonian from its physical description.
We implement the methods described in this work in an open-source Python package SQcircuit.
arXiv Detail & Related papers (2022-06-16T17:24:51Z) - Equivariant Quantum Graph Circuits [10.312968200748116]
We propose equivariant quantum graph circuits (EQGCs) as a class of parameterized quantum circuits with strong inductive bias for learning over graph-structured data.
Our theoretical perspective on quantum graph machine learning methods opens many directions for further work, and could lead to models with capabilities beyond those of classical approaches.
arXiv Detail & Related papers (2021-12-10T00:14:12Z) - Machine Learning Optimization of Quantum Circuit Layouts [63.55764634492974]
We introduce a quantum circuit mapping, QXX, and its machine learning version, QXX-MLP.
The latter infers automatically the optimal QXX parameter values such that the layed out circuit has a reduced depth.
We present empiric evidence for the feasibility of learning the layout method using approximation.
arXiv Detail & Related papers (2020-07-29T05:26:19Z) - QUANTIFY: A framework for resource analysis and design verification of
quantum circuits [69.43216268165402]
QUANTIFY is an open-source framework for the quantitative analysis of quantum circuits.
It is based on Google Cirq and is developed with Clifford+T circuits in mind.
For benchmarking purposes QUANTIFY includes quantum memory and quantum arithmetic circuits.
arXiv Detail & Related papers (2020-07-21T15:36:25Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.