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_parametersdict[str, tuple[float, float]], optionalEvaluated internal parameter values keyed by name.
couplingsdict[str, tuple[float, float]], optionalEvaluated 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
| Name | Type | Default | Description |
|---|---|---|---|
internal_parameters | Optional[ | None | Evaluated internal parameters keyed by name. |
couplings | Optional[ | 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)View generated signature source: docs/api/python/feynkit-community.pyi:2685