Tensor0
Symmetry-aware tensors for Python, powered by Rust and JAX.
Work with conserved charges and symmetry-allowed tensor blocks, then compose, contract or differentiate them using JAX. Rust handles structural metadata; JAX handles numerical storage and automatic differentiation.
Pre-1.0 software. CUDA support is experimental.
Documentation · Installation · Usage · API · Support policy
Installation
Install from PyPI in a virtual environment:
# CPU
python -m pip install tensor0
# CUDA 12 (experimental)
python -m pip install "tensor0[cuda12]"
See CUDA support for GPU requirements and supported operations. Prebuilt wheels require no Rust or C++ compiler. See the installation guide for available platforms, supported Python versions, GPU setup and source builds.
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)
Main capabilities
- Symmetry-aware tensors — graded spaces, built-in sector families, and ordinary and diagonal tensor maps with symmetry-allowed blocks.
- Tensor algebra — transforms, contractions, blockwise linear algebra, decompositions and truncation.
- JAX integration —
jitand automatic differentiation within documented operation-specific limits.
Start with the usage guide, contraction guide and executable examples. Before 1.0, documented public API patch releases remain backward-compatible; breaking changes require a minor release and migration notes. See the support policy.
Contributing and benchmarks
See CONTRIBUTING.md for development and verification links, CHANGELOG.md for release changes, and the release checklist for installed-artifact acceptance. See the reproducible benchmark suites for measurements and tested configurations.
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.2.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.2.0.tar.gz | 277.2 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tensor0-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.28+ x86-64 | Details |
| tensor0-0.2.0-cp314-cp314-macosx_15_0_arm64.whl | CPython 3.14 | CPython 3.14 | macOS 15.0+ ARM64 | Details |
| tensor0-0.2.0-cp313-cp313-manylinux_2_28_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.28+ x86-64 | Details |
| tensor0-0.2.0-cp313-cp313-macosx_15_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 15.0+ ARM64 | Details |
| tensor0-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.28+ x86-64 | Details |
| tensor0-0.2.0-cp312-cp312-macosx_15_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 15.0+ ARM64 | Details |
| tensor0-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.28+ x86-64 | Details |
| tensor0-0.2.0-cp311-cp311-macosx_15_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 15.0+ ARM64 | Details |
Total release size: 101.9 MB
Release files / tensor0-0.2.0.tar.gz
| Download URL | tensor0-0.2.0.tar.gz |
|---|---|
| Size | 277.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73f8c35df6e6e450973d1726c8660f3a48b978246cea658f65f07436d4df16de
|
|
BLAKE2b-256 checksum How to use checksums |
2adab0e5489b4fa8981b34a8bc7ab7fe35058f61aaa4a52e2914f5922e90025a
|
| 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 12, 2026.
Transparency logRelease files / tensor0-0.2.0-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | tensor0-0.2.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 |
e4f015559ded930f65fd7d7318f57ea8373648eec2121bd74efb9cbcd3743776
|
|
BLAKE2b-256 checksum How to use checksums |
128ab691bf067bbe92fa4292cd7f056f7553c3691102148714bf0a84d8a10b56
|
| 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 12, 2026.
Transparency logRelease files / tensor0-0.2.0-cp314-cp314-macosx_15_0_arm64.whl
| Download URL | tensor0-0.2.0-cp314-cp314-macosx_15_0_arm64.whl |
|---|---|
| Size | 12.6 MB |
| Tags | CPython 3.14 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
db6890efff7654abf4513615416751e6ec1e13cb85f0b3c123be8c82fdd70d10
|
|
BLAKE2b-256 checksum How to use checksums |
14b7cdc1acf647158ac2d24061278dca0ecac27ad8113e2397a79691e194bf73
|
| 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 12, 2026.
Transparency logRelease files / tensor0-0.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | tensor0-0.2.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 |
543c25b16d90b6d3685723926a3cd3e5ec64c0c4bbc076995018e2179e374278
|
|
BLAKE2b-256 checksum How to use checksums |
634365cdcf06dc6e68ddacc158ae7459b0e1e16fce1a836a32336e6a4ab6a348
|
| 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 12, 2026.
Transparency logRelease files / tensor0-0.2.0-cp313-cp313-macosx_15_0_arm64.whl
| Download URL | tensor0-0.2.0-cp313-cp313-macosx_15_0_arm64.whl |
|---|---|
| Size | 12.6 MB |
| Tags | CPython 3.13 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
eb6dc5fcc58a6b6cdc784f43218d573bfc8c985f7a34e11ea637f035babe01ab
|
|
BLAKE2b-256 checksum How to use checksums |
063e500a0afd950282c8ba1af4a3cefae1b72793576736fce96ee2bcf3ed657b
|
| 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 12, 2026.
Transparency logRelease files / tensor0-0.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | tensor0-0.2.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 |
8f95315bbeb01d51269cf44700afa7aad9d390bb761fa9fe819715ad552b964b
|
|
BLAKE2b-256 checksum How to use checksums |
0b204096c5e6379022723ad0290cea19c903f1457237fcf40b68c9ff32113336
|
| 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 12, 2026.
Transparency logRelease files / tensor0-0.2.0-cp312-cp312-macosx_15_0_arm64.whl
| Download URL | tensor0-0.2.0-cp312-cp312-macosx_15_0_arm64.whl |
|---|---|
| Size | 12.6 MB |
| Tags | CPython 3.12 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7ed58074e78f028862da1baf243117bc659e5a46eae12035dc4dfd1f2e70689c
|
|
BLAKE2b-256 checksum How to use checksums |
e53a7cf7d4c2584fe87810051b6fd522e56f0b5591d0068eb7b5def87c842a0d
|
| 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 12, 2026.
Transparency logRelease files / tensor0-0.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | tensor0-0.2.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 |
3a957afdd6800780ed64af26b51f8c26761386c6de1c810232b8feba2d300c76
|
|
BLAKE2b-256 checksum How to use checksums |
e5fd51a2bbe8d3f17d451e8b1ae44190bb9950da97c76e1df6885b2a7d53c09d
|
| 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 12, 2026.
Transparency logRelease files / tensor0-0.2.0-cp311-cp311-macosx_15_0_arm64.whl
| Download URL | tensor0-0.2.0-cp311-cp311-macosx_15_0_arm64.whl |
|---|---|
| Size | 12.6 MB |
| Tags | CPython 3.11 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
bdafc1267c7b7e0cd97d241b213a023be5a774cbe99467e4c4a9cfa80eba1339
|
|
BLAKE2b-256 checksum How to use checksums |
7126db930cfbbf9f3ec008175da4c0ed491583c4e7fecd7d52cc503f62193b6e
|
| 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 12, 2026.
Transparency log