Template Function sequant::irrep_to_string

Function Documentation

template<typename Irrep>
std::string sequant::irrep_to_string(const Irrep &irrep)

Converts the given IRREP into its string representation. This is the customization point for how IRREPs are spelled out (e.g. in generated code). This default implementation uses std::format and is thus available for all IRREP types for which a std::formatter specialization exists. Alternatively, an overload irrep_to_string(const MyIrrep&) can be provided in the namespace of the IRREP type, where it is found via argument-dependent lookup.

Note

Always call this function unqualified (or via sequant::to_string for IrrepSets) such that user-provided overloads are found.