![]() |
QPMS
Electromagnetic multiple scattering library and toolkit.
|
Data Structures | |
| class | DkBlock |
| class | DkDecomposition |
Functions | |
| reciprocal_basis (lattice_basis) | |
| _pad_k3 (k) | |
| needs_affine_path (spec) | |
| little_group_system (spec, k, omega=None) | |
Symmetry-adapted decompositions of periodic systems (pure-Python glue). This module assembles the compiled ksym/pergroups bindings into the workflows the qpms-sim runners use for block decomposition of periodic systems, so that the per-block data stored in the ``.qpms.h5`` containers can be unpacked back to the full excitation basis: * :func:`reciprocal_basis` — the 2π-included reciprocal basis; * :func:`needs_affine_path` — the affine-vs-point-image path decision (mirrors the runners' test on the detected affine operations); * :class:`DkDecomposition` — the affine-path k-dependent decomposition (extended little group → D_k matrices → numerical isotypic blocks with the twist-corrected irrep naming of the runners/containers), with the pack/unpack plumbing from container block names to full vectors; * :func:`little_group_system` — the point-image rebuild of a system with the little group of k. The block eigenvectors of a decomposed periodic container live in the symmetry-adapted basis (a slice of ``f_sa = U f`` on the affine path, or the irrep basis of the little-group system on the point-image path); feeding them raw to ``scattered_E`` would silently produce wrong fields. The :meth:`ResultContainer.eigenmode_fields` reader routes the stored block vectors through this module automatically; the classes here are the lower-level access.
|
protected |
Zero-pads a 1..3-component Bloch vector to the (3,) form.
| qpms.symmetry.little_group_system | ( | spec, | |
| k, | |||
omega = None |
|||
| ) |
Rebuild a periodic system with the little group of k. The point-image path of the qpms-sim runners: the cell symmetry maps the placed particles exactly, and the decomposition blocks are the irreps of the little group of the Bloch vector k (at k = Γ: the full point group). Returns ``(ss, group)`` where ss is the orbit-expanded ScatteringSystem built with that group and group the corresponding FiniteGroup (whose irrep names label the container blocks); unpack a stored block vector with ``ss.unpack_vector(v, iri)``.
| qpms.symmetry.needs_affine_path | ( | spec | ) |
Whether the periodic cell's detected symmetry needs the affine decomposition path (True) or the point-image orbit machinery (False). Mirrors the qpms-sim runners' decision: the point-image path is valid only when every detected operation carries no in-cell translation AND its point part maps the placed particles onto the placed particles exactly. Operations with a nonzero in-cell translation (nonsymmorphic settings, off-origin mirrors, pairs and other mod-lattice mappings) take the affine path. spec: a :class:`qpms.Scatspec` with a periodic lattice and the ``system.symmetry: auto`` detection. Returns False for finite systems, explicit/trivial symmetries and failed detections (the runners then use the point-image or full path).
| qpms.symmetry.reciprocal_basis | ( | lattice_basis | ) |
The 2π-included reciprocal basis of a real-space lattice basis. lattice_basis: (latdim, 3) array of the basis vectors (latdim in 1..3; 2D bases must be xy-planar). Returns a (latdim, 3) array of the reciprocal vectors b_i with a_i·b_j = 2π δ_ij (mirrors the runners' ``spec_recip_basis`` helper).