Antiferromagnets have attracted great interest in recent years due to their potential to push forward the field of spintronics1. A central advantage of antiferromagnetic (AF) over ferromagnetic (FM) spintronics arises from their self-cancelling spin arrangement with zero net moment, rendering them largely insensitive to external fields. Such stability holds great potential for devices (e.g. for digital storage density and longevity), but also poses significant challenges to implement magnetic functionality, requiring new approaches to interact with magnetic order. To this end, a key promise of AF spintronics is to exploit and control magnetic properties that are unique to antiferromagnets, such as the ordering wave vector or changes to the spin arrangement itself2,3,4. Another potential benefit of AF spintronics stems from their enhanced magnetic resonance frequencies, promising efficient control of the magnetic state by ultrashort pulses. While in thermal equilibrium a number of approaches for control of AF spintronic systems have been demonstrated2, more recently also significant progress has been made in manipulating magnetism in AF and ferrimagnetic systems using ultrashort THz5,6,7,8 or visible9,10 light pulses. However, many of these approaches relied on very specific sample geometries or material properties, for example, non-centrosymmetric lattice symmetries2,11.

Another possible route for control of antiferromagnetism using optical stimulation is to utilize the local anisotropy of the AF ordered ions to steer the magnetic state of a system. For example, different configurations that are sufficiently close in energy may be susceptible to thermally driven effects on the local (single-ion) magnetic anisotropy. A sudden rise in heat induced by a femtosecond laser excitation can abruptly change this anisotropy, to which the long-range AF order would then respond by realigning according to a new easy axis. In this work, we demonstrate deterministic control of this effect in the prototypical A-type antiferromagnet GdRh2Si2. The system is an exemplary case of a magnetically soft X-Y antiferromagnet12, due to the low anisotropy of the closed Gd 4f shell, which has no orbital angular momentum (L = 0). Its weak magnetic anisotropy makes it ideal for our study, as it allows efficient modification of the anisotropy potential of the Gd ions through ultrafast photoexcitation. Following the excitation, we observe a coherent and deterministic rotation of the entire AF arrangement of Gd spins about a crystalline axis, without loss of the long-range coherence of the AF order. Further analysis of the coherent rotations of the AF structure also allows us to fully determine the local magnetic anisotropy potential.


Equilibrium AF behaviour

Before investigating the response to laser excitation, we begin by characterizing the equilibrium behaviour of the AF order in GdRh2Si2. We study its magnetic structure, which consists of FM Gd layers (ab planes) stacked antiparallel to each other along the [001] direction13 (the tetragonal axis, Fig. 1a), using resonant X-ray diffraction (RXD)14,15. Tuning the incoming X-rays to the Gd M5 edge (3d5/2 → 4f transitions, see Supplementary Fig. 1), we gain sensitivity exclusively to the long-range AF order of the Gd 4f spins by studying the (001) magnetic reflection, which is forbidden for diffraction from the crystal lattice. Since we diffract from ordered spins, the scatterers are not isotropic and the orientation of the spin arrangement relative to the light polarization vector can cause the intensity to depend on the azimuthal angle Ψ (Fig. 1a). Detecting the scattered intensity as function of Ψ therefore allows us to completely determine the orientation of the Gd 4f spin moments m, which are aligned along an easy axis within the ab plane, at an angle φ relative to the [100] direction (Fig. 1b). The normalized diffraction intensity of the (001) reflection at various temperatures is shown in Fig. 1c. It exhibits a remarkable shift of the cosine-shaped function with temperature, indicating a change of the magnetic easy axis. Our data can be well described by a magnetic structure factor that depends on m and φ as16,17:

$$I\left( {x,{{\varPsi}}} \right) \propto \left| {m\left( x \right)\cos \left( {{\varPsi} - \varphi \left( x \right)} \right)} \right|^2\;\; x = t\;{\mathrm{or}}\;T.$$
Fig. 1: Experimental scheme and equilibrium behaviour.
figure 1

a Sketch of experimental scheme and material: the 1.55 eV pump and soft X-ray probe pulses propagate nearly collinearly. They then scatter onto a detector in which only X-rays are detected. Reciprocal space scans produce Bragg peaks (“r.l.u.” are reciprocal lattice units), from which integrated intensity is extracted. Ψ is the angle of azimuthal rotation around the momentum transfer Q = (001), which is parallel to the surface normal. A triangle icon is sketched on the sample surface for later reference. A sketch of the layered GdRh2Si2 crystal structure is shown with Rh and Si ions omitted for clarity. It indicates two AF spin arrangements (solid and transparent arrows), oriented at an angle φ relative to the [100] axis in the ab plane. b Top-down view of the spin arrangement of Gd ions in a, highlighting the spin rotation caused by the change in φ. c Integrated intensity as function of Ψ collected at selected temperatures in equilibrium (no pump pulse). The vertical axis is normalized to emphasize the change in angular phase. Solid lines are fits to Eq. (1). The icon indicates the Ψ rotation of the sample. d Equilibrium behaviour of the Gd 4f spin moment m(T) and angle φ(T) (shown in a), extracted from data in c using Eq. (1) (error bars are fit standard deviations). Solid lines represent fits (see “Methods”).

Here, m and φ are functions of either temperature (T) or pump-probe delay time (t, see following). Using Eq. (1) we extract the temperature-dependent behaviour of m(T) and φ(T) from the data in Fig. 1c and find that m(T) fits well to a mean-field behaviour for S = 7/2 (see “Methods”), and that φ(T) changes significantly in the range 30–70 K (Fig. 1d). This corresponds to a gradual rotation of the aforementioned easy axis in the direction from ~[110] towards [010] upon heating (see Fig. 1b). We emphasize that this is a collective rotation of the entire AF spin structure about the [001] axis (i.e. the material remains AF with vanishing net moment).

To understand this effect, we consider the possible contributions to magnetic anisotropy in GdRh2Si2. Because the Gd 4f shell is spherical (L = 0), its anisotropy terms are typically very weak, and only two contributions can occur: from on-site exchange coupling to the conduction electrons, which do experience magnetic anisotropy (and mediate the Ruderman–Kittel–Kasuya–Yosida (RKKY) interaction), and from dipolar interactions18,19. The dipolar contribution is not expected to contribute to the rotation effect (it itself depends on the spins’ orientation), leaving the conduction electrons. Therefore, to gain insight on the observed rotation, the electron density at the Fermi level was calculated for several temperatures. The effect of temperature was simulated as a spin disorder using the disordered local moment (DLM) approximation (see “Methods”). Figure 2a presents the real-space distribution of the electron density within a Gd plane, in which the Gd 5d orbital character is dominant. Four different levels of spin disorder are shown, representing different temperatures. For low spin disorder (low temperature) strong hybridization between the Gd 5d states and the Si sp bands causes the 5d orbitals to extend along the [110] direction (Si ions are the closest to Gd ions). Upon increasing spin disorder (heating), the extent of the 5d orbitals along [110] shrinks, causing a reduction in hybridization along [110] in favour of [010] (indicated by dotted lines in Fig. 2a). This change in 5d anisotropy is imprinted via the strong exchange coupling to the 4f states, directly influencing their anisotropy by shifting the overall easy-axis angle φ in the direction from [110] to [010] (and symmetry equivalents). This explanation for the observed change in the magnetic anisotropy is also corroborated by the calculated easy-axis angle shown for several spin disorders in Fig. 2b. It qualitatively reproduces the experimental trend of Fig. 1d, demonstrating the validity of our approach (note that φ in Fig. 2b is plotted against spin disorder, in contrast to temperature in Fig. 1d). The rotation effect is also reflected in variations of the Fermi surface in reciprocal space, where degenerate and nearly degenerate states contribute most strongly to the magnetic anisotropy energy20. Upon heating, the direction of highest degeneracy shifts from [110] towards [010] due to an energy shift in the bands near the X point (see Supplementary Note 2).

Fig. 2: First-principle calculations of the magnetic anisotropy.
figure 2

a Calculated electron density at the Fermi level EF within a Gd plane, shown for four different levels of spin disorder: 0%, 50%, 70% and 100% (corresponding to T = 0 K, 75 K, 100 K and >TN). The [110] and [010] directions are indicated for clarity by dotted lines. b Calculated easy-axis angle φ as function of 4f spin disorder. Error bars are standard deviations of values from parabolic best fits. The line is a guide for the eye.

AF behaviour upon ultrafast excitation

Having established the equilibrium behaviour of the magnetic structure, we now optically excite the system in order to test if we can induce a similar behaviour on ultrafast time scales, as sketched in Fig. 3a. We studied the temporal evolution of the AF structure at a base temperature of 11 K, where m ≈ m0 and φ ≈ 58°. We excited the system with 1.55 eV laser pulses, which arrive at delay times t before the femtosecond X-ray probe pulse. The (001) intensity I(t, Ψ) is found to either increase or decrease depending on Ψ, but no change is observed in the shape or position of the diffraction peak (Fig. 3b, c). This allows us to track the evolution of I(t, Ψ) by measuring the time-dependent intensity at the maximum of the diffraction peak only. The evolution of I(t, Ψ) with time is strongly fluence dependent, exhibiting both an oscillatory feature and a suppression in magnitude (Fig. 3d).

Fig. 3: Antiferromagnetic response to excitation, time-resolved resonant X-ray diffraction data.
figure 3

a Sketch of the azimuthal dependence of the diffracted intensity I(t, Ψ) (analogous to I (T, Ψ) upon heating in equilibrium), illustrating its response to excitation following Eq. (1). Circles mark the azimuths at which time-dependent data were recorded. Note that in this sketch I (t, Ψ) is normalized by the maximum of the transient azimuthal-dependent intensity Imax to highlight the rotational response (this omits the overall intensity reduction due to pump-induced demagnetization). b, c reciprocal space scans along L at Ψ ≈ 60° and 150°, respectively, presenting data before and 1 ns after arrival of a 1.4 mJ cm−2 pump pulse. Icons indicate sample orientation. The horizontal axes are in reciprocal lattice units (r.l.u.). d Normalized diffraction intensity of the (001) reflection as a function of pump-probe delay taken at Ψ ≈ 150° for several absorbed pump fluences. Error bars reflect photon counting statistics (square root of photon counts).

Similar to the equilibrium case, the temporal evolution of φ(t) and m(t) can be disentangled using Eq. (1) by measuring I(t, Ψ) for several values of Ψ. We measured pump-probe delay scans at four values of Ψ, as indicated in Fig. 3a, and used these results to fit Eq. (1) for each value of t (see Supplementary Note 3). We found that Eq. (1) provides a good description of the transient behaviours of φ(t) and m(t) (Fig. 4a, b). m(t) exhibits suppression and recovery dynamics, reminiscent of the ultrafast demagnetization dynamics found in various magnetic systems21, while φ(t) exhibits a combination of a continuous rotation and a superimposed coherent oscillation, corresponding to a collective rotation of the entire AF structure upon photoexcitation (Fig. 3a). We note here that 90° magnetic domains can occur in this tetragonal system and can be identified by their intensity’s Ψ dependence and their transient response. Corrections to intensity from overlapping domains have been applied to some datasets (see “Methods” and Supplementary Note 4). The influence of possible deviations from Eq. (1) is discussed in Supplementary Note 3, in which the most general form of the transient magnetic response is given.

Fig. 4: Ultrafast response of the moment m and the easy-axis angle φ.
figure 4

For each fluence, the data were extracted from four datasets taken at different sample orientations using Eq. (1). a Transient response of the moment m. The inset presents the early delays of the 1.05 mJ cm−2 dataset, highlighting the subpicosecond demagnetization channel that exists for all datasets alongside the slower channel (time scales τfast and τslow). b Transient response of the easy axis angle φ. Solid lines are best fits to Eq. (2) (Φ and Ω are the angular shift and oscillation terms), and dashed lines are the contribution to the fit from Eq. (3) only (angular shift with no oscillation). The inset presents the angular change at 1 ns as function of total absorbed fluence. Shaded areas represent fit value standard deviations.

We now discuss the dynamics of m and φ in more detail. A hierarchy of the quantities discussed in the next sections is shown in Fig. 5a for guidance.

Fig. 5: Contributions to antiferromagnetic dynamics.
figure 5

a Hierarchy of contributions, starting from the observed intensity I(t). b, c Demagnetization time scales and amplitudes from the “fast” and “slow” channels, as functions of F/FC (FC = 2.01 mJ cm−2). The amplitudes exhibit a linear dependence up to F/FC ≈ 1. d Fluence dependence of the oscillation frequency ω and the reorientation time constant τφ. All lines are guides for the eye. e Cartoon describing the antiferromagnetic rotation φ(t), highlighting the role of each contribution to the change in the anisotropy potential U(φ): Φ(t) describes a shift of the potential minimum, while Ω(t) is an oscillation around this new minimum. f The transient anisotropy constant K (Eq. (5)) as function of the anisotropy rotation amplitude Φ0 (Eq. (3)). The line is a guide to the eye. The error bars in all panels are fit value standard deviations.

The demagnetization of m(t) (Fig. 4a) is well described by two exponential decay channels (see “Methods”), “fast” and “slow”, with corresponding time constants τ and demagnetization amplitudes d. The fast channel occurs on a subpicosecond time scale (300–600 fs, see example in the inset of Fig. 4a), while the slow channel is ~100 times slower (20–40 ps) and accounts for most of the demagnetization amplitude (dslow > dfast, Fig. 5c). Similar bi-exponential demagnetization has been reported for Lanthanide metals, both for AF22,23 and FM22,24,25 cases. In all cases, the high-speed subpicosecond channel accounts for a small fraction of total demagnetization, while the slower channel (i.e. a few ps to tens of ps) accounts for the rest. The appearance of two time scales has been interpreted as one demagnetization process that is initially fast due to the presence of hot electrons, which have not yet thermalized with the lattice, and then becomes slower once the electrons and phonons have thermalized26,27. The time scales we observe (Fig. 5b) are in very good agreement with those found for both demagnetization channels of FM Gd metal24,28 and other Gd-based materials9,25. Demagnetization amplitudes d exhibit a linear behaviour up to a critical fluence FC (Fig. 5c). In this linear range, the time scales τ slow down, a feature associated with the rise in susceptibility near the ordering temperature29. For the slow channel, this occurs at F/FC ≈ 1.

We now discuss the transient rotation dynamics of the AF structure, observed through φ(t) (Fig. 4b). The main feature is a gradual reorientation of the AF structure towards higher φ values, analogous to the rotation upon heating (dashed lines in Fig. 4b). An additional coherent oscillation of the AF structure is observed superimposed on the gradual rotation. We stress that these behaviours are collective and coherent motions of the entire AF spin structure, and in analogy to the behaviour upon heating, represent a variation in the ions’ local magnetic anisotropy. The total change in φ can be described as

$$\varphi \left( t \right) - \varphi \left( 0 \right) = {\Phi}\left( t \right) + {\Omega}\left( t \right).$$

Here, Φ and Ω represent the reorientation and the oscillation, respectively (indicated in Fig. 4b). Unlike in the demagnetization data, no subpicosecond dynamics are observed. The gradual reorientation Φ(t) occurs on time scales τφ of tens of ps (Fig. 5d), similar to the values of τslow. At late delays the reorientation begins to recover on a slower time scale τrec, such that the whole process can be described as

$${\Phi}\left( t \right) = {{\noexpand\iPhi}}_0\left( {1 - e^{ - t/\tau _\varphi }} \right){\mathrm{e}}^{ - t/\tau _{{\mathrm{rec}}}}.$$

The amplitude Φ0 and time constant τφ both grow with fluence. Such a dependence is a direct example of a controllable variation in an AF spin arrangement. To demonstrate deterministic control, the inset of Fig. 4b presents the fluence dependence of φ(t) − φ(0) at a delay of 1 ns (this delay was chosen such that all oscillations are clearly damped). A linear fluence dependence is observed in a wide fluence range, reaching complete rotation of the AF structure towards the [010] direction (Δφ > 30°) for the highest fluences.

Further insight into the underlying time-dependent magnetic anisotropy potential can be gained from the coherent oscillations Ω(t). This term exhibits fluence-dependent frequencies ω of 6–12 of GHz (Fig. 5d), and is damped on time scales τdamp well below the recovery of Φ(t). It is well described in the form

$${\Omega}\left( {\mathrm{t}} \right) = {\Omega}_0\cos \left( {\omega t - \zeta } \right)e^{ - t/\tau _{{\mathrm{damp}}}}.$$

Solid lines in Fig. 4b represent best fits to Eqs. (2)–(4). The observed rotations are reminiscent of displacive excitations of coherent phonons (DECPs)30, in which a step-like change in a vibrational potential triggers coherent phonon oscillations (see “Methods”). In analogy, we describe the local in-plane magnetic anisotropy of the Gd spins as a potential U(φ) of magnitude K, centred around the equilibrium angle φ0 as

$$U\left( \varphi \right) = \frac{1}{2}K\sin ^2\left( {\varphi - \varphi _0} \right).$$

In this picture, the coherent spin oscillations are triggered by the rapid change of the easy-axis direction φ0 expressed through Φ(t) in Eq. (3), as depicted in the cartoon in Fig. 5e. Equation 4 represents a solution of the equation of motion within this transient anisotropy potential, describing an oscillation of the AF structure around the transient easy axis, at a frequency ω corresponding to the transient value of the magnetic anisotropy constant K. The extracted values of K (see “Methods”) are presented in Fig. 5f as a function of Φ0, the amplitude of the transient easy-axis rotation (Eq. (3)). They are remarkably close to those of Gd metal18, and the corresponding anisotropy fields reach 0.24 T, in good agreement with results by Sichelschmidt et al.31.


Our method provides a complete description of the transient magnetic anisotropy, which exhibits a linear relation \(K \propto {{\noexpand\iPhi}}_0\) in Fig. 5f, demonstrating that both quantities (easy-axis angle and anisotropy strength) change together upon excitation. Assuming the transient system to be in a thermally equilibrated state, our transient values of K can be interpreted as a measure of the equilibrium anisotropy potential. This assumption is reasonable, considering that the reorientation occurs over tens of ps, which is substantially longer than typical e-ph thermalization time scales in metals of only a few ps32. Thus, our results demonstrate not only a method to control the AF spin structure using light, but also to probe the anisotropy potential of an antiferromagnet through a displacive excitation, which can be understood as an AF Γ-point magnon33.

In this work, we have demonstrated the optical manipulation of the local (single-ion) magnetic anisotropy via its temperature dependence. Beyond such thermal effects, strong variations in this energy landscape could also be achieved by other means, such as directly tuning magnetic interactions, varying the crystal field, distorting the local environment with an excited phonon mode and more. Such approaches could also offer faster response times to the excitation. Ultimately, the purpose is to embed such functionalities in spintronic devices. For example, in the context of magnetic memory such effects could facilitate ultrafast all-optical control of the pinning direction in write-head spin valves, or enable ultrafast steering of spin current directions in exchange-biased layers. Understanding controllable magnetic properties is challenging with antiferromagnets because of their inaccessibility through conventional means. The insight gained on U(φ) through our approach was enabled by the relatively slow GHz frequencies characteristic of our model material system. Antiferromagnets that are candidates for applications typically exhibit THz frequencies34, which renders similar effects more appealing for future devices, but also more challenging to identify. The effects we present may also be applicable beyond the scope of antiferromagnets, because of the Gd ions’ combination of high spin moment and low anisotropy. For example, the easy axis of Gd metal is also known to rotate upon warming by up to 60°35, suggesting that optically induced reorientation towards a transient easy axis could also occur. This and other similarities between our observations and other Gd-based magnets suggest that optical control of AF order may be possible for other Gd systems. Since Gd is commonly employed in applications requiring its high 4f moment, this property may prove as useful for the design of deterministically controllable spintronic devices.


Sample preparation

Samples were cleaved single crystals of GdRh2Si2, grown as described in ref. 13. Due to the layered crystal structure, the cleaved sample face normal is precisely parallel to the tetragonal [001] axis. The crystals used were ~1 mm3 in size, with faces much larger than the beam sizes.

Resonant X-ray diffraction

All experiments were conducted by fulfilling the Bragg condition for the (001) magnetic reflection using incoming photon energies near the Gd M5 absorption edge (~1190 eV). All experiments were conducted with σ-polarized incoming light. Correspondingly, Eq. (1) considers only the σ → π′ channel (σ → σ′ is 0 by symmetry for magnetic E1–E1 events). From the shape of the (001) reflection around the M5 edge, we estimate an effective X-ray probe depth of 26 nm (see Supplementary Note 1). The angle Ψ is 0° when the [100] direction is in the scattering plane.

Equilibrium RXD experiments

Experiments were conducted at beamline X11MA of the Swiss Light Source36, using the RESOXS end station37 and at beamline ID32 at the ESRF38.

Following Aharoni39, in Fig. 1d the temperature dependence of m(T) was fit to a mean-field approximation of the form

$${\left( {\frac{m}{{m_0}} - a} \right)^2} = \, {a^2 + \frac{{1 - 2a}}{{1 - 2b}}\left( {1 - \frac{T}{{T_{\mathrm{N}}}}} \right)\left( {1 - 2d + \left( {\frac{T}{{T_{\mathrm{N}}}}} \right)^c} \right)} \\ c = \, {1 + \frac{1}{{4S\left( {S + 1} \right)}}.}$$

The tabulated parameters for S = 7/2 are a = −1.478 × 10−3 and b = 2.7221 × 10−2. The temperature dependence of φ(T) was fit to an error function of the form:

$$\varphi \left( T \right) = A\frac{2}{{\sqrt \pi }}\mathop {\smallint }\nolimits ^T_{\!\!\!0} e^{ - t^2}{\mathrm{d}}t + B.$$

Time-resolved RXD experiments

Experiments were conducted in a UHV scattering chamber using ultrashort X-ray pulses from the femtoslicing facility at beamline UE56/1-ZPM40 at the Helmholz-Zentrum Berlin. The zone plate monochromator used in this experiment provided an energy resolution of 4 eV (see Supplementary Note 1).

The pump-probe experimental scheme was conducted at 3 kHz using 1.55 eV (800 nm) p-polarized pump pulses. The X-ray repetition rate is 6 kHz such that between every pumped event an unpumped signal is recorded, and no average heating was observed. The detector is an avalanche photodiode (APD). The 1190 and 1.55 eV pulses arrive nearly collinearly, but the APD does not collect the pump photons, which are blocked by an Al foil. The 1.55 and 1190 eV spot profiles were set to (166 ± 26 × 321 ± 60) and (170 ± 66 × 170) μm2 41, respectively.

The detection scheme allowed for single-photon counting, such that collected intensities represent photon counts per second. As such, the error bars in Fig. 3b–d are taken as \({\mathrm{{\Delta}}}I = \sqrt I\). Reciprocal space scans such as those in Fig. 3b, c were collected for every fluence at several delays, and no broadening or shifting of the peaks was observed. Therefore, only the peak heights were collected in time traces.

The time-resolved experiments were conducted at four azimuths at 45° intervals: Ψ = 15°, 60°, 105° and 150°. The probed areas on the surface were chosen to ensure a single-domain state: two-dimensional scans of the sample surface were taken before and after excitation. Chosen areas were large and homogeneous, and exhibited a uniform response to excitation. The areas chosen for different azimuths were also consistent with each other, in agreement with the azimuthal trend they should exhibit according to Eq. (1). This was the case for all except the last azimuth, Ψ = 15°. For that dataset a large degree of domain mixing was apparent in the data, such that a mixture of 105° and 15° domains (90° apart) contributes to the observed intensity. The non-mixed signal for Ψ = 15° was extracted as described in Supplementary Note 4. Contamination between the 60° and 150° azimuths is also possible, but due to their large difference in intensity (see Fig. 3b, c) any appreciable effect would only occur for Ψ = 150°. To account for this, a small fraction (2–4%) of the Ψ = 60° signal is subtracted from the 150° signal before fitting Eq. (1).

Errors in Fig. 4a, b are the standard deviation of the fit values (square root of the diagonal elements of the covariance matrix).

The demagnetizations in the curves in Fig. 4a were fit to an equation of the form

$$m\left( t \right)/m_0 = 1 - d_{{\mathrm{fast}}}\left( {1 - e^{ - t/\tau _{{\mathrm{fast}}}}} \right) + d_{{\mathrm{slow}}}\left( {1 - e^{ - t/\tau _{{\mathrm{slow}}}}} \right).$$

The temporal resolution is estimated at 120 fs. To account for this, fits to Eq. (M3) were conducted with a convolved Gaussian response function of 120 fs width.

Lastly, fits of the transient magnetization direction to the displacive excitation model (Eq. (4)) are done with a constant damping time of τdamp = 150 ps, as this does not affect the results appreciably. Displacive excitations within the DECP model typically yield a phase ζ = 0, due to a step-like shift of the potential minimum, compared to the oscillation response time30. Our response times τφ are of similar order as the oscillation period (but still shorter than half the oscillation period, as required for displacive excitations), see Fig. 5d. This more gradual shift of the potential leads to a finite oscillation phase ζ between 116° and 97°.

Calculation of absorbed fluence

All fluences reported are total absorbed fluences. In order to determine the optical constants of GdRh2Si2, we conducted reflectivity measurements using 1.55 eV light. From this we estimate the complex index of refraction at this photon energy as n = n0 + ik = (3.34 ± 0.10) + (3.19 ± 1.19)i. Using this, recorded incident fluences were corrected for reflection and refraction to produce the total absorbed fluence. Note that a value of 1 mJ cm−2 corresponds to an excitation density of 420 J cm−3 within the first layer of the material. From this index of refraction, we estimate a penetration depth of 20.6 nm at the Bragg angle θ.

Anisotropy potential

The anisotropy values K presented in Fig. 4f were calculated from the observed oscillations. We first convert them to eigenfrequencies by correcting for the damping as \(\omega _0^2 = \omega^2 + \tau _{\mathrm{damp}}^{−2}\). We then estimate the anisotropy field BA by following the derivation in ref. 42 (similarly to ref. 31) as \(\omega _0 = 2\gamma B_{\mathrm{A}}\), with \(\gamma = g\mu _{\mathrm{B}}/h\) and g = 2 for Gd, in which μB is Bohr’s magneton and h is Planck’s constant. Finally, for a simple estimate of the constant K, we use the relation BA = K/m, in which m is the total Gd 4f moment (μBgJJ), and gJ is the Landé factor.

First-principles calculations

The calculations were performed using a first-principles Green’s function method within the multiple scattering theory43,44 and within the density function theory in a local density approximation45. To correctly describe strongly localized Gd f states, a first-principles Hubbard model with U = 3 eV was used46.

The effect of temperature was simulated as a spin disorder using the DLM47,48, implemented using a coherent-potential approximation49,50. In the DLM approach, the absence of spin disorder corresponds to the ground state at T = 0, which is the AF order in the case of GdRh2Si2. An increase of temperature leads to disordering of magnetic moment orientations. A fully disordered moment configuration corresponds to the paramagnetic state high above TN.

The easy-axis direction was calculated as follows. For a given 4f spin disorder level, the spins were aligned (anti)parallel to a given direction in the ab plane. The energy of each spin direction was calculated, and the minimal energy is taken as the easy-axis angle for the given spin disorder.

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.