Cadabra
A field-theory motivated approach to computer algebra.
Cadabra is a symbolic computer algebra system, designed specifically for the solution of problems encountered in quantum and classical field theory. It has extensive functionality for tensor computer algebra, tensor polynomial simplification including multi-term symmetries, fermions and anti-commuting variables, Clifford algebras and Fierz transformations, implicit coordinate dependence, multiple index types and many more. The input format is a subset of TeX.
This package contains the Cadabra Python module, the Cadabra Jupyter
kernel and an IPython extension. The Cadabra notebook interface
(cadabra2-gtk) and the command-line client are not included; get
those from the native packages at https://cadabra.science/download.html.
Installation
python3 -m venv .venv
source .venv/bin/activate
pip install cadabra2
or, with uv:
uv venv
source .venv/bin/activate
uv pip install cadabra2
Note that a venv created by uv venv has no pip of its own, so a
plain pip install in it runs the system pip, which installs into
~/.local instead of the venv. Use uv pip, or create the venv with
uv venv --seed.
Wheels are available for Linux (x86_64 and arm64) and Python 3.10 or later.
Using Cadabra in Jupyter
There are two ways to use Cadabra in Jupyter:
-
Choose the Cadabra2 kernel when creating a new notebook. The kernel is registered automatically, in whichever Python environment the package was installed into.
-
Use an ordinary Python notebook and load the Cadabra extension in the first cell:
%load_ext cadabra2_jupyterafter which cells accept Cadabra notation, e.g.
ex:=(A+B) (C+D); distribute(ex);This works in environments where you cannot install extra kernels, such as Google Colab, Kaggle or VS Code notebooks. In Google Colab, run
!pip install cadabra2in a cell first.
Using Cadabra from Python
The module can also be used from plain Python:
import cadabra2
ex = cadabra2.Ex(r"A_{m n} + B_{m n}")
print(ex)
After import cadabra2, Cadabra notebooks (.cnb) and Jupyter
notebooks (.ipynb) written in Cadabra notation can be imported as
ordinary Python modules.
More information
- Documentation, tutorials and reference manual: https://cadabra.science
- Questions and answers forum: https://cadabra.science/qa/
- Source code: https://github.com/kpeeters/cadabra2
- Bug reports: https://github.com/kpeeters/cadabra2/issues
If you use Cadabra in your research, please cite K. Peeters, Cadabra2: computer algebra for field theory revisited, J. Open Source Softw. 3 (2018) 1118, doi:10.21105/joss.01118.
Metadata
Release files for cadabra2 2.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 23.3 MB
Release files / cadabra2-2.6.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | cadabra2-2.6.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
51ae7f6015cf8c11250fa4d8a798d81392aae47bdd1c9d4e7d0ad4236e9428aa
|
|
BLAKE2b-256 checksum How to use checksums |
f498995f3698df4f430d7b151cbc62236b1c289e42851c655cd5135aff9273ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / cadabra2-2.6.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | cadabra2-2.6.1-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
c61719fdd57ee2159e72bfd2d5c8d162e2f96c4127dd43bd64ad752bbd974d5b
|
|
BLAKE2b-256 checksum How to use checksums |
bfe6e424dd414d3003062691d95e9e71f136369f187ad861a1b7a3343df72de5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / cadabra2-2.6.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | cadabra2-2.6.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d88baa43131c428d20f1ba848b0cfcf959f09408a8f9606d08c92f0579074f61
|
|
BLAKE2b-256 checksum How to use checksums |
fc7f1e7333f30da1bff26081b2ba7427c130db93c7d045b63f628836694be1f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / cadabra2-2.6.1-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | cadabra2-2.6.1-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
229ed2cb9ee1c4b0bc7de7330dbaefb5491e05084241e4508d423e79b23eda9f
|
|
BLAKE2b-256 checksum How to use checksums |
bb9b76c1d62c63208f129930404d1df7c57a4e8c83528727753d6ccedc99d96c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / cadabra2-2.6.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | cadabra2-2.6.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6a7d9c961196ac1e555078dbbde68b2f0f9901820ffb9e5fc365389998263b6c
|
|
BLAKE2b-256 checksum How to use checksums |
9e2aab320772b6fdcc5c359b9e5f14479145c6bd884bb39852c74d72da2d6fb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / cadabra2-2.6.1-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | cadabra2-2.6.1-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
01e3f34abd188d06ead0699e3f03a3fcb15bf3f2275ef9c4d7d855b16f0b7e4f
|
|
BLAKE2b-256 checksum How to use checksums |
223e9e4932cf76ad577325ad12eed079fe163e717b67909fefa32448e07bed29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / cadabra2-2.6.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | cadabra2-2.6.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
02dfa271ebd07e4c885a16d928ba90cd3c32e9217dfa53ea764b05e12653b917
|
|
BLAKE2b-256 checksum How to use checksums |
0a58eca82c2c4450c33e14c7e4007c61175938383f94ee983e366fd6707cde5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / cadabra2-2.6.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | cadabra2-2.6.1-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
0c0373e755cc31eafa0a46fa676ffc32cee508924b5144e621d235c053709571
|
|
BLAKE2b-256 checksum How to use checksums |
02a95d512d983bb100c41ddfa8cb670618c8b500b0eaa12bb02571c04fb5b00e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / cadabra2-2.6.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | cadabra2-2.6.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b267524578a9f8caf700fb91b59220744d87614091c10b2dd8af21746b171776
|
|
BLAKE2b-256 checksum How to use checksums |
812ae8be3a12f74e36fa38ad650eff1a2e2c340b0032efdff12c1c3893f81a67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / cadabra2-2.6.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | cadabra2-2.6.1-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
ac153cace752acd6129c3ec3267f47cade47d1e34ce77ea4906422200a0f23d7
|
|
BLAKE2b-256 checksum How to use checksums |
619b87294e2232d9921296caed0fec034adeccf985d6fc30d90b747aad2ad71a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logSecurity for cadabra2 2.6.1
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.
Full provenance
All 10 files in this release have been uploaded with provenance metadata.
Attestation for cadabra2-2.6.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
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 Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.