VertexRule
symbolica.community.hepkit Class
VertexRule()An interaction vertex rule from a particle model.
A vertex rule links its participating particles to color tensors, Lorentz structures, and the corresponding matrix of coupling names.
Examples
from symbolica import S, E
from symbolica.community import hepkit as hep
model = hep.Model.standard_model()
vertex = model.vertex_rules[0]
particles = [model.particle(name) for name in vertex.particles]Member details
name
Property · read-only#name: strReturn the vertex-rule name.
Examples
Using the setup in the VertexRule class example:
rules_by_name = {rule.name: rule for rule in model.vertex_rules}particles
Property · read-only#particles: list[str] Return the ordered particle names attached to the vertex.
Examples
Using the setup in the VertexRule class example:
vertex = model.vertex_rules[0]
particles = [model.particle(name) for name in vertex.particles]color_structures
Property · read-only#color_structures: list[Expression] Return the color structures used by the vertex.
Examples
Using the setup in the VertexRule class example:
color_basis = vertex.color_structureslorentz_structures
Property · read-only#lorentz_structures: list[str] Return the Lorentz-structure names used by the vertex.
Examples
Using the setup in the VertexRule class example:
vertex = model.vertex_rules[0]
tensors = [model.lorentz_structure(name) for name in vertex.lorentz_structures]couplings
Property · read-only#couplings: list[list[Optional[str]]] Return the coupling-name matrix indexed by color and Lorentz structure.
Examples
Using the setup in the VertexRule class example:
vertex = model.vertex_rules[0]
names = [name for row in vertex.couplings for name in row if name is not None]
couplings = [model.coupling(name) for name in names]coupling_orders
Method#coupling_orders() -> dict[str, int] Combine the coupling-order powers referenced by this vertex.
Examples
Using the setup in the VertexRule class example:
vertex.coupling_orders()__repr__
Method#__repr__() -> strSummarize the defining data as well as the vertex-rule name.
Examples
Using the setup in the VertexRule class example:
print(next(v for v in model.vertex_rules if "e-" in v.particles))_repr_html_
Method#_repr_html_() -> strDisplay the model member's physical data and defining expressions.
Examples
Using the setup in the VertexRule class example:
from IPython.display import display
display(vertex)_repr_pretty_
Method#_repr_pretty_(pretty: Any, cycle: bool) -> None Write the complete text summary to an IPython pretty printer.
Examples
Using the setup in the VertexRule class example:
from IPython.lib.pretty import pretty
text = pretty(vertex)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
pretty | Any | — | IPython pretty printer receiving the text. |
cycle | bool | — | Whether the object occurs recursively in the current display. |
View generated signature source: docs/api/python/feynkit-community.pyi:12124