WorksPhysics and Astronomy
TensorSymmetry: a package to get symmetry-adapted tensors disentangling spin-orbit coupling effect and establishing analytical relationship with magnetic order
Abstract
The symmetry-constrained response tensors on transport, optical, and electromagnetic effects are of central importance in condensed matter physics because they can guide experimental detections and verify theoretical calculations. These tensors encompass various forms, including polar, axial, i-type (time-reversal even), and c-type (time-reversal odd) matrixes. The commonly used magnetic groups, however, fail to describe the phenomena without the spin-orbit coupling (SOC) effect and cannot build the analytical relationship between magnetic orders with response tensors in magnetic materials. Developing approaches on these two aspects is quite demanding for theory and experiment. In this paper, we use the magnetic group, spin group, and extrinsic parameter method comprehensively to investigate the symmetry-constrained response tensors, then implement the above method in a platform called "TensorSymmetry". With the package, we can get the response tensors disentangling the effect free of SOC and establish the analytical relationship with magnetic order, which provides useful guidance for theoretical and experimental investigation for magnetic materials.
Program Summary
Program title: TensorSymmetry
Program Files doi: http://dx.doi.org/xxxx
Download: https://github.com/Ruichun/TensorSymmetryPackage
Introduction
Symmetry is a fundamental factor in shaping the physical properties of condensed matter systems. The spontaneous breakings of spatial-inversion symmetry and time-reversal symmetry are two critical phenomena in condensed matter physics, which can lead to ferroelectricity and magnetism, respectively. These symmetry breakings give rise to a wide array of physical phenomena, such as nonlinear optical effect [1, 2, 3, 4, 5] (e.g. second harmonic generation (SHG) effect, bulk photovoltaic effect (BPVE), circular photogalvanic effect (CPGE), spin photogalvanic effect (SPGE, also referred to as the spin photovoltaic effect in some contexts)), nonlinear transport effect [6, 7, 8, 9, 10, 11, 12, 13, 14], anomalous Hall effect (AHE [15, 16, 17, 18, 19], and its optical analog [20] Faraday effect and Kerr effect), spin Hall effect (SHE) [16, 17, 18, 19, 21], magnetoelectric effect [22], light-induced magnetism [23], Rashba-Edelstein effect (inverse spin galvanic effect) [24] etc.. These phenomena not only deepen our understanding of the physics in condensed matter materials but also open avenues for potential technological applications. The study of symmetry-constrained response tensors is crucial in both theoretical and experimental studies, as they govern the experimental detections and validation of theoretical calculations.
Even though there are various kinds of response effects, the corresponding response tensors generally adhere to similar symmetry properties, as shown in Figure 1. These tensors can be categorized into polar tensors, axial tensors, -even (time reversal even, or -type) tensors, and -odd (time reversal odd, -type) tensors [25]. Typically, Neumann's principle and magnetic point group [26, 27, 28] are utilized to investigate the characteristics of the response tensors.

Figure 1. The expression of linear & nonlinear optical/transport effects, spin, and magnetization effect. The subscript English letters , , mean the direction of current, polarization, or electric field, while the superscript Greek symbols denote the direction of spin. In SHE and SPGE, represents the spin current, where electrons move along the -th direction and their spins are polarized along the -th direction. The double arrow lines among the sections mean the tensors in the response effects share the same symmetry characters.
Among the response effects in the magnetic materials, the spin-orbit coupling (SOC) effect plays a crucial role in SHE, SHG, BPVE, and AHE. In contrast, the -odd SHE [29, 30, 31] and -odd SPGE [3, 32] are free from the SOC effect. The magnetic group approach has been proven to be inadequate for capturing these SOC-free effects. Refs. [29, 30] and [3, 32] utilize spin-resolved electron bands in reciprocal space and spin sublattices in real space to elucidate the origins of SHE and SPGE for collinear antiferromagnets, respectively. Even though intuitive, these methods are not convenient and fail for non-collinear magnets [33]. The spin group approach shows a powerful capacity [34, 35] to disentangle the SOC effects. As a result, there is a great need for a systematic method to analyze response tensors using the spin group framework.
Furthermore, the response tensors in magnetic materials are strongly dependent on magnetic orders [6, 7, 36] (such as magnetic moments in colinear ferromagnets, Néel vectors in collinear antiferromagnets, vector chirality in coplanar but noncollinear antiferromagnets). The relationships between the response tensors and magnetic orders hold great significance for detecting magnetic orders [37, 38, 39] in experiments, as they provide decoding tables that translate response tensors into magnetic order parameters. However, neither discrete magnetic groups nor spin groups can establish the analytical relationship between these two aspects. Recently, we proposed an "extrinsic parameter" method, which shows a powerful ability to uncover the analytical relationship between the AHE and Néel vectors for altermagnets [40]. This suggests that the approach can be extended to other response effects.
The magnetic group, spin group, and "extrinsic parameter" methods offer valuable insight into response effects. Therefore, a comprehensive platform that integrates all these factors is essential. In this work, we have developed an integrated software platform called "TensorSymmetry" based on the Mathematica language, which combines the three aforementioned methods to analyze symmetry-adapted tensors for magnetic materials, as illustrated in Figure 2.

Figure 2. The integrated platform TensorSymmetry, which combines the magnetic group, spin group, and "extrinsic parameter" methods, gives more comprehensive information about the symmetry-adapted response tensors, to unravel the SOC effect and establish analytical relationships with magnetic orders. In the magnetic group, the spin is coupled with the lattice freedom due to the SOC effect, akin to a steering wheel with fixed handles. Simultaneously, the spin space and real space exhibit partial decoupling in the spin group, a feature reminiscent of a sky wheel, where the orientation of the cabin remains unchanged during rotation. means that the symmetry-adapted tensors constrained by the magnetic group generally have more non-zero tensor elements than those of spin groups, and denotes the response tensors under magnetic group belongs to the analytical . means the magnetic order.
The following parts of the paper are arranged as follows: Firstly, we introduce the methods for dealing with the response tensors with the magnetic group, spin group, and extrinsic parameter method in Sec. II-IV. Subsequently, the structure and usage of the software are presented in Sec. V. We will present two representative examples to show the effectiveness of our comprehensive method in Sec. VI.
Methods
Response tensors constrained by the magnetic groups
Based on whether they change sign under spatial inversion operation, the vectors can be classified into polar vectors (which change signs, such as electric field, current, position, and velocity) and axial vectors (which remain unchanged, such as magnetic field, angular momentum, and spin), respectively. Similarly, response tensors can also be categorized into polar tensors (such as the dielectric tensor, conductivity tensor, and SHG tensor) and axial tensors (such as the magneto-electric tensor, CPGE tensor, and SHE tensor). Additionally, due to the time-reversal symmetry, every response tensor can be further divided into -even (-type) and -odd (-type) parts [25]. Table I summarizes the parities and corresponding mechanisms of SHG, BPVE, CPGE, and nonlinear transport effect.
| -even part (-type) | -odd part (-type) | |
| SHG | Magnetism & crystal asymmetry | Magnetism |
| BPVE | nonmagnetic shift current | magnetic injection current |
| CPGE | nonmagnetic injection current | magnetic shift current |
| Nonlinear transport effect | Berry curvature dipole | Quantum metric dipole, second order Drude effect |
Table I. The parities and corresponding mechanisms of nonlinear optical effect (SHG, BPVE, CPGE) [1, 41, 42] and nonlinear transport [28, 43, 44] under the time-reversal symmetry.
Generally, Neumann's principle and magnetic point groups are used to investigate the symmetry-adapted response tensors. Based on the parities under the space and time operations, the response tensors can be classified into the following four types [45]:
(1) True tensors (polar & -even): These tensors are transformed under the symmetry operations as:
where , is one of the elements of the operation matrix .
(2) Spatial pseudo-tensors (axial & -even). This kind of tensors transform under the symmetry operations as:
where is the determinant of the operation matrix . For the proper operators (such as , , , and ), , and for improper operator (such as , , , and ), .
(3) Time pseudo-tensors (polar & -odd): They are transformed under the symmetry operations as:
For the unitarity operator (not containing time-reversal operation), , and for the anti-unitary operator (containing time-reversal operation), .
(4) Spatial and time pseudo-tensors (axial & -odd): These tensors transform under the symmetry operations as:
Besides, the response tensors always have the subscripts-switch symmetry on the electric field. For example, in the SHG tensor. Therefore, the tensor can be contracted as a matrix using the following indices appointments:
| 11 | 22 | 33 | 23, 32 | 13, 31 | 12, 21 | |
| 1 | 2 | 3 | 4 | 5 | 6 |
Table II.
| Response effect | Tensor format | Jahn’s notation | Independent tensor elements | Inversion symmetry | PT symmetry | SOC |
| Conductivity, dielectric function | order true tensor | [V2] | 6 | √ | √ | √ |
| AHE, Kerr effect, Faraday effect | order time pseudo-tensor | aVV | 3 | √ | × | × |
| CPGE, Edelstein effect, magnetoelectric effect | -even: order spatial pseudo-tensor | eV2 | 9 | × | × | √ |
| CPGE, Edelstein effect, magnetoelectric effect | -odd: order spatial and time pseudo-tensor | aeV2 | 9 | × | √ | × |
| SHG, BPVE, nonlinear Hall effect | -even: order true tensor | V[V2] | 18 | × | × | √ |
| SHG, BPVE, nonlinear Hall effect | -odd: order time pseudo-tensor | aV[V2] | 18 | × | √ | × |
| SHE, light-induced magnetism | -even: order spatial pseudo-tensor | eV3 | 27 | √ | √ | × |
| SHE, light-induced magnetism | -odd: order time & spatial pseudo-tensor | aeV3 | 27 | √ | × | √ |
| SPGE | -even: spatial pseudo-tensor | eVV[V2] | 54 | × | × | × |
| SPGE | -odd: time & spatial pseudo-tensor | aeVV[V2] | 54 | × | √ | √ |
Table II. The characteristics of 6 common response tensors and corresponding physical effects.
Note:
In Jahn’s notation [27], V means a vector, V2 represents VV, and [] denotes the switch symmetry. The letter “a” represents a -type (-odd) tensor, and “e” denotes an axial tensor.
The symbols "√" and "×" indicate whether the response effect can persist under the considered symmetry or conditions, respectively.
The SOC effect here is for the collinear and coplanar magnetically ordered materials.
The characteristics of transport, optical, and electromagnetic tensors are summarized in Table II, which includes the tensor formats, Jahn’s notations [27], and independent tensor elements. Using Eqs. (1)–(4), we can explore the symmetry-constrained tensors under all the magnetic groups. This theoretical framework is straightforward to implement in computational programs, such as the web-based MTENSOR [27] (https://www.cryst.ehu.es/cgi-bin/cryst/programs/mtensor.pl) and the offline “linear-response-symmetry” software [46] (https://bitbucket.org/zeleznyj/linear-response-symmetry/src/master/). We also provided a dictionary on dielectric tensors, AHE tensors, SHG tensors, SHE tensors, and SPGE tensors for all magnetic point groups, which is available on the website: https://ruichun.github.io/TensorSymmetry/. In addition, we recently utilized the isomorphic group method [36] to streamline and enhance the process of deriving the response tensors, making it both more efficient and conceptually meaningful.
The above -odd response effects are attributed to magnetism because the spin is odd udder the time-reversal symmetry. Furthermore, we found that the SOC effect is indispensable for the -odd SHG [36, 47] and AHE [19, 48] in collinear and coplanar magnetic materials. Conversely, for other response effects, such as -odd SHE and SPGE, the SOC effect is not pivotal. In the following, we will analyze these issues using the spin group method.
Response tensors constrained by the spin groups
The response tensors free of the SOC effect can be investigated with the spin groups [49, 50, 51, 52]. Furthermore, the combination of spin group and magnetic group methods can disentangle the influence of the SOC effect.
Due to the partial decoupling between spin space and real space in spin groups as illustrated in Figure 2, we need to employ two relatively independent sets of symmetry operations, acting on spin and lattice degrees of freedom separately. If denotes the point symmetry operation in real space, and represents the symmetry operation in the spin space, then a specific spin point group operation can be written as , and it is defined as in international symbol notation [50, 52]. For spin group operations, we conventionally treat spin as a polar vector rather than an axial vector to include the time-reversal operation in spin space. In this context, the time-reversal operation on spin is equivalent to performing a spatial inversion operation on a polar vector, i.e. . The number of spin point groups (598) is bigger than that of magnetic point groups (122) [50]. Besides, for coplanar and collinear magnets, their spin point groups are the direct product of nontrivial spin point groups and spin-only groups ( and for coplanar and collinear magnets, respectively). Specifically, 252 and 90 spin point groups are found to describe the coplanar and collinear magnetic structures [52], respectively.
In the following, we will analyze the response tensors free of SOC using the spin group method.
AHE tensors under the spin groups. The AHE arises from the transverse motion of electrons under the electric field in real space and is not directly related to the electron’s spin. Therefore, the constraint imposed by spin point group operation on the AHE tensor (the antisymmetric tensor of conductivity) is given by:
In the above equation, represents the determinant of the spin operation matrix , as AHE changes sign under time-reversal operation. The collinear or coplanar magnets possess pure spin operation , where means the mirror symmetry in spin space, and denotes the identity operation in lattice space. According to Eq. (5), leads to . Therefore, spin group point operation vanishes the AHE when the SOC effect is unconsidered for the collinear and coplanar magnetic materials, even though they have non-zero net magnetic moments. Conversely, for noncoplanar magnetic materials where the symmetry is broken, the AHE and magneto-optical effects can arise even in the absence of the SOC effect [19].
SHG tensors under the spin groups. As mentioned, the SHG effect and other nonlinear optical and transport effects involve two types of tensors based on their parity under time-reversal operations: the -even (-type) and -odd (-type) tensors (Table I). Under the spin point group operation , (-type) transforms as:
Differently, transforms as [34]:
According to Eq. (7), the pure spin operation in magnetically ordered materials with collinear or coplanar structures results in , causing vanishing. This explains why the observation of -type (-odd) SHG and BPVE [36, 47] in collinear and coplanar magnetic materials requires the SOC effect. Furthermore, the stronger the SOC effect in the collinear or coplanar magnetic materials, the larger the SHG coefficients [36, 41, 47, 53].
SHE tensors under the spin groups. Since the SHE involves the motion of both spin and real space, we need to impose two kinds of symmetry constraints on the corresponding indices of SHE coefficients (the superscript Greek letter denotes the component of spin space, and the subscript English letters represent the components of the real space). The transformation of -even ( is short for even) under the spin point group operation is as follows:
Collinear magnetic materials possess a pure spin-only group [52]. According to Eq. (8), the pure spin operation leads to the vanishing of SHE tensors and . Additionally, the pure spin mirror operation make all the SHE components of be zero. Therefore, the -even SHE tensor is zero in the spin group, i.e., -even SHE vanishes in the absence of the SOC effect for collinear magnetic materials. On the contrary, the transformation of the -odd SHE tensor ( is short for odd) under spin point operations is:
Based on Eq. (9), operation (i.e. ) causes the signs of all components to reverse. Consequently, antiferromagnetic materials with symmetry do not exhibit -odd SHE. Besides, pure spin operations in coplanar and collinear antiferromagnets do not switch the signs of all -odd SHE elements. Therefore, unlike the AHE and SHG effects, the collinear and coplanar magnetic materials can possess the -odd SHE in the absence of the SOC effect [29, 33]. For example, in the coplanar antiferromagnet MnSn with spin space group , the three -odd SHE subtensors are
where . The above result is consistent with that in Ref. [33].
Besides, we can also prove that the -odd SHE of altermagnet MnTe (spin space group ) vanishes in the absence of the SOC effect, even though its band is spin-splitting [29].
SPGE tensors under the spin groups. Using the spin groups, we can also obtain the symmetry-constrained SPGE tensors in the absence of SOC effect. Under the spin group operation , the -even SPGE tensor transforms
and the transformation of the -odd tensor is given by
From the above equations, one can see that the symmetry forbids -even but allows -odd SPGE when the SOC effect is absent. For example, the spin group of monolayer of MnPS is , and the -even SPGE tensor is zero according to Eq. (10), and the -odd SPGE tensor based on Eq. (11) is:
and , which is consistent with [3]. This characteristic leads to the photocurrent being parallel with the magnetic moment all the time in the absence of the SOC effect.
In a short summary, the spin group method can determine the SHE and SPGE tensors, aligning with approaches that utilize spin-resolved electron bands in reciprocal space [29, 30] and spin sublattices in real space [3, 32]. Notably, the spin group method is versatile, applicable not only to collinear magnetic materials but also to non-collinear magnetic materials.
Since the spin group of a specific magnetic material usually has more symmetry operations than its magnetic group, the symmetry-adapted tensors constrained by the spin group generally have more zero tensor elements than those of magnetic groups (see example in Sect. VI). Projecting the response tensors from the spin space to real space, and comparing the symmetry-constrained tensors under magnetic groups and spin groups, we can disentangle the SOC effect in the response effect, as shown Figure 2.
Response tensors with the magnetic order
Recently, the relationships between the response tensor and the magnetic order (such as the Néel vector) in magnetically ordered materials [21, 38, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63] have attracted widespread attention. However, the discrete magnetic group and spin group treat the magnetic order as an intrinsic structure parameter, making it difficult to establish a direct connection between response tensors and magnetic orders continuously.
Here, we develop a symmetry method named the "extrinsic parameter" method, where the magnetic order is treated as an extrinsic parameter, to build the analytical relationships between the magnetic orders and response tensors. In the following, we will implement the method to AHE, SHG and SHE for the collinear antiferromagnets.
AHE vector with magnetic orders. AHE conductivity tensor in Eq. (5) can act as a pseudo-vector , where (). We expand as a Taylor polynomial for magnetic order, such as Néel vector :
where the first and third Taylor expression tensor and are the two- and four-order matrices, respectively. The even terms on the Néel vector are missing because is odd under the time-reversal operation. Since the magnetic structure has been considered as the extrinsic parameter, only the space group should be utilized to constrain and Néel vector .
The space group operation acting on the Néel vector results in the change of , and it is equivalent to applying the symmetry operation on the AHE conductivity vector , i.e.,
Here, the translation operation is omitted on the right side, as it has no impact on macroscopic .
The transformation of under the space group symmetry operation in Eq. (13) becomes:
The transformation of the Néel vector under is given by:
Here, the signs indicate whether the two magnetic sublattices with opposite spins are exchanged.
Correspondingly, must satisfy the following transformation relationship:
Similarly, the transformation of the fourth-order tensor under symmetry operation is given by:
Additionally, exhibits commutative symmetry for the last three indices:
By substituting and into Eq. (12), we can derive the relationship between the AHE vector and Néel vector up to the third order. Using the "extrinsic parameter" symmetry method, we have revealed that the AHE vectors in altermagnets can exhibit diverse non-trivial textures in the Néel order space [40].
T-odd SHE tensors with Néel vectors. Next, we consider the relationship between the T-odd SHE tensor and Néel vector in collinear antiferromagnets. Similar to Eq. (12), we can expand a SHE tensor in terms of the Néel vector . Since the SHE tensors are third-order tensors, their first-order Taylor expansion of Néel vector results in a fourth-order polar-like tensor . It is transformed under the space group operation as:
where the superscripts here denote spin directions, the lowercase English letters in subscript indicate the directions of electric fields or currents, and the capital letters represent the directions of the Néel vector.
Furthermore, the coefficients of the third-order Taylor expansion constitute a sixth-order tensor , which is transformed under the space group operation as:
Additionally, the capital subscript indices “CDE” in , representing the direction of the Néel vector , possess exchange symmetry. Finally, considering both the first-order and third-order Taylor expansions of the Néel vector, the -odd SHE tensor can be expressed as:
T-odd SHG tensors with Néel vectors. Next, let's consider the relationship between -odd SHG tensor and the Néel vector. Since a set of SHG coefficients form a third-order tensor, its first-order Taylor expansions on the Néel vector result in a fourth-order tensor, satisfying the following relationship:
Unlike Eq. (19), the term cannot be canceled out. Similarly, the third-order Taylor expansion of the -odd SHG tensor constitutes a sixth-order tensor , and the symmetry constraints on this tensor are:
Additionally, we need to consider the exchange symmetry of the two indices for the electric field and three indices of for the Néel vector. Finally, considering both the first-order and third-order Taylor expansions of Néel vector , the SHG coefficients can ultimately be expressed as:
It is worth emphasizing here that, despite the absence of an explicit time-reversal symmetry operation in the extrinsic parameter method, the symbols in the above equations essentially reflect the change of the magnetic moment under the time-reversal operation. Consequently, the response tensors obtained through the extrinsic parameter method align with the results from the magnetic group and spin group methods (see examples in Sec. VI). Furthermore, the extrinsic parameter method facilitates a clear connection between the response tensors and magnetic orders. More importantly, this method establishes the analytical expression on response tensors in the magnetic order space, providing a decoding table that translates the response tensors into the magnetic orders for Néel vectors detection.
Code structure and usage of TensorSymmetry
Despite the significant theoretical differences among the above three methods, the approaches to derive the invariant tensor elements are basically the same. Given Wolfram Mathematica's expertise in symbolic computations and its human-friendly output format, we developed a computational program on this software named “TensorSymmetry”. The workflow of this program is depicted in Figure 3. The package can investigate the response tensors constrained by magnetic point groups and spin point groups to disentangle the SOC effect, and establish the analytical relationship of response tensors and magnetic moments with the “extrinsic parameter” method.

Figure 3. The workflow of TensorSymmetry.
The software package consists of four kinds of modules:
SGData.wl, MPGData.wl: These modules contain all the symmetry operations for space groups and magnetic point groups, respectively.
TensorSymmetryMG.wl: This module is to calculate the response tensors constrained by the magnetic groups.
TensorSymmetrySG.wl: This module is to study the response tensors under the spin groups.
TensorSymmetryEP.wl: This module is to establish the analytical relationships between the response tensors and the magnetic orders.
Here, we introduce the usage of the TensorSymmetry briefly.
Response tensors constrained by magnetic groups.
Open the user interface file “ToUseMagneticGroup.nb”. This file should be put in the same directory as the script folder.
Enter the magnetic point group number, and use the “MPGmassage” function to get the symmetry operation matrix (MPGop) and basis vectors (Basis), as follows:
MPGno={14,3};
{MPGop,Basis}=MPGmassage[MPGno];
{14,3} is the number of magnetic point group -4'2'm. We can refer to “Point Group Tables” (https://www.cryst.ehu.es/cryst/mpoint_uni.html) to find the numbers of all magnetic point groups. For a magnetic material, one can use FINDSYM (https://stokes.byu.edu/iso/findsym.php) or a related website to determine its magnetic space group and corresponding magnetic point group.
Input the desired tensor function and calculate it.
ConductivityTensor[MPGop, Basis]; (*Calculate the normal conductivity and anomalous Hall conductivity tensor*)
SHGtensor[MPGop, Basis]; (*Calculate the SHG tensor*)
SPGEtensor[MPGop, Basis]; (*Calculate the spin photogalvanic effect tensor*)
SHEtensor[MPGop, Basis]; (*Calculate the spin Hall tensor*)
AxialTensor[MPGop, Basis]; (*Calculate the axial tensor, such as CPGE, Edelstein effect, magnetoelectric effect*)
The independent tensor components and their number will be printed, as shown in Figure 4.

Figure 4. The input and output of ToUseMagneticGroup.nb to determine the symmetry-constrained response tensor under the magnetic point group.
We also provide a dictionary on dielectric tensors, AHE tensors, SHG tensors, SHE tensors, and SPGE tensors for all magnetic point groups. These can be found on the website https://ruichun.github.io/TensorSymmetry/.
Response tensors constrained by the spin group
Since there is no comprehensive operation database on spin groups, we use third-party tools like FINDSPINGROUP (https://findspingroup.com/) [64] to determine the spin group operations for specific magnetically ordered materials. Then, the user needs to manually input the generator operation elements in TensorSymmetrySG.wl. Nevertheless, all the possible matrices of and are already given in our program. Then, with these matrices, we construct the generator operations for a specific spin group. For example,
SGop1={S2,C4z}; (*The first of generator operation of spin group operation in
{U||R} form*)
SGop2={C1,mz}; (*The second of generator operation of spin group operation*)
SGop3={S2,mx};
SGop4={C1,mxy};
SGop5={C∞,C1};
SGop6={mx,C1};
RuO2SG={SGop1, SGop2, SGop3, SGop4, SGop5, SGop6};
SpinGroupSHE[RuO2SG]
SpinGroupSHG[RuO2SG]
SpinGroupSPGE[RuO2SG]
SpinGroupSHE[RuO2SG]
Response tensor with the magnetic order
We should input the space group number and the positions of magnetic atoms with spin-up and spin-down states. For example,
{spgop, Basis}=SpaceGroupData[136]; (*136 is the space group number of RuO2*)
Magup={{0,0,0}}; (*Magnetic atom position with spin up state, in crystal
coordinate*)
Magdn={{1/2,1/2,1/2}}; (*Magnetic atom position with spin-down state, in crystal
coordinate*)
AHEdirection[spgop, Basis, Magup]; (*AHE tensor with the Néel vector *)
SHEdirection[spgop, Basis, Magup]; (*SHE tensor with the Néel vector *)
SHGdirection[spgop, Basis, Magup]; (* SHG tensor with the Néel vector*)
Additionally, our program also has the capability to analyze response tensors with magmatic moment order for collinear ferromagnets. The users simply need to configure all magnetic atoms in the “Magup” array while leaving “Magdn” as an empty set.
Examples
In the following, we present two examples to show how to disentangle the SOC effect and establish the analytical relationships between the response tensors and magnetic orders via the three methods.
The T-odd SHE of rutile-type altermagnets. In altermagnets, the T-odd SHE can occur in the absence of the SOC effect [29]. Altermagnets with a rutile structure, such as RuO and MnF, belong to the spin space group . With the spin group, we can calculate the symmetry-constrained -odd SHE tensor, and it is presented in Table III, which is consistent with Ref. [29]. Notably, only the -odd SHE conductivity exists, resulting in the spin polarization of the spin current always being parallel to the spin direction of the magnetic moment. This is quite different from the -even SHE in non-magnetic materials, where the spin polarization direction is often perpendicular to the charge current due to the SOC effect.
When the SOC effect is considered, the magnetic point groups should be utilized to seek the symmetry-constrained SHE tensors. If the magnetic moments of these rutile antiferromagnets are aligned along the -direction, the magnetic point group is , the -odd SHE tensors are listed in Table III. The additional nonzero and subtensors arise from the SOC effect. Similarly, when the magnetic moments is along the - (-) direction, the magnetic group belongs to m′mm′ (mm′m′), the main subtensor elements are (), while the nonzero and ( and ) tensor elements arise from the SOC effect.
The SHE tensor with the Néel vector using the extrinsic parameter method up to the first order is also listed in Table III, which aligns with the results obtained from the magnetic point groups, and more information along the general magnetic direction can also be obtained.
Table III. -odd SHE tensor for rutile-type antiferromagnets using three methods. The SHE coefficients are expanded to the first-order Taylor expansion of the Néel vector.
SHG in monolayer MnPSe. The monolayer Néel-type antiferromagnetic material MnPSe possesses symmetry, and it is an XY magnet whose Néel vector can be effectively controlled by strain [39]. Accordingly, the -even SHG is zero, while the -odd SHG exists and is determined by the direction of the magnetic moment. Therefore, SHG can be employed to detect the Néel vector [39]. Regarding its spin point group , -odd SHG is zero, indicating that the SOC is necessary for the SHG effect. The -odd SHG tensors with different magnetic directions with the magnetic group method are listed in Table IV. The results are consistent with those in Ref. [36, 65]. The analytical relationship between the SHG tensor and the Néel vector can be obtained according to the fact that its parent space group of , and two spin opposite magnetic atoms are occupied at (1/3, 2/3, 0) and (2/3, 1/3, 0), which is presented in Table IV. The SHG tensor obtained through the extrinsic parameter method aligns with those derived from magnetic groups. Furthermore, the analytical relationship can be established, which proves useful for analyzing the SHG behavior when the Néel vector evolves continuously.
| Extrinsic parameter method | P4/mnm | \begin{pmatrix} T_{xxyy}n_y & T_{xxyy}n_x & 0 \ T_{yxxx}n_x & T_{yxxx}n_y & T_{xyzz}n_z \ 0 & T_{xyzz}n_z & T_{xyyy}n_y \end{pmatrix} | \begin{pmatrix} T_{xyyy}n_x & T_{xyxx}n_y & T_{xyzz}n_z \ T_{xyyy}n_y & T_{xyxx}n_x & 0 \ T_{xyzz}n_z & 0 & T_{xyxx}n_x \end{pmatrix} | \begin{pmatrix} 0 & T_{zyz}n_z & T_{zyz}n_y \ T_{zyz}n_z & 0 & T_{zyz}n_x \ T_{zyz}n_y & n_xT_{zyz} & 0 \end{pmatrix} |
Table IV. The relationship of -type SHG coefficients of monolayer MnPSe with Néel vector.
If the magnetic moment lies in the -plane, the six in-plane SHG coefficients , , , , and with first-order Néel order are given by
Utilizing the above relationship, we can obtain the polarization-resolved SHG patterns as follows
where () is the angle between the Néel vector (polarization light) and the -axis.
The parallel () and crossed () SHG pattern correspond to E(2) E() and E(2) E(), respectively. Eq. (26) indicates the and show the two-fold rotation symmetry. It can clearly be seen that the has the minimum value at , as shown in Figure 5, which is consistent with the experiments in Ref. [39].

Figure 5. In-plane polarization-resolved crossed () SHG signals (blue) with the Néel vector (red) with = (a) 0, (b) 45°, (c) 90° and (d) 135° for MnPSe.
The SHE coefficients is expanded to the first-order Taylor expansion of the Néel vector.
| Method | Group | -odd SHG tensor |
| Spin group | ||
| Magnetic point group | ||
| Magnetic point group | ||
| Magnetic point group | ||
| Extrinsic parameter method | \begin{pmatrix} T_{xxx}n_x+T_{xxz}n_z & (T_{xxx}-2T_{xyy})n_x-T_{xxz}n_z & T_{xzx}n_z & -T_{xzx}n_y & T_{xxx}n_x+T_{xxz}n_z & T_{xyy}n_y \ (T_{xxx}-2T_{xyy})n_y & T_{xxx}n_y & T_{xxz}n_x-T_{xxz}n_z & -T_{xzx}n_y & T_{xyy}n_x-T_{xxz}n_z & \ T_{xxx}n_x+T_{xxz}n_z & T_{xzx}n_x-T_{xxz}n_z & T_{xxz}n_z & T_{xzx}n_x & T_{xxx}n_x & -T_{xxx}n_y \end{pmatrix} |
Table 5.
Conclusion
In this work, we developed a comprehensive platform “TensorSymmetry”, which includes the magnetic group, spin group, and extrinsic parameter methods, to determine the symmetry-adapted tensors in magnetic materials. Our work provides an integrated tool to disentangle the SOC effect and establish the analytical relationship with magnetic order, which offers valuable guidance for experimental detection and theoretical calculations.
Acknowledgment
We thank the useful discussion with Ze-Ying Zhang and Fang-Chu Chen. We thank the support from the National Natural Science Foundation of China (Grants Nos. 12474100, 12204009), and the Natural Science Foundation of Anhui Province (Grant No. 2208085QA08).
References
References
- [1]H. Watanabe Y. Yanase, Chiral Photocurrent in Parity-Violating Magnet and Enhanced Response in Topological Antiferromagnet, Phys. Rev. X 11 (2021) 011001.DOI
- [2]Y. Zhang, T. Holder, H. Ishizuka, F. de Juan, N. Nagaosa, C. Felsēr, B. Yan, Switchable magnetic bulk photovoltaic effect in the two-dimensional magnet CrI₃, Nat. Commun. 10 (2019) 3783.DOI
- [3]R.-C. Xiao, D.-F. Shao, Y.-H. Li, H. Jiang, Spin photogalvanic effect in two-dimensional collinear antiferromagnets, npj Quantum Mater. 6 (2021) 35.
- [4]Z. Sun, Y. Yi, T. Song, G. Clark, B. Huang, Y. Shan, S. Wu, D. Huang, C. Gao, Z. Chen et al., Giant nonreciprocal second-harmonic generation from antiferromagnetic bilayer CrI₃, Nature 572 (2019) 497.DOI
- [5]H. Zhou, R.-C. Xiao, S.-H. Zhang, W. Gan, H. Han, H.-M. Zhao, W. Lu, C. Zhang, Y. Sun, H. Li et al., Skin Effect of Nonlinear Optical Responses in Antiferromagnets, Phys. Rev. Lett. 133 (2024) 236903.DOI
- [6]H. Liu, J. Zhao, Y.-X. Huang, W. Wu, X.-L. Sheng, C. Xiao, S. A. Yang, Intrinsic Second-Order Anomalous Hall Effect and Its Application in Compensated Antiferromagnets, Phys. Rev. Lett. 127 (2021) 277202.DOI
- [7]C. Wang, Y. Gao, D. Xiao, Intrinsic Nonlinear Hall Effect in Antiferromagnetic Tetragonal CuMnAs, Phys. Rev. Lett. 127 (2021) 277201.DOI
- [8]I. Sodemann L. Fu, Quantum Nonlinear Hall Effect Induced by Berry Curvature Dipole in Time-Reversal Invariant Materials, Phys. Rev. Lett. 115 (2015) 216806.DOI
- [9]A. Gao, Y.-F. Liu, J.-X. Qiu, B. Ghosh, T. T. Trevisan, Y. Onishi, C. Hu, T. Qian, H.-J. Tien, S.-W. Chen et al., Quantum metric nonlinear Hall effect in a topological antiferromagnetic heterostructure, Science 381 (2023) 181.
- [10]N. Wang, D. Kaplan, Z. Zhang, T. Holder, N. Cao, A. Wang, X. Zhou, F. Zhou, Z. Jiang, C. Zhang et al., Quantum metric-induced nonlinear transport in a topological antiferromagnet, Nature 621 (2023) 487.
- [11]Q. Ma, S. Y. Xu, H. Shen, D. MacNeill, V. Fatemi, T. R. Chang, A. M. Mier Valdivia, S. Wu, Z. Du, C. H. Hsu et al., Observation of the nonlinear Hall effect under time-reversal-symmetric conditions, Nature 565 (2019) 337.DOI
- [12]K. Kang, T. Li, E. Sohn, J. Shan, K. F. Mak, Nonlinear anomalous Hall effect in few-layer WTe2, Nat. Mater. 18 (2019) 324.DOI
- [13]C. Wang, R.-C. Xiao, H. Liu, Z. Zhang, S. Lai, C. Zhu, H. Cai, N. Wang, S. Chen, Y. Deng et al., Room-temperature third-order nonlinear Hall effect in Weyl semimetal TaIrTe₄, Natl. Sci. Rev. 9 (2022)
- [14]H. Li, M. Li, R.-C. Xiao, W. Liu, L. Wu, W. Gan, H. Han, X. Tang, C. Zhang, J. Wang, Current induced second-order nonlinear Hall effect in bulk WTe2, Appl. Phys. Lett. 123 (2023) 163102.DOI
- [15]N. Nagaosa, J. Sinova, S. Onoda, A. H. MacDonald, N. P. Ong, Anomalous Hall effect, Rev. Mod. Phys. 82 (2010) 1539.
- [16]L. Šmejkal, A. H. MacDonald, J. Sinova, S. Nakatsuji, T. Jungwirth, Anomalous Hall antiferromagnets, Nat. Rev. Mat. 7 (2022) 482.
- [17]T. Higo, H. Man, D. B. Gopman, L. Wu, T. K. Koretsune, O. M. J. van 't Erve, Y. P. Kabanov, D. Rees, Y. Li, M. T. Suzuki et al., Large magneto-optical Kerr effect and imaging of magnetic octupole domains in an antiferromagnetic metal, Nat. Photonics 12 (2018) 73.DOI
- [18]A. L. Balk, N. H. Sung, S. M. Thomas, P. F. S. Rosa, R. D. McDonald, J. D. Thompson, E. D. Bauer, F. Rønning, S. A. Crooker, Comparing the anomalous Hall effect and the magneto-optical Kerr effect through antiferromagnetic phase transitions in Mn₃Sn, Appl. Phys. Lett. 114 (2019) 032401.DOI
- [19]W. Feng, J. P. Hanke, X. Zhou, G. Y. Guo, S. Blügel, Y. Mokrousov, Y. Yao, Topological magneto-optical effects and their quantization in noncoplanar antiferromagnets, Nat. Commun. 11 (2020) 118.
- [20]T. Haider, A Review of Magneto-Optic Effects and Its Application, International Journal of Electromagnetics and Applications 7 (2017) 17.
- [21]L. Šmejkal, R. González-Hernández, T. Jungwirth, J. Sinova, Crystal time-reversal symmetry breaking and spontaneous Hall effect in collinear antiferromagnets, Sci. Adv. 6 (2020) eaaz8809.DOI
- [22]M. Fiebig, Revival of the magnetoelectric effect, J. Phys. D: Appl. Phys. 38 (2005) R123.
- [23]H. Xu, J. Zhou, H. Wang, J. Li, Light-induced static magnetization: Nonlinear Edelstein effect, Phys. Rev. B 103 (2021) 205417.DOI
- [24]R. González-Hernández, P. Ritzinger, K. Výborný, J. Železný, A. Manchon, Non-relativistic torque and Edelstein effect in non-collinear magnets, Nat. Commun. 15 (2024) 7663.
- [25]R. R. Birss, Symmetry and magnetism (North-Holland Publishing Company, 1964).
- [26]M. Seemann, D. Köddritsch, S. Wimmer, H. Ebert, Symmetry-imposed shape of linear response tensors, Phys. Rev. B 92 (2015) 155138.DOI
- [27]S. V. Gallego, J. Etxebarria, L. Elcoro, E. S. Tasci, J. M. Perez-Mato, Automatic calculation of symmetry-adapted tensors in magnetic and non-magnetic materials: a new tool of the Bilbao Crystallographic Server, Acta Crystallogr. A Found Adv. 75 (2019) 438.DOI
- [28]Z.-F. Zhang, Z.-G. Zhu, G. Su, Symmetry dictionary on charge and spin nonlinear responses for all magnetic point groups with nontrivial topological nature, Natl. Sci. Rev. 10 (2023)
- [29]R. Gonzalez-Hernandez, L. Šmejkal, K. Výborný, Y. Yahagi, J. Sinova, T. Jungwirth, J. Železný, Efficient Electrical Spin Splitter Based on Nonrelativistic Collinear Antiferromagnetism, Phys. Rev. Lett. 126 (2021) 127701.
- [30]H. Bai, L. Han, X. Y. Feng, Y. J. Zhou, R. X. Su, Q. Wang, L. Y. Liao, W. X. Zhu, X. Z. Chen, F. Pan et al., Observation of Spin Splitting Torque in a Collinear Antiferromagnet RuO2, Phys. Rev. Lett. 128 (2022) 197202.DOI
- [31]T. He, L. Li, C. Cui, R.-W. Zhang, Z.-M. Yu, G. Liu, X. Zhang, Quasi-One-Dimensional Spin Transport in Altermagnetic Z3 Nodal Net Metals, Phys. Rev. Lett. 133 (2024) 146602.DOI
- [32]S. M. Young, F. Zheng, A. M. Rappe, Prediction of a linear spin bulk photovoltaic effect in antiferromagnets, Phys. Rev. Lett. 110 (2013) 057201.
- [33]J. Zelezny, Y. Zhang, C. Felser, B. Yan, Spin-Polarized Current in Noncollinear Antiferromagnets, Phys. Rev. Lett. 119 (2017) 187204.DOI
- [34]H. Zhu, J. Li, X. Chen, Y. Yu, Q. J. a. e-p. Liu, 2024), p. arXiv:2406.03738.
- [35]H. Watanabe, K. Shinohara, T. Nomoto, A. Togo, R. Arita, Symmetry analysis with spin crystallographic groups: Disentangling effects free of spin-orbit coupling in emergent electromagnetism, Phys. Rev. B 109 (2024) 094438.
- [36]R.-C. Xiao, D.-F. Shao, W. Gan, H.-W. Wang, H. Han, Z. G. Sheng, C. Zhang, H. Jiang, H. Li, Classification of second harmonic generation effect in magnetically ordered materials, npj Quantum Mater. 8 (2023) 62.DOI
- [37]D.-F. Shao, G. Gurung, S.-H. Zhang, E. Y. Tsymbal, Dirac Nodal Line Metal for Topological Antiferromagnetic Spintronics, Phys. Rev. Lett. 122 (2019) 077203.DOI
- [38]Z. Feng, X. Zhou, L. Šmejkal, L. Wu, Z. Zhu, H. Guo, R. González-Hernández, X. Wang, H. Yan, P. Qin et al., An anomalous Hall effect in altermagnetic ruthenium dioxide, Nat. Electron. 5 (2022) 735.DOI
- [39]Z. Ni, A. V. Haglund, H. Wang, B. Xu, C. Bernhard, D. G. Mandrus, X. Qian, E. J. Mele, C. L. Kane, L. Wu, Imaging the Néel vector switching in the monolayer antiferromagnet MnPSe3 with strain-controlled Ising order, Nat. Nanotechnol. 16 (2021) 782.DOI
- [40]Rui-Chun Xiao, Hui Li, Hui Han, Wei Gan, Mengmeng Yang, Ding-Fu Shao, Shu-Hui Zhang, Yang Gao, Mingliang Tian, J. Zhou, Anomalous-Hall Neel textures in altermagnetic materials, arXiv:2411.10147 (2024).DOI
- [41]R.-C. Xiao, Y. J. Jin, H. Jiang, Spin photovoltaic effect in antiferromagnetic materials: Mechanisms, symmetry constraints, and recent progress, APL Mater. 11 (2023) 070903.DOI
- [42]H. Chen, M. Ye, N. Zou, B.-L. Gu, Y. Xu, W. Duan, Basic formulation and first-principles implementation of nonlinear magneto-optical effects, Phys. Rev. B 105 (2022) 075123.DOI
- [43]D. Kaplan, T. Holder, B. Yan, Unification of Nonlinear Anomalous Hall Effect and Nonreciprocal Magnetoresistance in Metals by the Quantum Geometry, Phys. Rev. Lett. 132 (2024) 026301.DOI
- [44]T. Liu, X.-B. Qiang, H.-Z. Lu, X. C. Xie, Quantum geometry in condensed matter, Natl. Sci. Rev. 12 (2024)
- [45]R. Tao, Group Theory in Physics (in Chinese) (Shanghai Scientific & Technical Publishers, 1986).
- [46]J. Železný, H. Gao, A. Manchon, F. Freimuth, Y. Mokrousov, J. Zemen, J. Mašek, J. Sinova, T. Jungwirth, Spin-orbit torques in locally and globally noncentrosymmetric crystals: Antiferromagnets and ferromagnets, Phys. Rev. B 95 (2017) 014403.DOI
- [47]R. Fei, W. Song, L. Yang, Giant linearly-polarized photogalvanic effect and second harmonic generation in two-dimensional axion insulators, Phys. Rev. B 102 (2020) 035440.DOI
- [48]W. Feng, G.-Y. Guo, J. Zhou, Y. Yao, Q. Niu, Large magneto-optical Kerr effect in noncollinear antiferromagnetsMn3X(X=Rh,Ir,Pt), Phys. Rev. B 92 (2015) 144426.DOI
- [49]W. F. Brinkman, R. J. Elliott, R. E. Peierls, Theory of spin-space groups, Proceedings of the Royal Society A 294 (1966) 343.
- [50]D. Litvin, Spin point groups, Acta Crystallogr. A 33 (1977) 279.
- [51]D. B. Litvin W. Opechowski, Spin groups, Physica 76 (1974) 538.
- [52]P. Liu, J. Li, J. Han, X. Wan, Q. Liu, Spin-Group Symmetry in Magnetic Materials with Negligible Spin-Orbit Coupling, Phys. Rev. X 12 (2022) 021016.
- [53]H. Xu, H. Wang, J. Zhou, J. Li, Pure spin photocurrent in non-centrosymmetric crystals: bulk spin photovoltaic effect, Nat. Commun. 12 (2021) 4330.DOI
- [54]D.-F. Shao, S.-H. Zhang, G. Gurung, W. Yang, E. Y. Tsymbal, Nonlinear Anomalous Hall Effect for Neel Vector Detection, Phys. Rev. Lett. 124 (2020) 067203.DOI
- [55]I. I. Mazin, K. Koepernik, M. D. Johannes, R. González-Hernández, L. Šmejkal, Prediction of unconventional magnetism in doped FeSb2, Prog. Nat. Sci. 118 (2021) e2108924118.DOI
- [56]M. Naka, Y. Motome, H. Seo, Anomalous Hall effect in antiferromagnetic perovskites, Phys. Rev. B 106 (2022) 195149.
- [57]T. P. T. Nguyen K. Yamauchi, Ab initio prediction of anomalous Hall effect in antiferromagnetic CaCrO3, Phys. Rev. B 107 (2023) 155126.arxiv.org/abs/2301.10432
- [58]X.-Y. Hou, H.-C. Yang, Z.-X. Liu, P.-J. Guo, Z.-Y. Lu, Large intrinsic anomalous Hall effect in both Nb₂FeB₂ and Ta₂FeB₂ with collinear antiferromagnetism, Phys. Rev. B 107 (2023) L161109.DOI
- [59]R. D. Gonzalez Betancourt, J. Zubáč, R. Gonzalez-Hernandez, K. Geishendorf, Z. Šobáň, G. Springholz, K. Olejník, L. Šmejkal, J. Sinova, T. Jungwirth et al., Spontaneous Anomalous Hall Effect Arising from an Unconventional Compensated Magnetic Phase in a Semiconductor, Phys. Rev. Lett. 130 (2023) 036702.DOI
- [60]L. Han, X. Fu, R. Peng, X. Cheng, J. Dai, L. Liu, Y. Li, Y. Zhang, W. Zhu, H. Bai et al., Electrical 180° switching of Néel vector in spin-splitting antiferromagnet, Sci. Adv. 10 (2024) eadn0479.DOI
- [61]X. Zhou, W. Feng, R.-W. Zhang, L. Šmejkal, J. Sinova, Y. Mokrousov, Y. Yao, Crystal Thermal Transport in Altermagnetic RuO₂, Phys. Rev. Lett. 132 (2024) 056701.DOI
- [62]S. Hayami H. Kusunose, Essential role of the anisotropic magnetic dipole in the anomalous Hall effect, Phys. Rev. B 103 (2021) L180407.DOI
- [63]T. Sato, S. Haddad, I. C. Fulga, F. F. Assad, J. van den Brink, Altermagnetic Anomalous Hall Effect Emerging from Electronic Correlations, Phys. Rev. Lett. 133 (2024) 086503.DOI
- [64]X. Chen, J. Ren, Y. Zhu, Y. Yu, A. Zhang, P. Liu, J. Li, Y. Liu, C. Li, Q. Liu, Enumeration and Representation Theory of Spin Space Groups, Phys. Rev. X 14 (2024) 031038.DOI
- [65]Q. Xue, X. Mu, Y. Sun, J. Zhou, Valley contrasting bulk photovoltaic effect in a PT-symmetric MnPSe₃ monolayer, Phys. Rev. B 107 (2023) 245404.