Source code for feynml.propagator

from dataclasses import dataclass

from smpl_util.util import withify

from feynml.connector import Connector
from feynml.line import Line


[docs]@withify() @dataclass class Propagator(Line, Connector):
[docs] def conjugate(self): """Return the conjugate of the propagator.""" tar = self.target src = self.source return self.with_target(src).with_source( tar ) # this is inprinciple the same as negating the id