Quantum radiation reaction in head-on laser-electron beam interaction

In this paper, we investigate the evolution of the energy spread and the divergence of electron beams while they interact with different laser pulses at intensities where quantum effects and radiation reaction are of relevance. The interaction is modeled with a QED-PIC code and the results are compared with those obtained with a standard PIC code with the addition of a classical radiation reaction module and with theoretical predictions. While classical radiation reaction is a continuous process, in QED, radiation emission is stochastic. The two pictures reconcile in the limit when the emitted photons energy is small compared to the energy of the emitting electrons. The energy spread of the electron distribution function always tends to decrease with classical radiation reaction, whereas the stochastic QED emission can also enlarge it. These two tendencies compete in the QED-dominated regime. Our analysis, supported by the QED module, reveals an upper limit to the maximal attainable energy spread due to stochasticity that depends on laser intensity and the electron beam average energy. Beyond this limit, the energy spread decreases. These findings are verified for different laser pulse lengths ranging from short ~ 30 fs pulses presently available to the long ~ 150 fs pulses expected in the near-future laser facilities, and compared with a theoretical model. Our results also show that near future experiments will be able to probe this transition and to demonstrate the competition between enhanced QED induced energy spread and energy spectrum narrowing from classical radiation reaction.


Introduction
Near future facilities [1,2,3] will provide extreme laser intensities (I > 10 22 W/cm 2 ), where quantum effects such as electron-positron pair production and discrete photon emission might play a central role in laser-matter interaction [4,5,6,7,8,9,10,11,12]. Previously, electron-positron pairs have been produced in experiments using a moderately-intense laser of intensity I ∼ 10 18 W/cm 2 counter-propagating with the ultra-relativistic (46 GeV) SLAC electron beam [13,14,15]. This setup takes advantage of the ultra-relativistic energy of the particles to observe certain nonlinear quantum effects in electromagnetic fields whose amplitude remains several orders of magnitude below the critical Schwinger field [16], which constitutes usually the threshold to observe pairs spontaneously created in vacuum. As detailed in [17], the field magnitude in the rest frame of the particles will then be of the order of the critical field and the probability of the process becomes optimal. By leveraging on the tremendous progress accomplished in laser technology in the last decades, one can also envisage nowadays to decrease the energy of the relativistic particles and increase proportionally the magnitude of the field of the laser. This explains the recent growing interest [8,18,19,20,21,22,23] on configurations where a relativistic electron beam interacts with laser pulses of significantly higher intensity than in the SLAC experiment. The typical electron energy sufficient to diagnose nonlinear quantum effects is around a few GeV and such electron beams can now be generated from an all-optical source in an efficient manner: the current experimental record for self-injected electrons obtained in a laser wakefield accelerator is 4 GeV [24]. This shows that the near future laser facilities can be used to explore this nonlinear Compton scattering configuration without the aid of conventional accelerators.
In our previous work [25] we have studied the radiation reaction for an electron beam in a laser field with the use of the Landau-Lifshitz equation [26] which has been recognised as the best candidate to describe classically the effect of radiation reaction on charged particle orbits [27,28,29,30,31,32]. In the Landau-Lifshitz equation framework, charged particles emit radiation continuously and the direct effect of this emission can be represented as a continuous drag force in the particle motion equation. As shown in [25], when a GeV electron beam collides head-on with an intense laser (I 10 21 W/cm 2 ), one of the key effects of classical radiation reaction is to reduce the width of the electron energy distribution function during the interaction [8,33]. The tendency of classical radiation reaction to shrink the electron energy distribution function has been studied also in fusion plasmas [34], and in ion acceleration with solid targets [35]. If the laser intensity is raised such that the classical description of radiation reaction becomes inapplicable, the quantum effects in radiation reaction induce the opposite behaviour, leading to an increase of the energy spread of the beam spectra [36]. With the advent of quantum electrodynamics (QED) modules incorporated in the traditional particle-in-cell (PIC) algorithm, we are now able to simulate from first principles quantum radiation reaction in laser-plasma interaction and therefore to validate some of the recent theoretical predictions. This paper thus deals with differences between the classical and the quantum electrodynamics (QED) description in the transition regime where the probabilities for pair creation are still negligible, but quantum effects in the photon emission can already be significant ( "moderately quantum regime" defined in [37]). This is of particular relevance since upcoming experiments at several facilities will be able to operate in this regime. We carry out PIC-QED simulations that allow us to evaluate the influence of quantum emission on the electron energy spread and the divergence of the electron beam. Maximum attainable energy spread due to quantum stochasticity as a function of mean electron energy and the laser intensity is computed. This result further allows us to obtain a semi-classical analytical prediction for the electron energy spread after the shutdown of the laser as a function of the initial beam and laser parameters. The prediction is in agreement with fully quantum Monte-Carlo PIC simulations. This paper is structured as follows. In Section 2, we introduce the QED framework to describe photon emission. We then analyse, in Section 3, the evolution of the electron energy spectra, predicted analytically, and we compare the analytical results with QED-PIC simulations. In Section 4, we study the evolution of the electron beam divergence, another measurable quantity in these scenarios, and in Section 5 we state the conclusions of this work.

QED Photon emission
In QED, radiation is a discrete stochastic process and this impacts the particle trajectory in a distinct manner from the continuous emission associated with the classical radiation processes. The probabilities of the various processes in an electromagnetic plane wave are based on Volkov states [38] where the quantum-transition probability is evaluated taking into account the interaction between the particle and the background wave. In the event of emission, there is a transfer of energy from the electron to the emitted photon; otherwise, the electron momentum and energy remain unaltered. The classical limit corresponds to the case where a large number of photons, whose energy remains small compared to the electron energy, is radiated: the high frequency of the emission events allows the approximation of the trajectory as a classical trajectory with a continuous drag. The main difference between the classical and the QED approach is that QED accounts for the possibility of emitting high-energy photons even in a setup where the cross-section for Compton scattering is small (i.e. the average energy loss of the particle is negligible). In the quantum regime, the stochastic nature of emission becomes noticeable and one may expect a diffusion in energy around the mean value of the energy loss, as it was first reported in refs. [5,36].
The total probability of radiation emission by a single particle is relativistically invariant and depends on the normalised vector potential a 0 = eE/(mcω 0 ) and the quantum invariant parameter χ (χ e for electrons and χ γ for photons) defined as: where p µ is the particle 4-momentum, k µ is the photon wave 4-vector, F µν the electromagnetic tensor, E s = m 2 c 3 / c the Schwinger critical field [16], m is the electron mass, e is the elementary charge, c is the speed of light and ω 0 is the frequency of the electromagnetic wave. The differential probability rate of photon emission by nonlinear Compton scattering is then given [39,40,41,42,43,17] by whereχ = 2ξ/(3χ e (1 − ξ)), ξ = χ γ /χ e and α = e 2 /( c) is the fine-structure constant. In order to simulate the emission of photons (and electron-positron pairs), we have added a QED module [44,45] to OSIRIS [46] which allows real photon emission from an electron or a positron and decay of the photons into pairs (Breit-Wheeler process). The OSIRIS-QED framework accounts for the differential emission probability rate (2) in a similar fashion as other QED-PIC modules [9,10,11,47]. The QED algorithm can be summarized as follows: at particle push-time, the probability of radiating a photon is evaluated, and if the event occurs, the radiated photon quantum parameter is selected to obey the distribution given by Eq. (2); the particle momentum is then updated to account for the momentum of the emitted photon (assumed to be radiated in the direction of the particle motion). For Breit-Wheeler pair production, the procedure is similar but instead of emission, we evaluate the probabilities of photon decay into an electron-positron pair. If the event occurs, we then remove the photon and initialize the new particles. The OSIRIS-QED framework is also equipped with an advanced macroparticle merging algorithm [48].

The evolution of the electron energy spectra
We first examine the temporal evolution of the energy spectrum of an electron beam as it collides head-on with an intense laser. In particular, we will focus on how the electron beam energy spread is affected by the QED photon emission. To facilitate this analysis,  Figure 1. QED radiation reaction and photon detection. The electron beam depicted is interacting with a counter-propagating laser during the rise-time of the temporal laser envelope function. Individual events of photon emission cause non-continuous energy loss, which is illustrated by the different colours (particle energies) for electrons experiencing the same field.
we define the beam width at a time t as the standard deviation in energy over all the particles where N is the total number of particles, γ(t) is the mean energy of the electron beam at time t, as measured in the laboratory frame, and γ i (t) is the energy of the particle i at the same time t. The stochastic effects in quantum radiation reaction that are responsible for the spreading of the distribution have been analytically studied in a similar setup in [36] where the Fokker-Planck equation is used to describe the evolution of the electron distribution function in time. This approach is valid for χ γ 1. The Fokker-Planck equation [49,50,51] is usually used in laser plasma interaction, for instance, to model kinetically the collisions between species. One can however see the quantum photon emission as a virtual inelastic collision with an electron; as long as the momentum exchange remains small compared with the emitting particle momentum, the Fokker-Planck equation proves to be adequate.
If w( p, q)d 3 q denotes the probability per unit time of momentum change p → p − q of an electron p, then the transport equation for the electron distribution function f (t, p) is given by: where  represent the drift and diffusion coefficients respectively, and indexes l and k denote different spatial components. Under the assumption that the electron beam is relativistic, and that the photons are radiated in the direction of motion, the problem is reduced to one dimension.
Since the emission probability is given by Eq.
(2) as a function of χ γ , we proceed to a change of variables using χ γ /χ e ≈ k/γmc which is a consequence of the collinearity of the electrons and the emitted photons. We then get After integration, the drift coefficient and the diffusion coefficient become respectively which were first calculated in [36]. The Fokker-Planck equation (4), which is a special case of the master equation in the continuous limit, is valid for q p. In our scenario, this validity condition can be expressed as χ γ χ e which is only conceivable for χ e 1.
If there is no diffusion (B = 0), the equation of the characteristic in Eq. (4) is dp/dt mcdγ/dt = −A. For electrons counter-propagating with a linearly polarised wave χ e is given by χ e = √ 2γa 0 ω 0 /mc 2 , while in a circularly polarised wave χ e = 2γa 0 ω 0 /mc 2 . This allows us to retrieve the classical result where the photon emission results in the electron relativistic factor γ decrease. The rate of this decrease in a linearly polarised wave is given [20,25] by where α rr is a constant with units of frequency. For a circularly polarised wave α rr needs to be multiplied by a factor of two. By integrating Eq. (8) with γ 0 for initial Lorentz factor, we obtain γ = γ 0 /(1+α rr γ 0 t) in a linearly polarised wave and γ = γ 0 /(1+2α rr γ 0 t) in a circularly polarised wave, in agreement with [30]. By neglecting diffusion and assuming an initial Gaussian distribution for the electrons with initial standard deviation σ 0 and initial mean energy γ 0 , the authors in ref. [36] have shown that if σ 0 γ 0 , the distribution remains approximatively Gaussian with an effective standard deviation which is expressed for a quasi-monoenergetic relativistic electron beam as δγ 0 /δγ = (γ 0 /γ) 2 [25]. It is not straightforward to rigorously expand this result to account for the diffusion term contribution. However, if now we assume that the drift is negligible (i.e. the average energy remains constant over a period of time γ γ 0 ), we obtain the usual diffusion equation, where we have performed the change of variables p mcγ: In the case of a Gaussian distribution, the standard deviation evolves as It is therefore clear from Eq. (9) and Eq. (11) that there is a competition between the drift-like term that tends to compress the distribution width whereas the diffusion-like term tends to increase it. For an infinitesimally short period of time dt, the change of the distribution width at a time t due to the drift is given by differentiating Eq. (9) yielding and the change due to the diffusion is obtained in a similar manner by differentiating Eq. (11) We can then compute the total change of the electron distribution width within an interval dt: A direct integration of the Eq. (14) is not possible because the variables cannot be separated. The expression from [36] can be retrieved by approximating σ(t) = σ 0 in the term within the squared brackets in Eq. (14) and then integrating in time. The authors in [36] have shown that their expression is valid for relatively short laser interaction times τ such that αa 0 (γ 0 /σ 0 ) 2 χ 2 e τ ω 0 1. Considering that the width of the distribution can change significantly throughout the interaction, it turns out impossible to simplify Eq. (14) and obtain an explicit form for the energy spread evolution. Nevertheless, Eq. (14) can still provide an insight into the changing features of the electron distribution function. Depending on the specific values of the initial parameters of the beam dσ can be positive (the diffusion wins over the drift) or negative (the drift wins over the diffusion). If we start from a narrow momentum spread like in our simulations, the distribution width first tends to increase, and later shrink. The "turning point", when classical-like drift starts winning over the QED-induced diffusion can be defined by solving dσ/dt = 0. For a circularly polarised laser, we obtain and for a linearly polarised laser, where γ T and σ T represent the electron average energy and energy spread at the "turning point", σ T /γ T is the relative energy spread and λ 0 is the laser wavelength. For a given γ T and a 0 , if σ < σ T the energy spread increases, but if σ > σ T , the width of the energy distribution function decreases. In other words, Eqs. (15) and (16), allow us to estimate what is the maximum attainable energy spread through diffusion depending on the laser vector potential and the average energy of the electron beam. The evolution of the electron energy distribution function can be also interpreted in terms of entropy. Neitz and Di Piazza have shown that the entropy of the electron beam increases when the quantum stochasticity dominates, and decreases when the energy spread is decreasing [36]. We will now compare the above findings with simulation results obtained using the OSIRIS-QED framework. The simulation setup is depicted in Fig. 1 where an electron bunch is colliding head-on with a circularly polarised laser and emitting photons. The electrons are presented in their transverse momentum space as a function of the longitudinal spatial coordinate. The main characteristic of the quantum radiation emission is already visible in this figure: even though there is an average trend to emit and to lose more energy further into the laser pulse, the energy of an individual electron is subject to fluctuations due to stochastic nature of the quantum photon emission.
To illustrate these features, we first present a set of simulations using two different electron bunches with mean energies of 0.5 GeV and 0.85 GeV. The bunches are initialised with a very small thermal momentum spread, equal in all transverse directions (the initial beam divergence is p ⊥ /p ∼ 0.2 mrad). The laser is modeled as a transverse plane wave with a temporal envelope function f (t). The laser rise and fall sections have the same shape and duration τ rise = τ f all = 50.0 ω −1 0 , while the duration of the flat part τ f lat is varied between 0.0 and 300.0 ω −1 0 with a step of 50.0 ω −1 0 (seven different total pulse durations τ = τ f lat + (τ rise + τ f all )/2). The slope of the envelope function for t < τ rise is defined as f (t) = 10(t/τ rise ) 3 − 15(t/τ rise ) 4 + 6(t/τ rise ) 5 , where τ rise = 50.0 ω −1 0 = 26.6 fs and ω 0 = 1.88 × 10 15 . The variable length middle section of the pulse had the laser vector potential always at the maximum value (a 0 = 27). We shall stress that the interaction between the particles of the beam is negligible and since the laser field amplitude is uniform in the transverse directions, all the particles are subject to the same conditions. This corresponds to the approximation of beam transverse size much smaller than the laser spot size. Therefore, the large amount of PIC particles (about 1 million) provides us with a good statistical sample to study the evolution of the energy spectra of the electrons. The simulations are performed in 2D, where the box size was 500 × 20 c 2 /ω 2 0 , resolved with 5000 × 200 cells and the timestep dt = 0.04 ω −1 0 using 16 particles per cell. The simulation timestep is chosen such that dt W −1 rad , where W rad is the photon emission rate. The results of the first set of simulations are summarized in Fig. 2 which shows the electron energy spectra after the interaction with the laser. All the spectra, as expected, are wider than the quasi-monoenergetic initial distribution. The striking fact is that after interaction with longer lasers, the final energy spread of the electron beam is narrower than after interacting with shorter lasers. This hints that in case of longer interaction, a "turning point" predicted by the theory with properties given by Eq. (15) must exist. After the initial increase of the width of the spectrum due to the quantum nature of the radiation process, the "turning point" indicates the time at which the width reduces anew as predicted by classical radiation reaction [25].
To investigate this further, the evolution of the beam energy with the spread γ(t) ± σ(t)/2 as a function of time for several examples is shown in Fig. 3. Without quantum stochasticity or radiation reaction, both the electron energy and σ(t) would remain the same throughout the whole interaction. With only classical radiation reaction, both the average energy and σ(t) would reduce with time. The analysis of the beam spectral width evolution during the time of the interaction confirms that the first quantum effect is to broaden the spectrum due to quantum stochasticity. If the laser is short enough, the spectrum stays broad (this is in agreement with Ref. [36]). However, if the laser is longer, then there is a specific point in time where the spread starts decreasing due to the classical drift of the electron energy distribution function.
A second set of simulations is performed by varying the electron beam initial energy, using a laser pulse similar to the ones described previously (a 0 = 27, τ rise = τ fall = 50 ω −1 0 , τ flat = 600 ω −1 0 ), with the same simulation box and resolution. We would like to compare the predictions of Eq. (14) with the simulation results in a regime with χ e 1, in a wave with a constant amplitude that allows for direct integration of Eq. (14). The black line in Fig. 4 a) shows the evolution of the energy spread from a simulation with 26 Fig. 4 shows that Eq. (14) gives a result in good agreement with the simulation. Even in the case of a higher γ 0 = 1700, which corresponds to χ e 0.2, the integration of Eq. (14) provides a reasonable agreement (Fig. 4 b)).
In Fig. 4 c) we show σ 2 T as a function of γ 3 T at the "turning point" for several simulations starting at different average electron energies. All the simulations are performed with a 0 = 27 and the "turning point" is located within the constant amplitude section of the pulse. For particles with lower energies (and therefore with lower χ e ), the "turning point" is well identified by Eq. (15). For higher energies, the χ e parameter is close to one and the electron energy spread is high, which makes the simulation results depart from the prediction of Eq. (15). However, the value obtained in the simulations is always lower than the predicted value. This confirms that the upper limit on the electron energy spread increase through diffusion as a function of a 0 and γ can be estimated using Eqs. (15) and (16) Let us comment on the underlying physics involved in this behaviour. The differential probability rate of photon emission given by Eq. (2) depends on the χ e parameter in such manner that electrons with higher χ e emit on average a larger fraction of their energy than the electrons with low χ e . This is what leads to the classical-like shrinking of the electron beam energy distribution in addition to the average energy drift towards a lower value. Moreover, the photons in the nonlinear Compton regime are emitted according to a distribution, such that electrons in identical conditions can  radiate photons of different energy; this leads to a diffusion in the electron distribution function. These two tendencies compete, and the drift effect becomes dominant if the energy spread is wide enough (σ σ T ). On the contrary, if the initial electron energy spread is very low, the diffusion process dominates. This is illustrated in Fig. 5 that shows the temporal evolution of electron energy spectra in a Gaussian laser pulse with duration τ = 150 fs and peak vector potential a 0 = 27 (a pulse like this will be available, for instance, in ELI Beamlines [1]). An electron beam is initialized with γ 0 = 1700, and we varied the value of σ 0 . The first value σ 0 = 2 (Fig. 5 a) corresponds to an electron beam energy spread of 0.1 % that is still a challenge for experiments. The second σ 0 = 100 in Fig. 5 b) corresponds to a 6 % energy spread, that has already been  achieved with GeV-class electron beams in state-of-the-art laser facilities [24]. Third value σ 0 = 200 in Fig. 5 c) corresponds to 12 % energy spread, and this is routinely achievable with laser wakefield acceleration in the present day laboratory conditions. It is clear from Fig. 5 that starting from a very narrow distribution, the diffusion appears to be faster than for an initial wider one. All the three examples finally converge to the same electron energy distribution function. We can take advantage of this to calculate the expected electron energy spread at the end of the interaction. We perform the numerical integration of Eq. (14) assuming that the initial energy spread σ 0 is equal to the maximum attainable energy spread through diffusion σ T determined by Eq. (15) for a given a 0 and γ 0 . The result obtained in this way is valid for all σ 0 < σ T , as long as the total time of interaction is much longer than the typical emission time T total W −1 rad . The expected final energy spread obtained through numerical integration of Eq. (14) is compared with the simulation results in Fig. 6 a), b) for all the different laser pulse durations considered in the first set of simulations. As expected, the agreement is better for longer laser pulses and lower average electron energies, but the order of the expected energy spread is well predicted in all cases (maximum error is about 30%).
For guiding future experiments, it would be beneficial to have an explicit expression where one could insert the initial electron and laser parameters, and estimate the final energy spread of the electron beam that could be measured directly on a spectrometer. It is possible to attain such an approximate expression for laser pulses with a symmetrical, Gaussian-like temporal profile. We assume that the balance point dσ = 0 has been reached before the centre of the pulse. This assumption is reasonable for beams with σ 0 ∼ σ T , and for beams with σ 0 σ T provided that there is enough time for the diffusion to act and increase σ 0 to the same order as σ T . This is verified when the pulse duration satisfies τ fwhm > 1/(8γ 0 α rr ). If the pulse is shorter, the stochastic effects dominate over the drift, and the final energy spread σ F can be directly estimated using Eq. (11). Similarly, for σ 0 σ T , the drift dominates and we can approximate σ F through Eq. (9). The most difficult case is, therefore, when σ 0 ∼ σ T , as all the terms  [20,25,52,53,54]), we can retrieve an explicit expression for σ M as a function of laser intensity and duration, and initial electron energy. Beyond this point, the energy spread slowly decreases, and the final electron energy spread σ F is smaller than σ M . This yields   (17) does not depend on the laser polarisation, but solely on intensity and duration. Figure 6 a), b) shows the estimate given by Eq. (17) compared with the simulation results. Even though the lasers in our simulations are not Gaussian, we obtain a satisfactory agreement for the same τ fwhm . Panels c) and d) show the predictions for the final energy spread according to Eq. (17) for electron beams starting at different initial energies after interacting with a 30 fs and a 100 fs laser of 2 × 10 21 W/cm 2 intensity. These laser durations are to be available in the near-future laser facilities such as ELI [1], so there is a possibility to verify this model in the next few years.

Electron beam divergence
In addition to the electron energy spread, we can also evaluate the impact of the laser interaction on the electron beam divergence. We define the weighted average of the deflection angle from the main propagation direction as where N is the total number of simulation particles, q i is the charge weight of the ith particle, and (p ⊥ /p ) i is the ratio of the transverse to the longitudinal momentum with respect to the direction of laser propagation. For small angles, tan θ θ, and the average divergence shown in Fig. 7 is determined with this approximation (the error is less than 1 mrad). Figure 7 shows the evolution of the electron bunch divergence as time progresses. Classically, the radiation reaction leads to momentum phasespace contraction proportionally in transverse and longitudinal direction. According to the analytical solution for trajectory of a relativistic electron in an intense plane wave [30], on average, all momentum components and electron energy are reduced by a same factor due to radiation reaction. The angle between the particle momentum and the laser propagation direction is therefore approximately the same before and after the interaction, provided that the laser has a slowly varying temporal envelope compared to the laser period. However, during the interaction with the laser, the electron has an additional oscillatory component of the transverse momentum, whose amplitude depends only on the laser intensity (p * ⊥ a 0 mc). It is worth noting that the oscillatory component of the p ⊥ given by the laser is the same with and without radiation reaction, as it depends only on the normalised vector potential of the wave a 0 (c. f. Supplementary material [55]).
In our case, the particles are counter-propagating with the laser, so the initial p ⊥0 = 0. The only transverse momentum of such a particle is therefore p * ⊥ . In the field of a circularly polarised wave, the transverse momentum vector rotates in the plane perpendicular to the laser propagation direction, while its magnitude remains constant p ⊥ = p * ⊥ a 0 mc. As the initial electron energy is on the order of a 0.5-1.0 GeV, we take γ 0 a 0 and the parallel momentum becomes p = mc γ 2 − a 2 0 − 1 γmc. As a result, the average angle that a single electron makes with the direction of laser propagation is approximately θ a 0 /γ. Without radiation reaction, this angle would stay the same during the constant amplitude section of the laser, as there would be no change in γ. However, Eq. (8) shows that with radiation reaction the electron Lorentz factor decreases through γ = γ 0 /(1 + 2α rr γ 0 t) and the angle is then expected to increase linearly as a function of time: The dashed lines in Fig. 7 show the average expected angle a 0 /γ during the constant amplitude part of the pulse, where γ is taken as the average relativistic factor of the electron bunch and a 0 = 27. We observe a similar trend with the simulation data, which indicates that the average divergence increase due to radiation emission in the constant amplitude region of the laser envelope is well explained by the semi-classical approach. However, there is a slight difference between the simulation data and the expected a 0 /γ which increases over time.
After the interaction has finished, the electron beam has a residual divergence on the order of θ F ∼ 10 mrad which is larger than the initial divergence on the 0.2 mrad level. Semi-classical radiation reaction predicts the final divergence to be approximately equal to its initial value. In QED, we expect the final p ⊥ = 0, but the divergence defined by Eq. (18) can have a larger value than initial if there is a wider particle distribution function in transverse momentum space.
To ascertain the origin of this effect, we have examined the transverse momentum space at different times (see Fig. 8). Initially the electron beam has a narrow momentum spread. During the plane wave stage the average transverse momentum is indeed around the predicted value p ⊥ a 0 mc. Howbeit, the QED simulations show the existence of a momentum spread around the average value that increases with time. This is consistent with the transverse momentum spreading previously reported in ref. [56]. The variation around the average angle as defined in Eq. (18) during the interaction with the constantamplitude section of the laser can be approximately related to the variation in energy: This variation persists and finally becomes the net beam divergence when the laser shuts down: θ F 2/π (a 0 /γ 2 F ) σ F . As γ F converges to a lower value for a longer interaction time, and σ is from Eq. (15) approximately proportional to γ 3/2 , we can  then conclude that the width of the final angular spread increases slowly with the length of the interaction (as seen in Fig. 7).

Conclusions
In classical radiation reaction, the energy loss of a single electron depends on its initial energy. For an electron beam, the main effects are the decrease in its mean energy and reduction of the energy distribution width. When QED effects are taken into account, the intrinsic stochastic nature of photon emission leads to diffusion in the energy distribution around the mean value which would translate into the increase of the energy spread of the beam. Therefore, in the general scenario, there is a competition between these two tendencies. If we allow a long enough interaction time, there is a point when the diffusion in momentum, intrinsically quantum, is balanced by the energy width reduction, associated with the classical regime. Beyond this point, the energy spread only decreases. This allows for estimating the maximal attainable energy spread through diffusion for a set of initial parameters γ 0 and σ 0 . We have estimated this limit (and confirmed it with numerical simulations), which has further allowed us to predict analytically the final electron energy spread, which is the relevant quantity to be measured in experiments.
The average divergence of the electron beam during the laser interaction is welldescribed by the classical radiation reaction. However, we have observed that the electron distribution function in momentum space has a certain spread around the average value that increases with the interaction time. This spread persists after the interaction is shut down and leads to a residual divergence of the electron beam that can be estimated analytically through its connection with the electron energy distribution function.
The control of beam properties is of relevance for all near future laser facilities that will operate at high intensities, regardless if they are aimed at optimising particle acceleration, radiation sources or fundamental research. As the quantum spreading might discriminate between the measurable effects and those whose signatures are too small to be observed due to the width of the final distribution function, our findings are vital for the design of upcoming experiments. They are also valuable for numerous applications with specific beam quality requirements.