SAMB#

Utility for SAMB.

combined_samb_order(irreps)[source]#

Sort attributes for the order of the combined SAMB (Dict.sort).

Parameters:

irreps ([str]) – irreps in the order of the character table.

Returns:

  • (tuple) – attributes for Dict.sort.

Note

  • Gamma (as irreps), electric (Q, G) / magnetic (T, M), s, k, l, X (Q, G, T, M), n, p.

orthogonalize_multipole(samb, diagonal_block)[source]#

Orthogonalize mutlipole SAMB.

Parameters:
  • samb (Dict) – SAMB dict, Dict[idx, (expression, SAMB)].

  • diagonal_block (bool) – diagonal block ?

Returns:

  • (Dict) – orthogonalized SAMB.

orthogonalize_samb(samb, diagonal_block)[source]#

Orthogonalize SAMB.

Parameters:
  • samb (Dict) – SAMB dict, Dict[idx, (expression, SAMB)].

  • diagonal_block (bool) – diagonal block ?

Returns:

  • (Dict) – orthogonalized SAMB.