compiler#

class CompiledWorkspace(workspace: Workspace, backend: str, functions: Mapping[str, Function], coordinate_maps: Mapping[str, Mapping[str, Function]], coordinates: Mapping[str, tuple[str, str]])[source]#

Bases: object

Numerical callables compiled from a symbolic serialization workspace.

workspace: Workspace[source]#
backend: str[source]#
functions: Mapping[str, Function][source]#
coordinate_maps: Mapping[str, Mapping[str, Function]][source]#
coordinates: Mapping[str, tuple[str, str]][source]#
compile_workspace(workspace: Workspace, *, backend: str, targets: Iterable[str] | None = None, coordinates: Iterable[str] | None = None, parameter_overrides: Mapping[Basic, Any] | None = None) CompiledWorkspace[source]#

Compile selected targets through TensorWaves.

The coordinates option selects two independent Mandelstam invariants for distributions. By default, they are inferred from the serialized coordinate metadata. parameter_overrides are applied without mutating the symbolic workspace.