seemps.analysis.cross.cross_greedy#
- seemps.analysis.cross.cross_greedy(black_box: BlackBox, cross_strategy: CrossStrategyGreedy = CrossStrategyGreedy(), initial_points: ndarray[tuple[Any, ...], dtype[_ScalarT]] | None = None) CrossResults[source]#
Computes the MPS representation of a black-box function using the tensor cross-approximation (TCI) algorithm based on two-site optimizations following greedy updates of the pivot matrices. The black-box function can represent several different structures. See black_box for usage examples.
- Parameters:
- black_box
BlackBox The black box to approximate as a MPS.
- cross_strategy
CrossStrategy, default=CrossStrategy() A dataclass containing the parameters of the algorithm.
- initial_points
np.ndarray,optional A collection of initial points used to initialize the algorithm. If None, an initial point at the origin is used.
- black_box
- Returns:
CrossResultsA dataclass containing the MPS representation of the black-box function, among other useful information.