seemps.analysis.optimization.optima_tt#

seemps.analysis.optimization.optima_tt(mps: MPS, num_indices: int = 100, make_canonical: bool = True, left_to_right: bool = True) ndarray[source]#

Returns a set of k indices representing k potentially maximum in modulo values of the MPS. Performs a probabilistic search traversing the MPS tensors from left-to-right or right-to-left. Source: https://arxiv.org/pdf/2209.14808

Parameters:
mpsMPS

The MPS to optimize.

num_indicesint, default=100

The maximum amount of indices to retain from each tensor and return at the end. A larger number increases the probability of finding the global maxima, but has a larger cost.

make_canonicalbool, default=True

Whether to canonicalize the MPS prior to the search and orthogonalize its tensors.

left_to_right: bool, default=True

The direction of the MPS traversal.

Returns:
Inp.ndarray

An array containing num_indices indices whose MPS values are potentially maximum in modulo.