Skip to main content

A Python package for dealing with quantics tensor trains

Project description

Welcome to trainsum, a Python package designed for working with quantics tensor trains. The development was done by the ZAQC-team at the Fraunhofer Institute for Graphical Data Analysis (IGD). trainsum is licensed under EUPL 1.2 (similar to GPL).

The main features are:

  • easy definition of N-dimensional tensor trains

  • quantization of dimensions independent of their size

  • einsum-operations equivalent to NumPy’s einsum function

  • generic backends for NumPy, Torch and CuPy

  • tensorized solver for eigenvalue equations and linear equation systems

Installation

You can install trainsum using pip:

pip install trainsum

The dependencies are:

  • numpy

  • array_api_compat

  • opt_einsum

  • h5py

  • pulp[cbc] (you might want to install GLPK for better performance)

Documentation

The documentation for trainsum can be found at https://trainsum.readthedocs.io.

Citing

If you use trainsum in your research, please cite https://arxiv.org/abs/2602.20226.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trainsum-0.0.3.tar.gz (113.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trainsum-0.0.3-py3-none-any.whl (155.3 kB view details)

Uploaded Python 3

File details

Details for the file trainsum-0.0.3.tar.gz.

File metadata

  • Download URL: trainsum-0.0.3.tar.gz
  • Upload date:
  • Size: 113.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for trainsum-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c0b1e5e7eeec2851f842ad28b6b1b8d193bac104e01673a13dc9e90c4b874baf
MD5 64ec783b1cbfee54d835b4b5867725b6
BLAKE2b-256 d6a6e548a838b237f54e9d7743885bd877136c2bf13cfa7990ca2aa8d91424cf

See more details on using hashes here.

File details

Details for the file trainsum-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: trainsum-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 155.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for trainsum-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 04086e1078d801c288c0e9440a608bdbc6c5df76e449c771d144bbfc3930bc57
MD5 1f97976952811120da6e021653493d96
BLAKE2b-256 70771e70788daf714d10bf58ce9e1f6fc2ba50d0ed09cbc29c3fe40a25e2ee91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page