Function sequant::normalize_irrep_spec

Function Documentation

std::string sequant::normalize_irrep_spec(std::string_view spec)

Removes the whitespace around the names in a textual IRREP specification (a name, a product “X*Y” or a relation “X*Y = Z”), such that “A * B = C” and “A*B=C” are equivalent. IRREP names must not contain whitespace themselves.

Throws:

Exception – if a name contains whitespace