feynml.interface.formcalc.propagator.Propagator

class feynml.interface.formcalc.propagator.Propagator(type: str, v1: feynml.interface.formcalc.vertex.Vertex, v2: feynml.interface.formcalc.vertex.Vertex, f: feynml.interface.formcalc.field.Field)[source]

Bases: object

__init__(type: str, v1: Vertex, v2: Vertex, f: Field) None

Methods

__init__(type, v1, v2, f)

from_str(propagator)

Example

n()

re()

to_feynml(insertions)

Attributes

type

v1

v2

f

classmethod from_str(propagator: str)[source]

Example

>>> str(Propagator.from_str("Propagator[Incoming][Vertex[1][1], Vertex[3][5], Field[1]]"))
'Propagator[Incoming][Vertex[1][1], Vertex[3][5], Field[1]]'