seemps.analysis.factories.mps_cos#

seemps.analysis.factories.mps_cos(interval: TypeAliasForwardRef('~seemps.analysis.mesh.QuantizedInterval') | tuple[float, float, int], k: complex = 1.0) MPS[source]#

Returns an MPS encoding of \(cos(k x)\).

See mps_sum_of_exponentials().

Parameters:
interval: QuantizedInterval | IntervalTuple

The interval over which the function is defined.

ccomplex

The quasimomentum \(k\) (default is 1.0)

Returns:
MPS

An MPS representing the discretized cosine function over the interval.