seemps.analysis.lagrange.lagrange_basic#
- seemps.analysis.lagrange.lagrange_basic(func, order, sites, start=-1.0, stop=1.0, strategy=<seemps.state.core.Strategy object>, use_logs=True)[source]#
Performs a basic Lagrange MPS Chebyshev interpolation of a function.
- Parameters:
- func
Callable
The function to interpolate.
- order
int
The order of the Chebyshev interpolation.
- sites
int
The number of qubits of the MPS.
- start
float
, default=-1.0 The starting point of the function’s domain.
- stop
float
, default=1.0 The end point of the function’s domain.
- strategy
Strategy
, default=DEFAULT_STRATEGY The MPS simplification strategy.
- use_logsbool, default=True
Whether to compute the Chebyshev cardinal function using logarithms to avoid overflow.
- func
- Returns:
- mps
MPS
The MPS corresponding to the naive Chebyshev interpolation.
- mps