Template Function sequant::opt::detail::peak_cost

Function Documentation

template<typename TIdxs, typename IdxToSz>
double sequant::opt::detail::peak_cost(TensorNetwork const &network, TIdxs const &tidxs, IdxToSz &&idxsz)

Achieved minimum peak memory (the DensePeakSize objective value) for the whole network under its optimal order. Builds PeakModel, runs the generic driver’s solve_single_term, and returns the root subset’s peak. Used by tests to compare against the brute-force oracle.