Template Function sequant::opt::single_term_opt

Function Documentation

template<typename IdxToSz, std::enable_if_t<std::is_invocable_v<IdxToSz, Index>, bool> = true>
ExprPtr sequant::opt::single_term_opt(Product const &prod, IdxToSz const &idxsz)

Note

prod is assumed to consist of only Tensor expressions

Parameters:
  • prodProduct to be optimized.

  • idxsz – An invocable object that maps an Index object to size.

Returns:

Parenthesized product expression.