arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.16378quant-phmath-phmath.MP
收藏

将稠密矩阵分解为稠密Pauli张量

Decomposing dense matrices into dense Pauli tensors

Tyson Jones

AI总结:

本研究提出一种基于格雷码的固定内存无分支算法,可高效将稠密任意复矩阵分解为Pauli串加权和,在N<8时相比前沿方法PauliComposer实现1.5至5倍加速,且无指数级内存开销。

摘要:

将矩阵分解为Pauli串的加权和是量子计算机科学家的一项常见工作,这类研究者通常不会被指数级规模增长轻易劝退。但需要注意的是,朴素分解方法的计算成本可能比必要值高出立方量级!在本论文中,我们利用格雷码(Gray code)推导出一种固定内存、无分支的算法,可在O(2^N)时间内计算2^N×2^N复矩阵与N项Pauli张量的内积。我们的方案可实现矩阵到Pauli串加权和的易并行分解,时间复杂度为O(8^N)。我们用Python实现了该算法,在Github上开源托管,并与最新的前沿方法“PauliComposer”进行了基准测试——后者存在指数增长的内存开销,在N<8的情况下,我们的方法实现了1.5倍到5倍的加速。需要说明的是,我们的方案未利用输入矩阵的稀疏性、对角性、厄米性或其他可在其他方法中实现优化处理的性质。因此,该算法非常适合分解稠密的任意复矩阵,这类矩阵在Pauli基下预计是稠密的,或者其待分解的Pauli张量是先验未知的。

英文摘要:

Decomposing a matrix into a weighted sum of Pauli strings is a common chore of the quantum computer scientist, whom is not easily discouraged by exponential scaling. But beware, a naive decomposition can be cubically more expensive than necessary! In this manuscript, we derive a fixed-memory, branchless algorithm to compute the inner product between a 2^N-by-2^N complex matrix and an N-term Pauli tensor in O(2^N) time, by leveraging the Gray code. Our scheme permits the embarrassingly parallel decomposition of a matrix into a weighted sum of Pauli strings in O(8^N) time. We implement our algorithm in Python, hosted open-source on Github, and benchmark against a recent state-of-the-art method called the "PauliComposer" which has an exponentially growing memory overhead, achieving speedups in the range of 1.5x to 5x for N < 8. Note that our scheme does not leverage sparsity, diagonality, Hermitivity or other properties of the input matrix which might otherwise enable optimised treatment in other methods. As such, our algorithm is well-suited to decomposition of dense, arbitrary, complex matrices which are expected dense in the Pauli basis, or for which the decomposed Pauli tensors are a priori unknown.

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

↑