SurfaceFactor
symbolica.community.hepkit Class
SurfaceFactor()A signed denominator factor referring to a stored energy surface.
For stored surface :math:s, occurrence sign :math:\epsilon\in\{-1,+1\} and positive multiplicity :math:p, to_expression() returns :math:(\epsilon s)^p. This is the denominator, before inversion. sign relates the occurrence to the stored surface; it is not an LTD cut-edge pole sign.
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")
factor = rep.orientations[0].families[0].factors[0]
denominator = factor.to_expression()Member details
surface
Property · read-only#surface: EnergySurfaceStored surface referenced by this factor.
Examples
value = factor.surfacesign
Property · read-only#sign: intOverall sign relative to the stored surface, +1 or -1.
Examples
value = factor.signpower
Property · read-only#power: intPositive multiplicity in this denominator product.
Examples
value = factor.power__repr__
Method#__repr__() -> strShow the signed denominator and its multiplicity.
Examples
text = repr(factor)_repr_html_
Method#_repr_html_() -> strRender this denominator before inversion, preserving its sign and power.
Examples
html = factor._repr_html_()to_expression
Method#to_expression(*, expand_surfaces: bool = True) -> TensorExpression Return the signed denominator factor, including its power.
Examples
Using the setup in the class example:
expression = factor.to_expression()Returns
TensorExpression
The denominator :math:(\epsilon s)^p, before inversion.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
expand_surfaces | bool | True | Replace stored surface placeholders by affine energy definitions. Defaults to True. On-shell energies remain symbolic in either case. |
View generated signature source: docs/api/python/feynkit-community.pyi:10795