The Cytnx library for tensor networks
We introduce a tensor network library designed for classical and quantum physics simulations called Cytnx (pronounced as sci-tens). This library provides an almost identical interface and syntax for both C++ and Python, allowing users to effortlessly switch between the 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.
Authors
- Chia-Min Chung (ORCID: https://orcid.org/0000-0002-6396-0784)
- Ying-Jer Kao (ORCID: https://orcid.org/0000-0002-3329-6018)
- Pochung Chen (ORCID: https://orcid.org/0000-0002-8092-7177)
- Ke Hsu (ORCID: https://orcid.org/0000-0001-5716-0230)
- Kai-Hsin Wu (ORCID: https://orcid.org/0000-0001-9126-5300)
- Chang-Teng Lin
- Manuel Schneider (ORCID: https://orcid.org/0000-0001-9348-8700)
- Hao-Ti Hung
Institutions
- National Sun Yat-sen University (TW)
- National Yang Ming Chiao Tung University (TW)
- National Taiwan University (TW)
- National Tsing Hua University (TW)
- National Center for Theoretical Sciences (TW)
- National Center for Theoretical Sciences, Physics Division
Publication Details
- Journal
- SciPost Physics Codebases
- Published
- 2025-03-13
- DOI
- https://doi.org/10.21468/scipostphyscodeb.53
- Citations
- 2
- Primary Topic
- Quantum many-body systems
- Type
- article
- Field-Weighted Citation Impact
- 2.49
Funders
- Ministry of Education