Tensor networks

Shinji Takeda
{"title":"Tensor networks","authors":"Shinji Takeda","doi":"10.1090/cbms/132/03","DOIUrl":null,"url":null,"abstract":"graphs. Our results on error of free energies are compared against mean-field methods, including the naïve mean-field (NMF), Thouless-Anderson-Palmer equations (TAP), belief propagation, and the neural-network-based variational autoregressive networks (VAN). On the 2D lattice without the external field, the graph is planar, so there are exact solutions [30]. Whereas on the other graphs, we adopt the exact (carefully designed) exponential algorithms [31] (in a reasonable time) to compute exact free energy values for the evaluations. The results are shown in Fig. 4. We can see that, in all experiments, our method outperforms all mean-field methods and the neural-network-based methods, to a large margin. In regular random graphs, small world networks, and the Sherrington-Kirkpatrick model, our accuracy is only limited by the machine precisions (10−16). In the experiments, we choose D̂ 1⁄4 50 and χ̂ 1⁄4 500, and the computational time on each instance is of a few seconds. Empirically, our method is faster than the mean-field methods and the neural-network-based methods. More results about the dependence of the bond dimensions and the computational time can be found in the Supplemental Material [18]. Moreover, it is worth noting that combining with the autodifferential for tensor networks [32] immediately gives our method an ability to perform learning tasks using graphical models. In the Supplemental Material [18], we give an example of using our method to learn a generative model [33–43] on hand-written digits of the MNIST dataset [44]. Application to quantum circuit simulations.—The problem of computing free energy of graphical models is similar to the problem of computing single amplitude estimates of a superconducting quantum circuit [45], which can be treated as a graphical model with complex couplings. Classical simulation of quantum circuits is important for verifying and evaluating the computational advances of quantum computers [20,22–24,46,47]. However, the nearterm noisy intermediate-scale quantum circuits (including Google’s recently announced “supremacy circuit” [48]) are not perfect: each operation of them contains a small error. Thus, an important open question is whether approximate simulations of quantum circuits could beat the noisy quantum device. Answering this question apparently requires advanced studies of approximate algorithms for simulating quantum circuits. Our method directly applies to approximate singleamplitude simulation of quantum circuits with any kind of connectivities, such as two-dimensional lattice [23,24] and random regular graphs, as considered in the quantum approximate optimization algorithm [49], after converting the initial state, the measurement qubit string, and the gates into tensors. The key difference between our method and existing methods for quantum circuit simulation is that, by detecting low-rank structures in the circuit, our method heavily reduces the computational complexity. Although this introduces SVD truncation errors, we will illustrate that, at least in the shallow circuits, the error is almost negligible. We perform experiments using standard random circuits on two-dimensional lattices [22–24], which iteratively apply single-qubit gates and two-qubit controlled Z gates to the initial j0; 0;...; 0i state, and finally measure the amplitude of a specific qubit string. The generation protocol is described in detail in the Supplemental Material [18]. We evaluate the performance of our method against the recently developed state-of-the-art exact tensor contraction method [24], which has a precisely predictable space and time complexity. With depth d 1⁄4 8, our algorithm can handle circuits with at most 40 × 40 1⁄4 1600 qubits with SVD accumulated truncation error εSVD ≤ 10−12 on a workstation with 64 GB memory in an hour. (a) (b) (c) (d)","PeriodicalId":226550,"journal":{"name":"Tensors: Asymptotic Geometry and Developments\n 2016–2018","volume":"31 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-07-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"33","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Tensors: Asymptotic Geometry and Developments\n 2016–2018","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1090/cbms/132/03","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 33

Abstract

graphs. Our results on error of free energies are compared against mean-field methods, including the naïve mean-field (NMF), Thouless-Anderson-Palmer equations (TAP), belief propagation, and the neural-network-based variational autoregressive networks (VAN). On the 2D lattice without the external field, the graph is planar, so there are exact solutions [30]. Whereas on the other graphs, we adopt the exact (carefully designed) exponential algorithms [31] (in a reasonable time) to compute exact free energy values for the evaluations. The results are shown in Fig. 4. We can see that, in all experiments, our method outperforms all mean-field methods and the neural-network-based methods, to a large margin. In regular random graphs, small world networks, and the Sherrington-Kirkpatrick model, our accuracy is only limited by the machine precisions (10−16). In the experiments, we choose D̂ 1⁄4 50 and χ̂ 1⁄4 500, and the computational time on each instance is of a few seconds. Empirically, our method is faster than the mean-field methods and the neural-network-based methods. More results about the dependence of the bond dimensions and the computational time can be found in the Supplemental Material [18]. Moreover, it is worth noting that combining with the autodifferential for tensor networks [32] immediately gives our method an ability to perform learning tasks using graphical models. In the Supplemental Material [18], we give an example of using our method to learn a generative model [33–43] on hand-written digits of the MNIST dataset [44]. Application to quantum circuit simulations.—The problem of computing free energy of graphical models is similar to the problem of computing single amplitude estimates of a superconducting quantum circuit [45], which can be treated as a graphical model with complex couplings. Classical simulation of quantum circuits is important for verifying and evaluating the computational advances of quantum computers [20,22–24,46,47]. However, the nearterm noisy intermediate-scale quantum circuits (including Google’s recently announced “supremacy circuit” [48]) are not perfect: each operation of them contains a small error. Thus, an important open question is whether approximate simulations of quantum circuits could beat the noisy quantum device. Answering this question apparently requires advanced studies of approximate algorithms for simulating quantum circuits. Our method directly applies to approximate singleamplitude simulation of quantum circuits with any kind of connectivities, such as two-dimensional lattice [23,24] and random regular graphs, as considered in the quantum approximate optimization algorithm [49], after converting the initial state, the measurement qubit string, and the gates into tensors. The key difference between our method and existing methods for quantum circuit simulation is that, by detecting low-rank structures in the circuit, our method heavily reduces the computational complexity. Although this introduces SVD truncation errors, we will illustrate that, at least in the shallow circuits, the error is almost negligible. We perform experiments using standard random circuits on two-dimensional lattices [22–24], which iteratively apply single-qubit gates and two-qubit controlled Z gates to the initial j0; 0;...; 0i state, and finally measure the amplitude of a specific qubit string. The generation protocol is described in detail in the Supplemental Material [18]. We evaluate the performance of our method against the recently developed state-of-the-art exact tensor contraction method [24], which has a precisely predictable space and time complexity. With depth d 1⁄4 8, our algorithm can handle circuits with at most 40 × 40 1⁄4 1600 qubits with SVD accumulated truncation error εSVD ≤ 10−12 on a workstation with 64 GB memory in an hour. (a) (b) (c) (d)
张量网络
图表。我们的自由能误差结果与平均场方法,包括naïve平均场(NMF), thoulless - anderson - palmer方程(TAP),信念传播和基于神经网络的变分自回归网络(VAN)进行了比较。在没有外场的二维晶格上,图是平面的,所以有精确解[30]。而在其他图上,我们采用精确的(精心设计的)指数算法[31](在合理的时间内)来计算评估的精确自由能值。结果如图4所示。我们可以看到,在所有的实验中,我们的方法在很大程度上优于所有的平均场方法和基于神经网络的方法。在正则随机图、小世界网络和Sherrington-Kirkpatrick模型中,我们的精度仅受机器精度(10−16)的限制。在实验中,我们选择D³1⁄4 50和χ³1⁄4 500,每个实例的计算时间为几秒。经验表明,该方法比平均场方法和基于神经网络的方法更快。关于键尺寸与计算时间的依赖关系的更多结果可以在补充材料[18]中找到。此外,值得注意的是,结合张量网络的自微分[32],我们的方法立即能够使用图形模型执行学习任务。在补充材料[18]中,我们给出了一个使用我们的方法学习MNIST数据集手写数字的生成模型[33-43]的例子[44]。应用于量子电路模拟。-计算图形模型的自由能问题类似于计算超导量子电路的单幅估计问题[45],可以将其视为具有复杂耦合的图形模型。量子电路的经典模拟对于验证和评估量子计算机的计算进步非常重要[20,22 - 24,46,47]。然而,近期有噪声的中等规模量子电路(包括Google最近宣布的“霸权电路”[48])并不完美:它们的每次运算都包含一个小误差。因此,一个重要的悬而未决的问题是,量子电路的近似模拟是否可以击败有噪声的量子器件。回答这个问题显然需要对模拟量子电路的近似算法进行高级研究。我们的方法直接适用于量子近似优化算法[49]中考虑的具有任何连通性的量子电路的近似单幅模拟,如二维晶格[23,24]和随机正则图,将初始状态、测量量子位串和门转换为张量。我们的方法与现有量子电路模拟方法的关键区别在于,通过检测电路中的低秩结构,我们的方法大大降低了计算复杂度。虽然这引入了SVD截断误差,但我们将说明,至少在浅电路中,误差几乎可以忽略不计。我们在二维晶格上使用标准随机电路进行实验[22-24],迭代地将单量子比特门和双量子比特控制的Z门应用于初始j;0,……;0i状态,最后测量特定量子位串的振幅。生成方案在补充材料[18]中有详细描述。我们根据最近开发的最先进的精确张量收缩方法[24]评估了我们的方法的性能,该方法具有精确可预测的空间和时间复杂性。在深度为d 1⁄4 8的情况下,该算法可以在1小时内处理最多40 × 40 1⁄4 1600个量子位的电路,且SVD累计截断误差εSVD≤10−12。(a) (b) (c) (d)
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信