seemps.analysis.chebyshev.cheb2mpo#
- seemps.analysis.chebyshev.cheb2mpo(coefficients, initial_mpo, strategy=<seemps.state.core.Strategy object>, clenshaw=True, rescale=True)[source]#
Composes a function on an initial MPO by expanding it on the basis of Chebyshev polynomials.
- Parameters:
- coefficients
np.polynomial.Chebyshev
The Chebyshev expansion coefficients representing the target function that is defined on a given interval [a, b].
- initial_mpo
MPO
The initial MPO on which to apply the expansion. By default (if
rescale
isTrue
), it must have a support inside the domain of definition of the function [a, b]. Ifrescale
isFalse
, it must have a support inside [-1, 1].- strategy
Strategy
, default=DEFAULT_STRATEGY The simplification strategy for operations between MPS.
- clenshawbool, default=True
Whether to use the Clenshaw algorithm for polynomial evaluation.
- rescalebool, default=True
Whether to perform an affine transformation of the initial MPO from the domain [a, b] of the Chebyshev coefficients to the canonical Chebyshev interval [-1, 1].
- coefficients
- Returns:
- f_mpo
MPO
MPO representation of the polynomial expansion.
- f_mpo