Helicity
symbolica.community.hepkit Class
Helicity(value: int)A spin projection along a particle's direction of motion.
HEP represents the physical minus, longitudinal, and plus helicity states by the integers -1, 0, and 1.
Examples
from symbolica.community import hepkit as hep
incoming_fermion_helicity = hep.Helicity(-1)
incoming_fermion_helicity == hep.Helicity.MINUSParameters
valueintHelicity value; must be -1, 0, or 1.
Constructor
#Construct a physical helicity from -1, 0, or 1.
Examples
Using the setup in the Helicity class example:
helicity = hep.Helicity(-1)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
value | int | — | Integer helicity value. |
Member details
MINUS
Field#MINUS: HelicityReturn the negative-helicity singleton.
Examples
int(Helicity.MINUS)ZERO
Field#ZERO: HelicityReturn the zero-helicity singleton.
Examples
int(Helicity.ZERO)PLUS
Field#PLUS: HelicityReturn the positive-helicity singleton.
Examples
int(Helicity.PLUS)value
Property · read-only#value: intReturn the helicity as -1, 0, or 1.
Examples
Using the setup in the Helicity class example:
hep.Helicity.PLUS.valueparse
Static method#parse(value: str) -> HelicityParse a named, signed, or integer helicity value.
Examples
Using the setup in the Helicity class example:
hep.Helicity.parse("+") == hep.Helicity.PLUSParameters
| Name | Type | Default | Description |
|---|---|---|---|
value | str | — | Helicity spelling such as |
__int__
Method#__int__() -> intConvert this helicity to its integer value.
Examples
Using the setup in the Helicity class example:
int(hep.Helicity.MINUS)__eq__
Method#__eq__(other: Any) -> boolCompare with another helicity value.
Examples
Using the setup in the Helicity class example:
hep.Helicity(0) == hep.Helicity.ZEROParameters
| Name | Type | Default | Description |
|---|---|---|---|
other | Any | — | Object to compare with this helicity value. |
__repr__
Method#__repr__() -> strReturn an evaluable-style representation of this helicity.
Examples
Using the setup in the Helicity class example:
print(f"selected external helicity: {hep.Helicity.PLUS!r}")View generated signature source: docs/api/python/feynkit-community.pyi:5131