diff --git a/benchmarks/ampform.py b/benchmarks/ampform.py index f874fee2..f973bf57 100644 --- a/benchmarks/ampform.py +++ b/benchmarks/ampform.py @@ -1,7 +1,8 @@ from __future__ import annotations +from collections.abc import Sequence from pprint import pprint -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Union import numpy as np import pytest @@ -17,10 +18,9 @@ from tensorwaves.function.sympy import create_parametrized_function if TYPE_CHECKING: - from collections.abc import Mapping, Sequence + from collections.abc import Mapping from ampform.helicity import HelicityModel - from qrules.combinatorics import StateDefinition from tensorwaves.function import ParametrizedBackendFunction from tensorwaves.interface import ( @@ -31,6 +31,8 @@ ParametrizedFunction, ) +StateDefinition = Union[str, tuple[str, Sequence[float]]] + def formulate_amplitude_model( formalism,