Function sequant::append_spin

Function Documentation

ExprPtr sequant::append_spin(const ExprPtr &expr, const container::map<Index, Index> &index_replacements)

Adds spins to indices in an expression with a replacement map.

Parameters:
  • expr – an expression pointer

  • index_replacements – a map of pairs containing the index and the corresponding replacement

Returns:

expr the ExprPtr with substituted indices