<tt>SeQuant</tt> framework for symbolic and numerical tensor algebra. I. Core capabilities

B Bimal Gaudel (Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,) R Robert G. Adam (Institute for Theoretical Chemistry, University of Stuttgart 2 , Stuttgart,) A Ajay Melekamburath (Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,) C Conner Masteran (Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,) N Nakul Teke (Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,) A Azam Besharatnik (Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,) A Andreas Köhn (Institute for Theoretical Chemistry, University of Stuttgart 2 , Stuttgart,) E Edward F. Valeev (Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,)

Abstract

SeQuant is an open-source library for symbolic algebra of tensors over commutative (scalar) and non-commutative (operator) rings. The key innovation supporting most of its functionality is a graph-theoretic tensor network (TN) canonicalizer that can handle TNs with symmetries faster than their standard group-theoretic counterparts. The TN canonicalizer is used for the routine simplification of conventional tensor expressions, for optimizing the application of Wick’s theorem (used to canonicalize products of tensors over operator fields), and for the manipulation of the intermediate representation leading to the numerical evaluation. Notable features of SeQuant include support for noncovariant TNs (featuring hyperedges in their graphical representation and often arising from tensor decompositions) and for tensors with modes that depend parametrically on indices of other tensor modes (such dependencies between degrees of freedom are naturally viewed as nesting of tensors, or “tensors of tensors” arising in block-wise data compressions in data science and modern quantum simulation). SeQuant blurs the line between pure symbolic manipulation/code generation and numerical evaluation by including compiler-like components to optimize and directly interpret tensor expressions using external numerical tensor algebra frameworks. The SeQuant source code is available at https://github.com/ValeevGroup/SeQuant.

Article Details

Volume / Issue Vol. 164, Issue 14
Published March 21, 2026
ISSN 0021-9606
Publisher American Institute of Physics

Journal Info

The Journal of Chemical Physics

American Institute of Physics

ISSN: 0021-9606 Physical Sciences

Authors (8)

B

Bimal Gaudel

Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,

R

Robert G. Adam

Institute for Theoretical Chemistry, University of Stuttgart 2 , Stuttgart,

A

Ajay Melekamburath

Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,

C

Conner Masteran

Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,

N

Nakul Teke

Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,

A

Azam Besharatnik

Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,

A

Andreas Köhn

Institute for Theoretical Chemistry, University of Stuttgart 2 , Stuttgart,

E

Edward F. Valeev

Department of Chemistry, Virginia Tech 1 , Blacksburg, Virginia 24061,