SeQuant Framework for Symbolic and Numerical Tensor Algebra. I. Core Capabilities
Bimal Gaudel, Robert G. Adam, Ajay Melekamburath, Conner Masteran, Nakul Teke, Azam Besharatnik, Andreas Köhn, Edward F. Valeev
TL;DR
SeQuant tackles the need for scalable, robust symbolic tensor algebra in quantum many-body problems by introducing a graph-theoretic tensor network canonicalizer that can handle nested index dependencies and noncovariant networks. It combines a domain-neutral symbolic core with a specialized Wick's theorem engine and a runtime interpretation framework that lowers symbolic expressions to efficient numerical backends, while using an index-space registry to manage complex index vocabularies. The key contributions include a colored-graph TN representation and automorphism-based canonicalization that outperforms traditional group-theoretic methods in many scenarios, and a topologically aware WT engine that delivers diagram-like efficiency for high-rank CC-type derivations. Together with the IR-based optimization and runtime interpretive execution, SeQuant offers a practical, extensible front end for symbolic-tensor computations that accelerates method development in quantum chemistry and related fields, with future work on code-generation backends and broader backend integration.
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 tensor networks with symmetries faster than their standard group-theoretic counterparts. The TN canonicalizer is used for routine simplification of conventional tensor expressions, for optimizing application of Wick's theorem (used to canonicalize products of tensors over operator fields), and for manipulation of the intermediate representation leading to the numerical evaluation. Notable features of SeQuant include support for noncovariant tensor networks (which often arise 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, "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.
