Pytearcat: PYthon TEnsor AlgebRa calCulATor

Marco San Martín, Joaquin Sureda
6/28/2021
gr-qcphysics.comp-ph

Official code: pytearcat/pytearcat (58 stars, Python, GPL-3.0, last commit 2025-05-28).

Abstract

This paper introduces the first release of Pytearcat, a Python package developed to compute tensor algebra operations in the context of theoretical physics, for instance, in general relativity. Given that working with tensors can become a complex task, people often rely on computational tools to perform tensor calculations.

Show full abstract

We aim to build a tensor calculator based on Python, which benefits from being free and easy to use. Pytearcat syntax resembles the usual physics notation for tensor calculus, such as the Einstein notation for index contraction. This version allows the user to perform many tensor operations, including derivatives and series expansions, along with routines to obtain the typical General Relativity tensors. A particular concern was put in the execution times, leading to incorporate an alternative core for the symbolic calculations, enabling to reach much faster execution times. The syntax and the versatility of Pytearcat are the most important features of this package, where the latter can be used to extend Pytearcat to other areas of theoretical physics.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

A python package for general relativity and tensor calculus

5812Python, Jupyter NotebookDec 30, 20201 years agoGPL-3.0
general-relativityjupyter-notebookpythontensor-calculus

Similar Papers

Cite this paper

@article{martn2021pytearcat,
  title  = {Pytearcat: PYthon TEnsor AlgebRa calCulATor},
  author = {Marco San Martín and Joaquin Sureda},
  year   = {2021},
  eprint = {2106.15016},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.15016}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.15016.svg)](https://codeofpaper.com/paper/2106.15016)

Discussion