{'fraction_non_alphanumeric': 0.02635132669075514, 'fraction_numerical': 0.009817876564838133, 'mean_word_length': 5.140744060959211, 'pattern_counts': {'":': 0, '<': 1, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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}}
Segmented Terahertz Electron Accelerator and Manipulator (STEAM)

Acceleration and manipulation of electron bunches underlie most electron and X-ray devices used for ultrafast imaging and spectroscopy. New terahertz-driven concepts offer orders-of-magnitude improvements in field strengths, field gradients, laser synchronization and compactness relative to conventional radio-frequency devices, enabling shorter electron bunches and higher resolution with less infrastructure while maintaining high charge capacities (pC), repetition rates (kHz) and stability. We present a segmented terahertz electron accelerator and manipulator (STEAM) capable of performing multiple high-field operations on the 6D-phase-space of ultrashort electron bunches. With this single device, powered by few-micro-Joule, single-cycle, 0.3 THz pulses, we demonstrate record THz-acceleration of >30 keV, streaking with <10 fs resolution, focusing with >2 kT/m strength, compression to ~100 fs as well as real-time switching between these modes of operation. The STEAM device demonstrates the feasibility of THz-based electron accelerators, manipulators and diagnostic tools enabling science beyond current resolution frontiers with transformative impact.

manipulators and diagnostic tools enabling science beyond current resolution frontiers with transformative impact.
Particle accelerator development over the last century has underpinned the study of fundamental forces and particles as well as structure and function of materials and its properties at ever higher spatial and temporal resolution. Until recently, microwaves in the radio-frequency (RF) regime (1-10 GHz) have been the conventional choice for powering accelerators due to the high degree of technical maturity of the sources which have been used extensively across all areas of industry and science, from cell phones, microwave ovens and radar to linear accelerators1, bunch compressors2,3 and high-resolution streak cameras4,5. The long driver wavelengths are ideal for accelerating electron bunches with up to nanocoulomb bunch charge, and as a result of many decades of development, it has become possible to generate ultrafast electron pulses with very high peak brightness and quality. However, RF-based accelerators require costly infrastructures of large size and power6, limiting the availability of this key scientific resource. They also suffer from inherent difficulties in synchronization with lasers7 which lead to timing drifts on the 100femtosecond scale between the electrons, microwave drivers and optical probes, limiting the achievable temporal resolution. Strong motivation thus exists for exploring alternative technologies that are compact, more accessible and adapted for pushing the resolution frontier especially where lower levels of charge in the few pC range or lower is sufficient. Novel accelerator concepts thus primarily focus on laser-based approaches that provide intrinsic synchronization, allow scaling to smaller accelerator structures and can generate substantially stronger fields for acceleration and beam manipulation. These include dielectric laser accelerators (DLAs)8,9, laser-plasma accelerators (LPAs)10-14 and laserbased THz-driven accelerators15-17, each with different advantages. A consequence of downscaling in size is that less charge can be supported and creation of reliable structures can become more difficult. LPAs, for example, which boast extremely high acceleration gradients on the order of 100 GV/m, generate acceleration structures dynamically and therefore suffer from instabilities and difficulties in controlling injection. DLAs, which employ micron-scale structures, require extreme tolerances on alignment and control, and are limited to bunch charges in the sub-femtocoulomb range. THz-based accelerators, however, exist at an intermediate, millimeter scale that allows traditional fabrication techniques and supports moderate charge while still benefiting from compactness, low cost and strong driving fields. This balance makes THz-based acceleration an extremely promising technology for future devices.
So far, the development of THz-based accelerators has been limited by the lack of sufficiently energetic THz sources, but recent progress in efficient laser-based methods18-20 has enabled generation of high-power, GV/m THz fields, opening new possibilities and spurring interest in THz-accelerator-related technologies. Proof-of-principle demonstrations include electron emission21,22 and acceleration15,16,23-27 as well as compression and streaking28,29. These experiments, although limited in charge, beam quality, energy gain and energy spread, have set the stage for development of practical, compact THz-based devices which can support sufficient charge and field gradients to realistically be used to boost performance of existing accelerators or as components of future compact accelerators and X-ray sources. In this letter, we demonstrate the first such device based on a layered, transversely pumped, waveguide structure. This segmented THz electron accelerator and manipulator (STEAM) device can dynamically switch between accelerating, streaking, focusing and compressing modes, can support multiple picocoulombs of charge and features intrinsic synchronization. Using only a few microjoules of single-cycle THz radiation, we demonstrate over 70 MV/m peak acceleration fields, 2 kT/m focusing gradients (which are an order of magnitude beyond current electromagnetic lenses and comparable to active plasma lenses), the highest reported THz streaking gradient of 140 µrad/fs (making it wellsuited for characterization of ultrafast electron diffractometer bunches down to 10 fs) as well as compression to ~100 fs. All these demonstrations are strongly benefitting from very small temporal jitter achieved through laser-driven THz sources (see supplementary material). By increasing THz pulse energies to state-of-the-art millijoule levels20, it is expected that acceleration gradients approaching 1 GV/m can be achieved and sustained. Such gradients surpass those possible in RF accelerators by an order of magnitude and enable major improvements in electron bunch qualities such as emittance and bunch length. The picosecond duration of the THz pulses is an essential ingredient for reaching the GV/m regime, since experiments have shown that maximum acceleration gradients, which are limited by field-induced breakdown, scale with the sixth power of the field duration30-33. Demonstration of the THz-driven STEAM device thus establishes a new compact, strongfield and extremely-high-gradient accelerator technology.

Concept and implementation
The experimental setup (Fig. 1a) consisted of a 55 keV photo-triggered DC gun, a THzpowered STEAM device for electron acceleration or manipulation and a diagnostic section which included a second STEAM device used as a streak camera, all of which were driven by the same IR laser source. Ultraviolet pulses for photoemission were generated by two successive stages of second harmonic generation, while single-cycle THz pulses were generated by difference frequency generation. THz from two independent setups was coupled into the STEAM device ( Fig. 1c) transversely to the electron motion by two horn structures which focused the counter-propagating THz fields beyond the diffraction limit into the interaction zone. The electrons experience both the electric and magnetic fields of the THz pulses according to the Lorentz force law F = q(E + v × B ), where -q is the electron charge, E is the electric field, oriented parallel to the electron velocity v , and B is the magnetic field, oriented vertically in the lab frame. The electric field is thus responsible for acceleration and deceleration, while the magnetic field induces transverse deflections.
Efficient interaction of the electrons with the fields was accomplished by means of segmentation which divided the interaction volume into multiple layers, each isolated from the others by thin metal sheets (Fig. 1a). Dielectric slabs of varying length were inserted into each layer to delay the arrival time of the THz waveform to coincide with the arrival of the electrons, effectively phase-matching the interaction. Due to the transverse geometry, the degree of dephasing experienced in each layer was determined by the traversal time of the electrons, which was dependent on the electron speed and the layer thickness. A reduction in dephasing can thus be accomplished by reducing the layer thickness and increasing the Europe PMC Funders Author Manuscripts number of layers, at the cost of increased complexity. The ability to tune the thickness and delay of each layer independently is a key design feature of the STEAM device that enables acceleration of sub-relativistic electrons for which the speed changes significantly during the interaction (e.g, from 0.43 c to 0.51 c for our maximum acceleration case).
The use of two counter-propagating drive pulses enabled two key modes of operation which are specified with respect to the interaction point, i.e., the center of the interaction region of each layer: • an "electric" mode, used for acceleration, compression & focusing, in which the pulses were timed to produce electric superposition and magnetic cancellation of the transverse fields at the interaction point; • a "magnetic" mode, used for deflection and streaking, where the magnetic fields superposed and the electric fields cancelled.
The function of the device was thus selected by tuning the relative delay of the two THz pulses and the electrons, all of which were controlled by means of motorized stages acting on the respective IR pump beams. In focusing and streaking modes the electron beams were sent directly to a MCP-detector. For acceleration measurements, an electromagnetic dipole was used to induce energy-dependent deflections in the vertical plane, so that both deflection and energy change could be measured simultaneously. To measure the compression, a second STEAM device in streaking mode was added downstream of the first to induce timedependent deflections in the horizontal plane. The breakdown threshold of the device is determined by field emission from the metallic parts. Owing to the 4-5 orders of magnitude shorter field-exposure times of single-cycle THz pulses as compared with RF excitations, the previous studies suggest that a factor of 3-10 higher breakdown threshold for pulsed THz driven devices can be expected26,31. The remainder of this paper gives a detailed description of the results obtained for acceleration, compression, focusing, deflection and streaking for this STEAM device.

Electric Mode: acceleration, compression & focusing
In the electric mode, the relative timing of the THz pulses was adjusted so that the electric fields (E-fields) constructively interfered at the interaction point. In this configuration, the magnetic fields (B-fields) were 180° out of phase with each other and thus cancelled, minimizing unwanted deflections. The acceleration was sensitive to the THz phase at the interaction. Figure 2 shows energy and deflection diagrams which were obtained by recording the vertical and horizontal projections (respectively) of the electron-beam distribution on the MCP as a function of the electron-THz delay. Although the THz pulses injected into the device were nearly single cycle, several cycles of acceleration and deceleration were observed, due to dispersion induced by the horn couplers.
Maximum acceleration and deceleration occurred at the electron injection points (Fig. 2a) where the deflection was minimized (Fig. 2c) and the beam spatial distribution was also preserved ( Fig. 2e

Europe PMC Funders Author Manuscripts
Europe PMC Funders Author Manuscripts below). The energy gain scaled linearly with the applied field (Fig. 3b) and reached a record of more than 30 keV (5 times larger than previous works15) for a bunch charge of ~5 fC. In contrast to previous results showing simultaneous acceleration and deceleration, the energy spectrum can be seen to move cleanly to a higher energy (Fig. 3a), indicating that injected bunches were shorter than half the driver period. In fact, the bunches were measured (by the STEAM device in streaking mode) to have a duration of 670 fs, and thus occupied about 20% of the 3.33 ps period accelerating field. The increase in energy spread is attributed in part to the variation of the E-field over the bunch temporal profile. Although bunches with charge up to 20 fC were coupled into the device, space-charge effects and the long travel distances from the DC gun lead to longer bunch duration and larger energy spread. For demonstrating THz-driven acceleration, the charge was limited to 1-5 fC during this experiment. Use of a THz-based re-buncher before the accelerator is thus anticipated for future experiments to reduce energy spread.
The performance of the device was simulated using a finite-element based code34. Figure 3c shows snapshots of the electrons traversing the device and staying in phase with the field (full simulation results are presented in movie S1). Figure 3d shows the electron energy as a function of distance. The energy gain can be seen to occur in three uneven steps corresponding to the three layers. The unevenness and the presence of deceleration at some points are evidence of dephasing due to the fact that the structure was designed for higher THz energies (see supplementary material). Simulations predict that MeV electron beams with up to 10 pC of charge are achievable by increasing the number of layers and extending THz pulse energies to the millijoule level24 which is within the reach of current THzgeneration methods20.
At timings off from the optimum acceleration, the electrons experienced strong temporal gradients of the E-field resulting in large energy spreads (Fig. 2a). At the zero-crossing of the field, the gradient is maximized and the electrons see symmetric acceleration and deceleration but no net energy gain. In this mode, the E-field imparts a temporally-varying energy or "chirp" resulting in a velocity gradient that causes either compression or stretching (depending on the sign of the gradient) of the electron bunch as it propagates35. This technique, known as "velocity bunching" is an ideal application of THz technology, since the sub-mm-scale gradients allow bunch compression down to the femtosecond range. To test this concept, the applied THz energy was varied and a second STEAM device ("streaker") acting as a streak camera (described in the next section) was added to measure the bunch temporal profile at a point 200 mm downstream of the first device ("buncher"). Figure 4a shows the electron bunch temporal profiles measured at the streaker for various field strengths applied to the buncher. The initial decrease in bunch duration with increasing field confirms that the electrons arrive at the buncher with a space-charge-induced energy chirp. A minimum duration of ~100 fs FWHM was achieved after which the duration increases again (Fig. 4b), implying that for high fields the electrons temporally focus before the streaker and are over compressed by the time they are measured. The minimum bunch duration can thus be reduced by using stronger fields and a shorter propagation distance as shown by the simulation in Supplementary Fig. S7. As observed on the MCP-detector (Fig.  4b inset), a good e-beam profile is maintained at the optimal compressed condition.

Europe PMC Funders Author Manuscripts
Europe PMC Funders Author Manuscripts 4c shows the evolution of the bunch duration with distance simulated for the minimum bunch duration case. The phase-space distributions in insets d, e & f show the reversal of the velocity correlation by the buncher and the eventual compression at the streaker location.
By placing the electrons at the zero crossing in the electric mode (corresponding to the maximum B-field rotating around the interaction region), the STEAM device can also operate as a focusing or defocusing element, as can be seen by the horizontal spreading of the beam profile in Figure 2c. Due to the strong THz field that leads to over-focusing at the fixed MCP position, both focusing and defocusing schemes are observed here as an increase of the beam size. This focusing effect is a consequence of the well-known Panofsky-Wenzel Theorem36 which uses Gauss's law to show that longitudinal compressing and decompressing fields must be accompanied by transverse defocusing and focusing fields, respectively. The B-field always cancels at the interaction point, while still has time varying transverse magnetic field distribution in the antinode region that contributes to the defocusing and focusing (illustrated in Fig. 5c,d). The focusing was tested by monitoring the beam spatial profile at the MCP for varying THz pulse energies. Figure 5a shows the results for the focusing configuration, which corresponded to the longitudinal decompression condition. At best focusing the electron beam diameter was reduced by 2 × compared to its input value. For higher field strengths, however, the device focal length became shorter than the 180 mm distance to the MCP, causing the measured beam size to increase again. Similarly to photon beams, a focusing optics with higher focusing power results in a smaller beam at focus, provided that the input beam size is constant (see supplementary material). The defocusing configuration is obtained by shifting the electron timing to the longitudinal compression condition, which occurs at an adjacent zero crossing of opposite sign. In this case, the electron beam diameter increases monotonically with the THz field (Fig. 5b), as expected. For both cases, the focusing performance is significantly beyond what is offered by conventional electrostatic37 and proposed dielectric focusing structures38 and is comparable to those of plasma lenses39. Peak focusing gradients of >2 kT/m were calculated based on ~2×6 µJ of coupled THz energy. A small (less than a factor of 2) asymmetry is noticeable for the focusing strengths in the horizontal and vertical planes. This asymmetry is due to the asymmetry of the interaction region which leads to stronger gradients in the vertical direction (Fig. 5c,d).

Magnetic Mode: Deflection & streaking
In the magnetic mode, the relative timing of the THz fields is different from that of the electric mode by a half period, resulting in reinforcement of the magnetic and cancellation of the electric fields at the interaction region. In this configuration, electron acceleration is minimized (Fig. 2b), and the B-field dominates the interaction causing a transverse deflection of the electron beam that depends on the THz phase at the interaction (Fig. 2d). When electrons sweep the positive cycle of the B-field, the deflection is maximized and the beam profile is also best preserved. In this mode, electron beams can be precisely steered (Fig. 2e top & bottom beams) by varying the THz pulse energy. Here, we achieved continuous control of the beam angle over a range of 70 mrad which was limited by the aperture of the device (Supplementary Fig. S6). Increasing the aperture enables greater range at the cost of a weaker deflection field, since the field confinement is affected.
Electrons sweeping the zero crossing cycle of the THz B-field, on the other hand, experience a strong deflection as a function of delay time enabling the measurement of the temporal bunch profiles of very short bunches by mapping (or "streaking") them onto the spatial dimension of a detector. To test this concept, a first STEAM device was used in compression mode (as described above) to provide electrons of varying bunch durations at a second, downstream STEAM device which analyzed the temporal profiles by streaking. Figure 6a shows raw images of a temporally-long electron beam with the THz streaking field switched on and off. Streaking "deflectograms," generated by plotting a lineout of the spatial charge distribution along the streaking dimension as a function of delay relative to the THz field, are shown in Fig. 6b for compressed and uncompressed electron bunches. The degree of streaking, indicated by the vertical extent of the deflectogram, depends clearly on the bunch duration and on the phase of the THz field, as expected. For a THz energy of ~2×6 μJ coupled into the device, a maximum deflection rate of > 140 µrad/fs was achieved ( Supplementary Fig. S7), corresponding to a temporal resolution below 10 fs. The resolution was limited here by the 350 µm size of the unstreaked beam. These results represent a new record in THz-based streaking gradient as well as the first use of THz B-fields for deflection and streaking.

Conclusions and outlook
We have demonstrated a novel segmented THz electron accelerator and manipulator setting new records in THz acceleration, streaking and focusing with a very compact device. The segmented structure makes it possible to phase-match the electron-THz interaction for nonrelativistic beams, making it ideal for use as a high-gradient photogun24. The independent control over the counter-propagating THz pulse timing gives the STEAM device the ability to switch dynamically between acceleration, compression, focusing, deflection and streaking modes. As was theoretically shown in ref. 24, the use of THz pulses also brings other advantages, including negligible heat loads, high repetition rates and compactness while still supporting substantial charge in the pC regime. Furthermore, the three-layer structure demonstrated in this study indicates the path forward towards relativistic electron energies by staging more layers for higher operation efficiency.
Using only ~2×6 µJ of THz energy the STEAM device has demonstrated peak acceleration gradients of 70 MV/m, compression of a bunch from over 1ps to 100 fs, focusing strength of ~2 kT/m and streaking gradients of >140 µrad/fs, leading to a temporal resolution below 10 fs. By scaling to millijoule-level THz energies which are already available in some THz wavelength ranges, the field strengths in the device can be increased by over an order of magnitude far exceeding those of conventional RF devices. The exceptional performance and compactness of this THz-based device makes it very attractive for pursuing electron sources, like ultrafast electron diffractometers, that operate in the few-and sub-fs range necessary for probing the fastest material dynamics40,41. In the pursuit of these sources, the demand is increasing for compact, high-gradient diagnostics and beam manipulation devices for novel and conventional accelerator platforms alike. In large-scale facilities like the European XFEL, LCLS or Swiss FEL, the, STEAM devices can be used to add new, powerful and adaptable capabilities without major and therefore costly restructuring of the machine. More significant are the advantages in terms of cost and accessibility that come from using STEAM devices as the core components of an all-THz-powered compact, highgradient accelerator with the ability to produce high-quality, controllable bunches of femtosecond or attosecond duration on a table top. The results presented here are the first step in demonstrating the feasibility of that vision.

Laser systems
Experiments were performed both with a 550fs, 4 mJ, 1,030 nm Yb:KYW laser operating at 1 kHz, to demonstrate high repetition rates, as well as with a 1.1 ps, 40 mJ, 1,020 nm Yb:YLF laser operating at 10 Hz, in order to demonstrate high peak accelerations. Using these systems, THz pulses with a center frequency of 0.3 THz were generated (Fig. 1 inset) by the well-established tilted pulse-front method15 from a LiNbO 3 crystal, resulting in 2×2 μJ pulses and 2×30 μJ from the Yb:KYW and Yb:YLF laser systems, respectively (supplementary material). Substantial losses due to transport and coupling of the THz beam, however, resulted in pulse energies at the interaction region of only 2×0.5 µJ and 2×6 µJ for the Yb:KYW and Yb:YLF, respectively. The beam diameter at focus was measured to be 3 mm. This diameter was also used for the corresponding simulations.

STEAM device dimensions
The

Supplementary Material
Refer to Web version on PubMed Central for supplementary material. Schematic illustration of the experimental setup. A fraction of the infrared optical beam is converted to 257 nm through fourth harmonic generation. The 257 nm laser pulse is directed onto a gold photocathode generating electron pulses, which are accelerated to 55 keV by a DC electric field. This laser also drives two optical-rectification stages, each generating single-cycle terahertz pulses with energy up to 30 µJ. The two counter-propagating THz beams interact with the electron beam inside the segmented structure. Subsequently, the electron beam is detected by the camera. Inset: Top Left: photograph of the STEAM device; Bottom right: The time-domain waveform of the THz pulse measured by electro-optic sampling and its corresponding frequency-domain spectrum.   a, Measured electron energy spectra for input beam (blue curve) and accelerated beam (red curve) after the STEAM-device that shows an energy gain of more than 30 keV. An increased energy spread is observed due to the long length of the initial electron bunch, as well as the slippage between the THz pulse and the electron bunch. b, Relative energy versus input terahertz field strength with red circle indicating the energy spectra plotted in (a) The linear relationship supports a direct, field-driven interaction. c, Temporal evolution of the electric field inside each layer with the red arrow indicating the electron propagating. d, Calculated acceleration along the electron propagation direction with ~2×6 µJ THz and beam diameter of 3 mm. This illustration was performed for the experiment using the Yb:YLF laser with ~2×6 µJ THz radiation coupled into the device and a bunch charge of ~5 fC.  a, Measured temporal profiles of the electron pulses as the THz field in the buncher is increased (red arrow). The red lines represent Gaussian fits. b, Black squares: measured electron bunch FWHM duration versus incident THz field strength. Red line: corresponding simulation results. Inset: the electron beam spatial profile on the detector at the optimal compressed condition. c, Simulated bunch length vs position. Inset: longitudinal phase-space distribution before the rebunching cavity, after the rebunching cavity and maximally compressed position marked with red dots respectively. This demonstration was performed with the Yb:KYW laser using one STEAM-device as a rebunching cavity and one as electron streak camera with a bunch charge of ~1 fC.   a, Measured images of the electron beam on the MCP-detector with and without the terahertz deflection field. b, Time-dependent deflection diagram measured by varying the delay between the arrival time of electron bunch and the deflecting terahertz pulse for initially compressed and uncompressed electron bunches. This demonstration was performed with the Yb:KYW laser and a bunch charge of ~1 fC, except for the maximum streaked beam (a), where a bunch charge of ~10 fC is used in order to get a long pulse for demonstration. Deflectograms using the Yb:YLF laser can be found in the supplementary material showing more than 70 mrad deflection.