CffReport
symbolica.community.hepkit Class
CffReport()Generation counts for a CFF representation.
Compare candidate energy flows with the acyclic flows and denominator products retained in the result.
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]
result = diagram.integrate_energy(method="cff")
report = result.report
assert report.candidate_orientations >= report.acyclic_orientationsMember details
candidate_orientations
Property · read-only#candidate_orientations: Optional[int] Candidate search count, or None for generalized numerator generation.
Examples
Using the setup in the CffReport class example:
assert report.candidate_orientations >= report.acyclic_orientationsacyclic_orientations
Property · read-only#acyclic_orientations: Optional[int] Acyclic search count, or None for generalized numerator generation.
Examples
Using the setup in the CffReport class example:
assert report.acyclic_orientations == len(result.orientations)unfolded_terms
Property · read-only#unfolded_terms: intReturn the total number of unfolded denominator terms.
Examples
Using the setup in the CffReport class example:
term_count = report.unfolded_termsinterned_surfaces
Property · read-only#interned_surfaces: intReturn the number of unique denominator surfaces in the result.
Examples
Using the setup in the CffReport class example:
assert report.interned_surfaces == len(result.surfaces)__repr__
Method#__repr__() -> strReturn a concise constructor-style CFF generation summary.
Examples
Using the setup in the CffReport class example:
print(result.report)_repr_html_
Method#_repr_html_() -> strRender CFF generation statistics as a compact HTML table.
Examples
Using the setup in the CffReport class example:
from IPython.display import display
display(report)_repr_pretty_
Method#_repr_pretty_(pretty: Any, cycle: bool) -> None Write a concise CFF summary to an IPython pretty printer.
Examples
Using the setup in the CffReport class example:
from IPython.lib.pretty import pretty
text = pretty(report)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
pretty | Any | — | The IPython pretty-printer object. |
cycle | bool | — | Whether this object is part of a recursive formatting cycle. |
View generated signature source: docs/api/python/feynkit-community.pyi:648