Representation matrix#
Representation matrices of point groups from the harmonics (up to rank 11).
The harmonics f_c (component c) of a point group are those of data_harmonics_mapping, f_c = coeff * T (top harmonics). A symmetry operation g (cartesian matrix R) acts as (g f)(r) = f(R^T r) for the polar (Q) harmonics, and with an extra det(R) for the axial (G) harmonics. The representation matrix D(g) is defined by
g f_c = sum_c’ f_c’ D_c’c(g),
so that D(g) = R for the dipole [x,y,z]. D(g) is obtained by least squares from the values of f_c at random points on the unit sphere. The residual measures whether g f_c stays in the space of the components (closure).
- representation matrix (dict) = {“tag”: [SO tag], “matrix”: {irrep: ndarray(n_SO, dim, dim) (sympy)}}
irreps in the order of the character table, matrices in the order of SO.
- harmonics_blocks(pg)[source]#
Harmonics of a point group grouped by (X, rank, irrep, multiplicity).
- Parameters:
pg (str) – point group tag.
- Returns:
[(coeff, top_key)]} with components in order.
- Return type:
(dict) – {(X, rank, irrep, mul)
- numerical_representation_matrix(pg, block)[source]#
Representation matrices of a harmonics block (numerical).
- Parameters:
pg (str) – point group tag.
block (tuple) – (X, rank, irrep, mul).
- Returns:
(ndarray) – D(g), (n_SO, dim, dim) complex.
(float) – max residual of the least squares (closure, should be ~0).
- check_representation_matrix(pg)[source]#
Check that all harmonics of the same irrep (polar and axial, all ranks and multiplicities) have the same representation matrices.
- Parameters:
pg (str) – point group tag.
- Returns:
{“blocks”: [(X, rank, mul)], “closure”: max residual, “deviation”: max abs(D - D_ref)}}.
- Return type:
(dict) – {irrep