DiagramCut
symbolica.community.hepkit Class
DiagramCut()A generated physical final-state cut; each side retains its physics metadata.
Examples
from symbolica import S, E
from symbolica.community import hepkit as hep
model = hep.Model.phi4()
process = model.process(["phi", "phi"], ["phi", "phi"])
result = process.generate_cross_section(loops=1)
diagram = result.diagrams[0]
cut = diagram.cuts[0]
factors = cut.propagators()
assert len(factors) == len(cut.edges)Member details
left
Property · read-only#left: DiagramCutSideReturn the left amplitude and its generation metadata.
Examples
Using the setup in the DiagramCut class example:
left_numerator = cut.left.subgraph.numerator_expression()right
Property · read-only#right: DiagramCutSideReturn the right amplitude and its generation metadata.
Examples
Using the setup in the DiagramCut class example:
right_numerator = cut.right.subgraph.numerator_expression()subgraph
Property · read-only#subgraph: SubgraphReturn the oriented crossing half-edges as a reusable selection.
Examples
Using the setup in the DiagramCut class example:
crossing_region = cut.subgraphedges
Property · read-only#edges: list[DiagramEdge] Return the crossing particle lines in their stored cut order.
Examples
Using the setup in the DiagramCut class example:
cut_edge_ids = [edge.id for edge in cut.edges]particles
Property · read-only#particles: list[Particle] Return physical final-state particles in the stored cut-edge order.
The finalized left side contains the incoming initial-state endpoints. A source-oriented cut line carries its stored species into the final state; a target-oriented line carries its antiparticle. Momentum orientations use the same left-to-right positive-energy routing.
Examples
Using the setup in the DiagramCut class example:
cut_particles = cut.particlesorientations
Property · read-only#orientations: dict[int, int] Orient crossing lines from the left side to the right side.
Examples
Using the setup in the DiagramCut class example:
cut_directions = cut.orientationsmomentum_signatures
Property · read-only#momentum_signatures: dict[int, MomentumSignature] Return stored edge momenta in the diagram's selected routing. Multiply by orientations for momenta directed from left to right.
Examples
Using the setup in the DiagramCut class example:
cut_momenta = cut.momentum_signaturespropagators
Method#propagators(*, edge_powers: Optional[Mapping[int, int]] = None, prescription: int = 1, normalization: Optional[Expression | int | Float | int | float | str | decimal.Decimal | ComplexFloat | Float | int | float | str | decimal.Decimal | complex | tuple[Float | int | float | str | decimal.Decimal, Float | int | float | str | decimal.Decimal]] = None) -> list[CutPropagator] Construct the oriented cut-propagator distributions, separately from the remaining numerator, uncut propagators, and global factors.
Examples
Using the setup in the DiagramCut class example:
factors = diagram.cuts[0].propagators(edge_powers={2: 2})
distributions = [factor.to_expression() for factor in factors]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
edge_powers | Optional[ | None | Positive propagator powers by diagram edge ID; omitted edges have power one. |
prescription | int | 1 | Sign of the imaginary prescription, either +1 or -1. |
normalization | Optional[ | None | Explicit replacement normalization; defaults to -2*pi*i. |
View generated signature source: docs/api/python/feynkit-community.pyi:1616