FeynKit · latest
On this page

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.structure

Member details

name

Property · read-only#
name: str

Return 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: Expression

Return the symbolic Lorentz expression.

Examples

Using the setup in the LorentzStructure class example:

formula = lorentz.structure

__repr__

Method#
__repr__() -> str

Summarize 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_() -> str

Display 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

NameTypeDefaultDescription
prettyAny—

IPython pretty printer receiving the text.

cyclebool—

Whether the object occurs recursively in the current display.