seemps.analysis.factories.mps_sum_of_exponentials#
- seemps.analysis.factories.mps_sum_of_exponentials(interval: QuantizedInterval | IntervalTuple, k: Sequence[float | complex], weights: Sequence[float | complex] | complex | float | int = 1.0) MPS[source]#
Create an MPS representing a sum of exponentials evaluated over a half-open interval.
Creates an MPS representation of a function
\[f(x) = \sum_n w_n exp(-i k_n x)\]- Parameters:
- interval: QuantizedInterval | IntervalTuple
The interval over which the function is defined.
- k
Sequence[Weight] Sequence of exponents in the function.
- weights
Sequence[Weight] |Weight Sequence of weights, or a uniform weight for all exponentials (default is 1.0).
- Returns:
MPSThe MPS encoding of the function.