Template Function sequant::opt::detail::single_term_opt

Function Documentation

template<has_index_extent IdxToSz>
EvalSequence sequant::opt::detail::single_term_opt(TensorNetwork const &network, IdxToSz &&idxsz)
Template Parameters:

IdxToSz

Parameters:
  • network – A TensorNetwork object.

  • idxsz – An invocable on Index, that maps Index to its dimension.

Returns:

Optimal evaluation sequence that minimizes flops. If there are equivalent optimal sequences then the result is the one that keeps the order of tensors in the network as original as possible.