Introduction

Sources of coherent X-rays are vital to medical, engineering, and basic scientific research. Coherent X-rays allow for phase-contrast and diffractive imaging of molecules, cells, high-energy-density materials, and structural defects1,2,3,4,5; absorption spectroscopy and Thomson scattering to probe the structure and evolution of matter across phase changes6,7,8,9; and the exploration and observation of quantum-electrodynamical processes, such as pair-production, photon–photon scattering, and vacuum birefringence10,11,12,13,14,15. The most-brilliant coherent sources reside at large-scale accelerator facilities, where high-energy electron beams fired into a magnetostatic undulator produce X-rays through the process of free-electron lasing. Despite the remarkable advances afforded by these facilities, broadening access to X-ray-free-electron lasers (FELs) would further accelerate scientific progress. A scientific path to broadening access—as opposed to simply building more large-scale accelerator facilities—is to shrink the undulator period. A shorter undulator period reduces the electron energy needed to generate X-ray wavelengths and the distance required for amplification to high powers. To accomplish this, magnetostatic undulators can be replaced by the electromagnetic fields of a laser pulse, where the undulator period is half the laser wavelength and only micrometers in scale compared to centimeters16,17,18,19,20,21,22,23,24. Coupled with the ability to self-seed, these “laser-driven” free-electron lasers (LDFELs) have the potential to bring coherent X-ray sources to numerous laser facilities without the need for a coherent seed, a long accelerator, or a large undulator.

Figure 1a illustrates a typical LDFEL configuration. A relativistic electron beam collides head-on with the phase fronts of a laser pulse. As the electrons oscillate in the fields of the pulse, they initially undergo inverse Compton scattering and emit incoherent radiation near the wavelength \({\lambda }_{{{{\rm{X}}}}}=[1+\frac{1}{2}{a}^{2}({{{\bf{x}}}})]{\lambda }_{{{{\rm{L}}}}}/4{\gamma }_{0}^{2}\), where λL is the wavelength of the laser pulse, a(x) is the amplitude of its vector potential normalized to mc2/e, \({\gamma }_{0}={(1-{v}_{0}^{2}/{c}^{2})}^{-1/2}\) is the initial electron energy normalized to mc2, and v0 is the initial electron velocity. The noise from the incoherent emission seeds a positive feedback loop where the radiation facilitates densification or “microbunching” of the electron beam at the length scale λX. The microbunching in turn enhances the emission, leading to exponential growth of coherent radiation near λX. The electron trajectories and radiation properties are similar to those in a conventional magnetostatic FEL with an undulator period λu = λL/2 and strength K = a(x)20. The length of the radiation source, however, is highly compressed. For a fixed radiation wavelength λX, the distance over which the power increases by a factor of e, or gain length, is \({L}_{{{{\rm{g}}}}0}\propto {\lambda }_{{{{\rm{u}}}}}^{5/6}\). Thus, the shortened undulator period—now on the order of microns instead of centimeters—allows for amplification over dramatically shorter distances and the use of significantly lower electron energies.

Fig. 1: Microbunching and X-ray power evolution in a laser-driven free-electron laser (LDFEL).
figure 1

A relativistic electron beam (blue dots) traveling at a velocity v0 collides head-on with the phase fronts of a laser pulse traveling at vph = −c. a A conventional laser pulse with a stationary focus, Rayleigh range ZR equal to the saturation length Lsat, and an energy U = 88 J (red). b A flying-focus pulse with a moving focus traveling at vf = c, a focal range Lf = Lsat, and U = 8 J (green). Both pulses have the same maximum amplitude a0 and wavelength λL. With the conventional pulse, the longitudinal uniformity of the undulator can only be improved by increasing the spot size and Rayleigh range. With the flying-focus pulse, the peak amplitude travels with the electron beam, allowing the pulse to have a much smaller spot size while still ensuring a longitudinally uniform undulator. Despite having 11× more energy, the conventional pulse results in a  ~10× lower X-ray power P than the flying focus due to the spatial variation in a(x) experienced by the electron beam (see Fig. 2). Note that the length of the electron beam and period of the microbunches has been elongated for illustrative purposes.

Despite these advantages, LDFELs face challenges that have, to date, impeded their experimental realization. Foremost among these is that the FEL parameter \(\rho \propto {\lambda }_{{{{\rm{u}}}}}^{2/3}\) of an LDFEL is much smaller than that of a typical magnetostatic FEL. The FEL parameter quantifies the power efficiency, required electron beam quality, and gain bandwidth at saturation. Specifically, \(\rho \equiv {\gamma }_{0}^{-1}{\nu }^{1/3}{({\lambda }_{{{{\rm{L}}}}}{a}_{0}/16\pi {\sigma }_{0})}^{2/3}\), where a0 is the maximum normalized vector potential of the laser pulse, ν = Ib [A]/17000, Ib is the electron beam current, and σ0 is the minimum RMS electron beam radius20. For typical LDFEL parameters, \(\rho ={{{\mathcal{O}}}}(1{0}^{-4})\), which places stringent conditions on the normalized emittance \({\epsilon }_{{{{\rm{N}}}}} < {\sigma }_{0}\sqrt{2\rho }\), energy spread Δγ/γ0 < ρ, and detuning ΔλX/λX0 2ρ needed for high gain at a target wavelength \({\lambda }_{{{{\rm{X}}}}0}\equiv (1+\frac{1}{2}{a}_{0}^{2}){\lambda }_{{{{\rm{L}}}}}/4{\gamma }_{0}^{2}\). Satisfying the detuning condition is particularly difficult in an LDFEL because of the spatially varying vector potential: ΔλX ~ ∫ds a2(x), where s is the path of an electron through the undulator. For a conventional laser pulse, this spatial variation is unavoidable. The pulse must be focused to achieve the undulator strengths necessary for high-power X-ray radiation, which introduces both transverse and longitudinal variation (Fig. 1a). While the spatial uniformity can be improved by increasing the focused spot size (Rayleigh range) with a concomitant increase in the duration, this approach quickly becomes impractical, leading to infeasibly large laser-pulse energies for the distances needed to reach peak power, i.e., the saturation length Lsat.

Here we demonstrate that “flying-focus” pulses can provide a highly uniform undulator for significantly less laser energy than a conventional laser pulse, enabling the generation of high-power, narrow-bandwidth, coherent X-ray radiation. The flying focus refers to a variety of optical techniques for creating a laser pulse with a time-dependent focal point25,26,27,28,29,30,31,32,33. The intensity peak formed by the moving focus travels a distance (Lf) far greater than a Rayleigh range while maintaining a near-constant profile. While previous studies explored the utility of these pulses for generating incoherent X-rays from inverse Compton scattering34,35,36,37,38, this work presents the first application of the flying focus to coherent X-ray generation. The LDFEL design introduced here employs the ideal flying focus, which creates a moving focal point by focusing a laser pulse through a lens with a time-dependent focal length30,31. Within the focal range Lf, the velocity of the resulting intensity peak can be made to travel at vf = c in the opposite direction of the phase fronts vph = −c and in the same direction as the electron beam v0c (Fig. 1b). The electrons, both colocated and cotraveling with the intensity peak, experience a nearly uniform undulator strength across the entire focal range. Motivated by the wavelength scaling of the FEL parameter, long-wave infrared undulators (λL = 10 μm CO2 pulses) are considered. To compare the X-ray radiation driven by long-wave flying focus and conventional pulses, the 3D FEL code GENESIS-1.339 was modified to model LDFELs. Simulations employing this code show that with a γ0 = 35 electron beam, a flying-focus undulator can produce  ~1 MW of λX = 2.2 nm X-ray radiation in only a 1 cm interaction length using 20× less energy than a conventional laser pulse. Such a source would allow for interrogation of warm dense matter40,41,42 and falls within the “water-window”, making it an effective probe for biological matter43,44,45.

Results

For a conventional laser pulse focused by an ideal lens, the transverse and longitudinal uniformity of the amplitude a(x) are characterized by the focused spot size wC and Rayleigh range \({Z}_{{{{\rm{R}}}}}=\pi {w}_{{{{\rm{C}}}}}^{2}/{\lambda }_{{{{\rm{L}}}}}\) (Fig. 1a). To avoid spatial detuning and ensure amplification to high powers, the Rayleigh range ZR must be longer than the interaction length Lint. To sustain the undulator strength over the time it takes the counter-traveling electron beam to traverse the interaction length, the pulse duration must be T = 2Lint/c. As a result, the energy of a conventional laser undulator \({U}_{{{{\rm{C}}}}}\propto {a}_{0}^{2}{w}_{{{{\rm{C}}}}}^{2}T/{\lambda }_{{{{\rm{L}}}}}^{2}\propto 2{a}_{0}^{2}{L}_{{{{\rm{int}}}}}^{2}/{\lambda }_{{{{\rm{L}}}}}\) scales quadratically with the interaction length, where ZR = 2Lint has been used. For a flying-focus pulse with an intensity peak that cotravels with the electron beam (vf = c), the transverse and longitudinal uniformity is characterized by the focused spot size wFF and focal range Lf (Fig. 1b). In this case, the longitudinal uniformity is decoupled from the focused spot size, i.e., Lf does not depend on wFF. To avoid spatial detuning and sustain the undulator strength, the focal range and duration of the flying focus pulse must be Lf = Lint and T = 2Lint/c. Thus, the energy of a flying-focus undulator \({U}_{{{{\rm{FF}}}}}\propto {a}_{0}^{2}{w}_{{{{\rm{FF}}}}}^{2}T/{\lambda }_{{{{\rm{L}}}}}^{2}\propto {a}_{0}^{2}{w}_{{{{\rm{FF}}}}}^{2}{L}_{{{{\rm{int}}}}}/{\lambda }_{{{{\rm{L}}}}}^{2}\) scales linearly with the interaction length. The ratio of energies needed to drive an LDFEL with fixed FEL parameter ρ, laser wavelength λL, and radiation wavelength λX0 is then given by

$$\frac{{U}_{{{{\rm{FF}}}}}}{{U}_{{{{\rm{C}}}}}}=\frac{\alpha \pi {w}_{{{{\rm{FF}}}}}^{2}}{2{\lambda }_{{{{\rm{L}}}}}{L}_{{{{\rm{int}}}}}}.$$
(1)

The factor \(\alpha \sim {{{\mathcal{O}}}}(1)\) is determined by the power ratio of a flying-focus pulse with an arbitrary transverse profile to one with a Gaussian profile of spot size wFF, both with the same maximum vector potential a0.

Equation (1) elucidates the advantage of using a flying focus to decouple the interaction length from the Rayleigh range. At the same laser wavelength, the ratio shows that a flying-focus pulse requires less energy than a conventional pulse in LDFEL configurations for which \({L}_{{{{\rm{int}}}}} \, > \, \alpha \pi {w}_{{{{\rm{FF}}}}}^{2}/2{\lambda }_{{{{\rm{L}}}}}\). When amplifying to saturation, the left-hand side of this condition is determined by the saturation length Lint = Lsat. Typical saturation lengths tend to be \({{{\mathcal{O}}}}(10)\) times larger than the gain length, i.e., Lsat = χLg, where \(\chi \sim {{{\mathcal{O}}}}(10)\). The right-hand side of the condition is determined by the electron beam radius σ0. To ensure a(x) has sufficient transverse uniformity, the spot size of the flying focus should be larger than σ0, i.e, wFF = ϖσ0, where ϖ 1. By combining these scalings and using the conservative approximation that αϖ2/χ ≈ 1, the condition can be reexpressed in terms of LDFEL parameters: \({({\lambda }_{{{{\rm{L}}}}}/{\sigma }_{0})}^{2} \, > \, 4{\pi }^{2}\sqrt{3}\rho\), where the cold beam gain length \({L}_{{{{\rm{g}}}}}={L}_{{{{\rm{g}}}}0}\equiv {\lambda }_{{{{\rm{L}}}}}/8\pi \sqrt{3}\rho\) has been used. This condition indicates that the advantage of flying-focus pulses is greater at longer laser wavelengths. Independent of this advantage, the use of longer laser wavelengths also allows for higher radiated powers and relaxes the requirements on the electron beam quality (see “Discussion”). For the parameters considered here λL = 10 μm, Lsat = 1.03 cm, and \(\alpha \pi {w}_{{{{\rm{FF}}}}}^{2}/2{\lambda }_{{{{\rm{L}}}}}=0.55\) mm, resulting in UFF/UC = 0.05—a significant reduction in the required energy when using a flying focus pulse (Table 1).

Table 1 Parameters of laser-driven FEL simulations comparing flying-focus and conventional laser undulators

To demonstrate the advantages of an LDFEL with a flying-focus undulator, 3D time-dependent simulations were conducted using the conventional FEL code GENESIS-1.339. The time-dependent model provided by GENESIS-1.3 allows for seeding from amplified spontaneous emission and captures the evolution of the X-ray spectrum. This latter feature is critical for modeling an LDFEL because amplitude variations due to focusing and diffraction can shift the resonant frequency along the interaction length. Despite these features, GENESIS-1.3 was modified to better model an LDFEL. The equations of motion were updated to include the effects of the Gouy phase, phase-front curvature, plasma dispersion, the spatial profile of a(x), and the transverse space-charge repulsion of the electron beam (see “Methods”).

Figure 2 compares the evolution of the power and spectrum of λX ≈ 2.2 nm (0.56 keV) X-rays amplified in an LDFEL with either a flying-focus or conventional laser undulators. The parameters are displayed in Table 1. Consistent with the estimate above that UFF/UC = 0.05, the flying-focus pulse required 21× less energy than the conventional pulse to amplify the X-rays to the saturated power Psat ≈ 1 MW. In this example, the nonideal effects of a spatially varying undulator strength were isolated from those of electron beam quality by initializing the beam with a negligible normalized emittance (\({\epsilon }_{{{{\rm{N}}}}}\ll {\sigma }_{0}\sqrt{2\rho }\)) and energy spread (Δγ/γ0ρ).

Fig. 2: Amplification of λX ≈ 2.2 nm X-rays with flying-focus and conventional laser undulators.
figure 2

a A flying-focus pulse with UFF = 8 J and a conventional pulse with UC = 176 J drive exponential growth of the X-ray power to saturation, reaching P = 1 MW. For the conventional pulse with UC = 8 J, the power grows rapidly as the electron beam approaches the focal point (z = 0.625 cm) and moves into a progressively larger undulator strength, but no microbunching is observed. b, c The power spectral density of the X-rays produced by the conventional laser undulator with UC = 176 J and flying-focus undulator with UFF = 8 J, respectively. The left axes are normalized to the ideal gain bandwidth at saturation, 2ρ. The lineouts to the right show the spectra at saturation. Near saturation, the standard deviation of both spectral densities is  ~2ρ. The dashed line in (b) traces the shift in the resonant wavelength due to amplitude variation in the conventional laser undulator [Eq. (2)]. The dashed line in (c) is constant: the resonant wavelength does not shift in the flying-focus undulator. The simulated parameters are provided in Table 1.

The conventional laser undulator was able to mitigate spatial detuning and amplify the X-rays to saturation with UC = 176 J of energy, a Rayleigh range ZR = 2Lsat, and a corresponding spot size wC = 283 μm. At a more modest UC = 88 J and ZR = Lsat, the saturated power was 10× lower (Psat ≈ 100 kW). With the same energy as the flying-focus undulator, i.e., UC = 8 J and ZR = 0.09Lsat, the X-ray power increased rapidly as the electron beam approached the focal point (z = 0.625 cm) and encountered larger values of a(x), but the radiation was mostly incoherent and microbunching was not observed. In each of these cases, the electron beam was initialized at a distance Lint/2 before the focus to optimize the uniformity.

The flying-focus undulator mitigated spatial detuning and amplified the X-rays to saturation with only UFF = 8 J of energy, a focal range Lf = Lsat, and a focused spot size wFF = 37.5 μm. As opposed to the stationary focus of a conventional laser pulse, the intensity peak of the flying focus moves with the electron beam, ensuring that the electrons experience a nearly uniform and maximum undulator strength a0 over the interaction length. The pulse had a flattened Gaussian transverse profile with α = 5/2 (see “Methods”). This profile reduces transverse ponderomotive expulsion of the electron beam and provides transverse amplitude uniformity20,46. The ability to use such a profile is a distinct advantage of the flying focus. With a conventional pulse, focusing and diffraction of a flattened intensity profile would exacerbate the spatial variations of a(x). The near-propagation invariance of the flying focus guarantees that the flattened profile persists throughout the focal range. Simulations (not shown) were also conducted to compare the performance of flying-focus undulators with standard Gaussian and flattened Gaussian profiles. For the same laser-pulse energy and parameters in Table 1, the flattened Gaussian profile resulted in an order of magnitude higher X-ray power than the standard Gaussian profile.

Figure 2b illustrates how spatial inhomogeneities in the conventional laser undulator due to focusing and diffraction shift the resonant wavelength and modify the X-ray spectrum. Along the propagation axis (i.e., at r = 0), the amplitude of the conventional pulse is given by \(a(z)={a}_{0}/{[1+{(z-{L}_{{{{\rm{int}}}}}/2)}^{2}/{Z}_{{{{\rm{R}}}}}^{2}]}^{1/2}\), where the focal plane is located at z = Lint/2. The resonant X-ray wavelength is then

$${\lambda }_{{{{\rm{XC}}}}}(z)=\left[1+\frac{\frac{1}{2}{a}_{0}^{2}}{1+{\left(z-\frac{1}{2}{L}_{{{{\rm{int}}}}}\right)}^{2}/{Z}_{{{{\rm{R}}}}}^{2}}\right]\frac{{\lambda }_{{{{\rm{L}}}}}}{4{\gamma }_{0}^{2}},$$
(2)

where \({\lambda }_{{{{\rm{XC}}}}}(z=\frac{1}{2}{L}_{{{{\rm{int}}}}})={\lambda }_{{{{\rm{X}}}}0}\). Equation (2) shows that the resonant wavelength redshifts as the electron beam approaches the focus of the conventional pulse and then blueshifts as the beam moves away from the focus (dashed line in Fig. 2b). As affirmed by the dashed line in Fig. 2b, the wavelength shift predicted by Eq. (2) is in agreement with the GENESIS-1.3 simulations. The net effect of the wavelength shifting is that the conventional laser undulator does not achieve the maximum radiated power or minimum saturation length of an ideal, monochromatic plane-wave undulator (Psat = 2 MW and Lsat = 1 cm).

Figure 2c demonstrates that the longitudinal uniformity of the flying-focus undulator keeps the resonant wavelength tuned to the target wavelength along the entire interaction length (dashed line in Fig. 2c). However because the flying-focus pulse has a smaller spot size than the conventional pulse, its ponderomotive force causes a greater transverse expansion of the electron beam. This expansion lowers the beam density. As a result, the flying-focus undulator also does not achieve the maximum radiated power or minimum saturation length of an ideal, monochromatic plane-wave undulator. Nevertheless, both the UFF = 8 J flying-focus and UC = 176 J conventional laser undulators produce high-power, narrowband X-ray radiation: at saturation, the standard deviation of both spectral energy densities is ΔλX/λX0 ≈ 2ρ.

Figure 3 presents the energy-cost benefit of a flying-focus undulator within a broader LDFEL design space. The energy advantage of the flying focus increases (Fig. 3a) as the saturation length gets longer (Fig. 3b), or equivalently, as the target X-ray wavelength gets shorter. The energy ratio is calculated using Eq. (1) with λL = 10 μm, the focal range of the flying focus set to Lf = Lsat, the Rayleigh range of the conventional pulse to ZR = 2Lsat, and the duration of both pulses to 2Lsat/c. Contours of constant wavelength are nearly vertical (e.g., the white dashed line), and the wavelength progressively gets shorter from left to right in each plot (\({\lambda }_{{{{\rm{X}}}}}\propto 1/{\gamma }_{0}^{2}\)). The minimum saturation length was calculated using Eq. (33) of Sprangle et al.20 with the gain length corrected by an empirical factor determined by 3D GENESIS-1.3 simulations of an ideal plane-wave undulator, i.e, Lg0 → 1.3Lg0. The use of a plane wave results in a slightly lower energy needed to reach saturation when compared to pulses with transverse structure (cf. Fig. 2).

Fig. 3: The energy-cost benefit of a flying-focus undulator within an LDFEL design space.
figure 3

a The ratio of flying focus to conventional pulse energy needed to reach saturation [Eq. (1)]. b An estimate of the minimum saturation length for each case in (a) with the electron beam current Ib and width σ0 listed in Table 1. The flying focus provides a larger energy advantage for longer saturation lengths, which coincides with shorter X-ray wavelengths (\({\lambda }_{{{{\rm{X}}}}}\propto 1/{\gamma }_{0}^{2}\)). The second vertical axis (left) shows the maximum achievable power at saturation. The star marks the working point for the simulated examples, and the dashed white line is a curve of constant wavelength λX = 2.16 nm.

The range of a0 values in Fig. 3 was selected to produce a high saturated power (left scale) while ensuring a linear interaction so that the radiation is predominately composed of a single harmonic at λX ≈ λX0. The maximum achievable saturated power grows with the undulator amplitude a0 but is independent of γ0: \({P}_{{{{\rm{sat}}}}}\approx 0.4\rho \nu {\gamma }_{0}m{c}^{3}/{r}_{e}\propto {a}_{0}^{2/3}\), where re is the classical electron radius and the empirical factor of 0.4 is determined by 3D GENESIS-1.3 simulations of a plane-wave undulator. Note that lower values of a0 reduce the deleterious impact of spatial inhomogeneity on the conventional laser undulator [Eq. (2)]. The highest value of γ0 was chosen to avoid quantum effects, which increase the classical gain length by a factor \({(1+1/\bar{\rho })}^{1/2}\), where \(\bar{\rho }=\rho {\gamma }_{0}({\lambda }_{{{{\rm{X}}}}}/{\lambda }_{{{{\rm{AC}}}}})\) is the quantum FEL parameter and λAC is the Compton wavelength17,22. For all interactions displayed in Fig. 3, \(\bar{\rho }\ge 5\).

While the flying focus decreases the laser energy required for a high-gain LDFEL, achieving the necessary electron beam quality remains a formidable challenge. For the parameters considered in Table 1, amplification to the maximum saturated power requires an energy spread Δγ/γ0ρ = 3.09 × 10−4 and a normalized emittance \({\epsilon }_{{{{\rm{N}}}}}\ll {\sigma }_{0}\sqrt{2\rho }=0.37\,\mu {{{\rm{m}}}}\)-rad—requirements that only become more demanding when attempting to lase at shorter X-ray wavelengths: \(\rho \propto {\lambda }_{{{{\rm{X}}}}0}^{1/2}\). When the electron beam does not satisfy these requirements, the number of electrons that contribute to the instability drops, which reduces the saturated power and elongates the gain length and saturation length20,47. Thus, the combination of an imperfect beam and a sufficiently uniform undulator can greatly increase the laser-pulse energy needed for amplification to high powers.

To assess the impact of imperfect electron beams on the X-ray power generated in the example design (Table 1 and star in Fig. 3), simulations were run with initial emittances ranging from ϵN = 0 to ϵN = 0.37 μm-rad. Figure 4 displays the resulting X-ray powers at z = 1.25 cm. For both the flying focus and conventional laser undulator, the X-ray power first drops as the initial emittance is increased from ϵN = 0 to ϵN = 0.28 μm-rad and then plateaus to the incoherent power at emittances ϵN > 0.37 μm-rad. At lower emittances, better amplitude uniformity makes the flying-focus undulator more resilient to the adverse effects of beam quality. At larger emittances, the X-ray power produced by the UC = 176 J conventional laser undulator is slightly greater than that of the UFF = 8 J flying-focus undulator. This is because the flying-focus pulse has a smaller spot size: when ϵN > 0, a larger portion of electrons have sufficient transverse momentum to laterally escape the fields of the flying-focus pulse. Simulations (not shown) were also run to confirm that an energy spread Δγ/γ0 = ρ = 3.09 × 10−4 degrades the saturated power by nearly the same amount as an emittance \({\epsilon }_{{{{\rm{N}}}}}={\sigma }_{0}\sqrt{2\rho }=0.37\,\mu {{{\rm{m}}}}\)-rad. In either case, imperfect electron beams do not change the fact that the flying-focus pulse requires much less energy than the conventional pulse to obtain a comparable radiation power.

Fig. 4: The effect of normalized emittance ϵN on the saturated X-ray power of an LDFEL driven by a flying-focus or conventional laser pulse.
figure 4

The X-ray power drops from  ≈1 MW to a plateau at  ≈40 kW as the normalized emittance is increased from ϵN = 0 to ϵN = 0.37 μm-rad. The initial emittance does not change the fact that a flying-focus pulse (green circles) requires less energy than a conventional pulse (red triangles). The inset displays the evolution of the X-ray power (green) and bunching factor (blue) for a flying-focus undulator with ϵN = 0.28 μm-rad. All results were obtained from 3D, time-dependent simulations with the LDFEL-modified version of GENESIS-1.3.

The inset in Fig. 4 shows the evolution of the radiated power and bunching factor through the flying-focus undulator for the electron beam with ϵN = 0.28 μm-rad = \(\frac{3}{4}{\sigma }_{0}\sqrt{2\rho }\). The bunching factor 〈eiψ〉, where ψ is the ponderomotive phase and 〈〉 denotes an average over all electrons, is normalized to its initial value at z = 0. While amplification of the X-ray power and exponential growth of the bunching factor are observed at this emittance, the maximum X-ray power is reduced by an order of magnitude compared to the ideal electron beam (ϵN = 0). Note that amplification in the range 0.09 μm-rad ≤ ϵN ≤ 0.28 μm-rad violates the Pellegrini criterion for spatial overlap between the electron beam and X-ray pulse48. The criterion states that the distance over which the electron beam spreads transversely, i.e., \({\beta }^{* }={\gamma }_{0}{\sigma }_{0}^{2}/{\epsilon }_{{{{\rm{N}}}}}\), should be greater than the Rayleigh range of the X-ray pulse: ϵN < γ0λX/4π = 0.006 μm-rad. However, in an LDFEL, both β* and the X-ray Rayleigh range are longer than the saturation length. Thus, the electron beam remains spatially overlapped with the X-ray beam by virtue of the short saturation length. The next most stringent requirement on the emittance limits emittance-induced spectral broadening: \({\epsilon }_{{{{\rm{N}}}}} < {\sigma }_{0}\sqrt{2\rho }\)18,21,22. This condition is consistent with the absence of amplification observed at \({\epsilon }_{{{{\rm{N}}}}}={\sigma }_{0}\sqrt{2\rho }=0.37\,\mu {{{\rm{m}}}}\)-rad, where the final bandwidth ΔλX/λX0 ≈ 7ρ was much greater than 2ρ.

In addition to the requirements on the emittance and energy spread, the electron beam must be aligned with the propagation axis of the laser undulator. A lateral displacement d < w, assuming σ0 < w, and angle between the electron beam and optical axis Θw/Lsat ensure that the electron beam starts and stays within the spot size of the laser pulse as it traverses a saturation length. For the simulated parameters (Table 1), dFF < 37.5 μm and ΘFF 0.003 whereas dC < 283 μm and ΘC 0.023. While the conventional pulse has larger tolerances, they come at the cost of 20× more laser energy. (the spot size of the flying focus could also be increased to improve its tolerances at the cost of more laser energy). Furthermore, the estimated tolerances for the conventional pulse are optimistic: The conventional pulse has a transverse Gaussian profile, which introduces additional amplitude variation and detuning. The flying focus, on the other hand, can have a flattened Gaussian transverse profile with minimal amplitude variation and detuning within the spot size. Regardless of whether one opts for a flying-focus or conventional laser undulator, it will be challenging to satisfy the strict requirements on the electron beam quality and alignment when seeding from noise. As an alternative, the electron beam can be pre-bunched, which can relax or even circumvent these requirements23,24,49.

Discussion

The ratio of energies expressed in Eq. (1) demonstrates that a flying-focus pulse decreases the energy needed for a uniform undulator when the interaction length exceeds the Rayleigh range. The appearance of λL in the denominator indicates that this benefit is reduced for shorter laser wavelengths and, by extension, shorter undulator periods. This is because for the same spot size, shorter-wavelength laser pulses have longer Rayleigh ranges, which provide better amplitude uniformity. Moreover, the gain and saturation lengths are smaller at shorter wavelengths, which means the interaction length Lint is smaller. This suggests an even further reduction in the benefit of the flying focus at shorter wavelengths: UFF/UC 1/λLLint.

An LDFEL designed for longer laser wavelengths and undulator periods has several advantages that incentivize working in a regime where the flying focus provides energy savings. The important parameters for designing an LDFEL are the FEL parameter ρ, gain length Lg0, radiation power at saturation Psat, electron beam energy γ0, and quantum FEL parameter \(\bar{\rho }\). Consider two undulator periods, λ1 = λL1/2 and λ2 = λL2/2. For the same target X-ray wavelength, beam current, beam radius, and peak vector potential, the ratios of the design parameters are given by

$$\frac{{\rho }_{1}}{{\rho }_{2}} = {\left(\frac{{\lambda }_{1}}{{\lambda }_{2}}\right)}^{1/6},\quad \frac{{L}_{{{{\rm{g}}}}0,1}}{{L}_{{{{\rm{g}}}}0,2}}={\left(\frac{{\lambda }_{1}}{{\lambda }_{2}}\right)}^{5/6},\quad \frac{{P}_{{{{\rm{sat}}}},1}}{{P}_{{{{\rm{sat}}}},2}} = {\left(\frac{{\lambda }_{1}}{{\lambda }_{2}}\right)}^{2/3},\quad \\ \frac{{\gamma }_{0,1}}{{\gamma }_{0,2}} = {\left(\frac{{\lambda }_{1}}{{\lambda }_{2}}\right)}^{1/2},\quad \frac{{\bar{\rho }}_{1}}{{\bar{\rho }}_{2}}={\left(\frac{{\lambda }_{1}}{{\lambda }_{2}}\right)}^{2/3}.$$
(3)

These ratios demonstrate that undulators with longer periods have higher efficiencies, relax the requirements on the beam quality, result in higher saturated powers, and suffer less degradation due to quantum effects. Undulators with shorter periods, on the other hand, allow for smaller interaction lengths and lower electron energies. As an example, comparing a typical glass laser with λ1 = 0.5 μm to a CO2 laser with λ2 = 5 μm yields ρ1/ρ2 = 0.68, Lg0,1/Lg0,2 = 0.15, Psat,1/Psat,2 = 0.21, γ0,1/γ0,2 = 0.32, and \({\bar{\rho }}_{1}/{\bar{\rho }}_{2}=0.21\). Aside from the advantages of longer undulator periods, imperfect electron beams and quantum effects can substantially increase the gain and interaction lengths, which may make the flying focus energetically favorable even when using shorter-wavelength lasers. This will be a topic of future investigation. Note that the scalings appearing in Eq. (3) are independent of undulator type and can be used to compare LDFELs to magnetostatic FELs or other schemes, such as plasma-based50 or crystal undulators51,52. The main advantages of LDFELs are the smaller distances required to reach saturation and the much lower electron energies needed for the same radiation wavelength.

In the flying focus configuration implemented here, the electron beam collides head-on with the phase fronts and cotravels with the moving intensity peak [Fig. 1b]. The velocity control and amplitude uniformity afforded by the flying focus allows for other interaction geometries as well. The ideal flying focus uses a lens with a time-dependent focal length to produce a focal point that moves longitudinally, either parallel or antiparallel to the phase fronts30,31. With the addition of a time-dependent tilt, the focal point could move in both the transverse and longitudinal directions while the phase fronts move only in the longitudinal direction53. As before, the velocity of the focal point can be preset to vfc, so that the electron beam cotravels with the intensity peak and experiences a uniform amplitude over an extended distance. This configuration complements that proposed in Steiniger et al.21 and Debus et al.54 where pulse-front tilt is used to ensure amplitude uniformity throughout the interaction. The difference is that with the flying focus the focal point moves with the electron beam. In both cases, the undulator period is increased from λL/2 to \({\lambda }_{{{{\rm{L}}}}}/[1-\cos (\vartheta )]\), where ϑ is the angle between the electron velocity and the phase velocity of the laser pulse. The flexibility to adjust ϑ allows for the optimization of the undulator period. Specifically, one can make the replacement \({\lambda }_{1}/{\lambda }_{2}\to 2/[1-\cos (\vartheta )]\) in Eq. (3).

Alternative methods for improving the longitudinal uniformity of an LDFEL undulator include the use of a plasma channel55,56,57 or a Bessel beam. A plasma channel acts as a waveguide that circumvents diffraction by confining a laser pulse transversely55. In principle, a laser pulse can propagate through the waveguide while maintaining a fixed transverse profile. However, this requires the injection of a pulse with flat phase fronts and a profile that is matched to a transverse mode of the waveguide. If these requirements are not met, the pulse will propagate as a superposition of waveguide modes with unique phases that evolve longitudinally56. The resulting interference would spoil the uniformity of the undulator and shift the resonant wavelength along the channel. To ensure a wavelength detuning of no more than several ρ for the parameters considered here, the incident spot size would have to be matched to that of transverse mode with sub-micron precision. Bessel beams, i.e., laser beams “focused” by axicon lenses, feature an intensity profile that is localized transversely but is nearly uniform longitudinally. Unlike a lens which concentrates rays that start from different radii to a single point, an axicon distributes rays from different radii to different longitudinal locations. For an axicon designed to distribute the rays across the interaction length of an LDFEL Lint, the required energy in the Bessel beam is \({U}_{{{{\rm{B}}}}}\propto {L}_{{{{\rm{int}}}}}^{3}\) and the ratio of energies required in a flying focus and Bessel beam is \({U}_{{{{\rm{FF}}}}}/{U}_{{{{\rm{B}}}}}=\alpha {w}_{{{{\rm{FF}}}}}^{2}/2{L}_{{{{\rm{int}}}}}^{2}\). Thus, the flying focus requires less energy than the Bessel beam when \({w}_{{{{\rm{FF}}}}} < \sqrt{2}{L}_{{{{\rm{int}}}}}/\alpha\), which would always be the case. For the parameters in Table 1, UFF/UB ≈ 10−5.

The use of the ideal flying focus was motivated by its conceptual simplicity. Other optical techniques could also be used to achieve the LDFEL configuration depicted in Fig. 1b. These include “Arbitrarily Structured Laser Pulses” (ASTRL pulses)32 and the experimentally demonstrated “space-time wave packets”58,59 or “chromatic flying focus”26,29. An LDFEL based on the “chromatic” flying focus was also simulated as a part of this study. The chromatic flying focus creates a moving focal point by focusing a chirped laser pulse with a chromatic lens. The chromatic lens focuses each frequency to a different location within an extended focal range, while the chirp determines the arrival time of each frequency at its focus. The simulations (not shown) revealed that the variation in the undulator period caused by the chirp can modify the X-ray spectrum and reduce the saturated power. Laser-pulse propagation simulations of the chromatic flying focus, following the method outlined in Palastro et al.27, indicate that the focal geometry can be adjusted to reduce chirp and achieve the same saturated power as the ideal flying focus. These modifications to the focal geometry require 37.5 J of laser energy to amplify the X-ray radiation to 1 MW in 1.25 cm compared to the 176 J needed with a conventional laser pulse.

In conclusion, flying-focus pulses can substantially reduce the energy required to produce coherent, narrowband, high-power X-rays in an LDFEL. In contrast to the static focal point of a conventional laser pulse, the dynamic focal point of a flying-focus pulse travels with the electron beam, ensuring a uniform undulator over the entire interaction length. Simulations of a design based on CO2 laser parameters showed that a flying focus can produce  ~1 MW of λX = 2.2 nm X-ray radiation from a 17.5 MeV electron beam in a 1.25 cm interaction length using 20× less energy than a conventional laser pulse. While electron beam quality does affect the final X-ray power, it does not change the fact that the flying focus provides an energy advantage. The velocity control and extended interaction lengths at high intensity enabled by the flying focus provide a path to LDFELs with currently achievable laser energies.

Methods

Laser-driven free-electron laser model

In an LDFEL, the electromagnetic field of a laser pulse with a wavelength \({\lambda }_{{{{\rm{L}}}}} \sim {{{\mathcal{O}}}}(1\,{{{\rm{to}}}}\,10\,\mu {{{\rm{m}}}})\) provides an undulator that allows for the emission and amplification of electromagnetic fields at other wavelengths. The laser pulses considered here propagate in the negative \(\hat{{{{\bf{z}}}}}\) direction and are circularly polarized. The electromagnetic fields of the pulses are modeled in terms of the vector potential

$${{{{\bf{a}}}}}_{{{{\rm{L}}}}}=\frac{{a}_{{{{\rm{L}}}}}({{{\bf{x}}}},t)}{\sqrt{2}}\left[\cos \left({k}_{{{{\rm{L}}}}}z+{\omega }_{{{{\rm{L}}}}}t+\phi ({{{\bf{x}}}},t)\right)\hat{{{{\bf{x}}}}}+\sin \left({k}_{{{{\rm{L}}}}}z+{\omega }_{{{{\rm{L}}}}}t+\phi ({{{\bf{x}}}},t)\right)\hat{{{{\bf{y}}}}}\right],$$
(4)

where ωL = 2πc/λL, \(c{k}_{{{{\rm{L}}}}}\equiv {({\omega }_{{{{\rm{L}}}}}^{2}-{\omega }_{{{{\rm{pl}}}}}^{2}/{\gamma }_{0})}^{1/2}\), \({\omega }_{{{{\rm{pl}}}}}=c\sqrt{2\nu }/{\sigma }_{0}\) is the plasma frequency of the electron beam, and potentials are normalized to mc2/e throughout. The amplitudes aL and phases ϕ are real quantities and are defined in the Laser-pulse Model subsection. A head-on collision between a relativistic electron beam and these fields results in the emission and amplification of a circularly polarized X-ray pulse (Fig. 1 and Table 1) that propagates in the positive \(\hat{{{{\bf{z}}}}}\) direction. The electromagnetic fields of the X-ray pulse are modeled with the vector potential

$${{{{\bf{a}}}}}_{{{{\rm{X}}}}}=\frac{{a}_{{{{\rm{X}}}}}({{{\bf{x}}}},t)}{2}\exp \left[i({k}_{{{{\rm{X}}}}}z-{\omega }_{{{{\rm{X}}}}}t)\right]{\hat{{{{\bf{e}}}}}}_{\perp }+{{{\rm{c.c.}}}},$$
(5)

where ωX = 2πc/λX = ckX, \({\hat{{{{\bf{e}}}}}}_{\perp }=(\hat{{{{\bf{x}}}}}+i\hat{{{{\bf{y}}}}})/\sqrt{2}\), and aX is complex. The plasma dispersion contribution to kX is neglected because ωXωpl.

The motion of beam electrons in the laser and X-ray pulses can be separated into rapid and slowly varying components. The rapid motion describes the oscillations in the fields of the laser pulse, while the slow motion describes trajectory modifications due to ponderomotive forces and the space-charge fields. The rapid oscillations modulate the slow “guiding-center” evolution of the positions and momenta. In the following, a tilde (~) is used to distinguish the rapidly varying momenta from the unadorned guiding-center momenta.

The rapidly varying momenta are equal to the local value of the laser-pulse pulse vector potential: \(\tilde{{{{\bf{p}}}}}={{{{\bf{a}}}}}_{{{{\rm{L}}}}}\), where the momenta have been normalized by mc. The guiding-center dynamics are governed by the Hamiltonian

$$H={\left[1+{\left({P}_{z}+{a}_{{{{\rm{SC}}}}}({{{\bf{x}}}})\right)}^{2}+| {{{{\bf{p}}}}}_{\perp }{| }^{2}+{\varphi }_{{{{\rm{P}}}}}({{{\bf{x}}}},t)\right]}^{1/2}-{\varphi }_{{{{\rm{SC}}}}}({{{\bf{x}}}}),$$
(6)

where

$${\varphi }_{{{{\rm{P}}}}}({{{\bf{x}}}},t)=\frac{1}{2}{a}_{{{{\rm{L}}}}}^{2}({{{\bf{x}}}},t)+\frac{1}{2}{a}_{{{{\rm{L}}}}}({{{\bf{x}}}},t)\left[{a}_{{{{\rm{X}}}}}({{{\bf{x}}}},t)\exp (i\psi )+{{{\rm{c.c}}}}\right]$$
(7)

is the ponderomotive potential,

$$\psi =({k}_{{{{\rm{X}}}}}+{k}_{{{{\rm{L}}}}})z-({\omega }_{{{{\rm{X}}}}}-{\omega }_{{{{\rm{L}}}}})t+\phi ({{{\bf{x}}}},t),$$
(8)

is the phase of the ponderomotive beat, φSC and aSC are the scalar and vector potentials describing the space-charge fields, and Pz = pzaSC is the longitudinal canonical momentum. In general, aLaX, thus terms aX2 have been neglected in H. The derivation of H involves a cycle average over the period of the laser pulse in a frame moving with the electron beam (z ≈ v0t). The ponderomotive phase ψ varies slowly in this frame because [(kX + kL)v0−(ωX − ωL)] ≈ 0 or, equivalently, \({\omega }_{{{{\rm{X}}}}}\approx 4{\gamma }_{0}^{2}{\omega }_{{{{\rm{L}}}}}\).

The equations of motion for the guiding-center coordinates, momenta, and energy are derived from the Hamiltonian. The coordinates evolve according to

$$\frac{d{{{\bf{x}}}}}{dt}=c\frac{\partial H}{\partial {{{\bf{p}}}}}=\frac{c{{{\bf{p}}}}}{\gamma },$$
(9)

where \(\gamma ={(1+| {{{\bf{p}}}}{| }^{2}+{\varphi }_{{{{\rm{P}}}}})}^{1/2}\). The transverse momenta evolve in response to the transverse ponderomotive and space-charge forces

$$\frac{d{{{{\bf{p}}}}}_{\perp }}{dt}=-c{\nabla }_{\perp }H=-\frac{c}{4\gamma }{\nabla }_{\perp }{a}_{{{{\rm{L}}}}}^{2}+c{\nabla }_{\perp }{\varphi }_{{{{\rm{SC}}}}}-\frac{c{p}_{z}}{\gamma }{\nabla }_{\perp }{a}_{{{{\rm{SC}}}}}.$$
(10)

Here, \(| {a}_{{{{\rm{L}}}}}^{2}| \, \gg \, 2| {a}_{{{{\rm{L}}}}}{a}_{{{{\rm{X}}}}}|\) has been used to drop terms aLaX in the transverse ponderomotive force. The work done by the ponderomotive and space-charge forces modifies the electron energy

$$\frac{d\gamma }{dt} =\frac{d(H+{\varphi }_{{{{\rm{SC}}}}})}{dt}={\partial }_{t}H+\left({\partial }_{t}+\frac{c{{{\bf{p}}}}}{\gamma }\cdot \nabla \right){\varphi }_{{{{\rm{SC}}}}} \\ =-\frac{1}{4\gamma }{\omega }_{{{{\rm{X}}}}}{a}_{{{{\rm{L}}}}}\left[i{a}_{X}\exp (i\psi )+{{{\rm{c.c.}}}}\right]+\frac{{{{\bf{p}}}}}{\gamma }\cdot \nabla {\varphi }_{{{{\rm{SC}}}}},$$
(11)

where ωXωL has been used in the time derivative of φP and it has been assumed that \(| {\partial }_{t}{a}_{{{{\rm{L}}}}}^{2}| \, \ll \, | {\omega }_{{{{\rm{X}}}}}{a}_{{{{\rm{L}}}}}{a}_{{{{\rm{X}}}}}|\). This latter condition is always satisfied for conventional laser pulses with flattop temporal profiles, such as those used in the simulations. For the flying-focus pulses of interest, where the intensity peak is colocated and cotravels with the electron beam, it is convenient to recast the condition in terms of the coherent X-ray power: \({P}_{X}\,[{{{\rm{W}}}}] \, \gg \, 3.5\times 1{0}^{5}{({a}_{0}{\sigma }_{0}{L}_{{{{\rm{b}}}}}{\lambda }_{{{{\rm{L}}}}}^{2}/{w}_{{{{\rm{FF}}}}}^{4})}^{2}\). Evaluating the right-hand side with the parameters in Table 1 and Lb = 50 μm yields PX [W]  60, which is easily satisfied.

In GENESIS-1.3, the equations of motion are integrated in z instead of t. With the substitution \(\frac{d}{dt}={v}_{z}\frac{d}{dz}\), the full set of guiding-center equations of motion becomes

$$\frac{d{{{{\bf{p}}}}}_{\perp }}{dz}=-\frac{1}{4{p}_{z}}{\nabla }_{\perp }{a}_{{{{\rm{L}}}}}^{2}({{{\bf{x}}}})+\frac{\gamma }{{p}_{z}}{\nabla }_{\perp }{\varphi }_{{{{\rm{SC}}}}}({{{\bf{x}}}})-{\nabla }_{\perp }{a}_{{{{\rm{SC}}}}}({{{\bf{x}}}}),$$
(12)
$$\frac{d{{{{\bf{x}}}}}_{\perp }}{dz}=\frac{{{{{\bf{p}}}}}_{\perp }}{{p}_{z}},$$
(13)
$$\frac{d\gamma }{dz}=-\frac{1}{4{p}_{z}}{k}_{{{{\rm{X}}}}}{a}_{{{{\rm{L}}}}}({{{\bf{x}}}})\left[i{a}_{X}({{{\bf{x}}}},t)\exp (i\psi )+{{{\rm{c.c.}}}}\right]+\frac{{{{\bf{p}}}}}{{p}_{z}}\cdot \nabla {\varphi }_{{{{\rm{SC}}}}}({{{\bf{x}}}}),$$
(14)
$$\frac{d\psi }{dz}=({k}_{{{{\rm{X}}}}}+{k}_{{{{\rm{L}}}}})-\frac{1}{{v}_{z}}({\omega }_{{{{\rm{X}}}}}-{\omega }_{{{{\rm{L}}}}})+\frac{d\phi ({{{\bf{x}}}})}{dz},$$
(15)
$${p}_{z}={\left[{\gamma }^{2}-(1+| {{{{\bf{p}}}}}_{\perp }{| }^{2}+{\varphi }_{{{{\rm{P}}}}})\right]}^{1/2},$$
(16)

where t ≈ z/c has been used in ϕ. This set of equations is similar to the set describing electron motion in a conventional magnetostatic FEL with an undulator period λu = λL/2 (cf. Reiche60). There are, however, two important distinctions. First, the focusing geometry used for the laser pulse contributes a phase ϕ(x) that can spatially detune the FEL instability [Eq. (15)]. Second, the transverse ponderomotive force [first term in Eq. (12)] pushes electrons from regions of high to low undulator strength. When the intensity of the laser pulse is peaked on-axis, this has the opposite effect of the natural focusing that occurs in a magnetostatic undulator.

The motion of the electron beam in the laser undulator results in a transverse current that drives the X-ray radiation. The envelope of the X-ray pulse aX evolves according to the paraxial wave equation

$$\left[{\nabla }_{\perp }^{2}+2i{k}_{{{{\rm{X}}}}}\left(\frac{\partial }{\partial z}+\frac{\partial }{c\partial t}\right)\right]{a}_{{{{\rm{X}}}}}=4\pi {r}_{e}\sum\limits_{j}\frac{{a}_{L}({{{{\bf{x}}}}}_{j})}{{\gamma }_{j}}\delta ({{{\bf{x}}}}-{{{{\bf{x}}}}}_{j}){e}^{-i{\psi }_{j}},$$
(17)

where re is the classical electron radius and the summation is over all electrons. In practice, GENESIS-1.3 uses “macro”-electrons to avoid simulating all of the electrons present in an actual beam. To solve Eqs. (12)–(17), the macroelectrons are initialized in t as “slices” of duration λX0/c, where λX0 is the target radiation wavelength39,61. The macroelectron motion and X-ray envelope aX are advanced in steps of Δz. After a specified number of longitudinal steps Nz, the envelope is advanced in time by Δt = NzλX0/c. This numerical approach is valid when cΔt is much shorter than the cooperation length, Lc = λX0/4πρ, which defines the slippage of the X-ray pulse relative to the electron beam over a gain length. The underlying assumption is that the instability does not grow significantly in the time it takes the X-ray radiation to “slip” by one electron slice (i.e., by a length λX0).

The density and current of the electron beam also produce space-charge fields that feedback to the motion. The φSC and aSC terms appear in Eqs. (12) and (14) correspond to the Lorentz forces from the longitudinal and radial electric fields (E = − φSC) and azimuthal magnetic field (Bθ = −∂raSC, where r = x). The longitudinal electric field is assumed to be periodic with respect to the ponderomotive phase, i.e., \({E}_{z}=\frac{1}{2}{\sum }_{\ell }{\hat{E}}_{z,\ell }{e}^{i\ell \psi }+{{{\rm{c.c}}}}\), where the amplitudes (\({\hat{E}}_{z,\ell }\)) are real. Substitution of the Fourier series into the inhomogeneous wave equation provides an equation for each amplitude60,62

$$\left({\nabla }_{\perp }^{2}-4{k}_{{{{\rm{L}}}}}{k}_{{{{\rm{X}}}}0}\right){\hat{E}}_{z,\ell }=-8{r}_{e}{k}_{{{{\rm{L}}}}}{k}_{{{{\rm{X}}}}0}\ell \sum\limits_{j}\delta ({{{{\bf{x}}}}}_{\perp }-{{{{\bf{x}}}}}_{\perp ,j})\sin (\ell {\psi }_{j}),$$
(18)

where the summation is over all macroelectrons in a time slice and δ(zzj) = kX0δ(ψψj) has been used. The approximation z ≈ ct has also been used to approximate and ∂tρ ≈ −∂zJz, where ρ and Jz are the charge and longitudinal current densities, respectively. The simulations presented above include the  = 1 mode of the longitudinal electric field.

A laser-based undulator lowers the electron energy needed to produce X-rays, but operating at lower energies exacerbates the effects of transverse space-charge repulsion. As a rough estimate, transverse space-charge forces will cause a significant increase in the electron beam radius over a length \({L}_{{{{\rm{SC}}}}}\equiv 2c{\gamma }_{0}^{3/2}/{\omega }_{{{{\rm{pl}}}}}\). For the presented design (Table 1), this length is comparable to the interaction length: LSC = 1.8 cm and Lint = 1.25 cm. To capture the effect of these forces, a self-consistent calculation of the transverse space-charge fields (Er and Bθ) and their feedback onto the electron motion was added to GENESIS-1.3. As with Ez, Er, and Bθ are assumed to be periodic with respect to the ponderomotive phase. Unlike Ez, however, these field components are nonzero for  = 0. Assuming cylindrical symmetry, the  = 0 amplitudes of the transverse space-charge fields satisfy

$$\frac{\partial }{\partial r}(r{\hat{E}}_{r,0})=-\frac{{r}_{e}{k}_{{{{\rm{X}}}}0}}{\pi }\sum\limits_{j}\delta (r-{r}_{j}),$$
(19)
$$\frac{\partial }{\partial r}(r{\hat{B}}_{\theta ,0})=-\frac{{r}_{e}{k}_{{{{\rm{X}}}}0}}{\pi }\frac{{v}_{0}}{c}\sum\limits_{j}\delta (r-{r}_{j}).$$
(20)

The same approximations applied to the delta functions in Eq. (18) are applied here. In addition, the longitudinal velocity in the summation for \({\hat{B}}_{\theta ,0}\) is approximated by the initial velocity (vz,j ≈ v0), such that \({\hat{E}}_{r,0}={v}_{0}{\hat{B}}_{\theta ,0}/c\). Note that the  = 0 term for the space-charge fields is the dominant contribution; the  = 1 term is \({{{\mathcal{O}}}}({\lambda }_{{{{\rm{X}}}}0}^{2}/{\sigma }_{0}^{2})\) smaller.

One of the most striking differences between conventional FEL and LDFEL simulations is the requirement on the transverse resolution. A series of simulations using the LDFEL-modified version of GENESIS-1.3 was conducted to determine the transverse resolution required for convergence of the saturated power and saturation length. For simplicity, an ideal, plane-wave laser undulator was considered. The simulations confirmed the analytic calculations in Sprangle et al.20 that at a minimum it is necessary to resolve transverse wave numbers up to

$${k}_{\perp ,\min }\approx 3\sqrt{2}{\left(\frac{{k}_{{{{\rm{X}}}}0}}{{L}_{{{{\rm{g}}}}0}}\right)}^{1/2}.$$
(21)

Because the gain length (Lg0) is much smaller in an LDFEL, the LDFEL simulations require a much higher transverse resolution to accurately model all of the amplified wavevectors: \(\Delta x \, < \, \Delta {x}_{\max }\approx \pi /{k}_{\perp ,\min }\propto {L}_{{{{\rm{g}}}}0}^{1/2}\).

The high transverse resolution required to model LDFEL amplification from noise in GENESIS-1.3 makes a calculation of the X-ray diffraction angle at saturation computationally challenging. The divergence angle at saturation θD can, however, be bounded: \(2\sqrt{2}/{k}_{{{{\rm{X}}}}0}{\sigma }_{0} \, < \, {\theta }_{{{{\rm{D}}}}} < {\sigma }_{0}/\sqrt{2}{L}_{{{{\rm{sat}}}}}\). For the simulations presented above, 6.5 × 10−5 < θD < 8.5 × 10−4. The lower bound assumes the X-ray pulse is diffraction-limited with a minimum spot size \({\sigma }_{0}/\sqrt{2}\). The upper bound assumes the maximum transverse wavevector exits the electron beam after a saturation length. Future work will pursue modifications to the GENESIS-1.3 output routines to better manage the highly resolved X-ray field data.

Laser-pulse model

The amplitudes aL and phases ϕ of the conventional and flying-focus pulses used in the GENESIS-1.3 simulations are given by

$${a}_{{{{\rm{C}}}}}({{{\bf{x}}}})={a}_{0}\frac{{w}_{{{{\rm{C}}}}}}{w(\zeta )}\exp \left[-\frac{{r}^{2}}{w(\zeta )}\right],$$
(22)
$${\phi }_{{{{\rm{C}}}}}({{{\bf{x}}}})=\frac{{\omega }_{{{{\rm{L}}}}}{r}^{2}}{2cR(\zeta )}+\Psi (\zeta ),$$
(23)
$${a}_{{{{\rm{FF}}}}}({{{\bf{x}}}})={a}_{0}\left[1+{\left(\frac{r}{{w}_{{{{\rm{FF}}}}}}\right)}^{2}\right]\exp \left(-\frac{{r}^{2}}{{w}_{{{{\rm{FF}}}}}^{2}}\right),$$
(24)
$${\phi }_{{{{\rm{FF}}}}}({{{\bf{x}}}})=0,$$
(25)

where ζ = zLint/2 is the longitudinal position of the electron beam with respect to the center of the interaction region. The expressions for the conventional pulse correspond to a laser pulse focused by an ideal lens in the Gaussian optics approximation with a focal plane at z = Lint/2, spot size \(w={w}_{{{{\rm{C}}}}}{[1+{(\zeta /{Z}_{{{{\rm{R}}}}})}^{2}]}^{1/2}\), radius of curvature \(R(\zeta )=\zeta [1+{Z}_{{{{\rm{R}}}}}^{2}/{\zeta }^{2}]\), and Gouy phase \(\Psi (\zeta )=\arctan (\zeta /{Z}_{{{{\rm{R}}}}})\). The focal plane was placed in the middle of the interaction region to (1) ensure the greatest amplitude uniformity, (2) provide the greatest average amplitude, and (3) allow the beam to radiate at all resonant wavelengths twice along its path (see Eq. (2) and Fig. 2b). The spatial variation in the phase ϕC had almost no effect on the amplification for the simulated spot sizes.

The expressions for the flying-focus pulse correspond to the ideal flying focus, which creates a moving focal point by focusing a laser pulse through a lens with a time-dependent focal length30,31. The transverse profile of an ideal flying-focus pulse can be written as a superposition of any complete set of transverse modes31,34,35. Here, the amplitude and phase are chosen to produce a flattened Gaussian beam (FGB) of order N = 163, which is a linear combination of the zeroth- and first-order radial Laguerre–Gaussian modes. The FGB profile was chosen to improve the transverse uniformity of the flying-focus undulator and weaken the transverse ponderomotive force on the electron beam. This could have also been achieved by using orthogonally polarized Laguerre–Gaussian modes with different orbital angular momentum values34,64,65.

In general, the amplitude and phase of a flying-focus pulse are functions of r and the moving coordinate zvft31,35, which captures the effects of bandwidth on the LDFEL amplification process [Eqs. (6)–(17)]. Because the highly relativistic electron beam is colocated with the moving focus and much shorter than the effective Rayleigh range \(2\pi {w}_{{{{\rm{FF}}}}}^{2}/{\lambda }_{{{{\rm{L}}}}}\)31, the z and t-dependence in the amplitude and phase of the FGB is \({{{\mathcal{O}}}}({\lambda }_{{{{\rm{L}}}}}{L}_{{{{\rm{b}}}}}/4\pi {w}_{{{{\rm{FF}}}}}^{2}) \sim {{{\mathcal{O}}}}(1{0}^{-2})\) and is therefore neglected in Eqs. (24) and (25). In addition, the phase has an extrema at r = 0 in the moving focal plane. Thus, the associated term in Eq. (15), dϕFF/dz, is negligible. The results of simulations with either the full expression for ϕFF or ϕFF = 0 were identical.

Wave propagation simulations of a conventional laser pulse with an N = 1 FGB profile (not presented) showed a substantial increase in amplitude nonuniformity across the interaction length compared to a pure Gaussian profile. Interference between the modes of the FGB resulted in two on-axis peaks located symmetrically about the focus (z = Lint/2 ± 0.7ZR) with an intensity 1.3× larger than the intensity at the focus. The interference also caused the flat-topped transverse profile to rapidly degrade away from the focal plane. Due to the exacerbated amplitude variation and degradation in the flattop profile, the conventional FGB was observed to produce a lower X-ray power than a conventional pulse with a simple Gaussian profile but with the same energy. The interference between modes also occurs for an FGB flying focus, but the location of the intensity peaks and degraded flattop profile are located relative to the moving focal plane. As a result, an electron beam colocated and cotraveling with the moving focus does not enter the regions of space where these effects are prominent.

The energies of a conventional and flying-focus pulse are given by

$${U}_{{{{\rm{C}}}}}=\frac{m{c}^{3}}{16{r}_{e}}{({a}_{0}{k}_{{{{\rm{L}}}}}{w}_{{{{\rm{C}}}}})}^{2}T,$$
(26)
$${U}_{{{{\rm{FF}}}}}=\frac{\alpha m{c}^{2}}{8{r}_{e}}{({a}_{0}{k}_{{{{\rm{L}}}}}{w}_{{{{\rm{FF}}}}})}^{2}{L}_{{{{\rm{f}}}}}$$
(27)

where wC and wFF are the 1/e radii of the electric fields at focus for a Gaussian transverse profile, T is the pulse duration, and Lf = cT/2 when the focal velocity vf = −vph = c27,31,35. The pulse duration necessary to sustain the undulator over the interaction length Lint is T = 2Lint/c. For the simulated interaction, Lint = 1.25 cm, yielding T = 83 ps as displayed in Table 1. A pure Gaussian transverse profile has an α = 1, while an N = 1 FGB has α = 5/2 [Eq. (24)]. The 1/e radius of the electric field for the full N = 1 FGB profile at focus is 1.5wFF or 56 μm.

As an alternative to the ideal flying focus used here, one could also consider using the chromatic flying focus26. The chromatic flying focus creates a moving focal point by focusing a chirped laser pulse with a chromatic lens. In this case, the phase of the flying focus pulse is given by

$${\phi }_{{{{\rm{FF}}}}}=\pm \frac{\Delta \omega {(z-{L}_{{{{\rm{f}}}}}/2)}^{2}}{4c{L}_{{{{\rm{f}}}}}}$$
(28)

where the  ± refers to the sign of the chirp and Δω is the bandwidth. The quadratic z-dependence of the phase corresponds to a frequency that varies linearly across the focal region Lf. The resulting variation in the undulator period and detuning can be mitigated by modifying the focal geometry at the cost of more laser-pulse energy (see “Discussion”).

In the simulations, the temporal profiles of both the flying focus and conventional pulse were assumed to be flat in the plane of the final focusing optics. This isolates the effects of amplitude nonuniformity introduced by diffraction from the effects of amplitude nonuniformity in the temporal profile. A varying temporal profile would add an additional source of detuning: \(\Delta {\lambda }_{{{{\rm{X}}}}} \sim \int\,d{{{\bf{s}}}}\cdot \nabla {a}_{0}^{2}{{{{\mathcal{T}}}}}^{2}({{{\bf{x}}}},t)\), where s is the path of an electron through the undulator and \(0\le {{{\mathcal{T}}}}\le 1\) is the temporal profile of the vector potential in the plane of the final focusing optic. Amplification requires a detuning ΔλX/λX0 2ρ, which can be reexpressed as a condition on the allowable variation in the temporal profile21

$$\Delta {{{{\mathcal{T}}}}}^{2} \, < \, 4\rho \frac{1+{a}_{0}^{2}/2}{{a}_{0}^{2}}.$$
(29)

For the parameters in Table 1, \(\Delta {{{{\mathcal{T}}}}}^{2} < 1.1 \%\) within the flat region of the pulse for both the conventional and flying focus pulse. However, when using a conventional pulse the temporal nonuniformity adds to the spatial nonuniformity, whereas the flying focus eliminates the spatial nonuniformity. In addition, smaller amplitudes relax the requirement on temporal uniformity at the cost of longer saturation lengths, which favors the use of a flying-focus undulator (see Fig. 3).