EnergySurface
symbolica.community.hepkit Class
EnergySurface()A stored affine energy denominator in a CFF or LTD representation.
Its definition has the form
$$ s=c_0+\sum_e c_e E_e+\sum_a d_a Q_a^0. $$
energy_coefficients stores :math:c_e, external_shift stores :math:d_a, and constant stores :math:c_0. Both coefficient mappings use physical diagram edge IDs. Nonzero energy coefficients of one sign define an E-surface; mixed signs define an H-surface.
symbol and index are local to the representation and surface category. The OSE symbols inside the definition are shared between representations. A SurfaceFactor records an occurrence's sign and multiplicity without changing this stored definition.
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]
rep = diagram.integrate_energy(method="cff")
surface = rep.surfaces[0]
expression = surface.to_expression()Member details
origin
Property · read-only#origin: strWhether this is a physical surface or an algebraic helper ("physical" or "helper").
Helper factors in generalized CFF need not correspond to a graph region.
Examples
provenance = surface.originnumerator_only
Property · read-only#numerator_only: boolWhether this affine expression is used only as a numerator factor.
Examples
numerator_only = surface.numerator_onlyindex
Property · read-only#index: intIndex within its surface category and representation.
Examples
value = surface.indexkind
Property · read-only#kind: str"E" for consistent nonzero energy signs, "H" for mixed signs.
Examples
value = surface.kindsymbol
Property · read-only#symbol: ExpressionResult-local Symbolica placeholder for this stored surface.
Examples
value = surface.symbolenergy_coefficients
Property · read-only#energy_coefficients: dict[int, Expression] Exact signed OSE coefficients, keyed by physical edge ID.
Examples
value = surface.energy_coefficientsexternal_shift
Property · read-only#external_shift: dict[int, Expression] Exact coefficients of external gammalooprs::Q(edge, spenso::cind(0)).
Examples
value = surface.external_shiftconstant
Property · read-only#constant: ExpressionEnergy-independent additive term.
Examples
value = surface.constantvertices
Property · read-only#vertices: list[int] CFF region vertices; LTD regions belong to individual surface occurrences.
Examples
value = surface.verticesto_expression
Method#to_expression() -> TensorExpressionReturn the affine definition :math:c_0+\sum_e c_e E_e+\sum_a d_a Q_a^0.
Examples
expression = surface.to_expression()Returns
TensorExpression
Signed energy combination in physical OSE and external Q symbols.
__repr__
Method#__repr__() -> strShow the stored surface and its affine definition.
Examples
print(surface)_repr_html_
Method#_repr_html_() -> strRender the stored surface's mathematical definition and E/H category.
Examples
html = surface._repr_html_()View generated signature source: docs/api/python/feynkit-community.pyi:2539