seemps.analysis.lagrange.lagrange_local_rank_revealing#
- seemps.analysis.lagrange.lagrange_local_rank_revealing(func, order, local_order, sites, start=-1.0, stop=1.0, strategy=<seemps.state.core.Strategy object>)[source]#
Performs a local rank-revealing Lagrange MPS Chebyshev interpolation of a function. The intermediate tensors are now sparse, with a number of non-zero elements that is proportional to local_order, increasing the efficiency of the interpolation.
- Parameters:
- func
Callable
The function to interpolate.
- order
int
The order of the Chebyshev interpolation.
- local_order
int
The local 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.
- func
- Returns:
- mps
MPS
The MPS corresponding to the local rank-revealing Chebyshev interpolation.
- mps