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

优化并基准测试一般矩阵积和式的计算

Optimizing and benchmarking the computation of the permanent of general matrices

Cassandra Masschelein, Michelle Richer, Paul W. Ayers

AI总结:

本文针对一般矩形矩阵积和式缺乏自动优选算法工具的问题,实现并基准测试支持组合算法、Ryser 与 Glynn 算法的开源软件,且扩展 Glynn 算法至矩形矩阵。

摘要:

计算矩阵的积和式是一项基础性运算,出现在许多领域中,包括计算复杂性理论、图论、多体量子理论等传统领域,以及机器学习和量子计算等新兴学科。尽管概念上很简单,但计算积和式极具挑战性:不存在多项式时间算法(除非 P=NP)。据我们所知,目前没有公开可用的软件能够自动采用最高效的算法来计算积和式。在本工作中,我们设计、开发并研究了我们的软件包的性能;该软件包可计算任意矩形矩阵的积和式,支持三种被普遍认为在给出精确解方面最快的算法(直接组合算法、Ryser 算法和 Glynn 算法),并且可以选择根据输入矩阵的类型和维度自动切换到最优算法。为此,我们将 Glynn 算法扩展到了矩形矩阵。我们的免费开源软件包通过 Github 发布,地址为 https://github.com/theochem/matrix-permanent。

英文摘要:

Evaluating the permanent of a matrix is a fundamental computation that emerges in many domains, including traditional fields like computational complexity theory, graph theory, many-body quantum theory and emerging disciplines like machine learning and quantum computing. While conceptually simple, evaluating the permanent is extremely challenging: no polynomial-time algorithm is available (unless $\textsc{P} = \textsc{NP}$). To the best of our knowledge there is no publicly available software that automatically uses the most efficient algorithm for computing the permanent. In this work we designed, developed, and investigated the performance of our software package which evaluates the permanent of an arbitrary rectangular matrix, supporting three algorithms generally regarded as the fastest while giving the exact solution (the straightforward combinatoric algorithm, the Ryser algorithm, and the Glynn algorithm) and, optionally, automatically switching to the optimal algorithm based on the type and dimensionality of the input matrix. To do this, we developed an extension of the Glynn algorithm to rectangular matrices. Our free and open-source software package is distributed via Github, at https://github.com/theochem/matrix-permanent.

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

↑