FeynKit · latest
On this page

EvaluatedValues

symbolica.community.hepkit Class

EvaluatedValues(*, internal_parameters: Optional[Mapping[str, tuple[float, float]]] = None, couplings: Optional[Mapping[str, tuple[float, float]]] = None)

Numerical values returned by a custom model evaluator.

Values are complex numbers represented as (real, imaginary) pairs and are applied atomically to the model after the callback completes.

Examples

from symbolica.community import hepkit as hep
values = hep.EvaluatedValues(couplings={"GC_1": (0.3, 0.0)})

Parameters

internal_parameters dict[str, tuple[float, float]], optional

Evaluated internal parameter values keyed by name.

couplings dict[str, tuple[float, float]], optional

Evaluated coupling values keyed by name.

Constructor

#

Create values returned by a custom model evaluator.

Examples

Using the setup in the EvaluatedValues class example:

values = hep.EvaluatedValues(couplings={"GC_1": (1.0, 0.0)})

Parameters

NameTypeDefaultDescription
internal_parametersOptional[Mapping[str, tuple[float, float]]]None

Evaluated internal parameters keyed by name.

couplingsOptional[Mapping[str, tuple[float, float]]]None

Evaluated couplings keyed by name.

Member details

internal_parameters

Property · read-only#
internal_parameters: dict[str, tuple[float, float]]

Return the evaluated internal parameters keyed by name.

Examples

Using the setup in the EvaluatedValues class example:

values = hep.EvaluatedValues(internal_parameters={"alpha": (0.1, 0.0)})
assert values.internal_parameters["alpha"] == (0.1, 0.0)

couplings

Property · read-only#
couplings: dict[str, tuple[float, float]]

Return the evaluated couplings keyed by name.

Examples

Using the setup in the EvaluatedValues class example:

values = hep.EvaluatedValues(couplings={"GC_1": (0.3, 0.0)})
assert values.couplings["GC_1"] == (0.3, 0.0)