用于张量网络的 Cytnx 库
The Cytnx Library for Tensor Networks
AI总结:
本文介绍面向经典与量子物理模拟的张量网络库 Cytnx,提供统一的 C++/Python 接口、Abelian 对称性支持、自动最优缩并及 GPU 加速,并给出 CPU/GPU 基准。
摘要:
我们介绍了一个名为 Cytnx(发音为 sci-tens)的张量网络库,专为经典物理和量子物理模拟而设计。该库为 C++ 和 Python 提供几乎完全相同的接口与语法,使用户能够毫不费力地在两种语言之间切换。为了帮助张量网络算法的新用户快速学习,其接口模仿了 NumPy、Scipy 和 PyTorch 等流行的 Python 科学库。Cytnx 不仅能够轻松定义和实现多种整体 Abelian 对称性,还提供了一个名为 Network 的新工具,允许用户存储大型张量网络,并以最优顺序自动执行张量网络缩并。通过集成 cuQuantum,张量计算还可以在 GPU 上高效执行。我们展示了在 CPU 和 GPU 两种设备上张量操作的基准测试结果。我们还讨论了未来将要添加的功能和更高级的接口。
英文摘要:
We introduce a tensor network library designed for classical and quantum physics simulations called Cytnx (pronounced as sci-tens). This library provides almost an identical interface and syntax for both C++ and Python, allowing users to effortlessly switch between two languages. Aiming at a quick learning process for new users of tensor network algorithms, the interfaces resemble the popular Python scientific libraries like NumPy, Scipy, and PyTorch. Not only multiple global Abelian symmetries can be easily defined and implemented, Cytnx also provides a new tool called Network that allows users to store large tensor networks and perform tensor network contractions in an optimal order automatically. With the integration of cuQuantum, tensor calculations can also be executed efficiently on GPUs. We present benchmark results for tensor operations on both devices, CPU and GPU. We also discuss features and higher-level interfaces to be added in the future.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。