![]() |
QPMS
Electromagnetic multiple scattering library and toolkit.
|
Public Member Functions | |
| __init__ (self, ss, k, lattice_basis, affops, name=True, nmax=8) | |
| from_spec (cls, spec, k, omega=None, name=True) | |
| blocks (self) | |
| __len__ (self) | |
| __iter__ (self) | |
| __getitem__ (self, key) | |
| __repr__ (self) | |
| pack (self, f_full) | |
| unpack (self, f_sa) | |
| block_vector (self, block, v) | |
| gate_ratio (self, M) | |
Data Fields | |
| latdim | |
| lattice_basis | |
| k | |
| affops | |
| fecv_size | |
| n_little_ops | |
| n_cosets | |
| extops | |
| D | |
| U | |
| block_dims | |
Protected Member Functions | |
| _name_blocks (self) | |
Protected Attributes | |
| _ss | |
| _blocks | |
| _named | |
| _by_name | |
Affine-path k-dependent decomposition of a periodic system.
Builds the extended little group of the Bloch vector k (the affine
operations keeping k invariant modulo the reciprocal lattice,
extended by the k-trivial translation cosets), the k-dependent
representation D_k on the full excitation-coefficient space
(``D_k(g)_{p'←p} = δ(g·r_p ≡ r_{p'} mod B) · e^{i k·T} · W_g``), and
its numerical isotypic decomposition (qpms_pergroup machinery, no
character tables). The blocks carry the twist-corrected irrep names
wherever the character match succeeded — the same naming the
qpms-sim runners write into the containers — or structural ``S1,
S2, …`` labels otherwise.
The change-of-basis matrix U (rows = the symmetry-adapted basis
vectors, grouped by block) packs a full vector ``f`` into the
block basis (``f_sa = U f``) and back (``f = U^H f_sa``); a stored
per-block eigenvector is a slice of ``f_sa`` at the block's offset.
Build with :meth:`from_spec` (or directly from a trivial-group
ScatteringSystem + the spec's detected affine operations).
| qpms.symmetry.DkDecomposition.__getitem__ | ( | self, | |
| key | |||
| ) |
Block by name (container block label) or by position.
|
protected |
Character identification against the point image of the little group (the runners' naming): ordinary twist-corrected characters, or the projective small-representation labels at nontrivial factor systems.
| qpms.symmetry.DkDecomposition.block_vector | ( | self, | |
| block, | |||
| v | |||
| ) |
A block-basis vector → the full excitation vector. block: a DkBlock, its name (as stored in the containers), or its position; v: the (dim,) block-space vector (a stored per-block eigenvector). The result has the block components placed at the block's offset in the SA basis and transformed back with U^H.
| qpms.symmetry.DkDecomposition.blocks | ( | self | ) |
Tuple of the DkBlocks (in packing order).
| qpms.symmetry.DkDecomposition.from_spec | ( | cls, | |
| spec, | |||
| k, | |||
omega = None, |
|||
name = True |
|||
| ) |
Build the decomposition from a periodic Scatspec. Uses the spec's auto-detected affine operations (``system .symmetry: auto``) and the trivial-group system (the same build the affine-path runners use). omega is the build frequency of the underlying system (the decomposition itself is ω-independent); it defaults to the spec's own value, then to 1e15 rad/s (a build-only placeholder — the T-matrix generators are not evaluated at this stage).
| qpms.symmetry.DkDecomposition.gate_ratio | ( | self, | |
| M | |||
| ) |
Block-diagonality check of a full-basis matrix. Computes ``M_sa = U M U^H`` and returns the ratio of the off-block to the on-block Frobenius norm over the block partition (the runners' "commutation gate"; ≈ machine epsilon for a matrix commuting with all the D_k's).
| qpms.symmetry.DkDecomposition.pack | ( | self, | |
| f_full | |||
| ) |
Full excitation vector → symmetry-adapted basis (``U f``).
| qpms.symmetry.DkDecomposition.unpack | ( | self, | |
| f_sa | |||
| ) |
Symmetry-adapted vector → full basis (``U^H f_sa``).