Function sequant::factorize_S

Function Documentation

ExprPtr sequant::factorize_S(const ExprPtr &expression, std::initializer_list<IndexList> ext_index_groups, bool fast_method = true)

Factorize S out of terms.

Given an expression, permute indices and check if a given product

Parameters:
  • expression – Expression pointer

  • fast_method – use hash maps (memory intensive) for faster evaluation

  • ext_index_groups – External index groups to generate the S operator

Returns:

ExprPtr with terms with S operator as a factor