Diagrammatic Differentiation for Quantum Machine Learning
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 10 of its 44 references that are in the map. First posted on arXiv 14 Mar 2021.
Builds on
10 of 44 references.
References · 10
- 2018Supervised learning with quantum enhanced feature spacescited by 654
- 2019Parameterized quantum circuits as machine learning modelscited by 330
- 2020Foundations for Near-Term Quantum Natural Language Processingcited by 51
- 2021Categorical Foundations of Gradient-Based Learningcited by 44
- 2020Quantum Natural Language Processing on Near-Term Quantum Computerscited by 39
- 2021Analyzing the barren plateau phenomenon in training quantum neural networks with the ZX-calculuscited by 30
- 2019Graph-theoretic Simplification of Quantum Circuits with the ZX-calculuscited by 20
- 2019Reverse derivative categoriescited by 15
- 2019Phase Gadget Synthesis for Shallow Circuitscited by 8
- 2020Diagrammatic Design and Study of Ans"atze for Quantum Machine Learningcited by 5
Built on by
Citing papers per year: 2021: 4; 2022: 1.
5 papers.
- 2021lambeq: An Efficient High-Level Python Library for Quantum NLPcited by 43
- 2021A Quantum Natural Language Processing Approach to Musical Intelligencecited by 11
- 2021How to make qubits speakcited by 5
- 2021Functorial Language Modelscited by 1
- 2022Differentiating and Integrating ZX Diagrams with Applications to Quantum Machine Learningcited by 1
- 2022Differentiating and Integrating ZX Diagrams with Applications to Quantum Machine Learning31 Jan 2022
- 2021A Quantum Natural Language Processing Approach to Musical Intelligence10 Nov 2021
- 2021lambeq: An Efficient High-Level Python Library for Quantum NLP8 Oct 2021
- 2021How to make qubits speak2 Jul 2021
- 2021Functorial Language Models26 Mar 2021