The Cytnx Library for Tensor Networks

πŸ“… 2024-01-03
πŸ›οΈ arXiv.org
πŸ“ˆ Citations: 1
✨ Influential: 0
πŸ“„ PDF
πŸ€– AI Summary
To address the high development barrier, poor cross-platform compatibility, inefficient symmetry handling, and suboptimal contraction optimization in tensor network algorithms, this paper introduces Cytnxβ€”an open-source library. Cytnx features a unified C++/Python dual-backend interface with syntax compatibility to NumPy and PyTorch. It proposes a novel dynamic-graph-based automatic contraction scheduler built upon a *Network* abstraction, enabling native support for mixed storage and efficient computation with multiple global Abelian symmetries. Furthermore, it integrates NVIDIA cuQuantum for GPU acceleration. Experimental results demonstrate that Cytnx significantly outperforms manual contraction schemes on both CPU and GPU platforms, drastically reducing implementation complexity. As a result, Cytnx provides a high-performance, user-friendly, and extensible tensor network computing infrastructure for classical and quantum many-body physics simulations.

Technology Category

Application Category

πŸ“ Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

Tensor Network
High-performance Computing
Quantum Physics
Innovation

Methods, ideas, or system contributions that make the work stand out.

Tensor Network Library
GPU Acceleration
Symmetry Optimization
πŸ”Ž Similar Papers
No similar papers found.
K
Kai-Hsin Wu
Department of Physics, Boston University, Boston 02215, United States of America
C
Chang-Teng Lin
Department of Physics, National Taiwan University, Taipei 10607, Taiwan; Center for Theoretical Physics, National Taiwan University, Taipei 10607, Taiwan
K
Ke Hsu
Department of Physics, National Taiwan University, Taipei 10607, Taiwan; Center for Theoretical Physics, National Taiwan University, Taipei 10607, Taiwan
H
Hao-Ti Hung
Department of Physics, National Taiwan University, Taipei 10607, Taiwan; Center for Theoretical Physics, National Taiwan University, Taipei 10607, Taiwan
M
Manuel Schneider
Institute of Physics, National Yang Ming Chiao Tung University, Hsinchu 30010, Taiwan
C
Chia-Min Chung
Department of Physics, National Sun Yat-Sen University, Kaohsiung 80424, Taiwan; Physics Division, National Center for Theoretical Sciences, Taipei 10617, Taiwan; Center for Theoretical and Computational Physics, National Sun Yat-Sen University, Kaohsiung 80424, Taiwan
Ying-Jer Kao
Ying-Jer Kao
Professor of Physics, National Taiwan University
Condensed matter physics
P
Pochung Chen
Physics Division, National Center for Theoretical Sciences, Taipei 10617, Taiwan; Department of Physics, National Tsing Hua University, Hsinchu 30013, Taiwan; Frontier Center for Theory and Computation, National Tsing Hua University, Hsinchu 30013, Taiwan