LtdReport
Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.
LtdReport
class LtdReportGeneration 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.intNumber of distinct stored affine energy surfaces.
Examples
count = report.interned_surfacesresidues
LtdReport.residues: builtins.intNumber of retained signed pole assignments.
Examples
count = report.residuestrees
LtdReport.trees: builtins.intNumber of distinct spanning trees represented by the residues.
Examples
count = report.treesunfolded_terms
LtdReport.unfolded_terms: builtins.intNumber of additive denominator products, including higher-order residues.
Examples
count = report.unfolded_termsMethods
| 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.strSummarize the retained residues, spanning trees, terms and surfaces.
Examples
text = repr(report)_repr_html_
LtdReport._repr_html_() -> builtins.strRender LTD generation statistics as a compact table.
Examples
html = report._repr_html_()