QMCPy:一个用于随机低差异序列、拟蒙特卡洛和快速核方法的Python包
QMCPy: A Python package for randomized low-discrepancy sequences, quasi-Monte Carlo, and fast kernel methods
AI总结:
提出QMCPy开源库,统一框架支持随机低差异序列、拟蒙特卡洛方法和快速核计算,通过结构化Gram矩阵和快速变换将计算复杂度从O(n^2)-O(n^3)降至O(n log n)。
摘要:
低差异(LD)序列被广泛用作高维数值积分和函数逼近的高效实验设计。本文介绍QMCPy,一个开源Python库,为随机LD序列、拟蒙特卡洛(QMC)方法和基于核的快速计算提供统一框架。我们系统描述了所支持的rank-1格、数字网(包括高阶构造)和Halton点集,以及随机化技术如随机移位、线性矩阵置乱(LMS)、嵌套均匀置乱(NUS)、数字移位和数字置换。我们强调实际实现问题,如可扩展序列生成、格雷码排序和高效数字运算。除积分外,QMCPy通过将LD点集与平移不变(SI)和数字平移不变(DSI)核(包括高阶变体)配对,支持再生核希尔伯特空间(RKHS)中的快速核方法,从而产生结构化Gram矩阵。特别地,所得Gram矩阵具有循环或递归对称块Toeplitz(RSBT)结构,使得矩阵-向量乘积和线性求解的成本从O(n^2)-O(n^3)降至O(n log n),通过使用快速傅里叶变换(FFT)和快速Walsh-Hadamard变换(FWHT)。我们推导了四阶DSI核的新可计算形式,开发了高效的特征值和变换更新算法,并展示了数值实验,证明了所实现方法在一系列测试被积函数和维度上的准确性、收敛速度和计算效率。QMCPy中的这些能力为在计算科学和工程中应用随机QMC和基于核的技术提供了一个实用、可重复的平台。
英文摘要:
Low-discrepancy (LD) sequences are widely used as efficient experimental designs for high-dimensional numerical integration and function approximation. This article presents QMCPy, an open-source Python library that provides a unified framework for randomized LD sequences, quasi-Monte Carlo (QMC) methods, and fast kernel-based computations. We systematically describe the supported rank-$1$ lattices, digital nets (including higher-order constructions), and Halton point sets, together with randomization techniques such as random shifts, linear matrix scrambling (LMS), nested uniform scrambling (NUS), digital shifts, and digital permutations. We emphasize practical implementation issues such as extensible sequence generation, Gray code ordering, and efficient digital operations. Beyond integration, QMCPy supports fast kernel methods in reproducing kernel Hilbert spaces (RKHSs) by pairing LD point sets with shift-invariant (SI) and digitally shift-invariant (DSI) kernels, including higher-order variants, which yields structured Gram matrices. In particular, the resulting Gram matrices have circulant or recursive symmetric block Toeplitz (RSBT) structure, allowing the costs of matrix-vector products and linear solves to be reduced from $\mathcal{O}(n^2)- \mathcal{O}(n^3)$ to $\mathcal{O}(n \log n)$ by using fast Fourier transforms (FFTs) and fast Walsh-Hadamard transforms (FWHTs). We derive a new computable form of an order-$4$ DSI kernel, develop efficient eigenvalue and transform-update algorithms, and present numerical experiments that demonstrate the accuracy, convergence rates, and computational efficiency of the implemented methods across a range of test integrands and dimensions. These capabilities in QMCPy provide a practical, reproducible platform for applying randomized QMC and kernel-based techniques in computational science and engineering.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。