{"title":"Contraction of ZX diagrams with triangles via stabiliser decompositions","authors":"Mark Koch, Richie Yeung and Quanlong Wang","doi":"10.1088/1402-4896/ad6fd8","DOIUrl":null,"url":null,"abstract":"Recent advances in classical simulation of Clifford+T circuits make use of the ZX calculus to iteratively decompose and simplify magic states into stabiliser terms We improve on this method by studying stabiliser decompositions of ZX diagrams involving the triangle operation. We show that this technique greatly speeds up the simulation of quantum circuits involving multi-controlled gates which can be naturally represented using triangles. We implement our approach in the QuiZX library (2022 A. Kissinger amd J. van de Wetering Quantum Science and Technology7, 044001), (2022 A. Kissinger et al F. Le Gall and T. Morimae, ed. 17th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2022), Leibniz International Proceedings in Informatics (LIPIcs) 232, Schloss Dagstuhl—Leibniz-Zentrum für Informatik, Dagstuhl, Germany, pp 5:1–5:13) and demonstrate a significant simulation speed-up (up to multiple orders of magnitude) for random circuits and a variation of previously used benchmarking circuits. Furthermore, we use our software to contract diagrams representing the gradient variance of parametrised quantum circuits, which yields a tool for the automatic numerical detection of the barren plateau phenomenon in ansätze used for quantum machine learning. Compared to traditional statistical approaches, our method yields exact values for gradient variances and only requires contracting a single diagram. The performance of this tool is competitive with tensor network approaches, as demonstrated with benchmarks against the quimb library (2018 J. Gray Journal of Open Source Software3, 819).","PeriodicalId":20067,"journal":{"name":"Physica Scripta","volume":null,"pages":null},"PeriodicalIF":2.6000,"publicationDate":"2024-09-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Physica Scripta","FirstCategoryId":"101","ListUrlMain":"https://doi.org/10.1088/1402-4896/ad6fd8","RegionNum":3,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"PHYSICS, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Recent advances in classical simulation of Clifford+T circuits make use of the ZX calculus to iteratively decompose and simplify magic states into stabiliser terms We improve on this method by studying stabiliser decompositions of ZX diagrams involving the triangle operation. We show that this technique greatly speeds up the simulation of quantum circuits involving multi-controlled gates which can be naturally represented using triangles. We implement our approach in the QuiZX library (2022 A. Kissinger amd J. van de Wetering Quantum Science and Technology7, 044001), (2022 A. Kissinger et al F. Le Gall and T. Morimae, ed. 17th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2022), Leibniz International Proceedings in Informatics (LIPIcs) 232, Schloss Dagstuhl—Leibniz-Zentrum für Informatik, Dagstuhl, Germany, pp 5:1–5:13) and demonstrate a significant simulation speed-up (up to multiple orders of magnitude) for random circuits and a variation of previously used benchmarking circuits. Furthermore, we use our software to contract diagrams representing the gradient variance of parametrised quantum circuits, which yields a tool for the automatic numerical detection of the barren plateau phenomenon in ansätze used for quantum machine learning. Compared to traditional statistical approaches, our method yields exact values for gradient variances and only requires contracting a single diagram. The performance of this tool is competitive with tensor network approaches, as demonstrated with benchmarks against the quimb library (2018 J. Gray Journal of Open Source Software3, 819).
我们通过研究涉及三角形运算的 ZX 图的稳定器分解,改进了这种方法。我们的研究表明,这种技术大大加快了涉及多控制门的量子电路仿真速度,而多控制门可以自然地使用三角形来表示。我们在 QuiZX 库中实现了我们的方法(2022 A. Kissinger amd J. van de Wetering Quantum Science and Technology7, 044001),(2022 A. Kissinger et al F. Le Gall and T. Morimae, eds.17th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2022), Leibniz International Proceedings in Informatics (LIPIcs) 232, Schloss Dagstuhl-Leibniz-Zentrum für Informatik, Dagstuhl, Germany, pp 5:1-5:13),并展示了随机电路和以前使用的基准电路变体的显著模拟速度提升(高达多个数量级)。此外,我们还利用我们的软件收缩了代表参数化量子电路梯度方差的图表,从而产生了一种用于量子机器学习的自动数值检测荒芜高原现象的工具。与传统的统计方法相比,我们的方法能得到梯度方差的精确值,而且只需要收缩一张图。该工具的性能可与张量网络方法相媲美,与 quimb 库(2018 J. Gray Journal of Open Source Software3, 819)的基准测试也证明了这一点。
期刊介绍:
Physica Scripta is an international journal for original research in any branch of experimental and theoretical physics. Articles will be considered in any of the following topics, and interdisciplinary topics involving physics are also welcomed:
-Atomic, molecular and optical physics-
Plasma physics-
Condensed matter physics-
Mathematical physics-
Astrophysics-
High energy physics-
Nuclear physics-
Nonlinear physics.
The journal aims to increase the visibility and accessibility of research to the wider physical sciences community. Articles on topics of broad interest are encouraged and submissions in more specialist fields should endeavour to include reference to the wider context of their research in the introduction.