dynamics#

identity_function(x: T) T[source]#
class PropagatorDynamicsBuilder(*args, **kwargs)[source]#

Bases: Protocol

formulate_dynamics(chain_definition: ~ampform_dpd.io.serialization.format.DecayChain, model: ~ampform_dpd.io.serialization.format.ModelDefinition, to_latex: ~typing.Callable[[str], str] = <function identity_function>, additional_definitions: dict[str, ~ampform_dpd.io.serialization.dynamics.PropagatorDynamicsBuilder] | None = None) DefinedExpression[source]#
formulate_form_factor(vertex: Vertex, model: ModelDefinition) DefinedExpression[source]#
formulate_breit_wigner(propagator: Propagator, resonance: str, model: ModelDefinition) DefinedExpression[source]#
formulate_multichannel_breit_wigner(propagator: Propagator, resonance: str, model: ModelDefinition) DefinedExpression[source]#
to_mandelstam_symbol(node: Node) Symbol[source]#

Create a Mandelstam symbol for a node.

>>> to_mandelstam_symbol([3, 2])
sigma1
>>> to_mandelstam_symbol([1, [2, 3]])
m0
to_mass_symbol(node_item: int | Node) Symbol[source]#

Create a mass symbol for a node.

>>> to_mass_symbol(1)
m1
>>> to_mass_symbol((1, 2))
sigma3