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.

kSequence[Weight]

Sequence of exponents in the function.

weightsSequence[Weight] | Weight

Sequence of weights, or a uniform weight for all exponentials (default is 1.0).

Returns:
MPS

The MPS encoding of the function.