Coset of a model#
Coset of a model: the SAMB of a model of H moved by a representative g of a coset g H in a supergroup P.
The data of the cosets are those of the group binaries (MultiPieGen): “coset” of the group file (the first coset in the direct parent) and “parent”, “coset” of info (the parents and the cosets in them); any other supergroup is reached through the direct supergroups (“supergroup” of info, util_supergroup).
Reduction of g (in the coordinates of H).
“rotation” (det g > 0): the image system is written in the frame moved by g; its data are those of the model, and g Z_j = +Z’_j (the SAMB of the image system with the same label).
“improper” (det g < 0, H not chiral): g = g’ m^-1 with an improper operation m of H and the rotation g’ = g m: g Z_j = sum_k D(m^-1)_kj Z’_k in the frame moved by g’ (D = 1 for the identity irrep).
“inversion” (det g < 0, H chiral): g = r I with the inversion I of the first coset in the direct parent and a rotation r: I maps H to H’ = I H I^-1 (map M), the sites and bonds of each Wyckoff position W to those of W’ (row i -> row perm[i], bond reversed if sign = -1), and the cluster SAMB by eps (label by label) or by U (within an irrep). The atomic SAMB of the orbitals of ranks (l1, l2) are multiplied by (-1)^(l1+l2). The frame is moved by r.
Image system of the inversion. Its representative (row 0) of each Wyckoff position is the image of row i0 with perm[i0] = 0 (image_representative); a model of H’ created from its own input may have other representative bonds, and the inversion model (model input “create_inversion_model”, inversion_model) has these representatives.
Parent structure (resolve_coset). The limit of the Wyckoff parameters at which the structure is invariant under P: “parent_limit” of the binaries for the direct parent, util_supergroup.parent_limit otherwise; for a supergroup that is not a parent of the binaries, the embedding whose parent structure is the nearest to the model. On it, g is a symmetry and acts on the matrix elements of the model (image_space, the atoms matched by their parent positions).
Weight. The weight of the eigenvalue w^m (w = exp(2 pi i/n), n the order of g modulo H) of Z_j is w_m(j) = (1/n) sum_t w^(-m t) <Z_j, g^t Z_j>/<Z_j, Z_j> (weight_from_space).
S and F. S^(t)_kj = <Z_k, g^t Z_j> (overlap_matrix) and n Pi^(m) = sum_t w^(-m t) S^(t) (projected_matrix) give <g^t Z_j> and n <Pi_m Z_j> for a state invariant under H if every g^t Z_j lies on the bonds of the model (“complete”, parent_shells); F_j = sum_{m>0} n <Pi_m Z_j> (MaterialModel.parent_forbidden_part).
- check_inversion_model(info, site_dict, bond_dict, lattice=True)[source]#
Check that the representative sites and bonds of the inversion model are the images (info of inversion_model).
- coset_analysis(mm, spec=None, with_weight=True)[source]#
Coset analysis of a model.
- Parameters:
mm (MaterialModel) – model (analyzed).
spec (None, False, dict or list, optional) – “coset” of the model input.
with_weight (bool, optional) – calculate the weights, S and the shells on the parent structure ?
- Returns:
(list) – result for each representative, dict with “parent”, “rep”, “rep_matrix”, “order”, “kind”, “frame”, “image_group”, “site”, “bond”, “samb”, “embedding” (None for the parents of the binaries), “parent_structure”, “weight”, “weight_note” (the reason when the weights are not given, e.g. no parent structure of a site), “S” (S[k][j] = <Z_k, g Z_j>), “S_eigenvalue”, “complete” (the model contains the whole neighbor shells of the parent structure), “shell” (parent_shells).
- image_representative(inv, site_dict, bond_dict, lattice=True)[source]#
Representative sites and bonds of the image system under the inversion (first coset of a chiral group).
The eps/U of the cluster SAMB (MultiPieGen) map row i of each Wyckoff position W to row perm[i] of W’ (bond reversed if sign = -1). The representative (row 0) of the image is therefore M (row i0) with perm[i0] = 0, which is M (representative) when perm[0] = 0.
- Parameters:
inv (dict) – “inversion” of the first coset (Group.coset).
site_dict (dict) – site dict of the model (“representative”, “cell”).
bond_dict (dict) – bond dict of the model (“representative”, “cell”).
lattice (bool, optional) – space group (positions reduced to [0,1)) ?
- Returns:
position} of the image (fractional, in [0,1), ndarray). - (dict) – {bond: (vector, center)} of the image (fractional, center in [0,1), ndarray).
- Return type:
(dict) – {site
- image_space(mm, rc)[source]#
The SAMB of the model and their images g Z_j on the parent structure (keys of the matrix elements).
- Parameters:
mm (MaterialModel) – model.
rc (dict) – resolve_coset.
- Returns:
- Z_j), “zs”, “n0” (number of keys of the
model; the keys beyond are reached by g only).
- Return type:
(dict) – “ks” (_KeySpace), “G” (action of g), “X” (columns
- inversion_model(group, site_data, site_dict, bond_dict)[source]#
Input of the inversion model: the image of a model of a chiral group under the first coset (inversion).
- Parameters:
group (Group) – group of the model (its first coset is the inversion).
site_data (dict) – “site” of the model input.
site_dict (dict) – site dict of the model.
bond_dict (dict) – bond dict of the model.
- Returns:
(str) – image group.
(dict) – “site” of the image, {name: (position, orbital)}.
(dict) – representative bonds of the image, {(tail, head): [bonds of the n-th neighbor]} (rep_bond_given of parse_representative_bond).
(dict) – information (“group”, “image_group”, “rep”, “map”, “site”, “bond”) of the source and the image.
- map_bond(mm, rc, cells=2)[source]#
The bonds of the model moved by g on the parent structure.
- Returns:
- [{“bond”: (tail atom, head atom, n), “image”: (tail atom, head atom, n), “neighbor” (of
the image in the structure of the model), “distance”}]} for the bonds from the first tail atom (atoms: (site, sublattice), n: conventional lattice vector).
- Return type:
(dict) – {bond name
- model_data(mm)[source]#
kets, site positions (conventional), and the SAMB matrices with conventional lattice vectors.
- orbital_matrix(C, orbs)[source]#
D[b, a]: the orbital a rotated by the Cartesian orthogonal matrix C is the sum of D[b, a] (orbital b), (g f)(r) = f(C^T r).
- overlap_matrix(sp_, t=1)[source]#
S^(t)_kj = <Z_k, g^t Z_j> and whether every g^t Z_j lies on the bonds (pairs of sites) of the model.
- Parameters:
sp (dict) – image_space.
t (int, optional) – power of g.
- Returns:
(ndarray) – S^(t) (real if the imaginary part vanishes).
(bool) – complete.
- parent_shells(mm, rc, cells=3)[source]#
The neighbor shells of the parent structure, and the neighbors of the structure of the model in each.
- Returns:
- [{“shell” (from 1), “distance” (parent structure), “neighbor” ([n] of the model
structure), “model” ([n] in the bonds of the model), “complete” (no neighbor or all neighbors in the model)}]} for the pairs of the bonds of the model, up to the last shell with a neighbor of the model.
- Return type:
(dict) – {(tail, head)
- parent_structure(mm, md, frame, limits)[source]#
Positions of every site in the parent structure (the nearest limit of each site).
- Returns:
{“wyckoff”, “param”, “limit”: index, “limit_param”, “parent_wyckoff”}}. - (dict) – {(site, sublattice): position}.
- Return type:
(dict) – {site
- parse_coset(group, spec)[source]#
Representatives of the cosets to analyze.
- Parameters:
group (Group) – group H of the model.
spec (None, False, dict or list) – “coset” of the model input.
- Returns:
(list) – [(parent id, representative tag or None, embedding or None)], [] for False, or for None and a group without a direct parent.
Note
None: the representative of the first coset in the direct parent.
{“parent”: id, “rep”: tag}: for a parent of the binaries (info[“parent”][H]), the operation must be one of the cosets of info[“coset”][H][parent] (not a translation only, nor an operation of H; default: the first).
any supergroup P (Group.supergroups), or with “embedding” (index of Group.embedding): “rep” is an element of P in the coordinates of H (default: the first coset other than H modulo the lattice of H, the inversion if any); the embedding is the one whose parent structure is the nearest to the model if not given.
- projected_matrix(sp_, n)[source]#
Matrices of the projections on the eigenvalues w^m of g (order n, w = exp(2 pi i/n)) in the SAMB of the model.
- Returns:
(list) – [n Pi^(m)_kj = sum_t w^(-m t) S^(t)_kj for m = 0..n-1], so that n <Pi_m Z_j> = sum_k (n Pi^(m))_kj <Z_k> for a state invariant under H.
(bool) – complete (for every power of g).
- resolve_coset(mm, parent=None, rep=None, embedding=None, require_structure=True)[source]#
The parent, the embedding, the representative g, and the parent structure used by image_space.
- Parameters:
mm (MaterialModel) – model (analyzed).
parent (str, optional) – supergroup P (default: the direct parent of the binaries).
rep (str or array, optional) – element g of P (“point operation of P:[translation in H]” or 4x4 in the coordinates of H; default: the first coset of the binaries for its parents, the first coset other than H modulo the lattice of H (the inversion if any, a translation only if no other) otherwise).
embedding (None, int, dict or array, optional) – embedding of H in P (util_supergroup.resolve_embedding); default: the parents of the binaries with their transformation, otherwise the embedding whose parent structure is the nearest to the model.
require_structure (bool, optional) – raise an error if no embedding gives a parent structure of the model (otherwise the first embedding, with “parent_structure” and “lim_pos” None and the reason in “note”).
- Returns:
(dict) – “parent”, “rep”, “g”, “order”, “frame” (_Frame), “limits”, “embedding” (None for the binaries), “parent_structure”, “lim_pos”, “md”.
- samb_map(mm, coef)[source]#
{z_j: [(z_k, A_jk)]} from the image vectors in the label space.
- Parameters:
mm (MaterialModel) – model.
coef (dict) – {z: {(UniqueSAMBType, t1, c1, t2, c2): coefficient}}, image of Z_j in the labels of the image system (the same UniqueSAMBType as the model for the SAMB of the image system with the same label).
Note
g Z_j = sum_k A_kj Z’_k is solved in the label space by least squares: the label vectors of the SAMB are not normalized in general (e.g., the norm is 1/2 for a hybrid of the orbitals of different ranks, whose hermitian partner has no label of its own).