seemps.analysis.lagrange.lagrange_rank_revealing#

seemps.analysis.lagrange.lagrange_rank_revealing(func, order, sites, start=-1.0, stop=1.0, strategy=<seemps.state.core.Strategy object>, use_logs=True)[source]#

Performs a Lagrange rank-revealing MPS Chebyshev interpolation of a function.

Parameters:
funcCallable

The function to interpolate.

orderint

The order of the Chebyshev interpolation.

sitesint

The number of qubits of the MPS.

startfloat, default=-1.0

The starting point of the function’s domain.

stopfloat, default=1.0

The end point of the function’s domain.

strategyStrategy, default=DEFAULT_STRATEGY

The MPS simplification strategy.

use_logsbool, default=True

Whether to compute the Chebyshev cardinal function using logarithms to avoid overflow.

Returns:
mpsMPS

The MPS corresponding to the rank-revealing Chebyshev interpolation.