symbolica.community.idenso Python API

symbolica.community.idenso · version 0.3.0

Choose a public class, function, or constant below. Each symbol has its own page with a conventional signature-first layout, flat member sections, stable links, and source-backed details.

API inventory

The generated inventory distinguishes the supported module API from names that are merely reachable through the extension.

63supported exportsone page per supported class, function, or constant
0implementation-detail exportschecked for drift but intentionally omitted from the public reference

Ordered Python module exports

Exports registered by idenso.

ClassColorCasimirSettings

Immutable configuration for rewriting color invariants into a Casimir basis.

2 members
ClassCookSettings

Immutable configuration for cooking symbolic functions and index payloads.

7 members
ClassCookSourceFilter

Selects the function occurrences or representation-index payloads to cook.

3 members
ClassCookTagFilter

A tag predicate used to select which function heads are cooked.

3 members
ClassCookingError

Raised when a symbolic function or representation index cannot be cooked.

ClassDiracAdjointError

Raised when a Dirac adjoint cannot be constructed consistently.

ClassDotExpansionError

Raised when compact dot notation cannot be expanded into a tensor expression.

ClassSchoonschipSettings

Immutable configuration for expression and network Schoonschip passes.

13 members
ClassCookMode

Selects how cooked function payloads are represented as symbols.

2 members
ClassGammaChainOrdering

Controls how open gamma chains are reordered during simplification.

2 members
ClassSchoonschipMode

Selects whether a Schoonschip pass runs once or recursively.

2 members
Functionalias_subtensors

Replace nested tensor subexpressions by generated aliases.

Functioncanonize

Canonically order tensor factors and deterministically rename contracted indices.

Functionchainify

Rewrite tensors with two slots in `representation` as explicit open-chain factors.

Functioncollect_chains

Join adjacent open chains for the supplied representation.

Functioncollect_color

Factor an expression around tensors carrying fundamental, antifundamental, or adjoint color.

Functioncollect_color_constants

Factor an expression around recognized scalar color invariants such as Casimirs and indices.

Functioncollect_gamma_chains

Convert bispinor tensors into chain/trace shorthands and join adjacent gamma chains.

Functionconjugate_transpose

Complex-conjugate an expression and transpose tensor slots in `representation`.

Functioncook

Encode selected functions as symbols using reversible cooking by default.

Functioncook_function

Convert a single function call into a flattened variable symbol.

Functioncook_indices

Convert complex nested index structures into flattened symbolic names.

Functiondirac_adjoint

Construct the physics-aware Dirac adjoint of a tensor expression.

Functionexpand_bis

Expand products around factors carrying registered bispinor indices.

Functionexpand_color

Expand products around registered color factors.

Functionexpand_dots

Expand compact dot products into explicit metric and indexed-vector contractions.

Functionexpand_metrics

Expand products around registered metric tensors.

Functionexpand_mink

Expand products around factors carrying registered Minkowski indices.

Functionexpand_mink_bis

Expand products around factors carrying Minkowski or bispinor indices.

Functionlist_dangling

Lists the dangling (external, uncontracted) indices present in the expression.

Functionmetric_shorthand_to_dot

Replace metric shorthand such as `g(p(rep), q(rep.dual()))` by `dot(p(rep), q(rep.dual()))`.

Functionnormalize_chains

Convert chains whose endpoints coincide into trace shorthands.

Functionnormalize_dots

Canonicalize compact dot-product shorthands without expanding their tensor structure.

Functionschoonschip

Simplify tensor shorthands using the configured Schoonschip traversal.

Functionschoonschip_net

Parse and contract a symbolic tensor network using Schoonschip rules.

Functionsimplify_color

Simplify registered Spenso color chains, traces, generators, and structure constants.

Functionsimplify_epsilon

Simplify Levi-Civita/metric contractions and pairs of Levi-Civita tensors to a fixed point.

Functionsimplify_gamma

Simplify registered Spenso gamma chains and traces with Idenso's default rules.

Functionsimplify_gamma0

Simplify products and linear combinations involving the time-like gamma matrix `gamma0`.

Functionsimplify_gamma_conjugate

Rewrite conjugated gamma matrices as gamma0-sandwiched matrices with fresh spinor indices.

Functionsimplify_metrics

Simplifies contractions involving metric tensors and identity tensors.

Functionspenso_conjugate

Complex-conjugate an expression while keeping unevaluated conjugations explicit.

Functionto_color_casimir

Rewrite the supplied color-representation dimensions and invariants into a Casimir basis.

Functionto_dots

Converts contracted Lorentz/Minkowski indices into dot product notation.

Functionuncook

Restore symbols produced by matching reversible cooking settings.

Functionundo_all

Expand Schoonschip, dot, chain, and trace shorthands into explicit tensor expressions.

Functionundo_chain

Expand open-chain shorthands while leaving dots, traces, and Schoonschip forms compact.

Functionundo_dots

Expand dot-product shorthands while leaving other tensor shorthands compact.

Functionundo_schoonschip

Expand Schoonschip tensor shorthands while leaving dots, chains, and traces compact.

Functionundo_single_length

Replace one-factor chain shorthands by their underlying tensor factor.

Functionundo_trace

Expand trace shorthands while leaving dots, chains, and Schoonschip forms compact.

Functionwrap_color

Expand around color structures and wrap each resulting scalar coefficient with `symbol`.

Functionwrap_dummies

Wraps only the dummy (contracted) indices within the expression using a header symbol.

Functionwrap_indices

Wrap all abstract indices with a header symbol # Arguments - `expression`: input expression containing tensor indices - `header`: symbol to use as the wrapper function for all indices # Returns Expression with all indices wrapped by the header symbol.