LorentzStructure
symbolica.community.hepkit Class
LorentzStructure()A reusable spin-dependent tensor structure in an interaction rule.
The structure records the spin representation of each leg and the UFO expression used when constructing a diagram numerator.
Examples
from symbolica import S, E
from symbolica.community import hepkit as hep
model = hep.Model.standard_model()
lorentz = model.lorentz_structures[0]
spins = lorentz.spins
formula = lorentz.structureMember details
name
Property · read-only#name: strReturn the Lorentz-structure name.
Examples
Using the setup in the LorentzStructure class example:
structures = {item.name: item.structure for item in model.lorentz_structures}spins
Property · read-only#spins: list[int] Return the UFO 2S + 1 spin codes of the structure's particle slots.
Examples
Using the setup in the LorentzStructure class example:
vertex = model.vertex_rules[0]
lorentz = model.lorentz_structure(vertex.lorentz_structures[0])
len(lorentz.spins) == len(vertex.particles)structure
Property · read-only#structure: ExpressionReturn the symbolic Lorentz expression.
Examples
Using the setup in the LorentzStructure class example:
formula = lorentz.structure__repr__
Method#__repr__() -> strSummarize the defining data as well as the structure name.
Examples
Using the setup in the LorentzStructure class example:
vertex = model.vertex_rules[0]
print(model.lorentz_structure(vertex.lorentz_structures[0]))_repr_html_
Method#_repr_html_() -> strDisplay the model member's physical data and defining expressions.
Examples
Using the setup in the LorentzStructure class example:
from IPython.display import display
display(lorentz)_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 LorentzStructure class example:
from IPython.lib.pretty import pretty
text = pretty(lorentz)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:6871