spacetime-sym#
Spatial and dichromatic point groups, Curie limiting groups, and invariance of physical quantities in Python

spacetime-sym is an open-source Python library for constructing spatial and dichromatic point groups and checking the invariance of physical quantities under their operations. It represents spatial transformations in \(O(3)\), including proper rotations in \(SO(3)\) and improper operations such as reflections. These can be combined with dichromatic operations, notably time reversal (\(T\)) and a charge-reversal label (\(C\)). Including time reversal extends the spatial orthogonal group to the magnetic group \(O'(3)=O(3)\times\{1,1'\}\) in the classical symmetry description. Beyond finite point groups, the library implements continuous axial and isotropic Curie limiting groups, including magnetic and other dichromatic extensions. The axial groups arise as \(n\to\infty\) limits of families of finite rotational point groups within \(O(3)\). Beyond conventional two-state (black-and-white) magnetic symmetry, independent binary reversal labels can be combined in the API, giving a restricted form of multiple antisymmetry within the broader literature on color symmetry and double antisymmetry.
Physical-quantity invariance is the central workflow. A scalar, pseudoscalar, polar or axial vector, or second-rank tensor (with optional bidirector equivalence) is tested against a specified group using its spatial and dichromatic transformation character. Thus, the same point group can allow one physical quantity while forbidding another. This point-group approach makes symmetry analysis useful beyond periodic crystallography, including physical observables, order parameters, and material-response tensors.
This documentation includes two concrete group examples — the continuous polar group \(\infty m\) and the finite magnetic point group \(6'mm'\) — before introducing the API and the underlying physical conventions. Further executable examples are linked in the test suite below.
Why symmetry of physical quantities matters#
In his 1894 paper Sur la symétrie dans les phénomènes physiques, symétrie d’un champ électrique et d’un champ magnétique, Pierre Curie argued that symmetry methods familiar from crystallography should also be used to analyze physical phenomena. These ideas provide constraints on the properties and responses a system can exhibit, often before solving the equations governing its dynamics.
The same geometric direction does not necessarily imply the same physical transformation law. For example, electric polarization and velocity are both polar vectors, but the former is time-even whereas the latter is time-odd. Magnetization is instead a time-odd axial vector. These distinctions matter when identifying permissible physical responses, order parameters, and interactions.
J. Hlinka’s 2014 paper, Eight Types of Symmetrically Distinct Vectorlike Physical Quantities, is an important inspiration for this project. It explains why directional quantities cannot all be treated as ordinary polar vectors: alongside polar and axial vectors, the classification includes several kinds of bidirectors, distinguished by their spatial and time-reversal symmetries. Hlinka cites our earlier symmetry-based work on magnetic domain walls and topological defects. The wider theory of additional binary reversals is developed, for example, in rotation-reversal symmetry and the review Antisymmetry: Fundamentals and Applications.
spacetime-sym grows out of this broader research interest. Its aim is to encourage the use of group-theoretical reasoning for physical quantities, fields, and micromagnetic structures, not only for crystal lattices. Related research themes include Curie groups, Hlinka’s classification, two-dimensional domain walls, one-dimensional line defects (including Bloch and Néel lines), zero-dimensional point defects (including Bloch points), skyrmions, and surface effects. The group-theoretical treatment follows, in part, the established methodological framework, especially Section 2 (symmetry of micromagnetic structures).
What makes spacetime-sym different?#
Core idea: connect spatial and dichromatic point-group symmetry directly to the transformation law of a physical quantity. Instead of starting from a crystal structure and identifying its crystallographic group, spacetime-sym lets researchers construct groups from spatial and reversal operations, specify the transformation character of a scalar, vector, or second-rank tensor, and ask whether that physical quantity is invariant. The same workflow extends to continuous Curie limits of finite axial point-group families, including magnetic and other dichromatic symmetries.
The current implementation brings several features together in a compact, scriptable Python API:
Invariance of physical quantities up to tensor rank two.
PhysicalQuantityassociates a scalar, three-component vector, or second-rank \(3\times3\) tensor with explicit spatial and dichromatic transformation factors. Under the same point group, a time-even polar vector, time-odd axial vector, pseudoscalar, or tensor may give a different invariance result.Spatial and dichromatic point groups, with multiple antisymmetry. User-defined \(O(3)\) operations (including \(SO(3)\) rotations and improper operations) can be combined with time reversal \(T\) and other independently configurable binary labels, such as \(C\). Independent reversals compose according to a \(\mathbb{Z}_2^k\) sign structure; \(6'mm'\) below illustrates a conventional magnetic point group.
Generator-based group closure. From finite spatial and dichromatic generators, the framework constructs their finite closure, including inverse and composed operations, while distinguishing operations with identical spatial matrices but different reversal-label combinations. For axial limiting groups, this finite part must also preserve the designated axis (up to sign); continuous rotations are accounted for by separate invariance checks rather than explicitly enumerated.
Continuous Curie limiting groups and dichromatic extensions. The axial families are obtained conceptually as the rotational order \(n\to\infty\) within \(O(3)\); isotropic groups represent full rotational symmetry. Dedicated axial and scalar classes combine these continuous symmetries with compatible spatial and dichromatic operations, including time reversal, and test invariance without sampling infinitely many rotation angles. The \(\infty m1'\) example below illustrates this approach; magnetic limiting groups were studied in the classical literature.
Extensible object-oriented architecture. Symmetry operations, symmetry groups, and physical quantities are represented by Python classes, with inheritance allowing specialized group types and custom transformation behavior. In particular,
LimitingSymmetryGroupAxialhandles axis- or line-related continuous symmetry, while its subclassLimitingSymmetryGroupScalarreuses the same framework for isotropic scalar and pseudoscalar symmetry. These groups can include spatial and dichromatic reversal operations and can be studied through a consistent class hierarchy. Operator overloading provides a natural algebraic interface:*composes symmetry operations, applies an operation to a physical quantity, and combines symmetry groups.Orientation-independent quantities. An optional
bidirectorflag treats a quantity and its negative as equivalent for relevant comparisons and invariance tests. This provides a practical representation of unoriented axes and some orientation-independent behaviors discussed by Hlinka.
How it relates to other symmetry software#
The Bilbao Crystallographic Server offers comprehensive crystallographic and magnetic-symmetry tools, including symmetry-adapted tensors through MTENSOR and STENSOR (2026), which also handles spin-point-group symmetry and user-defined tensor types. spglib and pymatgen provide mature crystal-structure and magnetic-symmetry analysis, including time-reversal operations in spglib and pymatgen; spgrep focuses on irreducible representations. MTEX provides sophisticated rotation, orientation and crystal-symmetry tools. Wolfram Language supports finite-group computations and tensor permutation symmetries, while MATLAB Symbolic Math Toolbox provides a general-purpose symbolic environment. The upstream bsym primarily targets symmetry-equivalent configurations and their enumeration.
By contrast, spacetime-sym is deliberately lightweight and physical-quantity-centric: its principal workflow is to construct a spatial or dichromatic point group, specify the transformation character of a scalar, vector, or second-rank tensor observable, and test its invariance directly in Python, including under axial and isotropic Curie limiting groups with supported dichromatic extensions. It complements the broader crystallographic and computer-algebra systems above. Among the tools surveyed here, we did not find a documented public API combining independently configurable binary reversal labels, generator-based finite closure, and direct invariance tests under both axial and isotropic continuous Curie groups. The comparison is based on their documented public APIs and areas of emphasis. For computational context, see also spglib (Togo et al., 2024) and Bilbao magnetic-structure tools (Tasci et al., 2025).
Potential applications and research directions#
Symmetry analysis can be useful long before a complete microscopic or numerical model is available: it can reject incompatible assumptions, identify admissible order parameters, and reveal which couplings merit further investigation. The following themes connect computational symmetry analysis with applications and research opportunities.
Multiple antisymmetry and coupled order parameters#
An important application is to examine how independent binary reversals constrain physical quantities and their couplings. Time reversal changes the sign of time-odd quantities, while a separately defined reversal can act on another order parameter, such as the sign of a static structural rotation. The latter rotation reversal is not simply the inverse of an ordinary spatial rotation: it acts on a structural degree of freedom in addition to the geometry described by conventional crystallographic groups. These extensions can reveal symmetry restrictions on magnetostructural, magnetoelectric, and other mixed responses. See Gopalan and Litvin (2011) and VanLeeuwen, Gopalan and Litvin (2014).
In spacetime-sym, users can introduce independent binary labels, such as T, C, or a model-defined Roto, assign the corresponding transformation characters to PhysicalQuantity objects, and generate the finite closure of compatible operations. The same approach works with supported axial and isotropic Curie limiting groups, where continuous symmetry is tested separately from the finite generated part. It enables reproducible point-group-level tests of candidate order parameters and response quantities without manually enumerating every combination of reversals.
Possible directions include ferroic switching, structural-rotation and magnetic-order couplings, and simplified charge-reversal models of collective excitations or plasmas. The physical meaning and parity of each additional label depend on the system under study; in particular, structural rotation reversal acts on an internal structural degree of freedom rather than on the inverse of a spatial rotation. For a wider treatment, see Padmanabhan et al. (2020) and Lifshitz (1997).
Free-energy invariance and constitutive models#
A practical application is symmetry validation of proposed free-energy, Landau, and phenomenological coupling terms. A candidate scalar expression should remain invariant under every symmetry of the parent phase or the specified physical environment. This matters for magnetic, ferroelectric, magnetoelectric, toroidal, and flexomagnetoelectric interactions, including couplings involving polarization, magnetization, gradients, and material tensors.
The API can check the transformation behavior and invariance of supported constituent quantities and explicitly represented candidate terms. This complements established tools such as ISOTROPY INVARIANTS and the Bilbao Crystallographic Server.
Ferroics, antiferromagnets, symmetry breaking, and phase transitions#
For ferroelectrics, ferromagnets, antiferromagnets, multiferroics, and magnetoelectrics, symmetry groups constrain admissible order parameters, response coefficients, and couplings. Comparing the transformation character of a physical quantity with a candidate high- or low-symmetry group can inform studies of spontaneous symmetry breaking and phase transitions, including questions about which polar, axial, or time-odd properties may appear in a broken-symmetry phase.
Hlinka’s eight-type classification includes time-odd neutral and time-odd chiral bidirectors, illustrating why the type of directional order parameter must be specified rather than inferred from the presence of three numerical components. The existing bidirector option provides an orientation-equivalence mechanism.
Chirality and its behavior under time reversal#
One motivation is to promote explicit symmetry-based descriptions of chirality, including its response to space inversion, mirror operations, proper rotations, and time reversal. This continues the approach developed in Magnetic symmetry based definition of the chirality in the magnetically ordered media (2011) and applied to magnetic domain walls and line defects within domain walls, referred to as Bloch lines in the latter paper.
The modern literature uses several related—but not interchangeable—descriptions: true/false chirality, time-invariant/time-noninvariant enantiomorphism, time-even/time-odd chiral quantities, and vector/scalar spin chirality. The last two are established mathematical observables: for spins \(\mathbf S_i\), vector spin chirality \(\mathbf S_i\times\mathbf S_j\) is time-even, whereas scalar spin chirality \(\mathbf S_i\cdot(\mathbf S_j\times\mathbf S_k)\) is time-odd. These terms should not be discarded, but their transformation properties should be stated explicitly, especially when comparing different kinds of chirality or magnetic textures. See the 2022 perspective on magnetic chirality, the 2025 review of structural chirality, and the 2025 discussion of chirality, chirality prime, and time chirality.
Magnetic textures, defect dimensionality, surfaces, and interfaces#
A useful organizing principle is the dimensionality of a defect in three-dimensional space, rather than the historical name of a particular magnetization profile:
Domain walls are two-dimensional interfaces separating magnetic regions (codimension one). Their internal spin rotation can have Bloch-like, Néel-like, or more general character.
Line defects are one-dimensional structures (codimension two), often occurring within domain walls and separating wall segments with distinct internal configurations. The terms Bloch line and Néel line occur in the micromagnetics literature, but their usage depends on the host wall and the magnetization texture. Here, line defect is the general term; Bloch line is retained when referring to a specific published work or established configuration.
Point defects are zero-dimensional localized structures (codimension three), including Bloch points in three-dimensional magnetization textures. A line defect viewed in a two-dimensional cross-section may appear point-like; that does not make it a Bloch point.
This dimensional hierarchy is especially useful for the group-theoretical classification of magnetization distributions and their magnetoelectric couplings. In particular, the magnetic point-symmetry classification of Bloch points is developed in Section 2.3 Symmetry classification of Bloch points (p. 37 onward) (Zenodo thesis; direct PDF, Section 2.3). The treatment relates admissible point-group symmetries of Bloch points to the symmetry and degeneracy of the surrounding line-defect configurations. The preceding Section 2.2, Symmetry classification of Bloch lines (p. 31 onward) addresses the line-defect case.
The axial and isotropic symmetry classes provide extensible building blocks for studying this dimensional hierarchy.
The same symmetry and object-oriented viewpoints can also inform studies of vortices, skyrmions, antiskyrmions, interfaces, and confinement effects; these textures should not all be conflated with point singularities. Their allowed responses can depend on the parent crystal symmetry, sample surface, interface, or boundary conditions.
Crystallography and aperiodic or quasicrystalline systems#
Conventional crystal symmetry remains an important application, but starting from point-group actions on observables also suggests useful studies where periodic translational symmetry is absent or secondary. In particular, quasicrystals can exhibit rotational symmetries forbidden for periodic lattices, and color symmetry has been systematically studied in periodic and quasiperiodic systems; modern work investigates their magnetism and multipolar order (for example, magnetic ordering in an icosahedral quasicrystal and symmetry classification of magnetism and altermagnetism in quasicrystals, 2026).
These systems offer opportunities to study the symmetry of explicitly represented observables at the point-group level.
Education and reproducible symmetry reasoning#
The library can support interactive university courses, computational notebooks, student projects, and reproducible research demonstrations. For example, students can compare polar and axial vectors, time-even and time-odd order parameters, scalars and pseudoscalars, or explore how adding a mirror operation or time reversal changes the invariants of a group. The \(\infty m1'\) and \(6'mm'\) examples on this page provide starting points. A broader aim is to encourage researchers and engineers to apply symmetry, chirality, and invariance methods routinely in fundamental and applied physics, not only in traditional crystallographic workflows.
Fundamental P, T, C, and CPT questions — a longer-term direction#
A more ambitious research direction is to explore the symmetry classification of candidate fields, order parameters, effective theories, and hypothetical vacuum states, including questions formulated in terms of P, T, C, and their combinations. Such investigations may help clarify which symmetry assumptions are being made and which proposed quantities would be allowed or forbidden by those assumptions.
Spatial and dichromatic point-group operations#
A spatial point-group operation is a geometric transformation about a fixed point; a dichromatic point-group operation may additionally include a discrete reversal such as time reversal. The geometric part is represented by a real orthogonal matrix \(R \in O(3)\) with \(R^\mathsf{T}R=I\). Proper rotations satisfy \(\det R=+1\) and form \(SO(3)\); reflections and other improper transformations have \(\det R=-1\).
The library constructs finite spatial and dichromatic point groups from generators and checks invariance of supported scalar, vector, and second-rank tensor representations under their operations. Its limiting-group classes additionally test continuous axial symmetry without enumerating infinitely many rotations. Independent binary labels compose by symmetric difference; for example, separate pure T and C generators yield the identity, T, C, and TC. The same finite closure can be generated inside a limiting group, whose full mathematical order remains infinite:
from spacetime import SymmetryOperationSO3, SymmetryGroup, LimitingSymmetryGroupAxial
t = SymmetryOperationSO3(dich_operations={"T"})
c = SymmetryOperationSO3(dich_operations={"C"})
finite = SymmetryGroup(symmetry_operations=[t, c])
axial = LimitingSymmetryGroupAxial(axis=[0, 0, 1], symmetry_operations=[t, c])
print(finite.order(), axial.order()) # 4 4 (finite generated part only)
print(sorted(tuple(sorted(op.dich_operations)) for op in axial.symmetry_operations))
# [(), ('C',), ('C', 'T'), ('T',)]
Here C is the package’s configurable classical charge-reversal label. Such independently composed binary reversals provide a representation of multiple antisymmetry.
For a three-component vector, its transformation in the current classical representation can be written as
Here \(\eta_P=+1\) identifies a polar vector, whereas \(\eta_P=-1\) gives the extra determinant factor appropriate to an axial vector. The time-reversal factor \(\eta_T=\pm1\) is applied when \(t=1\). In the Python API, these factors are specified through dich={"P": ..., "T": ...}.
Convention: dich["P"] is not by itself the sign of the transformed vector under full spatial inversion. The orthogonal matrix \(R\) already acts on the coordinates; the P entry controls the additional factor for an improper operation. The expression above describes the library’s classical vector representation.
Continuous symmetry: a Curie limiting group#
A uniform electric field along the \(z\) axis has the spatial Curie limiting point group \(\infty m\) (Schönflies notation: \(C_{\infty v}\)). Its operations include all rotations about \(z\) and all mirror reflections through planes containing \(z\). Unlike a crystallographic point group, it contains infinitely many rotations.
For example, the finite cyclic groups \(C_n\subset SO(3)\) contain rotations by integer multiples of \(2\pi/n\) around a fixed axis. In the limit \(n\to\infty\), these rotations fill the continuous axial group \(C_\infty\cong SO(2)\). Adding compatible mirrors, twofold axes, or inversion leads to the corresponding axial Curie limiting groups within \(O(3)\). Fully isotropic cases, \(\infty\infty\) and \(\infty\infty m\), instead involve rotations about every axis, corresponding to spatial \(SO(3)\) and \(O(3)\).
The implementation preserves this distinction: LimitingSymmetryGroupAxial tests axis- or line-related invariance, and LimitingSymmetryGroupScalar specializes the same class hierarchy for isotropic scalar and pseudoscalar quantities. Both can account for discrete spatial and dichromatic reversals, allowing magnetic limiting-group examples and the study of related symmetry restrictions. The mathematical group–subgroup hierarchy gives a useful framework for studying related symmetry restrictions. Relevant background on symmetry-adapted physical-property tensors for families of line groups is provided by Litvin (2014).
For a time-even polar quantity, such as electric polarization in this classical description, pure time reversal \(1'\) is also a symmetry. Including it produces the grey magnetic limiting group \(\infty m1'\). The distinction between \(\infty m\) and \(\infty m1'\) is important: the first symbol describes the spatial group, while the second includes the explicitly time-even extension.
For the chosen axis and vertical mirror plane, representative matrices are
The infinite rotational subgroup is not enumerated. Instead, LimitingSymmetryGroupAxial uses the supplied discrete generators alongside a specialized continuous-axis invariance test for supported physical quantities.
The standalone LimitingSymmetryOperationO3 and LimitingSymmetryOperationSO3 classes represent a limiting axis independently. For practical invariance testing, construct a LimitingSymmetryGroupAxial or LimitingSymmetryGroupScalar directly and supply compatible finite SymmetryOperationO3 or SymmetryOperationSO3 instances as generators. For the isotropic scalar class, these discrete spatial operations are restricted to identity and inversion (possibly with reversal labels).
import numpy as np
from spacetime import (
LimitingSymmetryGroupAxial,
PhysicalQuantity,
SymmetryOperationO3,
SymmetryOperationSO3,
)
mirror_xz = SymmetryOperationO3(matrix=np.diag([1, -1, 1]))
time_reversal = SymmetryOperationSO3(dich_operations={"T"})
group = LimitingSymmetryGroupAxial(
axis=[0, 0, 1],
symmetry_operations=[mirror_xz, time_reversal],
label="∞m1'",
)
polar_even = PhysicalQuantity(
value=[0, 0, 1], dich={"P": +1, "T": +1}
)
polar_odd = PhysicalQuantity(
value=[0, 0, 1], dich={"P": +1, "T": -1}
)
uniaxial_tensor = PhysicalQuantity(
value=np.diag([2.0, 2.0, 5.0]), dich={"P": +1, "T": +1}
)
print(group.is_invariant(polar_even)) # True
print(group.is_invariant(polar_odd)) # False
print(group.is_invariant(uniaxial_tensor)) # True
For a limiting group, group.order() reports the order of the finite generated part; the full mathematical group has infinite order, with continuous axial symmetry handled by the separate invariance test.
This example is based on the limiting-group unit tests and uses the standard short Hermann–Mauguin symbol \(\infty m\) as listed by the International Union of Crystallography.
References: P. Curie (1894), original paper; IUCr, Cylindrical system; International Tables for Crystallography, Point groups and crystal classes; J. Hlinka (2014); T. S. G. Krishna Murty and P. Gopalakrishnamurty, Magnetic symmetry and limiting groups, Acta Cryst. A 25, 333–334 (1969) (journal issue).
Finite magnetic point group: \(6'mm'\) (order 12)#
The finite magnetic point group \(6'mm'\) is a compact example involving both proper and improper spatial operations and time reversal. In the chosen coordinate convention, its generators are a 60° proper rotation about \(x\) combined with time reversal (\(6'\)), and an unprimed reflection in the \(xy\) plane (which contains the \(x\) axis). Their spatial matrices are
The rotation matrix belongs to \(SO(3)\), whereas the mirror belongs to \(O(3)\setminus SO(3)\). The prime on \(6'\) indicates a combined rotation–time-reversal operation. These two generators produce a group of 12 elements.
import numpy as np
from scipy.spatial.transform import Rotation
from spacetime import (
PhysicalQuantity,
SymmetryGroup,
SymmetryOperationO3,
SymmetryOperationSO3,
)
six_prime = SymmetryOperationSO3(
matrix=Rotation.from_rotvec([np.pi / 3, 0, 0]),
dich_operations={"T"},
)
mirror_xy = SymmetryOperationO3(matrix=np.diag([1, 1, -1]))
group = SymmetryGroup(
symmetry_operations=[six_prime, mirror_xy],
label="6'mm'",
)
print(group.order()) # 12
polar_even = PhysicalQuantity(
value=[1, 0, 0], dich={"P": +1, "T": +1}
)
polar_odd = PhysicalQuantity(
value=[1, 0, 0], dich={"P": +1, "T": -1}
)
axial_even = PhysicalQuantity(
value=[1, 0, 0], dich={"P": -1, "T": +1}
)
uniaxial_tensor = PhysicalQuantity(
value=np.diag([4.0, 2.0, 2.0])
)
print(group.is_invariant(polar_even)) # True
print(group.is_invariant(polar_odd)) # False
print(group.is_invariant(axial_even)) # False
print(group.is_invariant(uniaxial_tensor)) # True
These results show that geometric alignment alone does not establish invariance. The same axis can support a time-even polar vector and an invariant uniaxial tensor, while a time-odd polar or time-even axial vector fails the test. See the unit test test_invariants_symmetry_group_axis_refl_6m_dich for further cases, including pseudoscalars, off-axis vectors, and non-uniaxial tensors. An independent tabulation of \(6'mm'\) is available from MAGNDATA.
A practical example: parity and time reversal#
The package represents a physical quantity with its numerical value and a dictionary of dichromatic transformation factors. For three-dimensional vectors, P = +1 denotes an ordinary polar transformation under an improper spatial operation, while P = -1 supplies the additional sign needed for an axial vector. This is the package’s convention: the spatial transformation matrix is applied separately, so the dictionary’s P factor is not the total parity eigenvalue of a vector. For physical quantities, keeping the spatial action separate from the configurable P character accommodates different polar, axial, and tensorial transformation laws. For symmetry operations, however, SymmetryOperationO3 checks the determinant of the spatial matrix and automatically assigns P when \(\det R=-1\), rejecting a conflicting P assignment for proper rotations.
Physical example |
Spatial character |
Time reversal |
|
|---|---|---|---|
Electric polarization |
Polar |
Even |
|
Velocity |
Polar |
Odd |
|
Electric toroidal moment |
Axial |
Even |
|
Magnetization |
Axial |
Odd |
|
The following example uses the existing PhysicalQuantity, SymmetryOperationSO3, and SymmetryGroup interfaces:
from spacetime import PhysicalQuantity, SymmetryOperationSO3, SymmetryGroup
polarization = PhysicalQuantity(
value=[0, 0, 1],
dich={"P": +1, "T": +1},
label="electric polarization",
)
magnetization = PhysicalQuantity(
value=[0, 0, 1],
dich={"P": -1, "T": -1},
label="magnetization",
)
time_reversal = SymmetryOperationSO3(dich_operations={"T"})
reversal_group = SymmetryGroup(symmetry_operations=[time_reversal])
print(reversal_group.is_invariant(polarization)) # True
print(reversal_group.is_invariant(magnetization)) # False
This deliberately minimal calculation isolates the effect of time reversal. The earlier group examples show how the same transformation factors interact with rotations, reflections, and continuous axial symmetry.
Important
Classical charge-reversal symmetry (C)
In the current version, C is a configurable dichromatic charge-reversal label acting through a prescribed +1 or -1 factor on a PhysicalQuantity. This is useful in classical models where reversing the signs of source charges is a meaningful transformation: users can assign dich={"C": -1} to charge density and to electric or magnetic fields generated by charge-reversed sources, while a velocity field can be assigned dich={"C": +1} when particle trajectories are held fixed. A magnetic moment or magnetization may likewise be treated as C-odd when its modelled contribution changes sign with the carrier charge; the appropriate assignment depends on the physical model. These user-defined characters can be combined with spatial transformations and time reversal in the same invariance tests.
This simplified approach may be useful for idealized charge-symmetric plasmas (including electron–positron systems), charge-density and electromagnetic collective modes, and selected model problems involving polarization or electron–hole excitations. The transformation characters of specific collective modes and polarization observables depend on the physical model.
Notation: Hlinka’s C-type chiral bidirector and the software’s C label for charge reversal denote different concepts.
More executable examples in the test suite#
The test suite is currently the richest collection of short, runnable examples of the supported symmetry operations, group constructions, and physical-quantity transformations. It is a good place to look for additional cases beyond this introduction:
Symmetry groups and limiting groups: finite groups from generators, \(3\)-fold and \(6\)-fold rotations, mirrors, dichromatic operations, invariance checks, and Curie limiting groups (including the example behind \(6'mm'\)).
Symmetry operations: \(SO(3)\)/\(O(3)\) operations, inverses, reflections, scalars, and pseudoscalars.
Physical quantities: construction of scalars, vectors and tensors, dichromatic flags, and bidirector comparisons.
The tests also provide executable reference material, including fixtures and internal conventions.
Documentation#
Installation (Python 3.12+): python -m pip install spacetime-sym (PyPI).
The API pages below are generated from source-code docstrings.
Scope and development roadmap#
spacetime-sym 1.0 provides a classical point-group framework for scalar, vector, and second-rank tensor invariance, finite group closure from generators, configurable binary reversal labels, and axial and isotropic Curie limiting groups. The following directions will guide future extensions of the code and documentation, subject to scientific validation and community contributions:
Multiple antisymmetry and physical representations. Extend the independent binary-label framework toward more general color-permutation symmetries and a fuller algebra of the eight vectorlike types discussed by Hlinka (2014). The current
bidirectoroption captures orientation equivalence; future work will address additional transformation structures and model-specific physical interpretations. The distinction between classical charge reversal, condensed-matter particle–hole symmetry, and relativistic charge conjugation will remain explicit. See Lifshitz (1997), VanLeeuwen et al. (2014), and Padmanabhan et al. (2020).Tensor algebra, invariants, and constitutive models. Develop composite and higher-rank tensor representations, symbolic free-energy expressions, and automated generation of invariant polynomial terms. Existing approaches such as ISOTROPY INVARIANTS and Bilbao STENSOR offer useful scientific context and comparison points.
Symmetry discovery and material structures. Extend the framework toward subgroup-lattice analysis, automatic symmetry identification from atomic or spatially varying fields, and dedicated treatment of domain walls, Bloch and Néel lines, Bloch points, skyrmions, interfaces, and surfaces. Further directions include quasicrystal and superspace-group methods, phason degrees of freedom, and higher-dimensional crystallography. Relevant foundations include Litvin (2014) and the related micromagnetic-symmetry thesis, especially §§2.2–2.3 and 3.1.
Relativistic and fundamental-symmetry representations. Investigate mathematically faithful spinor-level charge conjugation, antiunitary time reversal, relativistic field transformations, and possible CPT-related applications. These extensions will require new representations and physics-specific validation beyond the classical
Csign label used for charge-dependent observables.Documentation and examples. Expand the existing API reference with a getting-started guide (installation is described in the README), dedicated Theory chapters covering \(O(3)\)/\(SO(3)\), dichromatic and Curie groups, physical-quantity conventions and chirality, and tests-derived tutorials on invariance, ferroics, magnetic textures, and surfaces. Expanded citation, licensing, attribution, and release-history guidance is also envisaged.
The comparison with other symmetry packages above covers their documented public interfaces, rather than an exhaustive survey of every implementation. If a feature or research application matters to you, please file a feature request or propose a pull request with a reproducible example, relevant physical transformation rules, and references. Contributions to the roadmap are welcome.
Invitation to collaborate and contribute#
spacetime-sym is an invitation to develop and apply symmetry-based reasoning across scientific disciplines. We welcome discussions and cooperation with researchers, educators, software developers, startups, established enterprises, and investors interested in research software and physics-driven technologies.
Academic and scientific collaboration: joint studies, model and invariant validation, benchmark cases, educational material, new mathematical representations, and scientific publications, particularly in magnetism, ferroics, chirality, symmetry breaking, and theoretical physics.
Startups and enterprises: proof-of-concept work, symmetry-validation workflows for research and engineering, integration into simulation pipelines, custom functionality, and commercial licensing for use cases that require an alternative to GPL-3.0.
Investors and technology partners: conversations about research-to-product pathways, sustainable development of scientific software, commercial applications, and partnerships that support long-term maintenance and scientific advancement.
Open-source contributors: everyone is welcome to propose improvements, file issues, add or extend unit tests, correct documentation, contribute reproducible examples, suggest additional symmetry classes, or submit pull requests. Contributions from students and early-career researchers are especially welcome.
Start here: GitHub repository · Issues and feature requests · Pull requests · Test suite.
For scientific partnerships, enterprise integration, commercial licensing, or investment discussions, contact info@deeptech.business. Project and commercial information may also be shared via deeptech.business. For substantial third-party code contributions, please coordinate licensing and attribution requirements in advance so that contributions remain compatible with the project’s dual-licensing model.
Project, attribution, and licensing#
spacetime-sym is developed by Dr. Bogdan Tanygin and is based on bsym by Benjamin J. Morgan. The original project and its retained contributions are acknowledged in the repository’s attribution and license files.
The library is offered under GPL-3.0 or under a separately negotiated commercial license. Commercial licensing inquiries: info@deeptech.business.
Source code: GitHub — spacetime-sym
Published package: spacetime-sym on PyPI
Software release and DOI: Zenodo — spacetime-sym (
10.5281/zenodo.24294664)Related research thesis: B. M. Tanygin, Magnetoelectric Properties and Symmetry Classification of Micromagnetic Structures (Zenodo). See especially §2.2 (line defects / Bloch lines), §2.3 (magnetic point-symmetry classification of Bloch points), and §3.1 (sample-surface effects on domain-wall symmetry).
Upstream software: B. J. Morgan, bsym: A basic symmetry module, JOSS (2017)
Selected scientific background#
The following 16 selected works span the classical foundations, multiple antisymmetry and color groups, tensor invariance, and contemporary computational methods. Four are related research contributions by the developer; the remaining twelve provide independent context. References are also linked at the relevant discussions above.
P. Curie (1894), Sur la symétrie dans les phénomènes physiques, symétrie d’un champ électrique et d’un champ magnétique. DOI.
T. S. G. Krishna Murty and P. Gopalakrishnamurty (1969), Magnetic symmetry and limiting groups, Acta Crystallographica A 25, 333–334. Journal issue.
R. Lifshitz (1997), Theory of color symmetry for periodic and quasiperiodic crystals, Reviews of Modern Physics 69, 1181–1218. DOI.
V. Gopalan and D. B. Litvin (2011), Rotation-reversal symmetries in crystals and handed structures, Nature Materials 10, 376–381. DOI.
B. K. VanLeeuwen, V. Gopalan and D. B. Litvin (2014), Double antisymmetry and the rotation-reversal space groups, Acta Crystallographica A 70, 24–38. DOI.
D. B. Litvin (2014), On physical property tensors invariant under line groups, Acta Crystallographica A 70, 138–142. DOI.
J. Hlinka (2014), Eight Types of Symmetrically Distinct Vectorlike Physical Quantities, Physical Review Letters 113, 165502. DOI.
B. J. Morgan (2017), bsym: A basic symmetry module, Journal of Open Source Software 2(16), 370. DOI.
H. Padmanabhan, J. M. Munro, I. Dabo and V. Gopalan (2020), Antisymmetry: Fundamentals and Applications, Annual Review of Materials Research 50, 255–281. DOI.
A. Togo, K. Shinohara and I. Tanaka (2024), Spglib: a software library for crystal symmetry search, Science and Technology of Advanced Materials: Methods 4. DOI.
E. S. Tasci, L. Elcoro, J. M. Perez-Mato, G. de la Flor, G. Madariaga and M. I. Aroyo (2025), Computational analysis tools for magnetic structures in the Bilbao Crystallographic Server, Acta Crystallographica B. DOI.
L. Elcoro, J. Etxebarria, J. M. Perez-Mato and E. S. Tasci (2026), Automatic calculation of symmetry-adapted tensors under spin-group symmetry: STENSOR, a new tool of the Bilbao Crystallographic Server, Journal of Applied Crystallography 59, 640–647. DOI.
B. M. Tanygin (2011), Magnetic symmetry based definition of the chirality in the magnetically ordered media, Physica B: Condensed Matter 406, 3423–3424. DOI.
B. M. Tanygin (2011), Symmetry theory of the flexomagnetoelectric effect in the magnetic domain walls, Journal of Magnetism and Magnetic Materials 323, 616–619. DOI.
B. M. Tanygin (2012), Symmetry theory of the flexomagnetoelectric effect in the Bloch lines, Journal of Magnetism and Magnetic Materials 324, 1659–1663. DOI.
B. M. Tanygin, Magnetoelectric Properties and Symmetry Classification of Micromagnetic Structures. Thesis on Zenodo, especially §2.2–2.3 and §3.1.