Introduction

Phases of laterally extended nanometre-scale textures of charge, orbital, and magnetic order play an important role in the physics of complex materials with competing interactions1,2,3,4. Understanding the structure and dynamics of these phases requires tools that provide resolution on the relevant length and time scale combined with the flexibility to study the materials in tailored environments while applying strong and ultrafast excitations. Soft X-rays are perfectly suited to investigate these ordering phenomena, as their penetration depth and sensitivity are sufficiently high to probe through the entire thickness of a nanoscale material and generate contrast in ultrathin films.

Emergent textures are often incommensurate with the crystal lattice and usually lack long-range order. Therefore, X-ray scattering from these textures typically leads to a diffuse signal, commonly referred to as small-angle X-ray scattering (SAXS), as it appears at smaller scattering vectors than crystallographic Bragg scattering. In particular, when tuning the X-ray wavelength in resonance with electronic transitions of the material’s constituents, SAXS provides unique opportunities to study the nanoscale structure and dynamics of emergent phases with spectroscopic selectivity. Magnetic contrast for X-ray scattering is provided by tuning the photon energy close to the vicinity of spin-orbit-split core-to-valence-band transitions. These resonances are especially pronounced in the soft-X-ray range, for photon energies matching the L2,3 (2p1/2 or 2p3/2 → 3d) absorption edges of the transition metals (TMs), as well as the M4,5 (3d3/2 or 3d5/2 → 4f) edges of the rare earths (REs), corresponding to 1 to 2 nm X-ray wavelength5.

A resonant soft-X-ray scattering experiment has high demands on the photon source used. The wavelength must be tunable in a wide range, going substantially higher than 1 keV to cover the magnetically relevant TM and RE elements. The scattering signal drops dramatically for high spatial resolution corresponding to large scattering vectors, q, with q−3 to q−4, and lateral contrast variations in the material are often small, particularly in ultrafast time-resolved measurements. Consequently, their time-resolved detection requires high photon numbers compressed into pulses of ultra-short duration. So far, such experiments have exclusively been possible at X-ray free-electron lasers (XFELs) when they aim at matching the intrinsic timescales of the emerging order of femto- to picoseconds. For a long time, the technical demands were beyond the reach of laboratory instruments, which would overcome the limitations in accessibility and flexibility of XFEL installations.

We have recently developed a laser-driven plasma X-ray source (PXS) operating in the relevant spectral range at a temporal resolution of 9 ps6. The performance of the source has already been demonstrated for resonant soft-X-ray diffraction in reflection7 and spectroscopic X-ray magnetic circular dichroism (XMCD) experiments in transmission8. Based on this source, we have now developed the instrumentation to detect even weaker diffuse resonant scattering, which was, so far, inaccessible in a laboratory setup for photon energies across the TM L and RE M edges. Here, we demonstrate magnetic SAXS at this laser-driven source up to photon energies above 1 keV and benchmark the capabilities of our instrumentation in a full-scale time-resolved SAXS experiment.

Results

As a realistic test case for all relevant instrumental parameters, we study the light-induced magnetisation dynamics in a multilayer of the TM Fe and the RE Gd. The alternating ferromagnetic Fe and Gd layers couple antiferromagnetically to each other. Due to the competition of magnetic interactions in this material system, low-energetic external stimuli, e.g., magnetic fields and temperature, can lead to the formation of complex spin structures such as nanoscale magnetic domains9 or twisted spin states10. Furthermore, ferrimagnetic RE–TM systems are technologically attractive due to their ability for all-optical switching11,12 and to host highly mobile and ultrasmall spin textures13,14. Our multilayer exhibits magnetic stripe domains at room temperature, forming a maze pattern with alternating up and down out-of-plane magnetisation with a spatial period of d ≈ 465 nm; see magnetic force microscopy (MFM) image in Fig. 1b.

Fig. 1: Laboratory-based time-resolved SAXS experiment.
figure 1

a Sketch of the laser-driven plasma source and the scattering setup. The SAXS pattern detected by a fast-readout area detector together with the direct beam is shown in panel (d). b Magnetic force microscopy image of the magnetic domain pattern in the FeGd multilayer. c, d The time-resolved SAXS signal detected at the Gd M5 absorption edge (1189 eV photon energy). The composite image in (d) shows the sum of detector frames taken before laser excitation (t < 0 ps, left) and frames taken after laser excitation (35 ps < t < 685 ps, right). For data analysis, the 2D detector frames are azimuthally integrated as shown in (c). The 1st and 3rd order maxima of the scattering intensity are indicated in both panels

The laboratory soft-X-ray scattering instrument

The instrument for the time-resolved SAXS experiment is sketched in Fig. 1. We focus laser pulses from a thin-disk amplifier15 onto a spinning tungsten target to generate broadband, 9 ps pulses across the entire soft-X-ray range16. Two exchangeable reflective zone plates (RZPs)17, tailored for the Fe L2,3 and Gd M4,5-edges at around 715 eV and 1200 eV, respectively, capture, vertically disperse, and horizontally focus less than 10 eV bandwidth of the soft-X-rays through a magnetic sample. However, resonant magnetic scattering originates exclusively from a narrower band (FWHM approximately 2 eV) near the absorption edges18.

A hybrid-pixel area detector19 acquires the resulting scattering pattern in 2D. With its fast readout rate, synchronised to the 100 Hz repetition rate of the PXS driver laser, the detector captures and processes an individual frame for each soft-X-ray pulse. We enable the detection of single photon events by minimising the detector’s noise floor and by applying a dedicated photon-finding algorithm20. We mitigate source fluctuations in the time-resolved experiments by modulating the repetition rate of the photoexcitation to 50 Hz with a mechanical chopper. We can then normalise the SAXS signal of the photoexcited sample to frames recorded without laser excitation and substantially increase their signal-to-noise ratio (SNR). Both the capability of single-photon counting and shot-to-shot normalisation are essential to enable the first time-resolved SAXS experiments around 1 keV on a laboratory scale. The delay, t, between the IR and soft-X-ray pulses is adjusted by a mechanical delay line and t = 0 ps corresponds to the temporal overlap of both pulses. Details of the experimental setup, sample preparation, and data evaluation are given in the Methods section.

Full-scale time-resolved resonant SAXS experiment

Figure 1d shows two-dimensional SAXS data recorded at the Gd M5 absorption edge (1189 eV photon energy), demonstrating the ability of our laboratory instrumentation to detect resonant scattering from magnetic domains with high dynamic range. The data is presented as a composite image with the sample’s ground state on the left and the transient laser-excited state on the right and is accumulated from 242,500 individual frames (\(\approx 40\,\min\) acquisition time) for each of the two scattering patterns. In our scattering geometry under normal incidence, the scattering contrast originates from the XMCD, which is proportional to out-of-plane magnetisation in the Gd layers18. As a result, the square root of the integrated scattering intensity is proportional to the local magnetisation of the domains, M(t). As expected, the domain pattern gives rise to a SAXS intensity distribution of circular shape, indicating the absence of an in-plane anisotropy in the domain pattern, in agreement with the MFM data (Fig. 1b). The weak azimuthal anisotropy (qx vs. qy) observed in the 2D scattering pattern in Fig. 1d arises solely from the focusing characteristics of the RZP X-ray optics. These instrumental effects can be independently characterised and corrected. While azimuthal information can offer valuable insight into the reorganisation of magnetic domain patterns, it is not relevant for the isotropic FeGd multilayer studied here. Therefore, we perform a full azimuthal integration of the 2D scattering patterns to extract the transient SAXS intensity, I(q, t). We plot the integrated intensity in Fig. 1c, showing that our instrument is even sensitive enough to resolve the first and third diffraction orders simultaneously. Even diffraction orders are suppressed due to the symmetry of the domain pattern, as the characteristic domain width is equal for up- and down-magnetised domains in remanence. Typically, we count between 1 × 103 to 2 × 103 ph/s in the 1st-order SAXS peak before laser excitation at the Fe L3 and Gd M5 absorption edges. These intensities agree well with the estimated 1st-order magnetic scattering efficiency on the order of 10−3 for the investigated FeGd sample, and the different absorptions in the non-magnetic parts of the sample, as well as variations in detection efficiency at both soft-X-ray energies. Due to the two orders of magnitude lower intensity of the 3rd-order scattering, we focus on the 1st-order peak, whose position, q1st, reflects the average periodicity of the magnetic domains21.

Upon photoexciting the sample with IR laser pulses, ultrafast demagnetisation reduces the magnetisation and hence the SAXS intensity22,23. This effect is already directly visible in the composite detector image in Fig. 1d. We further fit the azimuthally integrated transient SAXS intensity, I(q, t), obtained at the Fe L3 edge for an incident IR fluence of 25 mJ/cm2 with a model for maze domain patterns21 and obtain excellent agreement of the experimental data with this model, see Fig. 2a. In addition to the reduced scattering intensity after photoexcitation, we observe a peak shift, which is a clear indication of transient spatial modifications of the domain structure.

Fig. 2: Results of the time-resolved resonant SAXS experiment following the laser-driven dynamics of magnetic domains in the FeGd multilayer.
figure 2

a The q-dependent, transient SAXS intensity, I(q, t), at the Fe L3 absorption edge at an incident fluence of 25 mJ/cm2. Data are averaged for three selected delay intervals A, B, and C as indicated by shaded areas in panel b and then fitted by a Γ-distribution (lines). The grey dashed line indicates the peak position before photoexcitation. b Extracted magnetisation and relative peak shift in dependence of pump–probe delay. Data are fitted by the sum of three exponential functions to extract the relevant time scales (lines). c Differences of the SAXS intensities, I(q, t), for better visualisation of the peak shift. The data and fits from panel a are normalised by their respective peak intensities before subtracting the data before photoexcitation (A) from the data at positive peak shift (B, blue) and negative peak shift (C, red). Markers refer to differences of the experimental data, and lines refer to the differences of the fits. Data points were additionally smoothed by a running average. d, e Delay scans of the transient magnetisation, M(t), probed at the two absorption edges Fe L3 (d) and Gd M5 (e) for a series of excitation fluences. The data is fitted by a double-exponential function to extract the relevant time scales. All error bars correspond to the statistical standard error of the mean

For a direct and generic determination of the parameters describing the azimuthally integrated SAXS intensity, we numerically extract the transient magnetisation, M(t), from the square root of the integrated intensity \(\sqrt{\int\,I(q,t)\,{\rm{d}}q}\), and the peak position, q1st, from the centre of mass of I(q, t), see Methods section. In Fig. 2b, we show the time evolution of magnetisation and the peak shift, both normalised to their values before photoexcitation. After fast demagnetisation, the sample remains almost unchanged at a magnetisation of M = 0.56 up to a delay of approximately 1 ns before remagnetisation sets in. We have phenomenologically modelled the data with the sum of three exponentials with different time constants, indicating a very fast and a slower demagnetisation process after excitation and the following remagnetisation. We attribute the slower demagnetisation process and its saturation to the fact that the sample thickness is twice as large as the optical absorption length at the laser wavelength of 1030 nm. Accordingly, direct photoexcitation does not affect the lower part of the multilayer sample, away from the surface on which the laser is incident. The low electronic heat conductivity in amorphous FeGd-based materials compared to other crystalline metals24 also inhibits efficient short-range transport of hot electrons, which essentially limits the temperature equilibration to the speed of phononic heat transport. One-dimensional heat-diffusion simulations25 along the depth of the FeGd multilayer film indeed show a quasi-instantaneous temperature rise and subsequent cooling of the upper half of the film; see Fig. S1 in the Supplementary Information and the Methods section. In contrast, the lower half of the film reaches a much lower temperature maximum at around t = 1 ns, indicating that it remains close to its initial magnetisation state. At the same time, the average temperature of the film stays nearly constant after photoexcitation for several hundreds of picoseconds before efficient cooling to the substrate becomes effective.

Extracting nanoscale structural information

Information on transient spatial rearrangements of the domain structure is encoded in the position and shape of the diffraction peak. A shift of the scattering peak has been observed on ultrafast time scales in Co-based systems and has been controversially discussed in the community22,26,27,28,29. In contrast to these results, the relative peak shift in our experiment on FeGd exhibits a distinctly different temporal behaviour compared to the magnetisation. First of all, we observe a so far unseen reversal of the transient peak shift from an initial shift to larger scattering vectors superseded by a shift to smaller vectors, i.e. into the opposite direction, as highlighted by the regions B and C in Fig. 2b, respectively. While the initial shift to increased q follows the fast demagnetisation time scale, the subsequent peak shift to lower q lasts over the full delay range recorded and is unaffected by the magnetisation recovery.

Comparing the peak shapes of the SAXS signal, I(q, t), provides further insight, as shown in Fig. 2a. We implement this comparison by calculating the difference of the intensity-normalised peaks before and after laser excitation separately for regions B and C in Fig. 2c. The diffraction peak at late times (C, red) shows the typical signature of a peak shift with an increase in intensity on one side of the peak and a decrease on the other side compared to the initial peak shape before excitation. We, therefore, attribute the shift mainly to a transiently modified lateral domain periodicity, most likely caused by the warming of the entire multilayer on long time scales.

The change of the peak at early 100-ps time scales (B, blue) is much more subtle, though. The difference plot shows an increase in intensity on both sides of the peak but with different amplitudes. This collective broadening and shifting of the SAXS peak indicate spatially strongly inhomogeneous dynamics of the magnetic domain pattern, which is in line with the distinctively different thermal time scales for the upper and lower half of the FeGd multilayer and the corresponding thermal gradient within the depth of the sample. We assume that the shift then originates from the transiently reduced effective thickness of the film, promoting local domain-wall rearrangements towards a smaller periodicity13,30.

Although we can only speculate on the micromagnetic origins of the reversal behaviour of the peak shift, our results demonstrate the wealth of information that can be extracted from the q and time-resolved data accessible by our laboratory setup. While in laser-driven non-equilibrium the complex interplay of magnetic interactions can lead to reorganisation and formation of lateral magnetic order on femto- to nanosecond time scales22,26,27,28,29,31,32, our observations highlight the importance of thermal gradients and phononic heat transport in the picosecond regime.

Multidimensional measurements

Studying complex multi-component magnetic materials requires multi-dimensional measurements including variations of applied field, temperature, excitation parameters, and spectral information, e.g., to dissect different sublattices. The high SNR of our data, based on the single-photon counting capabilities and shot-to-shot normalisation, enables highly photon-efficient experiments. We demonstrate this high efficiency and stability by a full set of delay scans obtained at the Fe L3 and Gd M5 edges, respectively, with varying excitation fluence, see Fig. 2d, e. An example of a magnetic hysteresis scan is presented as Fig. S2 in the Supplementary Information. The resonant probing at the two absorption edges allows us to distinguish the magnetic moments in both sublattices11. Typical scans require on average only 100 s of integration time per data point (104 X-ray pulses), which is equivalent to the total acquisition time due to the fast read-out of the detector. As an example, our delay scans typically consist of 40 data points without re-optimising the PXS settings, which results in a total duration of maximum 60 min per scan. The acquisition of the eight scans presented can be completed in a single day, thereby ensuring the comparability of the results.

The transient magnetisation, M, in the delay scans in Fig. 2d, e is determined from the integrated SAXS intensity in the same way as described for panel b. Qualitatively, both sublattices show the same transient change in magnetisation. All traces feature a fast initial drop due to ultrafast demagnetisation after photoexcitation, where the demagnetisation rate almost linearly depends on the excitation fluence in the range covered in our experiment. However, on average, we observe a 4.5% stronger initial demagnetisation at 50 ps of the Gd-sublattice magnetic moments as compared to the Fe moments. Such differences in the magnetisation dynamics of the two sublattices in TM-RE multilayers or alloys are well known in the literature11,33,34. These differences are typically even more pronounced in the time constants of the demagnetisation in the first few picoseconds. However, our limited soft-X-ray pulse duration of 9 ps does not allow us to resolve such differences. Still, we detect that remagnetisation occurs faster for the Fe sublattice compared to Gd, which points to a weaker magnetic coupling via interlayer exchange across the approximately 0.5 nm thin individual layers as compared to earlier work35.

Discussion and perspective

The results on the laser-excited dynamics of magnetic domains in FeGd prove the remarkable capabilities of our laboratory-based instrument for resonant SAXS experiments. Our instrument is specifically designed for time-resolved studies with a temporal resolution of 9 ps defined by the duration of the X-ray pulses. Although the contrast of a magnetic SAXS experiment in transmission at normal incidence is based on a circular dichroism (XMCD), the method does not suffer from the random polarisation of the PXS emission, as both circular polarisation states contribute equally to the scattering pattern and overlap incoherently. The source and beamline provide the required lateral coherence length (> 500 nm) and photon flux (106 to 107 ph/s/eV) at the sample position, to record diffuse scattering of unprecedented intensity and data quality for a laser-driven setup working in the soft-X-ray range between 500 to 1500 eV photon energy. The detection and normalisation schemes introduced in our instrument allow reasonable measurement times to perform even multidimensional and systematic studies in a tailored laboratory environment. For the future, we see great potential for an increase of photon flux of up to two orders of magnitude, as current thin-disk lasers and area detectors36 can operate already today at 10 kHz, compared to the repetition rate of 100 Hz in our experiment.

But what is the actual benefit of our instrument compared to existing setups? So far, laser-pump/soft-X-ray-probe SAXS experiments were only possible at dedicated beamlines and instruments at XFEL facilities. In recent years, the technique has led to notable discoveries in the field of photo-induced ultrafast magnetisation dynamics, such as spin currents excited during ultrafast demagnetisation as well as all-optical switching22,37 and the picosecond formation, rearrangement, and topological transformation of nanoscale magnetic order27,28,31,32. However, the flexibility and accessibility of these instruments are largely limited, preventing time-consuming systematic studies within the large phase space of most complex materials. Although the temporal resolution of the PXS does not capture the fastest sub-picosecond dynamics of magnetic order, it is ideally suited for resolving the intrinsic time scales associated with processes involving spatial rearrangements in non-equilibrium states of technologically relevant meso-scale material systems, spanning the pico- to nanosecond regime. Similar studies are possible at XFELs, but they will compete fiercely for beamtime with those experiments that are not feasible without the femtosecond pulse durations of XFELs, which are even approaching the attosecond regime38.

In contrast, synchrotron-radiation facilities provide X-ray pulses with a typical duration of only 100 ps. In addition, their high MHz repetition rates render laser-pump/soft-X-ray-probe experiments very challenging because of the requirement to match the pump and probe repetition rates. To handle the heat load on solid materials from the laser excitation, approaches at these sources require the reduction of the X-ray repetition rate to typical kHz frequencies via mechanical choppers or dedicated fill patterns of the storage ring39. Laser-slicing facilities on the other hand provide 100 fs X-ray pulses at kHz repetition rates40 with a photon flux of 106 to 107 ph/s/eV at the sample being comparable to our PXS-based instrumentation. However, due to the requirement of nanosecond electronic gating, no 2D detectors have been implemented at soft-X-ray slicing facilities yet, which is inevitable for efficiently covering a larger part of reciprocal space in time-resolved SAXS experiments.

Laboratory SAXS experiments in the extreme ultraviolet (XUV) regime driven by higher harmonic generation (HHG) have been able to access nanometre-scale dynamics of magnetic domains with sub-100 fs temporal resolution23,41. However, the strong absorption of XUV light puts narrow boundaries on the maximum sample thickness. For higher-lying resonances, which are accessible by our PXS, these thickness constraints are much more relaxed and allow for the study of a broader range of fundamentally and technologically relevant sample systems. In the soft-X-ray range, the accessible reciprocal space is also about ten times larger and comes along with a much clearer spectral separation of absorption edges, resulting in an unambiguous assignment of signals to their respective elements. Although HHG sources already reach the soft-X-ray regime, their photon flux is still insufficient for time-resolved SAXS experiments at magnetic TM L-edges and above42,43,44,45,46.

Due to the short wavelengths of λ ≈ 1 nm combined with the high selectivity of soft X-rays to charge, spin, and orbital degrees of freedom, we are confident that our approach for time-resolved soft-X-ray SAXS experiments in a laboratory environment enables a wide range of experimental studies on the ultrafast dynamics of emergent textures in quantum materials. Since the scattering contrast in SAXS experiments generally does not depend on the source polarisation, as discussed here for the XMCD contrast in magnetic domains, also other types of nanoscale domains of, e.g., different morphologies or oxidation states47, and even ferroelectric domains exhibiting X-ray linear dichroism (XLD)48, are accessible by the randomly polarised PXS. Our setup’s high flexibility allows for easy adaptation to these different material classes, e.g., by controlling external parameters such as fields and temperature. Dedicated schemes for photoexcitation employing a synchronised, femtosecond laser and subsequent frequency-conversion stages are promising next steps for accessing dynamics up to the millisecond regime, introducing electronic delays, and for resonantly exciting quasi-particles, such as excitons, phonons, or magnons, respectively.

Methods

Laser system

Our laser system is an in-house developed thin-disk laser system designed to produce high-energy laser pulses at 100 Hz repetition rate with exceptional stability. In a first stage, pulses with 100 fs pulse duration are picked at 100 Hz repetition rate from a Yb:KGW oscillator and then grating-stretched in time to nanosecond duration and amplified to about 1 mJ in a first Yb:YAG regenerative amplifier. Our Yb:YAG-based thin-disk laser system further amplifies the pulses to an energy in excess of 200 mJ ± 0.2% RMS15. The pulses are then compressed to a pulse duration of 1.8 ps with an efficiency of ≈ 80%. From this laser at a wavelength of 1030 nm, up to 2 mJ are out-coupled for optical excitation of the sample. The remaining majority of ≈ 160 mJ is used to drive the following PXS.

Soft-X-ray source and beamline

For the PXS, we focus the laser to a spot size of 15 μm (FWHM) onto a spinning tungsten cylinder. Here, every single laser pulse creates a plasma, emitting broadband soft-X-ray pulses of 9 ps duration into the full solid angle6. The soft X-rays from this source are captured, dispersed, and focused through the magnetic sample by one of two reflective zone plates (RZPs), designed for photon energies around 715 eV and 1200 eV, respectively, as the single optical element onto an area detector. In our experiment, the photon energy bandwidth is defined by the sample aperture. Optionally, a motorised exit slit can be used to further reduce the bandwidth upstream of the sample. An in-vacuum electromagnet provides an applied magnetic field of up to B = 1.5 T. A closed-cycle helium cryostat (not used in this experiment) is installed to control the sample temperature down to 30 K.

In this experiment, the sample is photoexcited by 1030 nm IR pulses of 1.8 ps duration split off from the PXS driving laser. The IR pulses are guided over a mechanical delay stage, enabling pump-probe delays of up to 2 ns. Subsequently, they are focused onto the samples down to a spot size of 800 × 800 μm2 with a maximum pulse energy of up to 1 mJ. An optomechanical chopper synchronised to the thin-disk laser blocks every second pump pulse to capture frames without photoexcitation for normalisation.

MÖNCH detector & data reduction

The soft-X-ray pulses scattered off the sample are recorded by the hybrid pixel detector MÖNCH (Jungfrau Micropixel with enhanced pOsition rEsolution usiNg CHarge integration) developed at the Paul Scherrer Institute, Switzerland19,49. The detector has an active area of 10 × 10 mm2 with 400 × 400 px and is located at a distance of 607 mm from the sample. The entire chip is coated with a 450 nm-thick Al layer to prevent IR light from reaching the photosensitive region. The readout of the entire chip takes 250 μs and the data can be transferred at a maximum frame rate of 3 kHz. The high frame rate allows us to retrieve the scattering image for every soft-X-ray pulse emitted by the PXS at its 100 Hz repetition rate. We achieve temporal synchronisation of the detector acquisition window and the arrival of the soft-X-ray pulses on the detector with only small jitter (< 50 ns), which allows us to reduce the detector exposure time to its minimum of 100 ns. At this exposure time, we achieve a minimum readout noise of 33 electrons (RMS)49. In contrast to previous characterisation in ref.49, the noise of our prototype significantly increases by a factor of more than two when increasing the exposure time to 1 ms, which would make single-photon detection in the soft-X-ray range impossible. For example, in our case, a 707-eV photon (Fe L edge) creates a signal of 193 electrons, and a 1189 -eV photon (Gd M edge) a signal of 325 electrons. The quantum efficiency of the detector was determined at the PTB in Berlin, Germany, to 66% and 90% at the Fe and Gd edge, respectively. We find that a photon is usually split at a ratio of ≈ 60/40 between two pixels horizontally or vertically, which we account for by using a photon-finding algorithm based on a continuous comparison of pixel values and the sum of 2 × 2 px and 3 × 3 px sub-regions with the RMS-weighted threshold values20. Prior to this processing, we first remove the background (pedestal) from the raw data and apply a common-mode correction to account for a charge redistribution between illuminated and non-illuminated pixels. The resulting scattering patterns are then sorted and summed up according to the state of the optomechanical chopper in the pump beam path. The two-dimensional intensity patterns are further azimuthally integrated via the Python PyFAI50 package. We can fit the q-dependent SAXS peak, I(q), by an, e.g., Γ-distribution-based fit model21

$$f(q,A,\theta ,k,c)=A\cdot \frac{1}{\Gamma (k){\theta }^{k}}{q}^{(k-1)}\exp \left(-\frac{q}{\theta }\right)+c$$
(1)

where the scattered intensity is directly represented by the amplitude A and the mean value, representing the average domain size, is given by qmean = θk.

For a direct and generic determination of the parameters describing the azimuthally integrated SAXS intensity, we numerically extract the local magnetisation of the domains as square root of the scattered intensity \(M\propto \sqrt{\int\,I(q,t)\,{\rm{d}}q}\)18 as the scattering contrast is proportional to the magnitude of the magnetisation in the domains with alternating magnetisation direction. The peak position, q1st, is determined by the centre of mass of I(q, t). The analytical Γ-based model and the numerical methods both result in qualitatively similar results for the transient changes of the peak area and position. In addition to single-photon events dominating the diffuse scattering, the high frame rate of the detector also enables a sufficiently large dynamic range to simultaneously capture the intensity of the direct, forward-scattered X-ray beam in the centre of the scattering pattern, see Fig. 1d.

The transient data sets of the magnetization M(t) and the peak position q1st(t) are fitted by a sum of exponential functions to account for the various different time scales observed. The most general form of this function is given by

$$f(t)={A}_{0}+G(t)* \left\{\sum _{i}\Theta \left(t-{t}_{i}^{0}\right){C}_{i}\left(1-{e}^{-\left(t-{t}_{i}^{0}\right)/{\gamma }_{i}}\right)\right\}$$
(2)

where A0 is a static offset, the temporal resolution is included by convolution by a Gaussian function G(t), the Heaviside step function \(\Theta (t-{t}_{i}^{0})\) describes the delay-dependent onset of the different dynamics at \({t}_{i}^{0}\), and the exponential behaviour is described by a scaling parameter Ci and a time constant γi.

Sample system

Our sample system is an [Fe(0.4 nm)Gd(0.5 nm)]116 multilayer, where the alternating Fe and Gd layers couple antiferromagnetically to each other. The multilayer exhibits magnetic stripe domains with an average size of ≈ 232 nm at room temperature, forming a maze pattern with alternating up and down out-of-plane magnetisation; see MFM image in Fig. 1b. The magnetic heterostructure was grown by electron-beam physical vapour deposition on an X-ray-transparent 20 nm-thick SiN membrane of 0.5 × 0.5 mm2 aperture, seeded with 3 nm and capped with 2 nm of Ta. The backside is coated with a 300 nm-thick layer of Al for improved heat dissipation to reduce static heating effects. Out-of-plane hysteresis loops probing the magneto-optical Kerr effect (MOKE) and SAXS intensity at the Fe L3 edge clearly evidence the transition of a domain state at remanence to a fully saturated ferromagnetic state at external fields B > 75 mT, see Fig. S2 in the Supplementary Information.

One-dimensional heat diffusion simulations

To estimate the time and length scales of energy transport within the FeGd sample after laser excitation, we carried out one-dimensional heat diffusion simulations using the Python udkm1Dsim package25. For the accessible time scales (t > 10 ps), we describe electrons and phonons with a single temperature, T, assuming thermal equilibrium between the two subsystems. We solve the one-dimensional heat-diffusion equation

$$c\rho \frac{\partial T}{\partial t}=\frac{\partial }{\partial z}\left(k\frac{\partial T}{\partial z}\right)+S(z,t)$$
(3)

with isolating boundary conditions. Here, c denote the material-dependent specific heat capacities of each layer and k the respective thermal conductivities. For simplification, c and k are assumed to be independent from T. The optical excitation is taken into account by S(z, t), describing the pump laser energy absorbed by the sample. To this end, the depth-dependent differential absorption profile of the 1030 nm pump pulses is first calculated using a multilayer formalism within the udkm1Dsim framework, taking interlayer reflection and interference effects into account, resulting from the material-dependent complex refractive index change at each interface of the heterostructure. The spatial absorption profile of the pump pulses is further multiplied by a Gaussian distribution in time with an experimentally determined duration of 1.8 ps (FWHM). The simulation code and all material-specific parameters are provided within a dedicated repository.