EvaluationRequest
symbolica.community.hepkit Class
EvaluationRequest()The complete input supplied to a custom model evaluator.
An evaluation request contains already-known numerical parameters and the internal parameters, couplings, functions, and form factors still needed.
Examples
This evaluator implements the built-in scalar model at its default lam=1. A callback must return every requested internal parameter and coupling.
from symbolica import S, E
from symbolica.community import hepkit as hep
model = hep.Model.phi4()
process = model.process(["phi", "phi"], ["phi", "phi"])
requests = []
def evaluate(request):
requests.append(request)
return hep.EvaluatedValues(
couplings={"SCALAR_COUPLING": (0.0, -1.0)},
)
updated_model = model.recompute_with(evaluate)
request = requests[0]
formulas = {item.name: item.expression for item in request.couplings}Member details
known_parameters
Property · read-only#known_parameters: dict[str, tuple[float, float]] Return the known parameter values keyed by name.
Examples
Using the setup in the EvaluationRequest class example:
def evaluate(request):
alpha_s = request.known_parameters["aS"]
return hep.EvaluatedValues()internal_parameters
Property · read-only#internal_parameters: list[ModelExpression] Return the derived parameter expressions that must be evaluated.
Examples
Using the setup in the EvaluationRequest class example:
formulas = {item.name: item.expression for item in request.internal_parameters}couplings
Property · read-only#couplings: list[ModelExpression] Return the coupling expressions that must be evaluated.
Examples
Using the setup in the EvaluationRequest class example:
coupling_formulas = {item.name: item.expression for item in request.couplings}functions
Property · read-only#functions: list[ModelFunction] Return the function definitions available during evaluation.
Examples
Using the setup in the EvaluationRequest class example:
helper_functions = {function.name: function for function in request.functions}form_factors
Property · read-only#form_factors: list[FormFactor] Return the form-factor definitions available during evaluation.
Examples
Using the setup in the EvaluationRequest class example:
form_factors = {factor.name: factor for factor in request.form_factors}View generated signature source: docs/api/python/feynkit-community.pyi:2747