LtdReport

Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.

LtdReport

class LtdReport

Generation counts for an LTD representation.

Distinguish retained pole assignments from spanning trees: several residues may share a tree, and a higher-order residue may contain several terms.

Examples

from symbolica.community import hepkit as hep
process = hep.Model.phi3().process(["phi"], ["phi", "phi"])
diagrams = process.generate_diagrams(
    loops=1, max_vertices=3, maximum_bridges=0, progress=None
)
diagram = diagrams.diagrams[0]
ltd = diagram.integrate_energy(method="ltd")
report = ltd.report
assert report.residues == len(ltd)

Attributes

Name Description
interned_surfaces Number of distinct stored affine energy surfaces.
residues Number of retained signed pole assignments.
trees Number of distinct spanning trees represented by the residues.
unfolded_terms Number of additive denominator products, including higher-order residues.

interned_surfaces

LtdReport.interned_surfaces: builtins.int

Number of distinct stored affine energy surfaces.

Examples

count = report.interned_surfaces

residues

LtdReport.residues: builtins.int

Number of retained signed pole assignments.

Examples

count = report.residues

trees

LtdReport.trees: builtins.int

Number of distinct spanning trees represented by the residues.

Examples

count = report.trees

unfolded_terms

LtdReport.unfolded_terms: builtins.int

Number of additive denominator products, including higher-order residues.

Examples

count = report.unfolded_terms

Methods

Name Description
__repr__ Summarize the retained residues, spanning trees, terms and surfaces.
_repr_html_ Render LTD generation statistics as a compact table.

__repr__

LtdReport.__repr__() -> builtins.str

Summarize the retained residues, spanning trees, terms and surfaces.

Examples

text = repr(report)

_repr_html_

LtdReport._repr_html_() -> builtins.str

Render LTD generation statistics as a compact table.

Examples

html = report._repr_html_()