WorksPhysics and Astronomy
Automated Generation of Commensurate Magnetic Structures based on Spin Space Groups and Graph Theory
Abstract
Magnetic structures with symmetry constraints are candidates for energetically favorable configurations. Enumerating these structures is essential for identifying experimental observations and provides unbiased, linearly stable, and optimally sampled reference configurations for energy fitting when extracting spin interactions. We present SpinGraph, an automated workflow generating symmetry-distinct magnetic configurations. SpinGraph is not only compatible with the more general spin space groups, but also allows precise control of the prescribed single- or multi-Q states superposition. For finite groups, we enumerate compatible subgroups directly. For spin space groups with a continuous or special spin-only part, the finite component is enumerated first and then combined with the compatible exact spin-only constraints. These actions are translated into graph constraints in real or Fourier space. The symmetry of every generated structure is re-evaluated after construction. Finally, we integrate SpinGraph with the magnetic analysis code AMATIS to perform a thorough calculation for the spin interactions of the insulating monolayer CrI3. SpinGraph complements the last part of AMATIS and realizes the fully automated workflow for the spin Hamiltonian construction, which is essential for studying phase transitions, spin textures, magnons, and spin dynamics.
INTRODUCTION
A long-standing goal of computational magnetism is to describe magnetic ground states, collective excitations, and phase transitions in agreement with experiment. Effective Hamiltonians make this problem manageable by retaining only the degrees of freedom relevant to the phenomenon of interest. For magnetism, this leads to the development of the spin model that traces back from the Heisenberg model [1, 2, 3] to models with relativistic and higher-order interactions [4, 5, 6, 7, 8], and finally the recent general tensorial model [9]. Once their coefficients have been obtained from first-principles calculations, these models can be transferred into various post-processing calculations. Energy mapping is a central algorithm to extract spin interaction coefficients from the Schrödinger electronic structure. It uses the total energies of a set of magnetic configurations to fit into the energy landscape within a predefined framework of the spin model. The quality of the fit depends heavily on the choice of the configurations.
Symmetric magnetic structures are configurations that remain invariant under symmetry operations belonging to various groups. They are energy-degenerate points that are well-spread over the configuration space. Statistically, sampling symmetric structures can increase the linear stability of the fitting. They are also highly likely to be the local energy minimum, which is accessible via the self-consistent calculation. Even without the fitting procedure, the ground states of most magnets can be tractable via enumerating the symmetry structures and comparing their total energies. Therefore, it is of great significance to list symmetry magnetic structures, especially in an automated workflow so that density functional theory can be implemented in a high-throughput way. Previously, superpositions of spin spiral states were prepared by hand in AMATIS[9], catering only to the magnetic space groups [10]. This way of selection already reproduces a robust fitting of the spin interactions. Here, we aim to develop an automated workflow for generating symmetric structures in the expanded framework of the spin space group, which is important for diverse magnet data construction.
Current methods commonly involve two ways to generate symmetry magnetic structures. One imposes a magnetic space group directly and keeps the structures that obey it [11, 12], such as Bilbao Crystallographic Server and JANA2020 that construct commensurate and incommensurate structures using magnetic superspace groups [10, 13, 14, 15]. The other uses representation analysis within Landau theory [16, 17, 18, 19]. BASIREPS implements Bertaut’s representation analysis [20], and SARAh provides online representation-analysis tools [21]. More recently, spin-space-group symmetry has been incorporated into magnetic-structure generation. [22] constructed spin-symmetry-adapted structures from totally symmetric representations of oriented spin space groups, while [23] developed a symmetry-guided framework for systematically generating magnetic configurations and predicting magnetic ground states. Though these approaches provided important foundations for the recent magnet data structure constructions, there remain a few limitations for each of them. For instance, representation-analysis methods naturally incorporate prescribed propagation () vectors, but their conventional formulations are not readily compatible with general spin-space-group symmetries. Conversely, existing spin-space-group-based methods can generate structures with prescribed spin symmetry, but do not directly provide systematic construction under specified single- or multi- constraints. Explicit propagation-vector constraints are important because magnetic Bragg peaks may identify the relevant propagation vector(s) without uniquely determining the underlying magnetic structure [11, 24].
We therefore developed SpinGraph, an automated workflow that is compatible with both the aforementioned requirements of the spin space groups framework and the propagation-vector constraints. It uniquely formulates magnetic-structure generation as a graph-constrained problem, enabling an exact treatment of continuous spin-only components and a unified description of real-space, Fourier-space, supercell, and propagation-vector constraints within a single workflow. We demonstrate the method using CrI as a representative example, where SpinGraph systematically generates symmetry-distinct magnetic structures under different supercell and constraints and reproduces the expected symmetry relations. Using 396 generated configurations for energy mapping, we further recover the few dominant Heisenberg exchange, anisotropic interactions, and higher-order spin interactions consistent with the established magnetic behavior of CrI.
Results
SpinGraph framework
SpinGraph provides three schemes for calculating symmetry-constrained magnetic structures. The first constrains only the supercell size, the second constrains the propagation vectors of the magnetic structure, and the third constrains both the supercell size and the propagation vectors. The program then decomposes the continuous and discrete parts of the spin space group (SSG), combines them, and attempts to construct SSGs with different symmetry-breaking patterns. For each newly constructed SSG, the program identifies its generators and the infinitesimal generators of its Lie-group part, constructs the graph structure, and solves the linear null space. Finally, zero-total-magnetic-moment constraints or equal-magnetic-moment constraints are added to obtain the magnetic structures.
Spin space group action
An SSG is a symmetry group in which the spin and spatial parts are decoupled, and therefore has more degrees of freedom than a conventional magnetic space group (MSG)[25, 26, 27]. When the spin and spatial parts are locked together, the SSG reduces to an MSG. An operation is written as
where and act on real-space crystallographic coordinates, rotates the spin, and marks an operation containing time reversal [27]. Their product is the operation that acts on the axial magnetic moment. Let be the set of discrete vectors with integer components, with the basis of the primitive Bravais lattice, and the set of supercell translation vectors. For the finite set of magnetic sites in that supercell, the action on a site position and its magnetic moment is
Here, is the supercell translation relating the transformed site to representative , and is the axial magnetic moment at . We use for the crystallographic phase when the propagation vector is in reciprocal-lattice units and is a lattice translation, with the customary factor included. For the complex Fourier amplitude at site and propagation vector , where is the selected set of allowed propagation vectors. The reciprocal-space action is
Here, is the set of the reciprocal lattice which is one-to-one corresponds to , denotes the reciprocal-space action of , and is the transformed propagation vector. For a real magnetic structure, and appear in pairs, and their Fourier components satisfy a complex-conjugation constraint. To treat this conjugation constraint uniformly within the graph structure, the complex Fourier components are realified into six-dimensional vectors. Supplementary Notes 1 and 4 derive the phase and compare the linear and anti-linear conventions for time reversal[28, 29].
Compatible symmetry
The three compatible groups used by the workflow are the supercell stabilizer , the propagation-vector stabilizer , and their joint stabilizer , defined by
denotes the set of operations that leave the crystal structure invariant when the supercell is taken as the reference unit. Similarly, contains the operations that permute the selected propagation vectors. denotes the set of operations allowed under both the supercell constraint and the -set constraint. In the following, denotes the symmetry group selected in the calculation, with pure supercell translations in understood to have been quotiented out. Supplementary Note 2 gives the subgroup proofs[28].
If is the identity component, i.e., the connected subgroup containing the identity element and all symmetry operations continuously connected to it, the discrete symmetry is represented by the finite component group,
For a finite parent group, and this quotient is simply the original compatible group. We enumerate the subgroups of and then restores the compatible spin-only constraints. The subgroups of the discrete component group are enumerated using its Cayley table, and details are provided in Supplementary Note 3 [28]. However, a continuous parent’s exact closed subgroups generally do not form a finite list [30, 31]. The algorithm therefore separates the finite and spin-only parts. For every enumerated subgroup , it selects a spin-only subgroup that is contained in the parent spin-only factor and is normalized by the finite subgroup,
Here and below, is understood through a chosen representative in . For magnetic-structure construction, spin-only subgroups that impose the same constraints on the allowed spin directions are treated as equivalent and need not be solved repeatedly. The corresponding subgroup relations are discussed in Supplementary Note 3 [28].
Graph constraints and solution spaces
For a selected subgroup candidate , let denotes the generators of its finite representative. We write for a magnetic configuration and for the linear action of . If
then the same relation holds for every product of these generators and their inverses. In particular,
If has a nontrivial identity component , its connected spin-only action is imposed through the Lie algebra
where is the infinitesimal action induced by . requires one independent generator, whereas requires three [32, 33, 34]. Coplanar constraints are imposed directly by projecting the spins onto the selected plane.
The discrete generator actions define either a real-space graph or a Fourier-space graph . Let be the variable at vertex . Each directed edge stores a matrix relating its source to its target ,
In real space, . In Fourier space, it is the form of a complex amplitude. In , each site is a vertex, and (2) supplies the edge matrix . In , a vertex is a pair , and the edge matrix also contains the phase in (3). Using the constructed graph and the transport relations, linear constraints can be obtained by identifying the fundamental cycles of the graph. A graph may contain multiple connected components, and independent degrees of freedom are not shared between different components, whereas vertices within the same component share the same set of independent degrees of freedom. For each connected component, a spanning tree transports a reference variable through the component, , while each remaining edge imposes a cycle-consistency condition [35, 36].
Stacking these conditions together with the continuous and planar constraints gives
The third equation shows that the basis vectors at the other vertices within a connected component can be obtained through the transport relations and are not independent. Supplementary Note 5 gives the group constraints and fundamental-cycle details [28, 37, 38].
Fourier-space restriction and projection
Let be the space of all magnetic configurations in the selected supercell, and let contain only the Fourier components in . In a real-space calculation restricted to , the projector removes all other Fourier components. Because both the supercell constraint and the -set constraint must be satisfied, the corresponding symmetry group is , and the resulting solution space is
Thus, projecting the real-space solution onto gives the same solution space as solving directly in Fourier space. The equivalence is proved in Supplementary Notes 6 and 7 [28].
Although the real-space calculation is performed using , the resulting magnetic structures may still contain propagation vectors outside . Therefore, the basis obtained from the real-space calculation must be projected onto the allowed subspace using the projection operator. Thus, the real-space basis is projected as
Construction of physical magnetic structures
After obtaining the symmetry-allowed basis, additional physical constraints are imposed directly on its global coefficients. A zero-total-spin condition further reduces the allowed coefficient space, and an equal-moment-length condition constrains the remaining coefficients. In contrast, normalizing each site independently may break these relations or introduce Fourier components outside . The detailed procedure is given in Supplementary Note 8 [28].
The symmetry used to construct a magnetic structure is not necessarily its full symmetry, because a particular solution may have additional operations. Therefore, after a structure is generated, we should check all allowed spatial and spin operations and determine its maximal stabilizer , after which the full symmetry operations are verified against the magnetic structure [26, 39, 40, 41].
SpinGraph workflow
The inputs are a crystal structure, the magnetic sites, the spin space group operations, and a supercell, a propagation-vector set , or both. The output contains the allowed magnetic basis together with the subgroup and graph information used to obtain it. Figure 1 summarizes the following steps.

Figure 1. Overall workflow of SpinGraph. The crystal structure, selected magnetic sites, supercell, and prescribed propagation-vector set define a finite magnetic problem. SpinGraph finds the compatible group and its subgroups, converts their actions into graph constraints, and solves each connected component. It then restricts the basis to the requested Fourier components, reconstructs the magnetic structures when needed, and checks them against the full symmetry. The program uses spglib and findspingroup for crystallographic symmetry analysis [41, 42].
Prepare the input data. SpinGraph reads the CIF, determines the crystallographic symmetry and Wyckoff positions with Spglib, and expands the selected magnetic sites into a supercell [42]. The parent magnetic or spin space group operations are then obtained from Spglib, FindSpinGroup, or a user-supplied SSG file [41]. For Fourier calculations, the program also completes the input propagation-vector set for real conditions.
Select the compatible operations. Each parent operation is tested using (4). Depending on the calculation mode, it gives , , or . The program verifies the identity, closure, and inverses of the group. For a continuous SSG, the finite component is used here, while the continuous spin constraints are retained separately.
Enumerate the subgroups. The finite subgroups are enumerated by cyclic extension of the Cayley table [43, 44, 45]. For a continuous parent, this step is applied to its finite component group, and each finite subgroup is then combined with the spin-only axial, plane-reflection, or trivial constraint allowed by (6). Then the corresponding groups are identified by Spglib or FindSpinGroup.
Build the constraint graph. The generators in are applied to all graph vertices. Real-space edges relate magnetic moments on different sites, while Fourier-space edges relate amplitudes at different sites and propagation vectors. Continuous spin symmetries are added as exact local linear constraints as self-loops.
Solve the graph constraints. The graph is divided into connected components [35, 36]. A spanning tree, generated by BFS [36], transports a reference vector through each component, and the remaining edges provide a complete set of consistency conditions. Solving these conditions gives the allowed real-space or Fourier-space basis and its free parameters.
Apply the additional restrictions. For a joint calculation in the real-space representation, SpinGraph projects the solved basis onto the requested propagation vectors and removes zero or dependent basis vectors. When magnetic structures are generated, optional zero-total-spin and equal-moment constraints are imposed on the complete global coefficient space. Only one common scaling factor is applied, while sitewise normalization is not used.
Generate and validate the output. The component bases are combined into the full magnetic basis, and generated moments are transformed to Cartesian coordinates. SpinGraph checks the complete subgroup, the continuous constraints, the prescribed Fourier support, and any enabled magnetic constraints. After equivalent structures are removed, the stabilizer of each magnetic configuration is recomputed.
Magnetic-structure generation and validation
Magnetic-structure generation using a CrI3 monolayer
We compare the three calculation modes using the same monolayer CrI3 structure. It belongs to (No. 162), and the two Cr atoms at the Wyckoff position, and , are chosen as magnetic sites. The parent symmetry is spin space group 162.157.8.1. For a direct comparison, we use the same embedded spin space group 10.6.1.3 in all three cases.
In , we use a supercell and place no restriction on , and the Fourier decomposition may contain , , and . For spin space group 10.6.1.3, the six Cr sites form three independent pairs. Each pair has an in-plane basis direction , where , and an out-of-plane direction . This gives six real free parameters, as listed in Table 1.
| Site | Coordinate | Moment |
| Cr | ||
| Cr | ||
| Cr | ||
| Cr | ||
| Cr | ||
| Cr |
Table 1. result for parent spin space group 162.157.8.1. The table gives the real-space basis of spin space group 10.6.1.3. Here , , and are independent real coefficients. The label Cr denotes primitive-cell site in translation copy .
AMATIS calculations for monolayer CrI3
In , we choose , so the effective set is . Spin space group 10.6.1.3 has one connected component and four real free parameters. Here, we define , , and . The amplitudes at are given in Table 2, while . The real-space spin is reconstructed as , where is the translation of cell . The conjugate pair makes the reconstructed spin real and removes the component.
| Site | Coordinate | |
| Cr | ||
| Cr |
Table 2. result for parent spin space group 162.157.8.1. The table gives the Fourier basis of spin space group 10.6.1.3 at . Here , , , and . The four coefficients are independent and real.
In , we use the same supercell, . The three Cr-site pairs found in remain, but the projection couples their coefficients and reduces the basis from six to four real parameters. Equivalently, the three moments on each Cr sublattice sum to zero, so the component vanishes. Table 3 lists the resulting real-space basis. The calculation imposes the restriction directly in Fourier space, while the calculation obtains the same restricted space by projecting the real-space basis, since in this case.
| Site | Coordinate | Moment |
| Cr | ||
| Cr | ||
| Cr | ||
| Cr | ||
| Cr | ||
| Cr |
Table 3. result for parent spin space group 162.157.8.1. The table gives the real-space basis of spin space group 10.6.1.3 for a supercell and . Here , , and , , , are independent real coefficients.
Multi-Wyckoff real-space validation using FeGeTe
This example checks whether the algorithm keeps inequivalent magnetic Wyckoff orbits separate in one calculation. The Fe sublattice of FeGeTe in a cell has two orbits, Fe1 and Fe2, each containing six sites.
The chosen group has BNS label 166.101. Its real-space graph contains all 12 Fe sites but splits into two six-site components, and , for Fe1 and Fe2. Symmetry relates the sites within each component, but no graph edge relates the amplitudes of the two inequivalent orbits. All Fe moments within one component are therefore parallel to the crystallographic axis, while and remain independent. Table 4 shows the result site by site.
| Site | Fractional coordinate | Magnetic moment |
| Fe | ||
| Fe | ||
| Fe | ||
| Fe | ||
| Fe | ||
| Fe | ||
| Fe | ||
| Fe | ||
| Fe | ||
| Fe | ||
| Fe | ||
| Fe |
Table 4. Orbit-resolved Fe moments in the multi-Wyckoff test. The two inequivalent Fe orbits are listed with their symmetry-related coordinates and the moment relations for BNS 166.101. Their independent amplitudes are and . The table tests whether the program keeps the two orbits separate and should not be read as a predicted magnetic ground state.
However, Table 4 is not a prediction of the magnetic ground state. Symmetry fixes the allowed directions but not the values or relative sign of and , and it does not compare the energies of the allowed states. That would require an energy calculation or experimental input. Here the result only shows that the program treats the two Fe orbits separately and combines their allowed moments correctly.
Spin interactions in monolayer CrI
The magnetic configurations generated by SpinGraph are used as input to AMATIS to extract the tensorial spin interactions. We consider monolayer CrI, a two-dimensional honeycomb insulator with space group (No. 162). The magnetic Cr atoms occupy the Wyckoff position, with spin .
For the rank-2 interactions, the cutoff radius is set to Å. This includes the single-ion anisotropy tensor and five two-site tensors up to . For the rank-4 interactions, we include two-site tensors in which each site appears twice, up to the second-nearest-neighbor tensor . No rank-4 single-ion term is included because . The spin model is fitted using the 396 magnetic configurations generated above. The smallest supercell commensurate with all these configurations is , and the total energies of all configurations are therefore calculated using this supercell. The fitted rank-2 and rank-4 tensor components are provided in the Supplementary Note 10 [28], which is consistent with [9].
The extracted interactions are consistent with the experimental description of monolayer CrI as an Ising-type ferromagnet[46]. Both the single-ion anisotropy, 0.52 meV per Cr, and the two-ion anisotropy, 0.43 meV per Cr, favor out-of-plane spin polarization. The first three nearest-neighbor Heisenberg interactions are dominant and give a Curie temperature of about 45 K. In addition to the two-ion anisotropy, the symmetric exchange contains a bond-dependent Kitaev-like interaction. For the nearest-neighbor bond, its preferred plane is the Cr-I-Cr-I rhombus shown by the green plaquette in Figure 2 (a). Although inversion symmetry forbids a net Dzyaloshinskii–Moriya interaction, local inversion-symmetry breaking along second-nearest-neighbor Cr bonds allows antisymmetric exchange interactions of about 0.20 meV.

Figure 2. Spin interactions in monolayer CrI3. a, Schematic illustration of the primitive-cell structure of CrI, which crystallizes in space group No. 162, with Cr atoms occupying the magnetic Wyckoff position 2. The green plaquette indicates the local Cr-I-Cr-I rhombus plane associated with the nearest-neighbor Kitaev-like interaction. b, Number of magnetic configurations generated for different symmetries, classified by their Belov–Neronova–Smirnova (BNS) identifiers or SSG identifiers. The numerical order of these identifiers does not indicate a symmetry hierarchy. The detailed distribution is provided in the Supplementary Table 1 [28]. c, Projections of the nearest-neighbor two-ion rank-2 tensor onto the configuration subspaces. More generally, denotes the th rank- interaction tensor involving sites. For multisite tensors, the index is assigned in ascending order of intersite distance. The vectors , , and collect the diagonal, antisymmetric off-diagonal, and symmetric off-diagonal configuration coefficients, respectively. Their component definitions and the full tensor-naming convention are provided in Supplementary Note 1 [28]. d–f, denotes the isotropic Heisenberg exchange, the Euclidean norm of the Dzyaloshinskii–Moriya vector, and the Frobenius norm of the traceless symmetric exchange matrix normalized by . The definitions of these scalar quantities and the tensor-naming convention are provided in Supplementary Note 1 [28]. The gray-shaded regions indicate the fitting error of 0.10 meV per unit cell.
Discussion
SpinGraph provides a comprehensive workflow for generating commensurate magnetic structures, capable of producing a series of magnetic structures with different symmetry-breaking patterns. This method can simultaneously handle both spin space groups and magnetic space groups, and can properly treat the continuous components of these groups. Furthermore, the algorithm transforms symmetry constraints into graph constraints and constructs the corresponding linear null-space problem for solution, thereby avoiding the need to establish systems of linear equations containing a large number of redundant relations, while also offering good interpretability.
During the generation of magnetic structures, constraints such as zero total magnetic moment and equal moment magnitude can be further introduced to ensure that the resulting structures meet the corresponding computational requirements. The algorithm’s different computational modes share the same underlying graph structure: the real-space mode handles supercell periodicity, the Fourier mode handles a specified propagation-vector set , and the combined mode applies both types of constraints simultaneously. Consequently, this method can generate magnetic structures that simultaneously satisfy strict propagation-vector constraints and symmetry requirements, thereby covering cases that are difficult for traditional magnetic-structure generation programs to handle directly.
The final result is a space of candidate magnetic structures permitted under the given symmetry conditions, rather than the energetic ground state. The relative stability of the candidate structures still requires further evaluation through spin models, first-principles calculations, or experiments. In the future, spin superspace groups could be introduced to extend this framework to the generation of incommensurate magnetic structures.
METHODS
Symmetry identification and databases
Crystal symmetries and Wyckoff positions are identified using Spglib[42]. When the spin-space symmetry reduces to an ordinary magnetic space group, Spglib is also used to identify the corresponding magnetic subgroup and the magnetic symmetry of the final generated structure. For spin-space group calculations, the parent SSG is constructed from the spin-space group database implemented in FindSpinGroup[41]. The same database and identification routines are then used to identify the generated subgroups and the final spin-space group symmetry of each magnetic structure.
First-principles calculations
The ab initio calculations were performed using the Vienna ab initio Simulation Package (VASP)[47, 48] with the projector augmented-wave (PAW) method[49, 50]. The Cr , , and orbitals and the I and orbitals were treated as valence states. A plane-wave cutoff energy of 520 eV and a -point mesh were used for monolayer CrI. The electronic energy convergence criterion was set to eV, and spin–orbit coupling and noncollinear magnetism were included.
The exchange-correlation functional was treated within the local spin-density approximation (LSDA)[51], together with a Hubbard eV applied to the Cr orbitals, following Refs. [52, 53]. The experimental in-plane lattice constant Å was used[46, 53]. The out-of-plane lattice parameter was set to Å, providing a vacuum spacing exceeding 20 Å to avoid interactions between periodic layers. Atomic positions were relaxed until the residual forces were below 0.03 eV/Å.
A supercell was used for the total-energy calculations. The noncollinear magnetic configurations generated by SpinGraph were imposed using constrained magnetic moments[54], and the resulting total energies were used for the subsequent spin-interaction fitting.
AMATIS calculations for monolayer CrI
We extract the spin interactions from the generalized spin Hamiltonian using AMATIS (Automated Magnetism Analysis via Tensorial Interacting Spins)[9, 55]. The symmetry constraints of P1m (No. 162) and the spin power limit are switched on. The truncated length of the rank-2 tensorial interaction, including spin-orbit coupling (SOC), is set to 12Å, up to ; we also consider the non-relativistic part of . This setting ensures that as many interactions as possible are taken into account for a supercell of . For rank-4 tensors, the two-ion interactions with both site multiplicities of 2 are taken into account, up to the second-nearest-neighbor . We use 396 SpinGraph-generated symmetric magnetic configurations to calculate the total energies from first principles. The choice of the truncated lengths as well as the number of configurations for the energy fitting is already validated by the two-sided convergence tests[9], yielding the genuine systematic error of 0.10 meV per unit cell.
Data Availability
The data generated and analysed during this study are available from the corresponding author upon reasonable request.
Code Availability
The source code, manual, and tutorial package of SpinGraph are released in Zenodo (10.5281/zenodo.21947648). The archived code will be made available to the editors and reviewers during peer review upon request. A public GitHub repository will be released after submission, and the Zenodo record will serve as the persistent archived version of the code associated with this work.
Acknowledgements
H.L. acknowledges financial support from the National Key R&D Programs of China (No. 2025YFA1411000 and 2024YFA1410200), the Beijing Natural Science Foundation (No. 2232055), and the National Natural Science Foundation of China (No. 12204027). S.B. acknowledges financial support from the European Research Council (ERC) grant 856538 (project "3D MAGIC") and from the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) through SFB 1238 (Project C1).
Author Contributions
H.L. conceived the idea and supervised the project. Y.W. developed the theoretical framework, implemented the SpinGraph code, analysed the results, and wrote the manuscript. B.D. performed the first-principles calculations and contributed the corresponding computational data. S.B. reviewed the manuscript and provided critical feedback. J.R. and W.Z. provided scientific guidance and contributed to discussions. All authors discussed the results, reviewed the manuscript, and approved the submitted version.
Competing Interests
The authors declare no competing interests.
References
- [1]Heisenberg, W. On the theory of ferromagnetism. Z. Phys. 49, 619–636 (1928).
- [2]Van Vleck, J. H. On the anisotropy of cubic ferromagnetic crystals. Phys. Rev. 52, 1178–1198 (1937).
- [3]Anderson, P. W. Antiferromagnetism. Theory of superexchange interaction. Phys. Rev. 79, 350–356 (1950).
- [4]Moriya, T. & Yosida, K. On the origin of the anisotropy energy of CuCl₂·2H₂O. Prog. Theor. Phys. 9, 663–675 (1953).
- [5]Moriya, T. Anisotropic superexchange interaction and weak ferromagnetism. Phys. Rev. 120, 91–98 (1960).
- [6]Kittel, C. Model of exchange-inversion magnetization. Phys. Rev. 120, 335–342 (1960).DOI
- [7]Nussinov, Z. & van den Brink, J. Compass models: theory and physical motivations. Rev. Mod. Phys. 87, 1–59 (2015).
- [8]Brinker, S., dos Santos Dias, M. & Lounis, S. The chiral biquadratic pair interaction. New J. Phys. 21, 083015 (2019).
- [9]Lu, H. et al. Uncover Hidden Magnetic Phases via Unbiased Tensorial Spin Hamiltonians (2026). ArXiv preprint.
- [10]Perez-Mato, J. M., Ribeiro, J. L., Petricek, V. & Aroyo, M. I. Magnetic Superspace Groups and Symmetry Constraints in Incommensurate Magnetic Phases. Journal of Physics: Condensed Matter 24, 163201 (2012).DOI
- [11]Rodriguez-Carvajal, J. & Perez-Mato, J. M. Magnetic Space Groups versus Representation Analysis in the Investigation of Magnetic Structures: The Happy End of a Strained Relationship. Acta Crystallographica Section B, Structural Science, Crystal Engineering and Materials 80, 370–376 (2024).
- [12]Petríček, V., Fuksa, J. & Dušek, M. Magnetic Space and Superspace Groups, Representation Analysis: Competing or Friendly Concepts? Acta Crystallographica Section A 66, 649–655 (2010).
- [13]Aroyo, M. I., Kirov, A., Capillas, C., Perez-Mato, J. M. & Wondratschek, H. Bilbao Crystallographic Server. II. Representations of Crystallographic Point Groups and Space Groups. Acta Crystallographica Section A 62, 115–128 (2006).
- [14]Perez-Mato, J. et al. Symmetry-Based Computational Tools for Magnetic Crystallography. Annual Review of Materials Research 45, 217–248 (2015).DOI
- [15]Henriques, M. S., Petříček, V., Goswami, S. & Dušek, M. Analysis of Magnetic Structures in JANA2020. Acta Crystallographica Section B, Structural Science, Crystal Engineering and Materials 80, 409–423 (2024).
- [16]Bertaut, E. F. Representation Analysis of Magnetic Structures. Acta Crystallographica Section A 24, 217–231 (1968).
- [17]Bertaut, E. MAGNETIC STRUCTURE ANALYSIS AND GROUP THEORY. Journal de Physique Colloques 32, C1–462–C1–470 (1971).
- [18]Bertaut, E. On Group Theoretical Techniques in Magnetic Structure Analysis. Journal of Magnetism and Magnetic Materials 24, 267–278 (1981).
- [19]Harris, A. B. Landau analysis of the symmetry of the magnetic structure and magnetoelectric interaction in multiferroics. Phys. Rev. B 76, 054447 (2007).
- [20]Rodriguez-Carvajal, J., Gonzalez-Platas, J. & Katcho, N. A. Magnetic structure determination and refinement using FullProf. Acta Crystallographica Section B 81, 302–317 (2025).
- [21]Wills, A. S. SARAh–web representational analysis. Acta Crystallographica Section B 81, 28–36 (2025).
- [22]Nomoto, T., Shinohara, K., Watanabe, H. & Arita, R. Systematic magnetic structure generation based on oriented spin space groups: Formulation, applications, and high-throughput first-principles calculations (2026). 2601.15735.
- [23]Li, Y. et al. Symmetry-guided prediction of magnetic-ordered ground states (2025). 2512.21672.arxiv.org/abs/2512.21672
- [24]Rodríguez-Carvajal, J. Recent advances in magnetic structure determination by neutron powder diffraction. Physica B: Condensed Matter 192, 55–69 (1993).
- [25]Brinkman, W. F. & Elliott, R. J. Theory of Spin-Space Groups. Proceedings of the Royal Society A 294, 343 (1966).
- [26]Chen, X. et al. Enumeration and Representation Theory of Spin Space Groups. Physical Review X 14, 031038 (2024).DOI
- [27]Jiang, Y. et al. Enumeration of Spin-Space Groups: Toward a Complete Description of Symmetries of Magnetic Orders. Phys. Rev. X 14, 031039 (2024).
- [28]Supplementary Information.
- [29]Schweizer, J. Time Inversion in the Representation Analysis of Magnetic Structures. Comptes Rendus Physique 6, 375–384 (2005).
- [30]Hall, B. C. Lie Groups, Lie Algebras, and Representations: An Elementary Introduction, vol. 222 of Graduate Texts in Mathematics (Springer, Cham, 2015), 2 edn.
- [31]Sepanski, M. R. Compact Lie Groups, vol. 235 of Graduate Texts in Mathematics (Springer, New York, 2007).
- [32]Litvin, D. B. & Opechowski, W. Spin groups. Physica 76, 538–554 (1974).
- [33]Liu, P., Li, J., Han, J., Wan, X. & Liu, Q. Spin-Group Symmetry in Magnetic Materials with Negligible Spin-Orbit Coupling. Physical Review X 12, 021016 (2022).
- [34]Schiff, H., Corticelli, A., Guerreiro, A., Romhányi, J. & McClarty, P. A. The crystallographic spin point groups and their representations. SciPost Physics 18, 109 (2025).
- [35]Diestel, R. Graph Theory: 5th Edition. Springer Graduate Texts in Mathematics (2017).
- [36]Cormen, T., Leiserson, C., Rivest, R. & Stein, C. Introduction to Algorithms, Fourth Edition (MIT Press, 2022).
- [37]Paton, K. An Algorithm for Finding a Fundamental Set of Cycles of a Graph. Communications of the ACM 12, 514–518 (1969).
- [38]Deo, N., Prabhu, G. & Krishnamoorthy, M. S. Algorithms for Generating Fundamental Cycles in a Graph. ACM Trans. Math. Softw. 8, 26–42 (1982).
- [39]Xiao, Z., Zhao, J., Li, Y., Shindou, R. & Song, Z.-D. Spin Space Groups: Full Classification and Applications. Physical Review X 14, 031037 (2024).
- [40]Liu, Y. et al. Symmetry Classification of Magnetic Orders Using Oriented Spin Space Groups. Nature 652, 869–873 (2026).
- [41]Yu, Y. et al. Identifying oriented spin space groups and related physical properties using an online platform FINDSPINGROUP (2026). 2604.21397.
- [42]Togo, A., Shinohara, K. & Tanaka, I. Spglib: A Software Library for Crystal Symmetry Search. Science and Technology of Advanced Materials: Methods 4, 2384822 (2024).
- [43]Hulpke, A. Calculating Subgroups with GAP. In Group Theory and Computation, 91–106 (Springer Singapore, 2018).
- [44]Holt, D. F., Eick, B. & O’Brien, E. A. Handbook of Computational Group Theory. Discrete Mathematics and Its Applications (Chapman and Hall/CRC, 2005).
- [45]Cannon, J. J., Cox, B. C. & Holt, D. F. Computing the Subgroups of a Permutation Group. Journal of Symbolic Computation 31, 149–161 (2001).
- [46]Huang, B. et al. Layer-dependent ferromagnetism in a van der Waals crystal down to the monolayer limit. Nature 546, 270–273 (2017).
- [47]Kresse, G. & Furthmüller, J. Efficient iterative schemes for ab initio total-energy calculations using a plane-wave basis set. Phys. Rev. B 54, 11169–11186 (1996).
- [48]Kresse, G. & Hafner, J. Ab initio molecular dynamics for liquid metals. Phys. Rev. B 47, 558(R)–561(R) (1993).
- [49]Blöchl, P. E. Projector augmented-wave method. Phys. Rev. B 50, 17953–17979 (1994).
- [50]Kresse, G. & Joubert, D. From ultrasoft pseudopotentials to the projector augmented-wave method. Phys. Rev. B 59, 1758–1775 (1999).
- [51]Vosko, S. H., Wilk, L. & Nusair, M. Accurate spin-dependent electron liquid correlation energies for local spin density calculations: a critical analysis. Canadian Journal of Physics 58, 1200–1211 (1980).
- [52]Xu, C., Feng, J., Xiang, H. & Bellaiche, L. Interplay between Kitaev interaction and single ion anisotropy in ferromagnetic CrI3 and CrGeTe3 monolayers. npj Computational Materials 4, 57 (2018).
- [53]Xu, C. et al. Topological spin texture in Janus monolayers of the chromium trihalides Cr(I,X)3. Phys. Rev. B 101, 060404 (2020).
- [54]Ma, P.-W. & Dudarev, S. L. Constrained density functional for noncollinear magnetism. Physical Review B 91, 054420 (2015).
- [55]Lu, H. Automated Magnetism Analysis via Tensorial Interacting Spins (AMATIS), https://doi.org/10.5281/zenodo.16005430 (2026).