FeynKit · latest
On this page

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_orientations

Member 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_orientations

acyclic_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: int

Return the total number of unfolded denominator terms.

Examples

Using the setup in the CffReport class example:

term_count = report.unfolded_terms

interned_surfaces

Property · read-only#
interned_surfaces: int

Return 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__() -> str

Return a concise constructor-style CFF generation summary.

Examples

Using the setup in the CffReport class example:

print(result.report)

_repr_html_

Method#
_repr_html_() -> str

Render 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

NameTypeDefaultDescription
prettyAny—

The IPython pretty-printer object.

cyclebool—

Whether this object is part of a recursive formatting cycle.