Supergroups#

Direct supergroups of the real PG and SG: the supergroups P in which a group H is a maximal subgroup, with the embeddings of H in P, from the symmetry operations of group.pkl.

  • Embedding: the affine map x_P = A x_H (A = [[R, s], [0, 1]], conventional coordinates) that maps every operation of H to one of P. R is right-handed (an enantiomorphic pair is not a sub/supergroup). For SG, R maps the lattice of H into that of P: N = L_P^-1 R L_H is an integer matrix (L: primitive vectors in the conventional coordinates), and [T_P : T_H] = det N. For PG, R is orthogonal in the Cartesian coordinates.

    • R: from the images V_i of the generators W_i of the point group of H (N W’_i = V’_i N in the primitive bases, a linear subspace of N), its integer points with small entries (abs(N_ij) <= 3 for a subspace of dimension <= 3, <= 2 for <= 5, and the signed permutations otherwise, i.e., triclinic H).

    • s: on the grid of 1/24 in the primitive coordinates of P.

    • Two embeddings are the same when they give the same set of the operations of P in the coordinates of H modulo the lattice of P (they differ by an element of the normalizer of P); different embeddings give different parent structures for the same atoms of H.

  • Direct (maximal): by the theorem of Hermann, a maximal subgroup is a t-subgroup ([T_P : T_H] = 1, point-group index 2, 3 or 4) or a k-subgroup (the same point-group order, [T_P : T_H] = 2, 3 or 4 here). An embedding is direct if no other embedding Q (of these candidates, isomorphic k-subgroups included) lies between: H < Q < P as the sets of the elements modulo the lattice of H. The isomorphic supergroups (P of the same type as H) are not listed.

  • Index: [P : H] modulo the lattice of H (“index”) and modulo the lattice of P (“index_parent”).

NOTE: the “direct parent” of data_parent_pg/sg (coset.pkl) is the representative parent of MultiPieGen and is not always a maximal supergroup (e.g., SG 152 < 150 < 164 with the lattice of 164 (c/3)).

okey(W, L)[source]#

key of an operation (4x4) modulo the lattice L.

group_data(gid)[source]#

point operations, the operations (with the plus set), lattice (primitive vectors), of a group.

class_key(Hd, Pd, A)[source]#

the operations of P in the coordinates of H modulo the lattice of P, and that lattice modulo that of H.

element_keys(Hd, Pd, A)[source]#

the elements of P modulo the lattice of H (coordinates of H).

embeddings(h, p, lattice_index=None)[source]#

Embeddings of H in P.

Parameters:
  • h (str) – id of H.

  • p (str) – id of P.

  • lattice_index (list, optional) – allowed [T_P : T_H] (default: 1-4).

Returns:

  • (list) – [(A (4x4 float), index, index_parent)], the simplest first.

direct_supergroups(h)[source]#

Direct supergroups of a group H.

Parameters:

h (str) – id of H (real PG or SG).

Returns:

id, “A”: 4x4 float (x_P = A x_H), “index”, “index_parent”}], in order of the index and

the group number.

Return type:

  • (list) – [{“parent”

exact_matrix(A)[source]#

float 4x4 -> sympy Matrix of rationals.

load_supergroup()[source]#

Load the direct supergroups (multipiegen/binary/supergroup.pkl).

Returns:

[{“parent”, “A”, “index”, “index_parent”}]}.

Return type:

  • (BinaryManager) – {PG_id/SG_id