Cluster basis#

Orthonormal (scalar) cluster basis of Oh and D6h clusters (binary: cluster_scalar_basis.pkl).

The cluster is made by substituting the representative site (site0) into the general points of the Oh (48 points) or D6h (24 points) cluster. The value of each real top harmonics at each cluster point gives a cluster vector. Different irreps (and components) are orthogonal by symmetry. Within each (irrep, component), the vectors are orthogonalized by the Gram-Schmidt process from lower rank (then lower multiplicity), and linearly dependent ones are dropped. The result is an orthonormal basis of 48 (Oh) or 24 (D6h) vectors.

  • cluster_scalar_basis (dict):

    { "Oh/D6h": {
        "site0": [x0,y0,z0] (sympy),
        "cluster": cluster points, ndarray (N,3) (sympy),
        "basis": { PGMultipoleType: ndarray (dim,N) (sympy) },  # orthonormal, sum_i v_i^2 = 1 per component.
        "dropped": [ PGMultipoleType ],  # harmonics linearly dependent on lower ones (whole multiplets).
    } }
    
    PGMultipoleType = (X, l, Gamma, n, p, s, k, x) as the site SAMB of MultiPie Ver.2: X = "Q", rank l, irrep,
        multiplicity n (1-based, -1: unique) of the top harmonics, p = -1, s = 0, k = 0, x = "q".
        All components of a multiplet are in the value (rows, in the order of components).
    
create_cluster(group)[source]#

Create cluster by substituting site0 into general points.

Parameters:

group (str) – “Oh” or “D6h”.

Returns:

  • (ndarray) – site0 (3,) (sympy).

  • (ndarray) – cluster points (N,3) (sympy).

create_harmonics_vectors(group, cluster)[source]#

Values of real top harmonics at cluster points.

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

  • cluster (ndarray) – cluster points (N,3).

Returns:

ndarray (N,) (sympy) }.

Return type:

  • (dict) – { top_key

gram_schmidt(vectors)[source]#

Gram-Schmidt orthonormalization within each (irrep, component), from lower rank.

Parameters:

vectors (dict) – { top_key: ndarray (N,) }.

Returns:

ndarray (N,) }, in the order of vectors. - (list) – dropped (linearly dependent) top_keys.

Return type:

  • (dict) – orthonormal basis { top_key

create_cluster_basis(group)[source]#

Create orthonormal cluster basis.

Parameters:

group (str) – “Oh” or “D6h”.

Returns:

  • (dict) – { “site0”, “cluster”, “basis”, “dropped” }.

save_cluster_basis(groups=('Oh', 'D6h'), verbose=True)[source]#

Create and save cluster basis as binary (multipiegen/binary/cluster_scalar_basis.pkl).

Parameters:
  • groups (tuple, optional) – groups.

  • verbose (bool, optional) – verbose ?

load_cluster_basis()[source]#

Load cluster basis.

Returns:

{ “site0”, “cluster”, “basis”, “dropped” } }.

Return type:

  • (dict) – { “Oh/D6h”

cluster_basis_matrix(data, numeric=True)[source]#

Basis as matrix, each row is a component of a basis multiplet.

Parameters:
  • data (dict) – cluster basis of a group, load_cluster_basis()[group].

  • numeric (bool, optional) – float ndarray ? otherwise sympy object ndarray.

Returns:

  • (ndarray) – basis matrix (N, N).

  • (list) – (PGMultipoleType, component index) of each row.