Atomic multipole#

Atomic multipoles (matrices in the atomic orbital basis) and their point-group SAMB.

Based on MultiPie Ver.2 (others/tools/create_binary/create_data_atomic_multipole.py and create_data_atomic_multipole_group.py).

  • Atomic multipole X_{lm}^{(s)}(k) (X = Q, G, T, M; s = 0, 1; l <= 7) in the spinful LMs or JML basis of data_basis (atomic_lms_basis, atomic_jm_basis; L = 0..3). The matrix elements are those of multipie.util.util_atomic_multipole (Wigner-Eckart); only the elements allowed by Jz conservation are evaluated. The matrix of each bra-ket block (L1, L2) (data_basis.atomic_rank_block) is kept if it is nonzero. “lm” is the spinless (s = 0, up-spin) part.

  • Point-group SAMB. Every harmonics (X, l, Gamma, n) of a point group is c T with a top harmonics T of Oh or D6h (data_harmonics_mapping) whose u-matrix U_T (spherical m = l..-l) gives the top SAMB sum_m U_T[m] X_{lm}^{(s)}(k) for X = Q, T (polar harmonics) or G, M (axial harmonics). Each component is normalized to the Frobenius norm 1 (diagonal block) or 1/sqrt(2) (off-diagonal block), which is the Gram-Schmidt of MultiPie Ver.2, since the components are orthogonal. The SAMB of the point group is c times the top SAMB (key replaced), computed once per top harmonics. “jml” is computed from the JML matrices; “lgs” is U_bra^dagger M U_ket from the LMs matrices M, with U the orbitals of data_basis.atomic_lgs_basis (atomic_orbital_basis, basis_function u-matrices, spin expanded); “lg” is the spinless (s = 0, up-spin) part of “lgs” multiplied by sqrt(2).

  • Key. PGMultipoleType(X, l, Gamma, n, p, s, k, x=”q”): n is the multiplicity of the harmonics (X, l, Gamma) (its xyz polynomial, not renumbered unlike MultiPie Ver.2); p = -1 (no duplicates).

  • Order. X (Q, G, T, M), s, k, l, Gamma (character table), n.

  • atomic_multipole (dict):

    { "lms"/"jml"/"lm": { (L1, L2): { SphericalMultipoleType(X, l, s, k, "q"): ndarray(2l+1, n1, n2) } } }
    
  • atomic_multipole_group (dict):

    { PG_id: { "jml"/"lgs"/"lg": { (L1, L2): { PGMultipoleType: ndarray(dim, n1, n2) } } } }
        matrix of each component. The expression of the harmonics (X, l, Gamma, n) is in harmonics.pkl
        (util_harmonics.harmonics_expression).
    
spinful_basis(b_type, L)[source]#

Spinful basis of rank L (data_basis.atomic_lms_basis or atomic_jm_basis).

Parameters:
  • b_type (str) – “lms” [(L, m, s)] or “jml” [(J, M, L)].

  • L (int) – orbital rank.

Returns:

  • (tuple) – states as tuples of sympy.

atomic_multipole_matrix(b_type, X, l, s, k)[source]#

Matrices of an atomic multipole in each bra-ket block.

Parameters:
  • b_type (str) – “lms” or “jml”.

  • X (str) – head, “Q”, “G”, “T” or “M”.

  • l (int) – rank.

  • s (int) – internal rank, 0 or 1.

  • k (int) – -s <= k <= s.

Returns:

ndarray(2l+1, n1, n2)} of the nonzero blocks.

Return type:

  • (dict) – {(L1, L2)

atomic_multipole_keys()[source]#

List of (X, l, s, k) of atomic multipoles.

assemble_atomic_multipole(results)[source]#

Assemble atomic multipole data.

Parameters:

results (dict) – {(b_type, X, l, s, k): {(L1, L2): matrix}} (atomic_multipole_matrix).

Returns:

{(L1, L2): {SphericalMultipoleType: matrix}}}.

Return type:

  • (dict) – {“lms”/”jml”/”lm”

load_atomic_multipole()[source]#

Load atomic multipole (multipiegen/binary/atomic_multipole.pkl).

Returns:

{(L1, L2): {SphericalMultipoleType: ndarray(2l+1, n1, n2)}}}.

Return type:

  • (BinaryManager) – {“lms”/”jml”/”lm”

load_atomic_multipole_group()[source]#

Load atomic multipole of point groups (multipiegen/binary/atomic_multipole_group.pkl).

Returns:

{“jml”/”lgs”/”lg”: {(L1, L2): {PGMultipoleType: matrix}}}}.

Return type:

  • (BinaryManager) – {PG_id

lgs_u_matrix()[source]#

U-matrix from the LMs basis (data_basis.atomic_lms_basis) to the Lgs basis (data_basis.atomic_lgs_basis).

Returns:

ndarray(2(2L+1), 2(2L+1))}, |L gamma s> = sum |L m s> U.

Return type:

  • (dict) – {L

top_samb(top, top_key, mats, diagonal)[source]#

Normalized top SAMB, sum_m U_T[m] X_{lm} for a component of the top harmonics.

Parameters:
  • top (str) – “Oh” or “D6h”.

  • top_key (tuple) – key of the top harmonics component.

  • mats (ndarray) – (2l+1, n1, n2) atomic multipole matrices.

  • diagonal (bool) – diagonal block ?

Returns:

  • (ndarray) – (n1, n2) matrix with the Frobenius norm 1 (diagonal) or 1/sqrt(2) (off-diagonal).

top_keys_used()[source]#

Set of (top, top_key, X) used by point group harmonics up to max_rank.

create_top_samb(atomic_multipole, top, block, b_type)[source]#

Top SAMB of a bra-ket block.

Parameters:
  • atomic_multipole (dict) – atomic multipole data.

  • top (str) – “Oh” or “D6h”.

  • block (tuple) – (L1, L2).

  • b_type (str) – “jml” or “lgs”.

Returns:

ndarray(n1, n2)}.

Return type:

  • (dict) – {(top_key, head, s, k)

create_atomic_multipole_pg(pg, top_data)[source]#

Atomic multipole SAMB of a point group.

Parameters:
  • pg (str) – point group tag.

  • top_data (dict) – {b_type: {block: {(top_key, head, s, k): matrix}}} of the top group of pg.

Returns:

{(L1, L2): {PGMultipoleType: matrix ndarray(dim, n1, n2)}}}.

Return type:

  • (dict) – {“jml”/”lgs”/”lg”