{'fraction_non_alphanumeric': 0.031880415371387, 'fraction_numerical': 0.0159402076856935, 'mean_word_length': 4.5486238532110095, 'pattern_counts': {'":': 0, '<': 2, '<?xml version=': 0, '>': 1, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Time-resolved RIXS experiment with pulse-by-pulse parallel readout data collection using X-ray free electron laser

Time-resolved resonant inelastic X-ray scattering (RIXS) is one of the developing techniques enabled by the advent of X-ray free electron laser (FEL). It is important to evaluate how the FEL jitter, which is inherent in the self-amplified spontaneous emission process, influences the RIXS measurement. Here, we use a microchannel plate (MCP) based Timepix soft X-ray detector to conduct a time-resolved RIXS measurement at the Ti L3-edge on a charge-density-wave material TiSe2. The fast parallel Timepix readout and single photon sensitivity enable pulse-by-pulse data acquisition and analysis. Due to the FEL jitter, low detection efficiency of spectrometer, and low quantum yield of RIXS process, we find that less than 2% of the X-ray FEL pulses produce signals, preventing acquiring sufficient data statistics while maintaining temporal and energy resolution in this measurement. These limitations can be mitigated by using future X-ray FELs with high repetition rates, approaching MHz such as the European XFEL in Germany and LCLS-II in the USA, as well as by utilizing advanced detectors, such as the prototype used in this study.

www.nature.com/scientificreports/ RIXS data on a pulse-by-pulse basis such that one can correct the jitter for each pulse. Such an experiment sets demanding requirements for the detector. First, the readout frame rate (or individual photon time-stamping) must be as fast as the repetition rate of the X-ray FEL, which is presently 120 Hz at FEL facilities such as Linac Coherent Light Source (LCLS). Second, since the quantum yield of the RIXS process is low, the detector needs to be single photon sensitive. Third, in order to conduct high resolution RIXS measurements, it is necessary to utilize a two dimensional (2D) detector with fine spatial resolution that can correct and resolve the dispersion of the scattering photon spectrum across the detector. These requirements are difficult to meet by commercially available charge coupled device (CCD) detectors for X-rays, whose readout frame rates are usually ~ 1 Hz for low-noise readout with a typical spatial resolution of 20-30 μm. While it is possible to increase the readout rate to ~ 100 Hz by binning the 2D image into a 1D spectrum, this could potentially compromise the energy resolution of a RIXS measurement. Furthermore, this method would not meet the demands of future X-ray FEL facilities, such as European XFEL and LCLS-II, which will operate at much higher FEL repetition rates (~ 30 kHz to 1 MHz). Recently, microchannel plate (MCP) detectors with Timepix readout 29,30 have become available for X-ray detection. These detectors are capable of fast readout operation (feasible at 1 MHz), allow single photon detection, possess high spatial resolution of ~ 5 to 10 μm limited by the pore size of the microchannel plates, and have high quantum efficiency for soft X-ray as required for RIXS study on quantum materials consist of 3d transition metal elements, such as cuprates and maganites. In this work, we used such a prototype MCP/Timepix detector to conduct a time-resolved RIXS measurement at LCLS. Figure 1a shows a sketch of the experiment setup at the SXR beamline, LCLS 31 . Due to stochastic noise, the energy spectrum of each SASE FEL pulse contains randomly distributed spikes in photon energy with a typical bandwidth of 1-2 eV in the soft X-ray range 4,32 . In other words, the SASE FEL is generally not energy-time Fourier transform limited (i.e. a single peak in both energy and time domains). In addition, the centroid of the FEL wavelength can also jitter over a range of a few eV 4 . The instability of the incident photon energy can compromise RIXS measurements, which require the incident photon energy tuned to a particular resonant   www.nature.com/scientificreports/ energy with a narrow bandwidth. Therefore, it is necessary to use a monochromator, which acts as a band pass filter, to select X-ray photons with desired photon energy (within the resolution of the monochromator). The intensity of the X-ray FEL pulses after the exit slit of the monochromator is measured by a gas monitor detector (GMD) 33 , whose reading can be converted to the number of photons per pulse. Figure 1b shows the histogram of the photons per pulse measured by the GMD in a typical 25-minute data acquisition period (~ 180,000 pulses). After passing the exit slit of the monochromator (100 μm, corresponding to an energy resolution of 80 meV at Ti L-edge around 460 eV), a fraction (~ 1.12%) of X-ray FEL pulses have very low or zero transmitted intensity. This is expected because these X-ray FEL pulses have larger jitter in the energy domain (δ ~ few eV) so that no photons distribute within the given photon energy acceptance windows of the monochromator. In addition, the overall transmission efficiency of the X-ray through the monochromator is low. In the data set shown in Fig. 1b, the average photon flux after the monochromator in the scan is 0.67 × 10 10 photons/pulse, which is significantly reduced from that before the monochromator (~ 10 12 to 10 13 photons/pulse). In order to improve the temporal resolution beyond the level limited by the jitter in the time (~ 400 fs) of the SASE X-ray FEL pulses, the actual pump-probe delay time Δt was measured on a pulse-by-pulse basis using a cross-correlator timing tool with a demonstrated temporal resolution of 130 fs 34 . The scattered X-ray photons from the RIXS process were also recorded on a pulse-by-pulse basis on a RIXS spectrometer with a "time stamp" associated with each incident X-ray FEL pulses 35 . By linking each RIXS measurement with the delay time Δt recorded under the same time stamp, one can bin the data in the time domain to obtain the RIXS spectrum as a function of time delay. Ideally, the binning window should be smaller than the temporal resolution of the time tool, in order to fully utilize the benefit provided by the time tool. But in practice, the data statistics usually play a determinant role in deciding a proper binning window of a data set. Smaller binning window contains a smaller number of pulses, resulting in a poorer data statistic.

Results
We chose to measure 1 T-TiSe 2 ; this material exhibits a charge density wave (CDW) with a transition temperature T c ~ 200 K. Time-resolved ARPES and optical reflectivity measurements have revealed that the CDW order is susceptible to ultrafast photo-excitations 36,37 . By scanning the monochromator grating together with the FEL photon energy, X-ray absorption (XAS) spectrum across the Ti L 3 -and L 2 -edge could be obtained via recording total fluorescence yield (Fig. 2a), which fully agrees with those measured at a synchrotron light source 38 . The RIXS experiment was conducted by tuning the incident photon energy to ~ 0.4 eV below the e g peak in the L 3 -edge, where the intensity of spectral signatures associated with the CDW state is maximized 38 . The RIXS spectrum taken before the time-zero (Δt < 0) is shown in Fig. 2b. The data was averaged over 7 25-minute acquisition scans. A feature associated with the particle-hole excitation across the CDW gap can be observed near the zeroenergy loss, whose energy scale agrees with the high-resolution data taken at a synchrotron light source 38 . Note that compared to the spatial resolution (27 μm) of the standard CCD detector used at SXR, LCLS, the Timepix detector possesses a higher spatial resolution (~ 7.5 μm achieved by single event centroiding), allowing the spectrometer to operate at an energy resolution of approximately 150 meV to resolve this CDW-related feature in the RIXS spectrum. Figure 3 shows the RIXS spectra averaged over a temporal binning window of 1.4 ps before (blue curve) and after (red curve) time-zero. The CDW-induced peak observable before time-zero (Δt < 0) disappears after www.nature.com/scientificreports/ time-zero (Δt > 0). This confirms that the CDW gap is melted by the pump photon excitations on a picosecond timescale or faster, consistent with what has been observed using other time-resolved spectroscopies [39][40][41] . In principle, it is possible to extract RIXS data with a smaller temporal binning window in order to discern faster time scales; however, this significantly deteriorates the statistics of the RIXS spectrum. Thus, with this dataset, it is not feasible to use a smaller bin size, even though the 1.4 ps binning window is much larger than the expected temporal resolution (~ 130 fs) offered by the time tool. The improvements in data statistics offered by nextgeneration X-ray FEL light sources operating at high repetition rates will enable future RIXS measurements to attain temporal resolutions closer to this limit. It is informative to examine the statistical correlations between the RIXS signal and X-ray FEL. By utilizing the single photon counting capability of the Timepix detector, as shown in Fig. 4a, we examined 37 data acquisition scans with each scan lasting approximately 25 minutes and found that less than 2% of the X-ray FEL pulses generate non-zero photon events on the Timepix detector. In other words, 98% of the pulses yield no signal on the detector. We further investigated the relationship between the RIXS signal and the intensity of X-ray pulses. Figure 4b shows the relation between incoming X-ray FEL pulse intensity and average photon count on the detector. Each FEL pulse produces counts of the order of 0.01 photons with a linear dependence on the pulse intensity. The low signal yield is apparently due to several contribution factors: the low quantum yield of the RIXS process, low photon flux on the sample, and the finite detection efficiency of the spectrometer and detector. Finally, we note that we do not observe a clear deviation from a linear relationship, indicating that the RIXS probe is still in the "weakly-perturbing" linear response regime within this range of the X-ray FEL pulse intensity, despite the fact that it is significant higher than the pulse intensity (~ 10 5 to 10 6 photon per pulse) in a typical undulator beamline at a 3rd generation synchrotron light source.

Discussion
In summary, our experiment demonstrates the feasibility of using MCP/Timepix detectors to conduct timeresolved RIXS experiments via pulse-by-pulse data acquisition and analysis. Our analysis indicates a low RIXS signal yield. This is in part due to a weak Ti L-edge RIXS cross-section of the CDW particle-hole excitations, comparing to other excitations with notably higher cross-section, such as Cu L-edge RIXS cross section of dd and magnetic excitations in cuprates. Regardless, improving the monochromatic photon flux on sample can significantly improve the data quality of time-resolved RIXS measurements while maintaining temporal and energy resolution. Note that the low monochromatic photon flux is a consequence of the low transmission efficiency of the monochromator because of the FEL jitter and low spectral brightness (i.e. due to randomly distributed spectral spikes in each pulse, e.g. Fig. 1a). Taking the data shown in Fig. 2b as an example, the X-ray FEL photon flux on the sample at LCLS was approximately 10 11 -10 12 photons/second (~ 0.67 × 10 10 photons/pulse × 120 Hz). This is one to two orders of magnitude lower than the photon flux of the synchrotron measurement reported in Ref. 38 (~ 10 13 photons/second). This problem will be mitigated in the upcoming X-ray FEL facilities with high repetition rates, such as European XFEL and LCLS-II. For example, assuming the same efficiency of X-ray optics www.nature.com/scientificreports/ and RIXS spectrometer and similar SASE FEL spectral structure, the 30 kHz to 1 MHz repetition rate available at LCLS-II will allow a 300 to 10,000-fold improvement in data statistics, provided that a detector with a comparable readout rate is available. While the readout rate of the prototype detector used for our measurement is limited at 1 kHz, the technology adapted by the MCP/Timepix detector is capable of MHz readout rate 30 , which can be a candidate for time-resolved RIXS and other X-ray spectroscopy measurement using FEL with high repetition rates. Moreover, with high repetition rates, preliminary studies have indicated the possibility of obtaining SASE X-ray FEL with higher spectral brightness and less jitter in photon energy bandwidth, pulse energy, and timing 42 .
Notably, a number of seeded FEL schemes have been proposed and commissioned, which could ultimately eliminate the jitter of FEL pulse and produce energy-time transformed limited FEL (i.e. bandwidth limited spectral brightness). With these exciting FEL developments, we anticipate time-resolved RIXS will become a powerful technique at X-ray FEL facilities for studying non-equilibrium states of material properties.

Methods
Samples. Single crystals of TiSe 2 were purchased from HQ Graphene and 2D Semiconductor. The sample crystallographic orientation was aligned using the Laue diffraction pattern prior to RIXS measurements.

Time-resolved RIXS measurement.
Optical pump, soft X-ray RIXS probe measurements were performed at the Soft X-ray (SXR) instrument of the Linac Coherent Light Source (LCLS) 31 . The measurements reported in this work were carried out using the Liquid Jet endstation with a cryogenic sample manipulator in a vacuum of the order of 10 −9 torr. The measurement was conducted at 20 K, which was achieved using a liquid Helium flow cryostat. The X-ray FEL was tuned to 0.4 eV below the Ti L 3 -edge, where the CDW-induced peak exhibits maximum intensity. The X-ray pulses were π-polarized, and its pulse duration is approximately 100 fs. The X-ray beam was focused to a spot size of about 30 × 30 μm on the sample. The optical pump pulse at 1.55 eV was π-polarized; it was generated using a Ti:sapphire amplifier with a 120 Hz repetition rate identical to the X-ray FEL. The time duration of the pump pulse was 50 fs with a focus of 1 mm × 1 mm on the sample. Before the pump pulse enters the chamber, a cross-correlator measured the delay between the optical and X-ray pulses by observing the X-ray induced reflectivity change on a Si 3 N 4 film. This was used as a time tool to characterize the temporal jitter of the X-ray FEL on a pulse-by-pulse basis 34 . As described in the main text, this information was used to correct the timing jitter.
The RIXS spectrum was recorded using a modular qRIXS grating spectrometer 35 . In order to minimize the elastic peak intensity, the spectrometer was mounted on a 90° port with respect to the incident X-ray FEL beam. The spectrometer was equipped with a prototype microchannel plate (MCP)-based areal detector (Timepix), which is capable of single-photon counting with a maximal 1 kHz readout frame rate 29 . The spatial resolution of the Timepix detector was 7.5 μm after using the centroid algorithm and was single photon sensitive. In this experiment, it was operated at a readout rate identical to the repetition rate of the X-ray FEL pulses, 120 Hz.