Tensor Computing Interface: An Application-Oriented, Lightweight Interface for Portable High-Performance Tensor Network Applications
Rong-Yang Sun, Tomonori Shirakawa, Hidehiko Kohshiro, D. N. Sheng, Seiji Yunoki
TL;DR
The paper addresses the portability bottleneck in tensor-network applications by introducing the Tensor Computing Interface (TCI), a lightweight, application-oriented C++17 API with a unified TenT type system and core tensor operations. It demonstrates that TN algorithms written against TCI can be ported across diverse back ends (CPU, GPU, and HPC) with performance comparable to native framework APIs, using two representative TN applications: ground-state iTEBD for the TFIM and a 2dTNS-BP dynamics model for the kicked Ising model. The contributions include a formal tensor type system, a comprehensive set of tensor-manipulation and tensor-LA functions, and open-source implementations (TCI on Cytnx), validated by cross-back-end benchmarks and portability tests. The work has practical impact by enabling portable, high-performance TN software across current and future HPC architectures, thereby accelerating algorithm development without backend lock-in.
Abstract
Tensor networks (TNs) are a central computational tool in quantum science and artificial intelligence. However, the lack of unified software interface across tensor-computing frameworks severely limits the portability of TN applications, coupling algorithmic development to specific hardware and software back ends. To address this challenge, we introduce the Tensor Computing Interface (TCI) -- an application-oriented, lightweight application programming interface designed to enable framework-independent, high-performance TN applications. TCI provides a well-defined type system that abstracts tensor objects together with a minimal yet expressive set of core functions covering essential tensor manipulations and tensor linear-algebra operations. Through numerical demonstrations on representative tensor-network applications, we show that codes written against TCI can be migrated seamlessly across heterogeneous hardware and software platforms while achieving performance comparable to native framework implementations. We further release an open-source implementation of TCI based on \textit{Cytnx}, demonstrating its practicality and ease of integration with existing tensor-computing frameworks.
