On this page

to_dots

gammaloop Function

to_dots(atom_str: str) -> str

Rewrite a Symbolica tensor expression into Idenso dot-product notation.

Parameters

atom_str str

Symbolica tensor expression whose repeated indices encode contractions.

Returns

str

The equivalent expression using Idenso dot-product notation.

Raises

Exception

If atom_str cannot be parsed or converted.

Examples

Rewrite a contraction before passing it to an Idenso workflow:

to_dots("p(mu) * q(mu)")