arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2006.14815quant-phcs.LG
收藏

面向量子优势的神经网络与量子线路协同设计框架

A Co-Design Framework of Neural Networks and Quantum Circuits Towards Quantum Advantage

University of Notre Dame(圣母大学);IBM Thomas J. Watson Research Center(IBM托马斯·J·沃森研究中心)

Weiwen Jiang, Jinjun Xiong, Yiyu Shi

摘要:

尽管在各种应用中追求量子优势,但量子计算机在神经网络计算中的能力大多仍是未知的,这主要是由于有效地设计适合于量子线路实现的神经网络模型的缺失环节。在本文中,我们提出了协同设计框架,即QuantumFlow,以提供这样一个缺失的环节。QuantumFlow由新颖的量子友好神经网络(QF-Nets)、用于为QF-Nets生成量子线路(QF-Circ)的映射工具(QF-Map)和执行引擎(QF-FB)组成。我们发现,为了充分利用量子表示的强度,最好将神经网络中的数据表示为随机变量或酉矩阵中的数字,以便它们可以直接由基本量子逻辑门操作。基于这些数据表示,我们在QuantumFlow中提出了两个量子友好的神经网络,QF-pNet和QF-hNet。使用随机变量的QF-pNet具有更好的灵活性,并且可以无缝连接两个层,而无需测量,比QF-hNet具有更多的qbit和逻辑门。另一方面,具有酉矩阵的QF-hNet可以将2^k个数据编码为k个qbits,并且一种新的算法可以保证成本复杂度为O(k^2)。与经典计算的O(2^k)开销相比,QF-hNet体现了量子优势。评估结果表明,QF-pNet和QF-hNet可以分别达到97.10%和98.27%的准确率。结果进一步表明,神经计算的输入大小从16增加到2,048,QuantumFlow的成本降低从2.4倍增加到64倍。此外,在MNIST数据集上,QF-hNet可以达到94.09%的准确率,而与经典计算机相比,成本降低了10.85倍。据我们所知,QuantumFlow是第一个展示神经网络计算潜在量子优势的工作。

英文摘要:

Despite the pursuit of quantum advantages in various applications, the power of quantum computers in neural network computations has mostly remained unknown, primarily due to a missing link that effectively designs a neural network model suitable for quantum circuit implementation. In this article, we present the co-design framework, namely QuantumFlow, to provide such a missing link. QuantumFlow consists of novel quantum-friendly neural networks (QF-Nets), a mapping tool (QF-Map) to generate the quantum circuit (QF-Circ) for QF-Nets, and an execution engine (QF-FB). We discover that, in order to make full use of the strength of quantum representation, it is best to represent data in a neural network as either random variables or numbers in unitary matrices, such that they can be directly operated by the basic quantum logical gates. Based on these data representations, we propose two quantum friendly neural networks, QF-pNet and QF-hNet in QuantumFlow. QF-pNet using random variables has better flexibility, and can seamlessly connect two layers without measurement with more qbits and logical gates than QF-hNet. On the other hand, QF-hNet with unitary matrices can encode 2^k data into k qbits, and a novel algorithm can guarantee the cost complexity to be O(k^2). Compared to the cost of O(2^k)in classical computing, QF-hNet demonstrates the quantum advantages. Evaluation results show that QF-pNet and QF-hNet can achieve 97.10% and 98.27% accuracy, respectively. Results further show that for input sizes of neural computation grow from 16 to 2,048, the cost reduction of QuantumFlow increased from 2.4x to 64x. Furthermore, on MNIST dataset, QF-hNet can achieve accuracy of 94.09%, while the cost reduction against the classical computer reaches 10.85x. To the best of our knowledge, QuantumFlow is the first work to demonstrate the potential quantum advantage on neural network computation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑