Changes from Ver.2#

MultiPie Ver.3 uses a new group database generated by MultiPieGen. The groups themselves (symmetry operations, Wyckoff positions, characters) are unchanged, but the multipole data, i.e., the harmonics and the SAMB built on them, are made in a new way. This page summarizes what changes for the users of Ver.2. A Japanese version is here.

In short:

  • Create your models again with Ver.3. A model (.pkl) created with Ver.2 is refused. mp_convert creates it again from the .pkl of Ver.2, and converts the weights \(z_j\) of its controls (see Converting a model of Ver.2).

  • The SAMB \(Z_j\) of a model span the same space as in Ver.2, but their numbering, signs, and values can differ. Assign the weights \(z_j\) again, e.g., by fitting.

  • Four f orbitals are renamed: f2, f1, f3x, f3y are now fc, fs, fx, fy.

  • The model keys max_neighbor and search_cell_range are removed; delete them from your model inputs.

  • The irreps of some groups, e.g., D\(_{\rm 3h}\), are in another order.

  • Some functions of Group are removed or changed (see Group).

  • From 3.2.0, the combined SAMB \(z_j\) are numbered in another order (the irreps in the order of the character table; see Order of the SAMB). mp_convert renumbers a model of an earlier version of Ver.3 and the weights of its controls (see Converting a model of Ver.3 before 3.2.0).

Group database#

  • The database (multipie/binary_data) is generated by MultiPieGen, a separate project, and copied into MultiPie by tools/sync_binary_data.py; multipie/binary_data/SOURCE.txt records the commit of MultiPieGen it comes from. The tools that created the database in Ver.2 (others/tools) are removed.

  • The database is about 20 MB (81 MB in Ver.2). The optional data of the point groups (PG/*_opt.pkl) are merged into the data of each point group. The file names have _ instead of the : of the group ids, e.g., PG/PG_32.pkl for PG:32 (PG/PG:32.pkl in Ver.2), so that MultiPie can be installed from git also on Windows.

  • The tables of the groups (PDF) are also generated by MultiPieGen. Group Information links to them; the group pages of the Ver.2 documentation are removed.

Conventions#

Irrep order. The irreps follow the order of the character table, with g before u and the irreps with ' before those with ''. The order changes for C\(_{\rm 3h}\), D\(_{\rm 3h}\) and their other settings, e.g., D\(_{\rm 3h}\):

Ver.2

Ver.3

\(A_1', A_2', A_1'', A_2'', E', E''\)

\(A_1', A_2', E', A_1'', A_2'', E''\)

The first irrep is still the identity irrep.

Orbital names. The orbitals are renamed as follows. The old names are not accepted in a model input; an error tells the new name.

Ver.2

Ver.3

function

Wannier90

f2

fc

\(\frac{\sqrt{10}}{4}x(x^2-3y^2)\)

fx(x2-3y2)

f1

fs

\(\frac{\sqrt{10}}{4}y(3x^2-y^2)\)

fy(3x2-y2)

f3x

fx

\(\frac{\sqrt{6}}{4}x(4z^2-x^2-y^2)\)

fxz2

f3y

fy

\(\frac{\sqrt{6}}{4}y(4z^2-x^2-y^2)\)

fyz2

The orbitals of rank 4, which appear in the names of multipoles (e.g., the active multipoles of the response tensors), are also renamed: ga, gb, gc are now gc, gs, gc4 (note that gc now means the old ga).

Multiplicity. The multiplicity n of a key is always that of the point-group harmonics (X, l, Gamma), which fixes its xyz polynomial; entries sharing all the other fields are numbered by p. See the User Guide.

Harmonics#

  • The value of Group.harmonics is (expression, U); the third item of Ver.2 (the expression in terms of the tesseral harmonics) is removed.

  • The expressions are expanded polynomials, e.g., \(\frac{3\sqrt{10}}{4}x^2y - \frac{\sqrt{10}}{4}y^3\) instead of \(\frac{\sqrt{10}}{4}y(3x^2 - y^2)\).

  • The keys are the same for all 47 point groups. 32 harmonics change sign, the rank-4 \(E\) harmonics with multiplicity 2 or 3 of the 16 trigonal and hexagonal point groups (from \(E_{2g}\) of D\(_{\rm 6h}\)); the expression and \(U\) change sign together.

  • The multipolar harmonics (Group.multipolar_harmonics) are given up to rank 3 (rank 11 in Ver.2), with internal bases of cubic or hexagonal orbitals and symbols such as \(Q_{x}\). The expression of any rank for a component \(m\) is given by Group.multipolar_harmonics_expression() (from 3.1.3; see Expression for a component).

Atomic SAMB#

  • The same keys and matrices as in Ver.2, except for sign changes in the D\(_{\rm 6h}\) family (from the harmonics).

  • The complex point groups (-c) also have atomic SAMB.

Cluster SAMB#

  • The site and bond cluster SAMB of each irrep span the same space as in Ver.2, but the values differ, as they are made from another representative point: e.g., about 69% of the site cluster SAMB are unchanged, 14% change sign, and 17% change their values.

  • The bond cluster SAMB are given as one set, Group.cluster_samb(wp, "bond"): the symmetric (Q, G, real) and the anti-symmetric (T, M, pure imaginary) bond functions together. The types "bond_s", "bond_a" and "vector" are removed.

  • The keys of the anti-symmetric bond functions can differ from Ver.2 in p, in n, or in (X, l, Gamma), e.g., the p of the key is kept from the top group, giving symbols such as \(\mathbb{T}_{1}^{(b)}(E_{1u},a)\).

  • The complex point groups have no cluster SAMB (as in Ver.2); Group.cluster_samb raises an error for them.

  • From 3.3.0, the cluster SAMB of 20 Wyckoff positions of SG 98, 208, 211, 213, and 214 are averaged from another reference site or bond, so that they are mapped label by label onto those of the image under the inversion coset (see Coset of the model). A model of these Wyckoff positions created again has other values of these cluster SAMB.

Combined SAMB and models#

  • The combined SAMB of a model span the same space of matrices as in Ver.2, with the same number of SAMB, but the numbering \(z_j\), the signs, and the values can differ. The band structure of a model with given weights is therefore different unless the weights are converted.

  • MaterialModel.load (and so mp_analyze) refuses a model created by Ver.2 with an error. Create the model again with mp_create, and assign the weights again, or convert the model and the weights with mp_convert.

  • The keys max_neighbor and search_cell_range of a model input are removed, and an input with them is refused with an error. The neighbors of a bond are given by "bond" only, without the upper limit of max_neighbor (10 by default in Ver.2). For a space group, the bonds are searched in a range that is enlarged for each bond until it contains every site up to the requested neighbor; in Ver.2, a too short search_cell_range silently dropped neighbor shells and shifted the neighbor numbering.

  • The bands of a model obey the symmetry in the same way; see Checks by symmetry for the tests that hold across the versions.

  • From 3.2.0, info/<model>_var.py gives the head and tail sites of bond 1 ("bond") for each bond cluster, and the atomic variables are named by the orbitals only, g_{head orbital,tail orbital}, e.g., g_{pz,pz} instead of g_{pz_C2,pz_C1} (see Getting started).

  • From 3.3.0, the model input key "coset" gives the SAMB moved by a representative of a coset of the group in a parent and the weights of its eigenvalues on the parent structure, in mm["coset"] and in the PDF (see Coset of the model). It is calculated by default; "coset": False skips it.

  • From 3.4.0, the model input key "create_inversion_model": True creates, for a chiral group whose first coset is the inversion, the image of the model with the representative sites and bonds that the SAMB moved by the inversion in "coset" assume, and mm["coset"] gives these representatives of the image (see Coset of the model). In 3.3.0, the coefficients of "samb" in mm["coset"] were 1/2 of the correct values for the SAMB whose vectors in the label space have the norm 1/2 (e.g., a hybrid of s and p orbitals of E), also for the rotation; they are solved by least squares from 3.4.0.

  • From 3.5.0, any supergroup of a group (Group.supergroups, embedding, coset_decomposition, parent_limit, map_site, from the direct supergroups of the group data) and the matrix \(S_{kj} = \langle Z_k, g Z_j \rangle\) and \(F_j = \sum_k (\delta_{kj} - S_{kj}) \langle Z_k \rangle\) of a model (MaterialModel.transform_samb, image_overlap, parent_forbidden_part (with the projections on the eigenvalues of \(g\) for an order \(n > 2\)), parent_shells, map_bond); "coset" accepts any supergroup (see Coset of the model). The weights are given for every parent with a parent structure.

  • From 3.5.1, the trace moments \(\Gamma\) of a model (the model-dependent part of the response tensors) and their lowest nonzero terms as polynomials in \(z_j\) (ModelAnalyzer.trace_moment; see Trace moments of a model).

  • From 3.5.1, the basis vectors of the cell (unit_vector of a model, info["A"] of the analysis) and the metric are kept in full precision (exact for the angles 90 and 120 degree); up to 3.5.0, they were rounded to 8 decimals (e.g., \(\sqrt{3}/2 \to 0.8660254\)), which put errors of about \(10^{-9}\) in the quantities made from them, such as the coefficients of the velocity operators.

Converting a model of Ver.2#

mp_convert (or convert_model, from 3.1.0) converts a model of Ver.2, <model>/<model>.pkl, into Ver.3, when the model input is no longer at hand. It also converts the weights \(z_j\) of the controls (samb mode) of the model:

mp_convert graphene graphene_ctrl.py
  1. The model input is rebuilt from the .pkl of Ver.2 and written as graphene_in.py. The f orbitals are renamed, and max_neighbor and search_cell_range are dropped. The neighbors are chosen by the distances of the bonds of Ver.2: when Ver.2 missed a part of the neighbor shells (a too short search_cell_range), its neighbor numbering differs from that of Ver.3, and the model of Ver.3 has also the bonds that Ver.2 missed (with the weight 0).

  2. The model is created with Ver.3 as graphene/graphene.pkl. The model of Ver.2 is kept as graphene/graphene_v2.pkl.

  3. The conversion is refused, and the model of Ver.2 is restored, if the kets differ or the SAMB of Ver.2 are not in the space spanned by those of Ver.3.

  4. The weights are converted by projection: \(H = \sum_j z_j Z_j\) of Ver.2 gives \(z_j = {\rm Tr}[Z_j H]\) of Ver.3 (by least squares when the SAMB are not orthonormal, e.g., for a site with only a part of the f orbitals). \(H\) is unchanged within round-off, and the converted control is written as graphene_ctrl_v3.py; the original is not changed. samb/select is not converted: check its "bond" when the neighbors changed.

mp_convert prints what changed: the renamed orbitals, the removed keys, the neighbors, the numbers of SAMB, and the residuals of the projection. With --no-pdf and --no-qtdraw, the PDF and the QtDraw file are not created (by default, as in the model of Ver.2). For a model already converted (<model>.pkl of Ver.3 with <model>_v2.pkl), only the controls are converted. The weights given as a dict, e.g., a fit, are converted by convert_model("graphene", parameter={"z1": ...}), and returned as report["parameter"].

Converting a model of Ver.3 before 3.2.0#

From 3.2.0, the combined SAMB are numbered in the order of the irreps of the character table, and within a block, electric (Q, G) / magnetic (T, M), \(s\), \(k\), \(l\), the type, \(n\), \(p\) (see Order of the SAMB). Before 3.2.0, the irreps were in the alphabetical order, and the multipoles in the order of the type (Q, G, M, T), \(s\), \(k\), \(l\). The SAMB themselves are the same.

  • A model (.pkl) created before 3.2.0 keeps its numbering: it can be analyzed with its controls as before.

  • A model created again with 3.2.0 or later from the same input has another numbering: the weights \(z_j\) of an old control would apply to other SAMB.

mp_convert renumbers such a model and the SAMB of its controls:

mp_convert graphene graphene_ctrl.py
  1. The model is created again as graphene/graphene.pkl from graphene_in.py, or, if it does not exist, from the input rebuilt from the old model (written as graphene_in.py). The old model is kept as graphene/graphene_v3.1.pkl (its version).

  2. The SAMB of the old and new models are matched one to one by the cluster and the bra-ket block, the key, and the component, and their matrices must agree. Otherwise, e.g., when graphene_in.py was changed, the conversion is refused and the old model is restored.

  3. The SAMB in samb/parameter, output/callback_info, output/dispersion/z, and output/z_expectation of the controls are renumbered, and the converted control is written as graphene_ctrl_v3.2.py; the original is not changed. \(H\) is exactly the same.

mp_convert prints the number of the SAMB moved. For a model already converted (<model>.pkl of 3.2.0 or later with <model>_v3.x.pkl), only the controls are converted; report["renumber"] of convert_model gives the map of the old \(z_j\) to the new ones.

Group#

Ver.2

Ver.3

Group(tag, with_opt=True), Group.opt

removed

Group.opt["representation_matrix"]

Group.representation_matrix

Group.opt["harmonics_multipole"]

Group.multipolar_harmonics (rank <= 3), Group.multipolar_harmonics_expression()

Group.opt["harmonics_irrep"]

removed (use the keys of Group.harmonics)

Group.harmonics value (expression, U, tesseral expression)

(expression, U)

Group.cluster_samb(wp, "bond_s" / "bond_a" / "vector")

removed; Group.cluster_samb(wp, "bond")

Group.response_tensor_all(X) computes the tensors

reads them from the database (the same tensors)

wyckoff[...]["reference"]

other values (another representative point)

symmetry_operation["mapping"] of a PG, right cosets

left cosets along the parent groups; also given for SG

no bonds for the complex PGs

Wyckoff bonds for the complex PGs

-

wyckoff["bond"][...]["symmetry"] (site symmetry of the bond center)

The symmetry operations (and their order), the Wyckoff labels, positions and mappings, the character tables (except the order of the irreps), and the data of MPG and MSG are unchanged.

Response tensors#

  • The response tensors are the same as in Ver.2, except for the names of the multipoles and the rank-4 t part, \(X_{abc;d}\), which is now fully symmetric in \(a, b, c\) with 30 independent components (that of Ver.2 was not).

  • Every multipole in the response tensors is a positive multiple of the harmonic of the same name (Group.harmonics). Up to 3.2.0, \(\mathbb{Q}_{4v}\) (gv) had the opposite sign in the response tensors, and the t part was not fully symmetric.

  • The names of the active multipoles follow the renamed orbitals, e.g., Qf1 is now Qfs. Their aliases (convert_mp_alias) are made from the LaTeX names in the database, e.g., Qfc is \(\mathbb{Q}_{3c}\).

  • multipole_rank(tag) gives the rank of an active multipole from its name.

  • Group.response_tensor_all() without the type X gives the tensors of all the types (the type is the first element of the key, (X, rank, opt)); response_tensor_all(X) gives those of X as in Ver.2.

Brief manual of Ver.2 (PDF)#

The brief manual of MultiPie was written for Version 2.3. The concepts and the workflow are the same in Ver.3, but some names and results differ as described on this page, e.g., the f orbitals f2, f1, f3x, f3y are renamed, Group(tag, with_opt=True) is removed, and the numbering and the signs of SAMB can differ. The Japanese version is in the Japanese page.

PDF

An overview of MultiPie in slides:

  • Overview. The group-theoretical data (symmetry operations, Wyckoff sites and bonds, characters, harmonics, and active multipoles of the point, space, magnetic point, and magnetic space groups), and the model construction and the physical quantities computed with SAMB.

  • SAMB. The physical degrees of freedom classified by the time-reversal parity, the spatial-inversion property, and the spatial anisotropy: the electric (Q), magnetic (M), magnetic toroidal (T), and electric toroidal (G) multipoles.

  • Example of graphene. The model input, the Wyckoff sites and bonds, the site and bond clusters, the combined SAMB, the band dispersion, the matrix elements, and how to use the basis.

  • Workflow. Model construction with mp_create from a model input file, and the computation of the band dispersion and other physical quantities with mp_analyze from a control file, with all the keys of the two files.

  • Classes. Overviews of Group, MaterialModel, and ModelAnalyzer, with their initialization, properties, and main functions.