EUVIMEDOntdek EUVIMED
Open access · CC BY 4.0

The Cytnx library for tensor networks

Kai-Hsin Wu, Chang-Teng Lin, Ke Hsu, Hao-Ti Hung, Manuel Schneider, Chia-Min Chung, Ying-Jer Kao, Pochung Chen

SciPost Physics Codebases · 2025-03-13

DOI: 10.21468/scipostphyscodeb.53 ↗

At a glance

Journal article in SciPost Physics Codebases, published online on 2025-03-13. Written by Kai-Hsin Wu and 7 co-authors. Cited 4 times so far (Crossref); 64 references. The full text is freely available (open access, CC BY 4.0). Funded by: Ministry of Education, National Science and Technology Council.

SamenvattingBibliografische gegevensCiteRelated studies

Abstract (original language)

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.

Funding

  • Ministry of Education
  • National Science and Technology Council

Cite

APA

Wu, K., Lin, C., Hsu, K., Hung, H., Schneider, M., Chung, C., Kao, Y., & Chen, P. (2025). The Cytnx library for tensor networks. SciPost Physics Codebases. https://doi.org/10.21468/scipostphyscodeb.53

Vancouver

Wu K, Lin C, Hsu K, Hung H, Schneider M, Chung C, et al. The Cytnx library for tensor networks. SciPost Physics Codebases. 2025. doi:10.21468/scipostphyscodeb.53

BibTeX
@article{Wu2025,
  author = {Wu, Kai-Hsin and Lin, Chang-Teng and Hsu, Ke and Hung, Hao-Ti and Schneider, Manuel and Chung, Chia-Min and Kao, Ying-Jer and Chen, Pochung},
  title = {The Cytnx library for tensor networks},
  journal = {SciPost Physics Codebases},
  year = {2025},
  doi = {10.21468/scipostphyscodeb.53}
}
Start for free →