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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

The Cytnx library for tensor networks

Chia-Min Chung, Ying-Jer Kao, Pochung Chen, Ke Hsu et al.
2 citations
SciPost Physics Codebases
Quantum many-body systems
2.49
article

The Cytnx library for tensor networks

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

Abstract

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.

SciPost Physics Codebases
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
Ministry of Education
Openalex Percentile: Top 13%
Quantum many-body systems
2.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

The Cytnx library for tensor networks — Chia-Min Chung, Ying-Jer Kao, et al. · SciPost Physics Codebases (2025) | TGRS Research Map | TGRS