Tensor0
Tensor0 is an experimental symmetric tensor library for Python, with Rust-backed structural metadata and JAX-backed storage and automatic differentiation. It is not yet a production-ready tensor-network framework. Before 1.0, public API patch releases remain backward-compatible; breaking changes require a minor release and migration notes.
Use it for tensor algebra with conserved charges and other supported symmetries: work with symmetry-allowed blocks, then compose, contract or differentiate them using JAX. It provides tensor primitives rather than a complete simulation algorithm framework.
Documentation · Installation · Usage · API · Support policy
Install from source
0.1.0 is a release candidate, not a published release. Source installation remains the documented distribution route. The candidate wheel target is Linux x86_64 CPU, CPython 3.11–3.14, pending successful matrix verification; this is not a claim of available wheels or PyPI publication.
The numerical baseline is Linux CPU, Python 3.11, JAX and JAXLIB 0.10.1. Source builds require Rust 1.87 or newer and a C++20-capable compiler. The native XLA FFI checks the JAX/JAXLIB versions exactly. Only recorded passing candidate runs establish interpreter coverage.
git clone https://github.com/yitan1/Tensor0.git
cd Tensor0
python3.11 -m venv .venv
source .venv/bin/activate
CARGO_BUILD_JOBS=1 python -m pip install .
Native compilation can use several GiB per heavy C++ unit. Serial compilation limits concurrency, not peak memory; see build prerequisites and memory limits. CPU builds do not require CUDA. Optional CUDA support is experimental and restricted to selected operations, dtypes and AD paths—not the full TensorMap API or full reverse AD.
A small symmetric tensor
import jax.numpy as jnp
from tensor0 import TensorMap, U1Irrep, hom, space, storage_dim
v = space(U1Irrep, {0: 2, 1: 3})
h = hom((v,), (v,))
tensor = TensorMap(h, jnp.arange(storage_dim(h), dtype=jnp.float32))
for sector, block in tensor.blocks():
print(sector, block.shape)
Tensor0 provides graded spaces and built-in sector families, ordinary and
diagonal tensor maps, blockwise linear algebra and truncation, transforms and
symmetry-aware contractions, and JAX jit/grad integration. See the
usage guide, contraction guide, and
executable examples for capabilities and boundaries.
Contributing and benchmarks
See CONTRIBUTING.md for development and verification links, CHANGELOG.md for candidate changes, and the release checklist for installed-artifact acceptance. Reproducible benchmark suites and their reports document measured configurations and limitations; they are not performance guarantees.
Acknowledgments
Tensor0's main design and architecture are based on TensorKit.jl, bringing these ideas to Python with JAX-backed storage and automatic differentiation.
For citation metadata, see CITATION.cff.
Metadata
Release files for tensor0 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tensor0-0.1.0.tar.gz | 327.1 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tensor0-0.1.0-cp314-cp314-manylinux_2_28_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.28+ x86-64 | Details |
| tensor0-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.28+ x86-64 | Details |
| tensor0-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.28+ x86-64 | Details |
| tensor0-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.28+ x86-64 | Details |
Total release size: 51.6 MB
Release files / tensor0-0.1.0.tar.gz
| Download URL | tensor0-0.1.0.tar.gz |
|---|---|
| Size | 327.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06ec0621e34240c24c43c07887ed9bd97d781aed6c035929e67e4b771cc99abd
|
|
BLAKE2b-256 checksum How to use checksums |
a835068ee2d48b8c994c4cc90ca6a8311bc78caaf2cebaeac2c3bee2acd3ff79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency logRelease files / tensor0-0.1.0-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | tensor0-0.1.0-cp314-cp314-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.8 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e2d98df985ade8a906f8a1fe67ae798261fde0bfb182b68ecbf5f077ce783f5e
|
|
BLAKE2b-256 checksum How to use checksums |
c42a33b6c6e4ee35729280e02fa13f6a6e9c596e9722c3ec619f8b68add5a5c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency logRelease files / tensor0-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | tensor0-0.1.0-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.8 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a6c52313c61017aa3df35893d4698fac1c8c9f123adf5dda2b450636afe96dff
|
|
BLAKE2b-256 checksum How to use checksums |
e24ca34938ac97509eaae2ccb6b3e6586f2bc0288a9798b90edb240f5e8b7d54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency logRelease files / tensor0-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | tensor0-0.1.0-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.8 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
c9f4116770fd8aafc0c718f25490e0d88c220ab77a4cffc9fb248988ab9c3329
|
|
BLAKE2b-256 checksum How to use checksums |
8f086bd23fa19d6ea7ca66c11d76d22ce5afef27fda7ecd3ce56fd793040fa0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency logRelease files / tensor0-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | tensor0-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 12.8 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3e57bdd74984a0b294985cac0c2aafb817674c687b783ccdb6bd24c425ac9451
|
|
BLAKE2b-256 checksum How to use checksums |
13fa2c26b9a9ebb4cbcf19159ba80bec0ddb7b7dcb677574ba9ab0a945cbe8b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.
Transparency log