arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.03085quant-phcs.LG
收藏

量子计算机上的通用矩阵乘法

Universal Matrix Multiplication on Quantum Computer

School of Computer Science and Technology, Tiangong University(天津工业大学计算机科学与技术学院)

Jiaqi Yao, Tianjian Huang, Zipeng Cai, Ding Liu

AI总结:

本文提出一种通用量子矩阵乘法框架,通过优化量子算术逻辑单元(利用量子傅里叶变换编码数据,将加法器门复杂度降至O(n),乘法器门复杂度降至O(n^2))并扩展至量子Strassen算法,实现计算加速。

摘要:

作为深度神经网络中最核心且计算最密集的组件,矩阵乘法的执行效率直接决定了模型的训练和推理性能。利用量子叠加和纠缠提供的并行处理能力来重塑矩阵乘法的实现,已成为优化底层量子算术逻辑和提高量子电路运行效率的一个有前景的切入点。本文提出了一种通用量子矩阵乘法(QMM)框架,旨在通过优化的量子算术逻辑单元实现显著的计算加速。为了规避传统量子算术电路中多寄存器和多控制门的限制,我们使用量子傅里叶变换(QFT)将经典数据直接编码到参数化的 \(R_z\) 旋转门中,从而将量子加法器的基本门复杂度降低到 \(O(n)\)。此外,通过采用经典算术中的列乘法原理,我们将量子乘法器的门复杂度优化到 \(O(n^2)\)。我们进一步将这种方法扩展到量子版本的Strassen算法,并通过实验量化了乘法时间减少与加法资源开销增加之间的权衡。这项工作为构建通用量子矩阵运算建立了一条可靠的技术路径,有望为训练现代机器学习模型释放巨大的计算能力。

英文摘要:

As the most central and computationally intensive component of deep neural networks, the execution efficiency of matrix multiplication directly determines the training and inference performance of models. Harnessing the parallel processing capabilities afforded by quantum superposition and entanglement to reshape matrix multiplication implementations has become a promising entry point for optimising underlying quantum arithmetic logic and improving the operational efficiency of quantum circuits. This paper proposes a universal quantum matrix multiplication (QMM) framework designed to achieve substantial computational acceleration through an optimised quantum arithmetic logic unit. To circumvent the limitations of multi-register and multi-control gates in conventional quantum arithmetic circuits, we encode classical data directly into parameterised \(R_z\) rotation gates using the quantum Fourier transform (QFT), thereby reducing the base gate complexity of the quantum adder to \(O(n)\). In addition, by adopting the column-wise multiplication principle from classical arithmetic, we optimize the gate complexity of the quantum multiplier to \(O(n^2)\). We further extend this approach to a quantum version of the Strassen algorithm, and experimentally quantify the trade-off between reduced multiplication time and increased overhead in addition resources. This work establishes a reliable technical pathway for constructing general-purpose quantum matrix operations, with the potential to unlock substantial computational power for training modern machine learning models.

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

↑