원시데이터 수집 시스템
선정목록으로

femtoPro: Real-time linear and nonlinear optics simulations

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Brixner, Tobias — University of Würzburg
  2. Müller, Stefan — University of Würzburg
DOI
10.5281/zenodo.15535423
저널
arXiv (Cornell University)
발행년도
2025
발행기관
Cornell University
피인용수
1
라이선스
0
논문 유형
–
언어
–
원문 페이지
http://arxiv.org/abs/2503.19627
토픽
Laser Material Processing Techniques
OpenAlex ID
W6912020312

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Real-time optics and spectroscopy simulations ideally provide results at update rates of 120 Hz or more without any noticeable delay between changing input parameters and the calculated results. Such calculations require models of sufficient speed yet adequate level of detail in the physical approximations to contain the essential features of the simulated phenomena. We discuss a representation of femtosecond laser pulses in which fast phase oscillations due to carrier frequency and due to spatial propagation are separated out and amplitude modulations due to Gaussian beam propagation are also separated and treated explicitly. We derive simplified expressions for the spatial modulations of laser beams. Further, we derive visibility and beam-overlap factors describing multi-pulse interference. We obtain simplified expressions for radius and curvature of nonlinear signal beams in the case of fundamental beams with different convergence, different beam waist, and imperfect mutual overlap. The described model is implemented in the virtual-reality laser laboratory simulation "femtoPro," but the derived equations can be used independently for other applications.

본문 200,150자

본문 펼치기
Research Article Preprint 1 ### femtoPro: Real-time linear and nonlinear optics simulations TOBIAS BRIXNER, <sup>1,*</sup> STEFAN MUELLER, <sup>1</sup> ANDREAS MÜLLER, <sup>2</sup> AND SEBASTIAN VON MAMMEN <sup>2</sup> _1Universität Würzburg, Institut für Physikalische und Theoretische Chemie, Am Hubland, 97074 Würzburg,_ _Germany_ _2_ _Universität Würzburg, Institut für Informatik, Am Hubland, 97074 Würzburg, Germany_ _*tobias.brixner@uni-wuerzburg.de_ Abstract: Real-time optics and spectroscopy simulations ideally provide results at update rates of 120 Hz or more without any noticeable delay between changing input parameters and the calculated results. Such calculations require models of sufficient speed yet adequate level of detail in the physical approximations to contain the essential features of the simulated phenomena. We discuss a representation of femtosecond laser pulses in which fast phase oscillations due to carrier frequency and due to spatial propagation are separated out and amplitude modulations due to Gaussian beam propagation are also separated and treated explicitly. We derive simplified expressions for the spatial modulations of laser beams. Further, we derive visibility and beam-overlap factors describing multi-pulse interference. We obtain simplified expressions for radius and curvature of nonlinear signal beams in the case of fundamental beams with different convergence, different beam waist, and imperfect mutual overlap. The described model is implemented in the virtual-reality laser laboratory simulation “femtoPro,” but the derived equations can be used independently for other applications. 1. Introduction Computer simulations of optical phenomena and light–matter interaction are ubiquitous across the scientific disciplines because light fields are elementary probes of nature. In particular in the natural sciences, lasers are used as tools in the realms of frequency-resolved or time-resolved spectroscopy and microscopy applications. The particular optical setups of such techniques may require complex and precise configurations. Planning experiments and analyzing experimental data is hence generally carried out with the help of appropriate computer simulation techniques. For example, optical systems are designed using geometrical ray tracing [1, 2]. If more precision is required, finite-difference methods are employed for numerical approximations of wave optics [3–8]. Similarly, the simulation of light–matter interactions can be performed at various levels of accuracy and computational cost, including light-induced quantum dynamics [9–13]. While it is generally desirable to implement procedures and algorithms as efficiently as possible for a given approach, the absolute computation time for nonlinear spectroscopy simulations is typically not the main priority because it is not critical whether results are obtained after a few seconds, minutes, or hours if the desired accuracy is reached in the end. Real-time calculations are not required under such normal-use circumstances. We have recently introduced an immersive virtual-reality (VR) simulator of an ultrafast laser laboratory (“femtoPro”) [14, 15]. It can be used to provide practical training to students or researchers and allows them to obtain practical expertise in the fundamentals of optics, basic alignment procedures, all the way up to building and using advanced time-resolved spectroscopy setups. For this purpose, real-time simulations are required of linear and nonlinear optical phenomena. In this context, “real time” does not signify the native femtosecond timescale of the photoinduced dynamics, but it means that the total calculation time for a complete spectroscopy experiment should be on the order of 8 ms on a typical VR headset such that frame update rates of 120 Hz can be reached. Such rates reduce motion blur [16] and motion sickness [17], improving Research Article Preprint 2 user comfort. In other words, the goal is that the user does not notice a timing difference between carrying out any linear or nonlinear optical experiment in a real laboratory (with appropriate data acquisition software) or simulating the same setup in femtoPro. While our motivation for the present work thus stems from implementing this VR simulator, the derived equations are much more general and are applicable in other optics simulation scenarios, outside of a VR context, particularly if fast computation is desired. Thus, the purpose of the present paper is two-fold: 1) to explain the assumptions underlying the femtoPro software such that users may understand its features and limitations, and 2) to introduce and discuss physical models that can be employed for fast optics simulations on any platform and for various purposes. The requirement for a lag-free user experience sets a top priority on the speed of the simulations. This is different from the established simulation tools and protocols listed above. Still, the accuracy needs to be sufficient to provide a realistic simulation of the spatial and temporal propagation of ultrafast laser pulses and their interaction with matter. Some requirements are therefore: We desire to take into account Gaussian beam propagation because finite-focus-size effects are relevant to simulate beam overlap alignment procedures; laser beams may be clipped if they hit the edge of an optical element or an iris; femtosecond pulses are modified by dispersion upon propagation through materials and upon resonant interactions; and second-order processes shall be included to simulate frequency conversion, all in real time as defined above. The underlying simulation concepts are in principle known from the vast existing scientific literature, in particular from textbooks on general optics [18–23] and ultrafast spectroscopy [24–32]. However, the real-time simulation requirement necessitates a careful balance between speed and accuracy. In another manuscript, we describe the concept, implementation, and evaluation of a dynamic graph-based algorithm that is used to find a self-consistent solution of multiple propagating and interfering laser beams [33]. The dynamic graph model maps the formal network between beam segments of laser pulses propagating freely in space as “edges,” and optical elements (such as mirrors or lenses) that modify the laser pulse properties as “nodes,” and then the algorithm is set up to minimize the number of evaluation steps. In the present work, we focus on the physical model underlying the individual calculation steps of that algorithm and derive simplified mathematical expressions that facilitate real-time optics simulations. We start by defining our representation of the electric fields of laser pulses including the spatial modulations of laser beams resulting from geometric effects of optical elements (Section 2). Then we discuss multi-beam interference (Section 3), followed by spatial and spectral–temporal modulations arising from linear and nonlinear light–matter interaction (Section 4) and the graphical representation of laser beams (Section 5). Exemplary simulation results are shown in Section 6 before we conclude in Section 7. 2. Laser pulse propagation We define and derive all relevant expressions for the description of laser pulses in great detail in Section S1.1 of Supplementary Information (SI) and only quote the main results here. Indeed, we highly recommend reading the entire Section S1 of the SI before continuing with the main article here because all the relevant quantities and essential transformations are set up in the SI. As a result of the derivations, we find that the electric field of a laser pulse at position r as a function of spatial coordinates _?_, _?_ and _?_ and of time _?_ is given by √︂ <u>2</u> _?_ _?_ _??_ √︂ _?_ ˜ _?_ ( _?_ ) _?_ <sup>−</sup> <sup>_??_</sup> <sup>0</sup> <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_?_</sup> <sup>)</sup> (1) <u>1</u> _?_ ( _?_ ) <sup>exp</sup> �− <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_?_</sup> <sup><u>0)2</u></sup> <sup>+ (</sup> <sup>_?_</sup> <sup>−</sup> <sup>_?_</sup> <sup><u>0)2</u></sup> _?_ <sup>2</sup> ( _?_ ) _?_ <sup>_?_</sup> <sup>k</sup> <sup>·</sup> <sup>r</sup> _?_ prop <sup>+</sup> <sup>(</sup> <sup>_?, ?, ?, ?_</sup> <sup>)</sup> <sup>=</sup> according to Eq. (S48) in the SI, where the “+” superscript in _?_ prop <sup>+</sup> <sup>indicates</sup> <sup>that</sup> <sup>this</sup> <sup>is</sup> <sup>a</sup> complex-valued representation resulting from the positive-frequency part of the full field only and the subscript “prop” indicates that the pulse has propagated through space along the z ˆ Research Article Preprint 3 direction requiring the propagation time _?_ . The beam radius at each _?_ position is given by _?_ ( _?_ ) [Eq. (S224)] and lateral translations of the beam along x ˆ and y ˆ by _?_ 0 and _?_ 0, respectively. Further, k denotes the wave vector, _?_ 0 the center frequency, _??_ the sampling step size in time domain, _?_ a scaling factor proportional to pulse energy, and _?_ <sup>˜</sup> _?_ ( _?_ ) the numerical array representation of the complex-valued temporal envelope (including amplitude and phase terms) for individual sampling points that are indexed by _?_ . Analogously, we obtain the temporally propagated spatial–spectral field from Eq. (S60), ~~√~~ <u>2</u> _?_ _?_ _??_ ~~√~~ _?_ ˜ _?_ ( _?_ ) _?_ <sup>_???_</sup> _,_ (2) <u>1</u> _?_ ( _?_ ) <sup>exp</sup> �− <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_?_</sup> <sup><u>0)2</u></sup> <sup>+ (</sup> <sup>_?_</sup> <sup>−</sup> <sup>_?_</sup> <sup><u>0)2</u></sup> _?_ <sup>2</sup> ( _?_ ) _?_ <sup>_?_</sup> <sup>k</sup> <sup>·</sup> <sup>r</sup> _?_ prop <sup>+</sup> <sup>(</sup> <sup>_?, ?, ?, ?_</sup> <sup>)</sup> <sup>=</sup> with analogous definitions, and where _??_ describes the sampling step size in frequency domain. We now discuss how to describe the propagation of laser beams in the presence of finite apertures. Apertures lead to the clipping of laser beams. Recently, analytical propagation formulas have been derived for truncated Gaussian beams [34]. Here we ignore diffraction for reasons of computational speed. If we removed the Gaussian beam properties (2) at the same time, that would correspond to a transition from wave optics to the limit of geometrical optics. The latter is not sufficient, however, if we want to describe interference phenomena and allow for the quantitative treatment of spatial beam overlap effects in nonlinear optical phenomena. Thus, in the present work we suggest an intermediate regime where we treat some phenomena in the limit of geometrical optics and some phenomena using wave optics. Concerning apertures, we select a treatment by geometrical optics as discussed in detail in Section S1.2 of the SI. This has the advantage that we do not have to follow various diffracted beamlets that might propagate in various different directions, in particular after interaction with subsequent optical elements. Instead, we can continue to describe the transmitted beam as a single entity with one limited set of parameters. The approximation of geometrical optics entails that our model cannot be used to simulate diffraction gratings. On the other hand, this strongly reduces complexity and facilitates real-time simulations. We seek a representation that is as faithful to reality as possible under the given model assumptions. Thus, a laser beam emerging from any open aperture should not have a cross section that extends beyond the hard limits of the aperture. Such an aperture could for example be an iris that is opened or closed by users either to clip laser beams on purpose or to act as alignment tools. The laser beam then would be centered onto at least two subsequent irises, and after the alignment procedure is completed, the irises would be opened to let the full beam pass. In that case, then, the final beam propagation would again not be limited by diffraction for the “real” experiment, justifying the limit of geometrical optics, while the clipping effects will be captured at least qualitatively or semi-quantitatively during the simulation of alignment procedures. As a second possibility, finite-aperture effects become relevant when a laser beam is larger than the optical element it hits, or when it hits the element at its edge. This might happen for misaligned mirrors or lenses that are hit by the laser at their edges instead of in the center. While such situations should be simulated at least qualitatively in a real-time optics education scenario, they should typically not arise in a final, correctly set up experiment. Thus, again, it seems justified to employ a simplified geometrical optics treatment. For treating the transmission through optics, we have to consider finite incidence angles. For example, mirrors are routinely employed at ≈ 45 <sup>◦</sup> incidence angle to deflect beams, and anyway we cannot avoid that the beam hits a general optical element (GOE) at an arbitrary angle, so the model needs to deal with all situations. Thus we may not assume the paraxial limit, and we employ vector calculus for an analysis independent of any particular chosen coordinate system. In the case of an unclipped beam transmitted through a GOE with focal length _?_, a beam with normalized incident wave vector k <sup>ˆ</sup> in that hits the GOE at a displacement _?_ with respect to the GOE center will exit the element in a new direction given by the normalized outgoing wave Research Article Preprint 4 vector k <sup>ˆ</sup> in, where these quantities are related by [35] (3) <u>���</u> k ˆ out = k ˆ in − <sup><u>d</u></sup> _?_ _?_ <u>���</u> k ˆ in − <u>d</u> as derived in Eq. (S70). The beam radius projected onto the plane of the GOE remains the same because there is no clipping. In the case of partial beam clipping, the quantity d in Eq. (3) needs to be replaced by an effective quantity p as in Eq. (S76) that points from the GOE center to the center of the emerging clipped beam, leading to a modified direction of the outgoing beam according to Eq. (S78). In the case that the beam is fully clipped, the center of the transmitted beam will be at the center of the GOE even if the incident beam was laterally displaced. This is because we consider only circularly symmetric apertures such that emerging beams that are fully defined by the aperture will always be centered. In that case, the outgoing beam direction is the same as the ingoing beam direction according to Eq. (S73), which can be rationalized because the direction of a “center beam” through a lens is unaffected by any focal length. Finally, we need to consider the power transmission through a circular aperture. In Section S1.2 of the SI, we assume without loss of generality that the beam is displaced along a GOE-local x ˆ coordinate with respect to the center of the partially closed GOE aperture. Then we have to solve Eq. (S85), _?_ <sup>2</sup> ∫ _?_ out = _?_ 0 ∫ d _?_ d _?_ exp �−2 <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_?_</sup> <sup>)2</sup> <sup>−</sup> <sup>_?_</sup> <sup>)2</sup> - 2 <sup>_?_</sup> <sup>2</sup> _?_ <sup>2</sup> _?_ <sup>2</sup> _,_ (4) ( _?_ <sup>2</sup> + _?_ <sup>2</sup> ≤ _?_ <sup>2</sup> ) where the output power _?_ out is obtained from the on-axis incident beam intensity _?_ 0, the incident beam radius _?_, the displacement _?_, and the aperture radius _?_ through integration of the spatial Gaussian beam intensity distribution over the circular opening, which is performed numerically with pre-calculated loop-up tables to speed up the computation. In the case of a straight edge instead of a circular aperture, the power transmission is obtained in closed form in Eq. (S107) via the complementary error function in Eq. (S105). 3. _N_ -beam interference We now analyze the interference of _?_ laser pulses, _??,_ <sup>+</sup> prop <sup>(</sup> <sup>r</sup> <sup>_, ?_</sup> <sup>),</sup> <sup>_?_</sup> <sup>=</sup> <sup>{1</sup> <sup>_, . . ., ?_</sup> <sup>}, each given by</sup> Eq. (2), on a plane such as a detector. For this purpose, we evaluate the spectral power _??_, as detected by a spectrometer, by integrating the absolute magnitude squared of the total field over transverse coordinates [14], ∫ ∞ −∞ ����� _?_ =1 _??,_ <sup>+</sup> prop <sup>(</sup> <sup>r</sup> <sup>_, ?_</sup> <sup>)</sup> _?_ <sup>+</sup> �����2 d _?_ d _?_ (5) _??_ ( _?_ ) = = ∫ ∞ −∞ _?_ ∑︁ _?_ =1 _??_ _??_ _?_ ∑︁ √ _??_ _??_ _??_ _?_ ˜ _?,?_ ( _?_ ) _?_ ˜ _?,?_ <sup>∗</sup> <sup>(</sup> <sup>_?_</sup> <sup>)</sup> <sup>_???_</sup> <sup>(</sup> <sup>_??_</sup> <sup>−</sup> <sup>_??_</sup> <sup>)</sup> _?_ _?_ −1 ∑︁ ∑︁ _?_ =2 _?_ =1 2 Re _??,?_ �� _?_ ˜ _?,?_ ( _?_ )��2 + _._ (6) Here we derive the factor _??,?_ regulating interference visibility between two fields with indices _?_ and _?_ . Note that we do not want to describe the spatially resolved visibility of interference fringes, but their integrated effect when evaluating a finite detector area. Then, interference is noticeable if the spatial fringe spacing is large enough such that it does not average out when integrating over all fringes. Considering the field definition in Eq. (2), we have to evaluate - <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_??_</sup> <sup>)2</sup> <sup>+ (</sup> <sup>_?_</sup> <sup>−</sup> <sup>_??_</sup> <sup>)2</sup> _?_ <sup>2</sup> _?_ exp ∫ ∞ −∞ _?_ <u>2</u> _??,?_ = _??_ _?_ _??_ ∫ ∞ −∞ (7) exp - <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_??_</sup> <sup>)2</sup> <sup>+ (</sup> <sup>_?_</sup> <sup>−</sup> <sup>_??_</sup> <sup>)2</sup> _?_ <sup>2</sup> - <sup>(</sup> <sup>_?_</sup> <sup>−</sup> <sup>_??_</sup> <sup>)2</sup> <sup>+ (</sup> <sup>_?_</sup> <sup>−</sup> <sup>_??_</sup> <sup>)2</sup> × _?_ <sup>_?_</sup> <sup>Δ</sup> <sup>k</sup> <sup>·</sup> <sup>r</sup> d _?_ d _?_ Research Article Preprint 5 with the wave-vector mismatch Δ k = k _?_ - k _?._ (8) We proceed in the coordinate system in which the ˆ z axis is parallel to the average of the incident wave vectors. As will be derived in the SI, interference is visible only for small phase mismatch, and thus the approximation is valid that the beam positions, ( _??, ??_ ) and ( _??, ??_ ), and radii, _?_ _?_ and _??_, need not be transformed because the average direction is almost identical to either of the incident directions. The actual incidence angle onto the detector plane is not decisive in first order because the underlying spatial interference pattern is retained, and thus integration over the tilted pattern provides a comparable total power as integration over the normal-incidence pattern. In Section S2.1 of the SI, we show that the product of two two-dimensional Gaussian crosssections is another Gaussian cross-section, and we derive its resulting product width parameters _?_ p and _?_ p, transverse position ( _?_ p _, ?_ p), and product amplitude _?_ p (see SI for definitions). Using those results for unity incident amplitudes, we have to evaluate ∫ ∞ −∞ 2 _?_ p _??,?_ = _??_ _?_ _??_ ∫ ∞ −∞ exp �− _?_ p ( _?_ - _?_ p) <sup>2</sup> - _?_ p ( _?_ - _?_ p) <sup>2�</sup> _?_ <sup>_?_</sup> <sup>(Δ</sup> <sup>_??_</sup> <sup>_?_</sup> <sup>+Δ</sup> <sup>_??_</sup> <sup>_?_</sup> <sup>)</sup> d _?_ d _?._ (9) This integral is solved in Section S2.2 of the SI, leading to the already reported result [14] _?_ <sup>_?_</sup> <sup>(Δ</sup> <sup>_??_</sup> <sup>_?_</sup> <sup>p+Δ</sup> <sup>_??_</sup> <sup>_?_</sup> <sup>p</sup> <sup>)</sup> exp - <sup>(</sup> <sup>_??_</sup> <sup>−</sup> <sup>_??_</sup> <sup>)2</sup> <sup>+ (</sup> <sup>_??_</sup> <sup>−</sup> <sup>_??_</sup> <sup>)2</sup> _??,?_ = <sup><u>2</u></sup> <sup>_?_</sup> <sup>_?_</sup> <sup>_??_</sup>  Δ _?_ <sup>2</sup> _?_ 2 <u>�</u> _?_ <u>1</u> _?_ <sup>2</sup> <sup>2</sup> _?_ <sup>+ Δ</sup> <sup>_?_</sup> <sup>2</sup> _?_ <u>1</u> <u>1</u> _??_ <sup>2</sup> <sup>+</sup> _??_ <sup>2</sup> <u>�</u> _?_ <sup>2</sup> _?_ <sup>2</sup> _?_ <sup>+</sup> <sup>_?_</sup> _?_ <sup>2</sup> _?_ <sup>2</sup> _?_ <sup>+</sup> <sup>_?_</sup> _?_ <sup>2</sup> exp _?_ <sup>2</sup> _?_  _._ (10) _?_ _?_ _?_ Note that interference visibility in the literature is often treated in terms of the coherence functions of the light fields. This is taken into account in Eq. (6) by the specific properties of the spectral envelope functions. We discuss a frequency-resolved version of interference in which coherence pertains for arbitrarily long differences in propagation distance (by definition of a spectral field). For the spectrally integrated result, one then obtains the usual limit of optical coherence and interference visibility that disappears when fields are separated longitudinally by a distance larger than their coherence length (or, for bandwidth-limited ultrashort pulses, by delay times larger than their pulse duration). 4. Modulations from light–matter interaction _4.1._ _First-order response_ The electric-field modifications by linear response of matter is most conveniently implemented by multiplying the incident frequency-domain field, _?_ in( _?_ ), with a frequency-domain linear modulation function, _?_ ( _?_ ), to get the output field, _?_ out ( _?_ ) = _?_ ( _?_ ) _?_ in( _?_ ) _,_ (11) after transmission through the material [25]. In the algorithmic realization, we use, equivalently, the _?_ <sup>˜</sup> _?_ ( _?_ ) array. For treating non-resonant dispersion in matter, we follow the standard convention to perform a Taylor expansion of the dispersive spectral phase Φdisp ( _?_ ) in Section S3.1 of the SI, resulting in Taylor coefficients _?_ _?,_ disp of _?_ th order. Considering the effect on Φdisp ( _?_ ) of the zeroth- and first-order Taylor coefficients explicitly and rearranging, we get _?_ 0 + _?_ 1( _?_ - _?_ 0) = <sup>_??_</sup> <sup>0(</sup> <sup>_?_</sup> <sup>0</sup> <sup>−</sup> <sup>_?_</sup> <sup>gr)</sup> <sup>gr</sup> _?_ (12) _?_ <sup>0</sup> <sup>−</sup> <sup>_?_</sup> <sup>gr)</sup> + <sup>_??_</sup> <sup>gr</sup> _?_ _?_ for propagation through a medium of length _?_ with refractive index _?_ 0 and group index _?_ gr, wherein the first term is a frequency-uniform phase and the second term is linear in _?_ . Note that Research Article Preprint 6 we treat the propagation time _?_, arising from the geometry of free-space propagation, separately according to Eq. (S30) from the SI. Thus, when transmitting through a material of thickness _?_, we have to replace _?_ with _?_ total = _?_ + <sup>_?_</sup> (13) _?_ <sup>(</sup> <sup>_?_</sup> <sup>gr −</sup> <sup>1)</sup> and apply only the remaining terms _?_ 2 _,_ disp and _?_ 3 _,_ disp in the non-resonant part of the linear modulation function, _?_ non-resonant( _?_ ). Note that concerning the geometry, we work in the limit of infinitesimally thin GOEs with one central “active plane,” so that the incident and outgoing beams have already been assumed to travel in vacuum up to and starting from that plane. Thus, we need to subtract _?_ / _?_ from the (modified) propagation time because it has already been accounted for, leading to the term “−1” in Eq. (13). In the case of reflection, group-delay dispersion or a third-order phase coefficient may be provided directly to describe, e.g., chirped mirrors. We treat the case of first-order resonant response, on the example of a molecular sample with an electronic transition coupled to vibrational modes, in Section S3.2 of the SI. _4.2._ _Second-order response_ We describe the non-resonant second-order nonlinear generation of a signal field, _?_ s( _?_ ), in the approximation of being proportional to the square of the sum of incident fields, _?_ ( _?_ ). Considering two incident fields _?_ 1 ( _?_ ) and _?_ 2( _?_ ) with _?_ ( _?_ ) = _?_ 1( _?_ ) + _?_ 2 ( _?_ ) and complex envelopes _?_ <sup>˜</sup> 1 ( _?_ ) and _?_ ˜2( _?_ ), this leads to the explicit terms _?_ <sup>2</sup> ( _?_ ) = _?_ <sup>˜</sup> 1 <sup>2</sup> <sup>(</sup> <sup>_?_</sup> <sup>)</sup> <sup>_??_</sup> <sup>(2</sup> <sup>k</sup> <sup>1</sup> <sup>·</sup> <sup>r</sup> <sup>−2</sup> <sup>_?_</sup> <sup>1</sup> <sup>_?_</sup> <sup>)</sup> <sup>+ c.c. +</sup> <sup>_?_</sup> <sup>˜</sup> 2 <sup>2</sup> <sup>(</sup> <sup>_?_</sup> <sup>)</sup> <sup>_??_</sup> <sup>(2</sup> <sup>k</sup> <sup>2</sup> <sup>·</sup> <sup>r</sup> <sup>−2</sup> <sup>_?_</sup> <sup>2</sup> <sup>_?_</sup> <sup>)</sup> <sup>+ c.c.</sup> + 2 _?_ <sup>˜</sup> 1( _?_ ) _?_ <sup>˜</sup> 2 ( _?_ ) _?_ <sup>_?_</sup> <sup>[(</sup> <sup>k</sup> <sup>1+</sup> <sup>k</sup> <sup>2</sup> <sup>)·</sup> <sup>r</sup> <sup>−(</sup> <sup>_?_</sup> <sup>1+</sup> <sup>_?_</sup> <sup>2</sup> <sup>)</sup> <sup>_?_</sup> <sup>]</sup> + c.c. + 2 _?_ <sup>˜</sup> 1( _?_ ) _?_ <sup>˜</sup> 2 <sup>∗</sup> <sup>(</sup> <sup>_?_</sup> <sup>)</sup> <sup>_??_</sup> <sup>[(</sup> <sup>k</sup> <sup>1</sup> <sup>−</sup> <sup>k</sup> <sup>2</sup> <sup>)·</sup> <sup>r</sup> <sup>−(</sup> <sup>_?_</sup> <sup>1</sup> <sup>−</sup> <sup>_?_</sup> <sup>2</sup> <sup>)</sup> <sup>_?_</sup> <sup>]</sup> <sup>+ c.c.</sup> (14) + 2 �� _?_ ˜1 ( _?_ )��2 + 2 �� _?_ ˜2( _?_ )��2 _,_ where “c.c.” indicates the complex conjugate of the previous term. This is the level of treatment often found in didactic textbooks on second-order response. However, we need to consider also the spatial properties of the beams if we want to simulate and understand the effect of beam alignment on nonlinear phenomena. In Section S4.1 of the SI, we derive the explicit equations in terms of the computationally stored complex envelope arrays _?_ <sup>˜</sup> _?_ ( _?_ ) and associated parameters, we take into account the spatial beam profile, and we determine the missing proportionality factor between _?_ s( _?_ ) and _?_ <sup>2</sup> ( _?_ ). The correct description of the nonlinear signal field further requires to calculate its beam radius and the radius of curvature, depending on the incident fields. These relations are derived in Section S4.2 of the SI. When new signal fields are generated according to second-order or third-order response and no energy is absorbed in the nonlinear crystal or sample, the total energy summed up over all laser beams should be conserved. In a fully self-consistent solution of Maxwell’s equations, this would arise automatically. Our simplified treatment calls for manual adjustment of fundamental pulse energies. Otherwise, it might happen that the total energy of all output beams after a nonlinear GOE exceeds the total energy of all incident beams. We arrive at the correct energy, contributed to the new beam by each fundamental, by analyzing the relevant number of photons for each microscopic signal-generation process as derived in Section S4.3 of the SI. 5. Graphical laser beam representation Simulating linear and nonlinear optical phenomena leads to laser beams propagating through space with parameters as determined in Section 2 and Section 4. If one only seeks numerical results, then the calculation is already complete because the obtained parameters provide a full Research Article Preprint 7 characterization. Often it is desired, however, to represent the laser beams graphically without compromising the real-time simulation. The details of graphical visualization of laser beams will depend on the particular software implementation, which is beyond the scope of the present work. Instead, we discuss some general points that are relevant for any such three-dimensional modeling that is sufficiently fast and realistic. In Section S5.1 of the SI, we show that any Gaussian beam can be derived from the general shape of a “reference beam” by suitable scaling. Thus, it is not necessary to re-calculate, point by point, the spatial envelopes of a beam for any new set of beam parameters, but one can simply generate a Gaussian model once, and then scale it accordingly. Let us assume we have available a representation of a Gaussian “reference beam” that is given by its beam radius _?_ ˜ ( _?_ ) at position _?_ along the propagation direction. From that reference, we can obtain the representation of any new Gaussian beam, _?_ ( _?_ ), according to Eq. (S232), _,_ (15) _?_ ( _?_ + _?_ 0) = _?_ <sup>2</sup> _?_ ˜ - _?_ _?_ by applying a scaling factor _?_ <sup>2</sup> along the transverse coordinates ( _?_ and _?_ ) and a scaling factor _?_ along the longitudinal propagation coordinate _?_ . The result is then shifted by − _?_ 0, along the positive propagation direction, to obtain the correct beam-waist position. The scaling factor _?_ = <sup>_?_</sup> <sup><u>R</u></sup> _?_ ˜R (16) is the ratio of the Rayleigh lengths of new beam and reference beam [Eq. (S227)]. For representing finite-length beams, one can “clip” the resulting object appropriately at its end positions such that only the relevant section (e.g., between two mirrors) is displayed. We now discuss how such a reference shape can be prepared efficiently. In three-dimensional computer graphics, solid objects are generally modeled as polygon meshes, i.e., a set of points (“vertices”) in three-dimensional space that are connected by straight lines (“edges”) that in turn form small planes (“faces”). The collection of vertices and edges is sought such that the resulting set of faces approximates the real surface of the given object. In practice, striving for good performance in real-time rendering applications, one seeks to keep the number of vertices as small as possible to reduce calculation time, yet still capturing the essential shape of the underlying object as accurately as possible. In Section S5.2 of the SI, we find the minimum number of vertices and their positions that can be used to represent a Gaussian laser beam for a given maximum allowed error. That error is defined as the relative length difference between a curve segment following the real Gaussian shape and a straight edge, connecting the same two neighboring vertices. In particular, we found that the spatial envelope of any Gaussian beam can be visualized, at a 1 % error level, in three-dimensional space using a polygonal mesh with just five vertices connected by straight edges along the propagation direction to describe the hyperbolic beam evolution and 13 vertices along the circumference to approximate the circular symmetry. Lastly, let us discuss the perceived color of a laser beam that is relevant in realistic graphical representations. When a laser pulse is scattered off a surface, an observer can perceive the spot with a certain color and a certain luminance (“brightness”) that depends on the pulse spectrum, energy, beam radius, and surface properties. For a realistic visualization of such a cross section or of the full laser-beam mesh discussed in Sections S5.1 and S5.2 of the SI, we assign a corresponding computer-graphics color code. In Section S5.3 of the SI, we use a “standard observer” model of average human color perception as defined by the “Commission Internationale de l’Éclairage” (CIE). We use the XYZ standard in its most recent implementation [36] to get the XYZ color values for the given laser spectrum. This color code is subsequently transformed to an RGB representation that Research Article Preprint 8 can be displayed in computer graphics. In addition, one can use the “alpha” channel A in the RGBA system (typically representing transparency or opacity) to define luminance, as shown in Eq. (S281). This luminance is proportional to the pulse-energy scaling factor _?_, meaning a laser beam with higher energy will appear brighter. Since we account for the full laser spectrum in the color calculation, this automatically leads to the effect that very short pulses (nearing a super-continuum) will appear more “white” compared to narrowband spectra. An adequate representation of the laser color can thus serve a useful function by providing feedback in real-time optics simulations. 6. Simulation results Having introduced our model for linear and nonlinear optics simulations, we now show exemplary simulation results. For that purpose, we consider a setup for a well-known pulse-characterization method, second-harmonic generation (SHG) frequency-resolved optical gating (FROG) [26, 37]. The setup as shown in Fig. 1(a) is based on a Mach–Zehnder-type interferometer. Note that, to achieve perfect interferometer alignment, the GOEs shown in Fig. 1(a) were placed programmatically by setting numerical position values rather than by placing them “by hand” in VR. The laser emitter in the top-left corner of Fig. 1(a) generates Gaussian pulses with a center wavelength of 800 nm and _?_ p = 15 fs duration [intensity full width at half maximum as in Eq. (S46)]. After passing an idealized beam splitter without dispersion, the reflected beam with wave vector k 1 is delayed using a delay stage which can be controlled “remotely” through a virtual computer interface within the VR environment. The transmitted beam with wave vector k 2 is noncollinearly overlapped with the reflected beam in a GOE that has the material parameters of a _?_ -barium borate (BBO) crystal. Under the assumption of perfect phase matching, the second-order response of the BBO was modeled to be “complete,” i.e., the second harmonics of the two individual beams in 2 k 1 and 2 k 2 direction are generated in addition to the “collaborative” SHG in k 1 + k 2 direction [Fig. 1(b)]. The latter was detected by a spectrometer. In the scan procedure in VR, the delay stage was incremented from −100 fs to +100 fs in steps of 0 _._ 2 fs. Rather than directly calculating the resulting FROG trace from an idealized “FROG signal equation,” the data was acquired analogously to reality, i.e., after moving the delay stage to a new step position, the SHG spectrum resulting from the interference of k 1 and k 2 in the BBO was calculated according to Section 4.2 before moving to the next step position. The entire scan took 45 s, and the consistently high and stable frame rate allowed real-time monitoring of changes in the fringe pattern detected by the spectrometer at each scanning step. The thus-obtained “experimental” FROG trace shown in Fig. 1(c) was evaluated using a commercial FROG analysis program [38], yielding the reconstruction results shown in Fig. 1(d–f). Using a grid size of 64, the minimum FROG error was 2 _._ 5 × 10 <sup>−4</sup> . Since simulated data have been used, the reconstruction quality is excellent [compare Fig. 1(c) and Fig. 1(d)]. For a more immersive experience, artificial noise could be added to the acquired data. The slight up-chirp observed in the reconstructed electric field is a result of phase accumulation by propagation through air over the distance from the laser emitter to the BBO, leading to a reconstructed pulse duration of 17 _._ 4 fs. Note that we use the approximation of a thin BBO, i.e., the SHG signal is calculated at the front surface of the BBO crystal such that further dispersion introduced by the finite thickness of the BBO is not taken into account. 7. Conclusion In the present work, we have described the development of a model for real-time simulation of linear and nonlinear optical phenomena and spectroscopy. The term “real time” means that we endeavor to find such a level of approximation that allows calculation times of complete experimental configurations on the order of 8 ms on consumer-grade hardware. We chose to implement a mixture of geometrical optics and Gaussian wave optics because the former offers Research Article Preprint 9 (a) Spectrometer Beam splitter Delay stage (b) BBO (c) „Experiment“ (d) Reconstruction 440 420 400 380 360 -40 -20 0 20 40 Time delay [fs] 700 750 800 850 900 Wavelength [nm] 4 2 0 1.0 0.8 0.6 0.4 0.2 0.0 -40 -20 0 20 40 Time delay [fs] (e) 1.0 4 (f) 440 420 400 380 360 1.0 0.5 0.0 1.0 4 0.5 0.0 2 0 -40 -20 0 20 40 Time delay [fs] Figure 1. Frequency-resolved optical gating (FROG) in VR. (a) Screenshot from femtoPro showing a Mach–Zehnder-type interferometer with second-harmonic generation (SHG) using a _?_ -barium borate (BBO) crystal. (b) Assuming perfect phase matching, the SHG beam in the direction of the superposition of the wave vectors of the two incident beams is detected on a spectrometer. (c) “Experimental” FROG trace obtained in VR. (d) Reconstructed FROG trace. (e) Reconstructed temporal intensity and phase. (f) Reconstructed spectral intensity and phase. Research Article Preprint 10 Table 1. Features and limitations of physical model. Property Choice Consequence Beam profile Gaussian Finite beam overlap included Beam quality _?_ <sup>2</sup> factor Real beam divergence approximated Beam symmetry Radially symmetric No astigmatism Beam clipping No diffraction Geometrical effects included; no gratings Beam focusing Ideal No chromatic or spherical aberration Polarization direction Scalar electric fields No birefringence; no polarization Electric field Discrete sampling Spatial–temporal interference included First-order response Response function Dispersion and absorption included Second-order response Instantaneous Pulse-shape effects included computational speed and simplicity, while the latter provides the correct evolution of beam radius and beam curvature during propagation. A finite beam radius is in turn important to describe effects of beam overlap in interference phenomena and nonlinear signal generation. We summarize in Table 1 basic features and consequences of the physical model of the present work. This list is not meant to be exhaustive but rather to capture essential points for a quick overview. We provided expressions that can be used to computationally process frequency- and timesampled electric field evolutions of femtosecond laser pulses. We removed fast phase oscillations due to the carrier frequency (from the time-domain field) and due to propagation (from the frequency-domain field) to facilitate numerical stability. In addition, we separated the pulse energy from the amplitude changes that occur due to beam-radius evolution. We derived equations that can be used to calculate geometric beam parameters after transmission of laser beams through finite circular apertures, ignoring astigmatism and diffraction. The obtained approximations are straightforward to apply and ensure that geometric laser-beam cross sections are always contained within the GOE apertures from which they emerge. The energy throughput was determined from the numerical evaluation of a Gaussian transmission integral that was implemented as a precalculated lookup table. Considering multi-beam linear interference, we obtained a contrast visibility factor that takes into account the individual parameters of each incident beam. Thus, we treated the case that an arbitrary number of laser beams – which arrive from different directions, are laterally displaced, and have different individual amplitudes and beam radii – are superimposed on a detector plane. While not resolving the detailed spatial interference pattern, we obtained integrated results as measured by a spectrometer or power meter. Laser pulses are modified by passing through GOEs. We used the response-function formalism to describe linear non-resonant dispersion, resonant absorption (using a Franck–Condon model), and second-order non-resonant response. The latter allowed inclusion of sum-frequency and second-harmonic generation. While such processes had been treated extensively in the literature, we derived simplified approximate results that nevertheless take into account the Gaussian beam overlap between generating pulses and the Gaussian beam curvatures (i.e., focusing properties), and how both properties translate to the nonlinearly generated signal beam. We derived spatial properties of Gaussian laser beams for graphical representation. We found Research Article Preprint 11 the minimum number of vertices of a polygon mesh that keeps the local relative error below a given threshold. Such an object can be scaled to represent Gaussian beams with any other spatial parameters, and we derived the scaling factors. For color visualization, we also obtained the relation between the physical laser spectrum and the computer-graphics RGB(A) color system. The model described in the current work forms the core of an interactive and immersive virtualreality (VR) simulation of an ultrafast laser laboratory that we have recently developed [14, 15]. The results of the present work are also applicable, though, for other optics or spectroscopy simulations outside of femtoPro and beyond a VR context. Funding. This work was supported by the Fonds der Chemischen Industrie (FCI). We further acknowledge funding by the Julius-Maximilians-Universität Würzburg Project WueDive via Stiftung Innovation in der Hochschullehre. Author contributions. T.B. derived the equations, coded the physical model, and wrote the paper. S.M. coded didactic missions, carried out and analyzed the simulations, and prepared the figures. A.M. coded the femtoPro core software and framework. T.B. and S.v.M. supervised the project. All authors discussed the results and edited the manuscript. Acknowledgment. We thank Pavel Malý for deriving equations of Gaussian field overlap and nonlinear signal-beam curvature. Disclosures. “femtoPro” is a registered trademark of the University of Würzburg. The software is available via the femtoPro website [15]. Data Availability Statement. The data that support the findings of this study are openly available in [Zenodo at https://doi.org/10.5281/zenodo.15535423 [39].](https://doi.org/10.5281/zenodo.15535423) Supplemental document. See the Supplementary Information for supporting content. References 1. G. H. Spencer and M. V. R. K. Murty, “General ray-tracing procedure,” J. Opt. Soc. Am. 52, 672–678 (1962). 2. “List of ray tracing software,” https://en.wikipedia.org/wiki/List_of_ray_tracing_software. 3. F. J. García de Abajo, “Interaction of radiation and fast electrons with clusters of dielectrics: A multiple scattering approach,” Phys. Rev. Lett. 82, 2776 (1999). 4. F. J. García de Abajo and A. Howie, “Retarded field calculation of electron energy loss in inhomogeneous dielectrics,” Phys. Rev. B 65, 115418 (2002). 5. A. F. Oskooi, D. Roundy, M. Ibanescu, _et al._, “Meep: A flexible free-software package for electromagnetic simulations by the FDTD method,” Comput. Phys. Commun. 181, 687–702 (2010). 6. COMSOL, “COMSOL: Multiphysik-Software zur Optimierung von Designs,” https://www.comsol.de. 7. Lumerical, “High-performance photonic simulation software,” https://www.lumerical.com. 8. P. T. Kristensen, K. Herrmann, F. Intravaia, and K. Busch, “Modeling electromagnetic resonators using quasinormal modes,” Adv. Opt. Photon. 12, 612–708 (2020). 9. D. Abramavicius, B. Palmieri, D. V. Voronine, _et al._, “Coherent multidimensional optical spectroscopy of excitons in molecular aggregates; Quasiparticle versus supermolecule perspectives,” Chem. Rev. 109, 2350–2408 (2009). 10. R. Mitrić, J. Petersen, and V. Bonačić-Koutecký, “Laser-field-induced surface-hopping method for the simulation and control of ultrafast photodynamics,” Phys. Rev. A 79, 053416 (2009). 11. T. Mančal, “Tmancal74/quantarhei,” https://github.com/tmancal74/quantarhei (2025). 12. P. A. Rose and J. J. Krich, “Efficient numerical method for predicting nonlinear optical spectroscopies of open systems,” J. Chem. Phys. 154, 034108 (2021). 13. T. Kenneweg, S. Mueller, T. Brixner, and W. Pfeiffer, “QDT — A Matlab toolbox for the simulation of coupled quantum systems and coherent multidimensional spectroscopy,” Comput. Phys. Commun. 296, 109031 (2024). 14. T. Brixner, S. Mueller, A. Müller, _et al._, “femtoPro: Virtual-reality interactive training simulator of an ultrafast laser laboratory,” Appl. Phys. B 129, 78 (2023). 15. “femtoPro,” https://www.femtopro.com. 16. C. Han, G. Xu, X. Zheng, _et al._, “Assessing the Effect of the Refresh Rate of a Device on Various Motion Stimulation Frequencies Based on Steady-State Motion Visual Evoked Potentials,” Front. Neurosci. 15, 757679 (2022). 17. J. Wang, R. Shi, W. Zheng, _et al._, “Effect of Frame Rate on User Experience, Performance, and Simulator Sickness in Virtual Reality,” IEEE Trans. Vis. Comput. Graph. 29, 2478–2488 (2023). 18. M. V. Klein and T. E. Furtak, _Optics_ (Wiley, Hoboken, 1986), 2nd ed. 19. M. Born and E. Wolf, _Principles of Optics:_ _Electromagnetic Theory of Propagation, Interference and Diffraction of_ _Light_ (Cambridge University Press, Cambridge, 1999), 7th ed. Research Article Preprint 12 20. W. Zinth and U. Zinth, _Optik. Lichtstrahlen – Wellen – Photonen_ (Oldenbourg Wissenschaftsverlag, München, 2005). 21. L. Novotny and B. Hecht, _Principles of Nano-Optics_ (Cambridge University Press, Cambridge, 2012), 2nd ed. 22. R. W. Boyd, _Nonlinear Optics_ (Academic Press, Burlington, 2008), 3rd ed. 23. B. E. A. Saleh and M. C. Teich, _Fundamentals of Photonics_ (Wiley, Hoboken, 2019), 3rd ed. 24. S. Mukamel, _Principles of Nonlinear Optical Spectroscopy_ (Oxford University Press, New York, 1995), 1st ed. 25. J.-C. Diels and W. Rudolph, _Ultrashort Laser Pulse Phenomena:_ _Fundamentals, Techniques, and Applications on a_ _Femtosecond Time Scale_ (Academic Press Inc, Amsterdam, 2006), 2nd ed. 26. R. Trebino, _Frequency-Resolved Optical Gating:_ _The Measurement of Ultrashort Laser Pulses_ (Springer, New York, 2002), 1st ed. 27. M. Wollenhaupt, A. Assion, and T. Baumert, “Femtosecond laser pulses: Linear properties, manipulation, generation and measurement,” in _Springer Handbook of Lasers and Optics,_ F. Träger, ed. (Springer Science+Business Media, New York, 2007), pp. 937–983. 28. A. M. Weiner, _Ultrafast Optics_ (John Wiley & Sons Inc., Hoboken, 2009), 1st ed. 29. M. Cho, _Two-Dimensional Optical Spectroscopy_ (CRC Press, Boca Raton, 2009). 30. P. Hamm and M. Zanni, _Concepts and Methods of 2D Infrared Spectroscopy_ (Cambridge University Press, New York, 2011), 1st ed. 31. L. Valkunas, D. Abramavicius, and T. Mančal, _Molecular_ _Excitation_ _Dynamics_ _and_ _Relaxation_ (Wiley-VCH, Weinheim, 2013), 1st ed. 32. J. Yuen-Zhou, J. J. Krich, I. Kassal, _et al._, _Ultrafast Spectroscopy_ (IOP Publishing, Bristol, 2014), 1st ed. 33. A. Müller, S. Mueller, T. Brixner, and S. von Mammen, “A Graph-Based Laser Path Solver Algorithm for Virtual Reality Laboratory Simulations,” Simul. Model. Pract. Theory p. submitted (2025). 34. N. G. Worku and H. Gross, “Propagation of truncated Gaussian beams and their application in modeling sharp-edge diffraction,” J. Opt. Soc. Am. A 36, 859–868 (2019). 35. I. R. Gatland, “Thin lens ray tracing,” Am. J. Phys. 70, 1184–1186 (2002). 36. A. Stockman, “Cone fundamentals and CIE standards,” Curr. Opin. Behav. Sci. 30, 87–93 (2019). 37. K. W. DeLong, R. Trebino, J. Hunter, and W. E. White, “Frequency-resolved optical gating with the use of second-harmonic generation,” J. Opt. Soc. Am. B 11, 2206–2215 (1994). 38. K. W. DeLong, “FROG 3.2.2,” (2004). 39. T. Brixner, S. Mueller, A. Müller, and S. von Mammen, “Dataset for femtoPro: Real-time linear and nonlinear optics simulations,” https://doi.org/10.5281/zenodo.15535423 (2025). # femtoPro: Real-time linear and nonlinear optics simulations – Supplementary Information CONTENTS S1 Laser pulse propagation and modification by optical elements 1 S1.1 Electric field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 S1.2 Transmission through finite apertures . . . . . . . . . . . . . . . . . . . . . . . . . . 8 S2 Overlapping beams 14 S2.1 Product of two-dimensional Gaussian functions . . . . . . . . . . . . . . . . . . . . 14 S2.2 Interference visibility factor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 S3 Linear response 19 S3.1 Taylor expansion of dispersive phase . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 S3.2 First-order resonant response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 S4 Nonlinear response 21 S4.1 Derivation of electric field parameters of second-order response . . . . . . . . . . . 21 S4.2 Nonlinear signal beam curvature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 S4.3 Reduction of fundamental pulse energies upon nonlinear signal generation . . . . 28 S5 Graphical laser beam representation 28 S5.1 Gaussian beam scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 S5.2 Optimal vertex distribution for Gaussian beam modeling . . . . . . . . . . . . . . . 30 S5.3 Color perception of a standard observer . . . . . . . . . . . . . . . . . . . . . . . . . 32 S1. LASER PULSE PROPAGATION AND MODIFICATION BY OPTICAL ELEMENTS S1.1. Electric field There are comprehensive books on general optics [1–6] and ultrafast time-resolved spectroscopy [7–15]. Various sign conventions and other conventions exist in the ultrafast optics and spectroscopy literature for which we provide an overview in Table S1. Thus, to avoid inconsistencies, we define all quantities below and furthermore describe the transition between physical electric fields and their algorithmic representation taking into account spatial, spectral–temporal, and amplitude scaling properties in a fashion convenient for real-time simulations. We start with the real-valued scalar temporal electric field _E_ ( _t_ ) at a given point in space, including the fast oscillations due to the carrier frequency of visible light. An equivalent, complexvalued, spectral-domain representation is given by <u>1</u> _E_ ( _ω_ ) = F _E_ ( _t_ ) = _~~√~~_ <u>2</u> _π_ - _−_ ∞∞ (S1) - _−_ ∞∞ <sup>_E_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_t_</sup> at angular frequency _ω_, with F denoting Fourier transformation, from which the original temporal field can be recovered by inverse Fourier transformation, _E_ ( _t_ ) = F <sup>_−_</sup> <sup>1</sup> _E_ ( _ω_ ) = <u>1</u> _~~√~~_ <u>2</u> _π_ - _−_ ∞∞ (S2) _−_ ∞∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_e−iωt_</sup> <sup>d</sup> <sup>_ω_</sup> <sup>.</sup> With _E_ ( _t_ ) real, it follows that _E_ ( _ω_ ) = _E_ <sup>_∗_</sup> ( _−ω_ ), with the star denoting complex conjugation. Hence, knowledge of the positive-frequency part is sufficient for a full characterization of the light field. We separate [8–11] _E_ ( _ω_ ) = _E_ <sup>+</sup> ( _ω_ ), for _ω_ _≥_ 0, (S3) - _E_ <sup>_−_</sup> ( _ω_ ), for _ω_ _<_ 0, Table S1. <u>Overview of common conventions in ultrafast optics and spectroscopy.</u> <u>Quantity</u> <u>Diels [8], Weiner [11]</u> <u>Wollenhaupt et al. [10]</u> <u>Trebino [9]</u> _E_ ( _ω_ ) _<u>−</u>_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_e−iωt_</sup> <sup>d</sup> <sup>_t_</sup> _<u>−</u>_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_e−iωt_</sup> <sup>d</sup> <sup>_t_</sup> _<u>−</u>_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_e−iωt_</sup> <sup>d</sup> <sup>_t_</sup> _E_ ( _t_ ) ~~<u>�</u>~~ <u>21</u> _π_ ∞ ~~<u>�</u>~~ <u>21</u> _π_ ∞ ~~<u>�</u>~~ <u>21</u> _π_ ∞ - _−_ ∞∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_ω_</sup> - _−_ ∞∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_ω_</sup> - _−_ ∞∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_eiωt_</sup> _E_ ( _t_ ) ~~<u>�</u>~~ <u>21</u> _π_ ∞ ~~<u>�</u>~~ <u>21</u> _π_ ∞ ~~<u>�</u>~~ <u>21</u> _π_ ∞ _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_ω_</sup> _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_ω_</sup> _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_ω_</sup> _E_ <sup>+</sup> ( _ω_ ) _A_ ( _ω_ - )∞ _e_ <sup>_i_</sup> <sup>Φ(</sup> <sup>_ω_</sup> <sup>)</sup> _A_ ( _ω_ - )∞ _e_ <sup>_−i_</sup> <sup>Φ(</sup> <sup>_ω_</sup> <sup>)</sup> _A_ ( _ω_ - )∞ _e_ <sup>_−i_</sup> <sup>Φ(</sup> <sup>_ω_</sup> <sup>)</sup> _E_ <sup>+</sup> ( _ω_ ) _A_ ( _ω_ ) _e_ <sup>_i_</sup> <sup>Φ(</sup> <sup>_ω_</sup> <sup>)</sup> _A_ ( _ω_ ) _e_ <sup>_−i_</sup> <sup>Φ(</sup> <sup>_ω_</sup> <sup>)</sup> _A_ ( _ω_ ) _e_ <sup>_−i_</sup> <sup>Φ(</sup> <sup>_ω_</sup> <sup>)</sup> _E_ <sup>+</sup> ( _t_ ) _A_ ( _t_ ) _e_ <sup>_i_</sup> <sup>Φ(</sup> <sup>_t_</sup> <sup>)</sup> _A_ ( _t_ ) _e_ <sup>_i_</sup> <sup>Φ(</sup> <sup>_t_</sup> <sup>)</sup> _A_ ( _t_ ) _e_ <sup>_−i_</sup> <sup>Φ(</sup> <sup>_t_</sup> <sup>)</sup> _<u>E</u>_ <sup>+</sup> ( <u>r</u>, _<u>t</u>_ ) _<u>Ae</u>_ <sup>_i_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>0</sup> <sup>_t−_</sup> <sup>k</sup> <sup>_<u>·</u>_</sup> <sup>r</sup> <sup>)</sup> - _<u>Ae</u>_ <sup>_i_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>0</sup> <sup>_t−_</sup> <sup>k</sup> <sup>_<u>·</u>_</sup> <sup>r</sup> <sup>)</sup> <u>Quantity</u> <u>Mukamel [7]</u> <u>Yuen-Zhou et al. [15]</u> <u>This work</u> _E_ ( _ω_ ) _~~√~~_ <u>12</u> _<u>−</u>_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_t_</sup> _<u>−</u>_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_t_</sup> _E_ ( _t_ ) ~~<u>�</u>~~ <u>21</u> _π_ ∞ ~~<u>�</u>~~ <u>21</u> _π_ ∞ _~~√~~_ <u>1</u> _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_e−iωt_</sup> <sup>d</sup> <sup>_ω_</sup> _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_e−iωt_</sup> <sup>d</sup> <sup>_ω_</sup> <u>1</u> <u>2</u> _π_ _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_t_</sup> <u>1</u> ~~�~~ ∞ <u>2</u> _π_ _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_e−iωt_</sup> _E_ ( _t_ ) <u>21</u> _π_ <u>21</u> _π_ _~~√~~_ <u>12</u> _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_e−iωt_</sup> <sup>d</sup> <sup>_ω_</sup> _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_e−iωt_</sup> <sup>d</sup> <sup>_ω_</sup> _E_ <sup>+</sup> ( _ω_ ) - - ∞ - - ∞ _A_ ( <u>1</u> <u>2</u> _π_ _−_ ∞ <sup>_E_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>)</sup> <sup>_e−iωt_</sup> <sup>d</sup> <sup>_ω_</sup> ( _ω_ )� _e_ ∞ <sup>_i_</sup> <sup>Φ(</sup> <sup>_ω_</sup> <sup>)</sup> _E_ <sup>+</sup> ( _ω_ ) - - _A_ ( _ω_ ) _e_ <sup>_i_</sup> <sup>Φ(</sup> <sup>_ω_</sup> <sup>)</sup> _E_ <sup>+</sup> ( _t_ ) - _A_ ˜ ( _t_ ) _e_ <sup>_i_</sup> <sup>Φ</sup> 0 _A_ ( _t_ ) _e_ <sup>_i_</sup> <sup>Φ(</sup> <sup>_t_</sup> <sup>)</sup> _<u>E</u>_ <sup>+</sup> ( <u>r</u>, _<u>t</u>_ ) _<u>Ae</u>_ <sup>_i_</sup> <sup>(</sup> <sup>k</sup> <sup>_<u>·</u>_</sup> <sup>r</sup> <sup>_<u>−ω</u>_</sup> <sup>0</sup> <sup>_t_</sup> <sup>)</sup> _<u>Ae</u>_ <sup>_i_</sup> <sup>(</sup> <sup>k</sup> <sup>_<u>·</u>_</sup> <sup>r</sup> <sup>_<u>−ω</u>_</sup> <sup>0</sup> <sup>_t_</sup> <sup>)</sup> _<u>Ae</u>_ <sup>_i_</sup> <sup>(</sup> <sup>k</sup> <sup>_<u>·</u>_</sup> <sup>r</sup> <sup>_<u>−ω</u>_</sup> <sup>0</sup> <sup>_t_</sup> <sup>)</sup> <u>The long dash “—” indicates that this property is not mentioned explicitly in that source.</u> and define _E_ <sup>+</sup> ( _t_ ) as inverse Fourier transform of _E_ <sup>+</sup> ( _ω_ ), _E_ <sup>+</sup> ( _ω_ ) = F _E_ <sup>+</sup> ( _t_ ) (S4) = _A_ ( _ω_ ) _e_ <sup>_i_</sup> <sup>Φ(</sup> <sup>_ω_</sup> <sup>)</sup>, (S5) _E_ <sup>+</sup> ( _t_ ) = F <sup>_−_</sup> <sup>1</sup> _E_ <sup>+</sup> ( _ω_ ) (S6) = _A_ ( _t_ ) _e_ <sup>_i_</sup> <sup>Φ(</sup> <sup>_t_</sup> <sup>)</sup>, (S7) with the real-valued quantities named spectral amplitude _A_ ( _ω_ ), spectral phase Φ( _ω_ ), temporal amplitude _A_ ( _t_ ), and temporal phase Φ( _t_ ). Using the laser center frequency _ω_ 0 that is typically located at the peak of _A_ ( _ω_ ) but in principle can be chosen arbitrarily, we introduce the complex temporal envelope _E_ ˜( _t_ ) = _A_ ( _t_ ) _e_ <sup>_iφ_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> (S8) with phase modulation _φ_ ( _t_ ) = Φ( _t_ ) + _ω_ 0 _t_ such that _E_ <sup>+</sup> ( _t_ ) = _E_ <sup>˜</sup> ( _t_ ) _e_ <sup>_−iω_</sup> <sup>0</sup> <sup>_t_</sup> . (S9) This removes the fast oscillating phase term _ω_ 0 _t_ . The slowly varying phase modulation _φ_ ( _t_ ) describes chirp, i.e., any variation of the oscillation period within the pulse. It is possible to recover the original field _E_ ( _t_ ) by _E_ ( _t_ ) = _E_ <sup>+</sup> ( _t_ ) + c.c. (S10) , (S11) _E_ <sup>_−_</sup> ( _t_ ) = 2 Re _E_ <sup>+</sup> ( _t_ ) where c.c. denotes the complex conjugate of the previous term and is also sometimes called _E_ <sup>_−_</sup> ( _t_ ) as it is the inverse Fourier transform of _E_ <sup>_−_</sup> ( _ω_ ) from Eq. (S3). The minus sign in Eq. (S9) is a convention frequently employed in the nonlinear spectroscopy community, which is why we also use it here (compare Table S1). Propagating fields with a wave vector k, where _|_ k _|_ = 2 _π_ / _λ_ at wavelength _λ_, are then described by an overall phase factor _e_ <sup>_i_</sup> <sup>(</sup> <sup>k</sup> <sup>_·_</sup> <sup>r</sup> <sup>_−ω_</sup> <sup>0</sup> <sup>_t_</sup> <sup>)</sup> as further explained below. This leads to the conventionally accepted phase-matching directions that signify a rephasing signal along the _−_ k 1 + k 2 + k 3 direction, for example, in non-collinear four-wave-mixing spectroscopy. The “disadvantage” of such a choice of the sign convention is that the first-order Taylor coefficient for the spectral phase (see below) does not correspond to the center frequency directly but to its negative. Thus, in the nonlinear optics community one often prefers a convention with + _ω_ 0 _t_ in Eq. (S9). In that case, the Taylor coefficients do not have an “exceptional” meaning for the frequency, but then the overall phase 2 term _e_ <sup>_−i_</sup> <sup>(</sup> <sup>k</sup> <sup>_·_</sup> <sup>r</sup> <sup>_−ω_</sup> <sup>0</sup> <sup>_t_</sup> <sup>)</sup> requires an additional minus sign, uncustomary in the spectroscopy community. In any event, results for final observables agree with either convention, but one needs to pay attention when comparing intermediate results with the literature. It is often convenient to express the temporal phase modulation as a Taylor series ∞ #### ∑ _j_ =0 Φ( _t_ ) = _<u>aj</u>_ _<u>j</u>_ <u>!</u> <sup>_tj_</sup> (S12) _<u>aj</u>_ with Taylor coefficients _t_ =0 ����� _aj_ = <sup><u>d</u></sup> <sup>_j_</sup> <sup><u>Φ(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> d _t_ <sup>_<u>j</u>_</sup> _aj_ = <sup><u>d</u></sup> <sup>_j_</sup> <sup><u>Φ(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> d _t_ <sup>_<u>j</u>_</sup> . (S13) The zero-order coefficient _a_ 0 describes the “absolute” or “carrier–envelope” phase, the first-order coefficient is typically taken to define the center frequency via _ω_ 0 = _−a_ 1 (in our sign convention) but can also be used to describe laser pulses with a center frequency different from _ω_ 0 while retaining the general framework of a specified _ω_ 0 in Eq. (S9). Second- and higher-order terms define chirp, i.e., variations of the “momentary frequency” _ω_ ( _t_ ) = _−_ <sup><u>dΦ</u></sup> <u>d</u> <sup><u>(</u></sup> _<u>t</u>_ <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> <sup><u>Φ</u></sup> <u>d</u> <sup><u>(</u></sup> _<u>t</u>_ <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> = _ω_ 0 _−_ <sup><u>d</u></sup> <sup>_<u>φ</u>_</sup> <u>d</u> <sup><u>(</u></sup> _<u>t</u>_ <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> , (S14) <sup>_<u>φ</u>_</sup> <u>d</u> <sup><u>(</u></sup> _<u>t</u>_ <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> where the uncommon minus sign is due to the sign convention of the phase factor we adopted in this work. For example, in the case of “linear chirp,” for which only _a_ 2 _̸_ = 0 and all higher-order coefficients are equal to zero, _ω_ ( _t_ ) varies linearly in time according to _ω_ ( _t_ ) = _ω_ 0 _−_ _a_ 2 _t_ with the “linear-chirp parameter” _a_ 2. Analogously, higher Taylor coefficients define higher-order chirp. Likewise, we may expand the spectral phase into a Taylor series Φ( _ω_ ) = ∞ #### ∑ _j_ =0 _<u>bj</u>_ _<u>j</u>_ <u>!</u> <sup>(</sup> <sup>_ω −_</sup> <sup>_ω_</sup> <sup>0)</sup> <sup>_j_</sup> (S15) _<u>bj</u>_ with Taylor coefficients _ω_ = _ω_ 0 ����� _bj_ = <sup><u>d</u></sup> <sup>_j_</sup> <sup><u>Φ(</u></sup> <sup>_<u>ω</u>_</sup> <sup><u>)</u></sup> d _ω_ <sup>_<u>j</u>_</sup> _bj_ = <sup><u>d</u></sup> <sup>_j_</sup> <sup><u>Φ(</u></sup> <sup>_<u>ω</u>_</sup> <sup><u>)</u></sup> d _ω_ <sup>_<u>j</u>_</sup> . (S16) While _b_ 0 = _a_ 0 describes a constant phase and _b_ 1 a temporal translation of the laser pulse, the coefficients of higher order are responsible for changes in the temporal structure of the electric field. Using a Taylor expansion on either the temporal or the spectral phase (Section S3.1) or both allows characterization of the electric field with few parameters but comes at the cost of lost generality and, possibly, poor convergence for complicated field profiles. We define the complex spectral envelope, _E_ <sup>˜</sup> ( _ω_ ), as Fourier transform of the complex temporal envelope, _E_ <sup>˜</sup> ( _t_ ), _E_ ˜( _ω_ ) = F _E_ ˜( _t_ ), (S17) _E_ ˜( _t_ ) = F <sup>_−_</sup> <sup>1</sup> _E_ ˜( _ω_ ), (S18) and determine its relation with _E_ <sup>+</sup> ( _ω_ ) from <u>�1</u> _E_ <sup>+</sup> ( _t_ ) _e_ <sup>_iω_</sup> <sup>0</sup> <sup>_t_</sup> <sup>�</sup> _E_ ˜( _ω_ ) = F (S19) <u>1</u> = _~~√~~_ <u>2</u> <u>2</u> _π_ - _−_ ∞∞ (S20) _−_ ∞∞ <sup>_E_</sup> <sup>+(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_ei_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>+</sup> <sup>_ω_</sup> <sup>0)</sup> <sup>_t_</sup> <sup>d</sup> <sup>_t_</sup> = _E_ <sup>+</sup> ( _ω_ + _ω_ 0), (S21) and thus _E_ ˜( _ω −_ _ω_ 0) = _E_ <sup>+</sup> ( _ω_ ) (S22) is a frequency-shifted version of _E_ <sup>+</sup> ( _ω_ ). Let us assume that all quantities above describe a pulse centered around time _t_ = 0. Now we add a translation in time by _T_ . This may occur, for example, if a pulse propagates by a distance _L_ in vacuum, such that the “propagation time” is given by _T_ = <sup>_<u>L</u>_</sup> (S23) _<u>c</u>_ 3 with _c_ as the velocity of light in vacuum. The case of propagation in media is discussed in Section 4.1 of the main text. In the frequency domain, this propagation corresponds, in principle, to applying a linear spectral phase according to the Fourier-shift theorem and thus a finite parameter _b_ 1. Dealing with propagation distances of several meters, it is not practical, however, to apply such a spectral phase modulation to _E_ <sup>+</sup> ( _ω_ ) or _E_ <sup>˜</sup> ( _ω_ ) directly because only discretely sampled quantities can be stored digitally. Given, for example, a number of _N_ s = 1024 samples with a sampling step size in time domain of _δt_ _≈_ 2 fs to describe short pulses with sufficient resolution, one arrives at a maximum time delay of _N_ s _δt_ /2 _≈_ 1 ps that can be introduced according to the Nyquist sampling theorem, which would correspond to an insufficient maximum spatial distance of _L_ max _≈_ 0.3 mm. Thus, instead, we store _T_ of any pulse separately and deal with it only when we have to evaluate the electric field relative to that of another pulse, for example, when describing interference or nonlinear response. The “propagated” (i.e., time-translated) temporal field is given by _E_ <sup>+</sup> prop <sup>+</sup> <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> <sup>_E_</sup> <sup>+(</sup> <sup>_t −_</sup> <sup>_T_</sup> <sup>)</sup> (S24) = _E_ <sup>˜</sup> ( _t −_ _T_ ) _e_ <sup>_−iω_</sup> <sup>0(</sup> <sup>_t−T_</sup> <sup>)</sup> (S25) for propagation time _T_ . In frequency domain, _E_ <sup>+</sup> prop <sup>+</sup> <sup>(</sup> <sup>_ω_</sup> <sup>) = F</sup> <sup>_E_</sup> <sup>+</sup> prop <sup>+</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> (S26) <u>1</u> = _~~√~~_ <u>2</u> _π_ <u>1</u> = _~~√~~_ <u>2</u> _π_ - _−_ ∞∞ - _−_ ∞∞ substitute _t →_ _t_ <sup>_′_</sup> = _t −_ _T_, (S27) _−_ ∞∞ <sup>_E_</sup> <sup>+(</sup> <sup>_t −_</sup> <sup>_T_</sup> <sup>)</sup> <sup>_eiωt_</sup> <sup>d</sup> <sup>_t_</sup> <sup>,</sup> (S28) _−_ ∞∞ <sup>_E_</sup> <sup>+(</sup> <sup>_t′_</sup> <sup>)</sup> <sup>_eiω_</sup> <sup>(</sup> <sup>_t′_</sup> <sup>+</sup> <sup>_T_</sup> <sup>) d</sup> <sup>_t′_</sup> = _e_ <sup>_iωT_</sup> _E_ <sup>+</sup> ( _ω_ ) (S29) = _E_ <sup>˜</sup> ( _ω −_ _ω_ 0) _e_ <sup>_iωT_</sup> . (S30) Now we take into account the spatial field properties [16], ignoring spatial–temporal couplings that are usually present [17]. The complex-valued Gaussian field dependence for propagation along the z ˆ direction can be described by _e_ <sup>_i_</sup> _<u>w</u>_ <u>0</u> _A_ ( _r_, _z_ ) = _<u>w</u>_ ( _<u>z</u>_ ) <sup>exp</sup> _<u>r</u>_ <sup>2</sup> _−_ _w_ <sup><u>2</u></sup> ( _z_ ) _kz_ + _k_ _<u>r</u>_ <sup><u>2</u></sup> <u>2</u> _<u>R</u>_ ( _<u>z</u>_ ) <sup>_−θ_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> (S31) - as a function of radial coordinate _r_ and longitudinal position _z_, beam waist _w_ 0, beam radius _w_ ( _z_ ), wave-vector magnitude _k_, wave-front curvature radius _R_ ( _z_ ), and Gouy phase _θ_ ( _z_ ) = arctan( _z_ / _zR_ ) that we ignore in the following. The Rayleigh length is defined as _z_ R = <sup>_<u>πw</u>_</sup> <u>0</u> <sup>2</sup> (S32) _λM_ <sup><u>2</u></sup> with beam-quality factor _M_ <sup>2</sup> . We evaluate the spatial evolution of _w_ ( _z_ ) and _R_ ( _z_ ) via the complex radius of curvature _q_ ( _z_ ), given by [16] <u>1</u> <u>1</u> _<u>q</u>_ ( _<u>z</u>_ ) <sup>=</sup> _<u>R</u>_ ( _<u>z</u>_ ) <sup>+</sup> <sup>_i_</sup> _π_ <sup>_<u>λ</u>_</sup> _w_ <sup>_<u>M</u>_</sup> <sup><u>2</u></sup> ( <sup>2</sup> _z_ (S33) _π_ <sup>_<u>λ</u>_</sup> _w_ <sup>_<u>M</u>_</sup> <sup><u>2</u></sup> ( <sup>2</sup> _z_ ) <sup>,</sup> and the simple propagation law in free space [18, 19], _q_ ( _z_ ) = _q_ 0 + _z_, (S34) for propagation by a distance of _z_, where _q_ 0 = _q_ (0). An explicit equation for _w_ ( _z_ ) will be discussed in Section S5.1. For normalization of the spatial and time–frequency field components, we note that the “physical,” temporal electric field _E_ ( _t_ ) used above is continuous in _t_ and has units of [V/m]. In an algorithmic representation, we have to store a numerical field that is dimensionless (as it consists of numbers without physical units) and is sampled at discretized times. Electric field strengths may vary over many orders of magnitude depending on the pulse energy, and we want to ensure numerically stable behavior in all cases. Thus we introduce a suitable scaling factor as shown 4 below, such that the sampled numbers are of the order of 1. We begin with the (continuous) momentary power _P_ ( _t_ ) in [W] that is sampled at discrete times _t_ ( _j_ ) = _t_ min + _j δt_ (S35) throughout the pulse with indices _j_ = _{_ 0, 1, . . ., _N_ s _−_ 1 _}_, sampling step size _δt_, number of samples _N_ s, and the minimum sampled time point _t_ min. Considering a pulse centered at _t_ = 0, we choose (S36) _t_ min = _−_ <sup>_<u>N</u>_</sup> <sup><u>s</u></sup> <u>2</u> <sup>_<u>δt</u>_</sup> for symmetry reasons. In the case of propagated pulses [see Eq. (S48) below], we add _T_ to the values of Eq. (S35) when returning the corresponding times. Thus we arrive at the sampled momentary temporal power _Pt_ ( _j_ ) = _P_ ( _t_ ( _j_ )) (S37) with _t_ ( _j_ ) from Eq. (S35). The pulse energy _W_ in [J] is then given by _W_ = _≈_ s _−_ #### ∑ _j_ =0 - _−_ ∞∞ _N_ s _−_ 1 (S38) _−_ ∞∞ <sup>_P_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) d</sup> <sup>_t_</sup> _Pt_ ( _j_ ) _δt_ . (S39) We introduce the pulse-energy scaling factor _S_ such that _W_ = _SE_ <sup>2</sup> (S40) with _E_ signifying the Euclidian (or _L_ <sup>2</sup> ) norm of _E_ <sup>˜</sup> ( _t_ ), i.e., _E_ = _N_ s _−_ 1 #### � ∑ - _j_ =0 s _−_ 1 #### ∑ _j_ =0 (S41) �� _E_ ˜ _t_ ( _j_ )��2, where _E_ <sup>˜</sup> _t_ ( _j_ ), in the computational framework, is the dimensionless array of the complex temporal envelope, and the squaring of the norm _E_ in Eq. (S40) arises because we need to sum up the temporal intensities, without taking the square root afterwards. Whenever _E_ <sup>˜</sup> _t_ ( _j_ ) is accessed in memory for a requested time _t_, one selects the element _j_ for which _t_ = _t_ ( _j_ ), with _t_ ( _j_ ) given in Eq. (S35). We define an initial value of _S_, named _S_ 0, using an initial pulse energy _W_ 0, by setting _S_ 0 = _W_ 0 and _E_ 0 = 1, (S42) where the latter condition is reached through appropriate initial normalization of _E_ <sup>˜</sup> _t_ ( _j_ ), see Eq. (S47) below. Manipulating the energy of a laser beam can then be carried out either by changing _S_ directly or by changing _E_ <sup>˜</sup> _t_ ( _j_ ). The former is useful, e.g., when implementing simple optical elements with non-unity transmission or reflection, while the latter is useful, e.g., in nonlinear optics and spectroscopy where signal fields arise from appropriate multiplication of input fields. If the numbers stored in _E_ <sup>˜</sup> _t_ ( _j_ ) get too small and lead to numerical artifacts, appropriate rescaling with a factor of _F_ is possible if _S_ is rescaled simultaneously by 1/ _F_ <sup>2</sup> . Using the discretized, dimensionless, complex time envelope, we get the momentary temporal power in correct physical units via _Pt_ ( _j_ ) = <sup>_<u>S</u>_</sup> _δt_ (S43) - _E_ beam˜ _t_ ( _j_ )��2radius . of _w_ ( _z_ ), this corresponds to an Taking into account the spatial property with a beam radius of _w_ ( _z_ ), this corresponds to an intensity in [W/m <sup>2</sup> ] of _It_ ( _j_ ) = <sup><u>2</u></sup> <sup>_<u>Pt</u>_</sup> <sup><u>(</u></sup> <sup>_<u>j</u>_</sup> <sup><u>)</u></sup> _πw_ <sup><u>2</u></sup> ( _z_ <sup><u>2</u></sup> <sup>_<u>Pt</u>_</sup> <sup><u>(</u></sup> <sup>_<u>j</u>_</sup> <sup><u>)</u></sup> (S44) _πw_ <sup><u>2</u></sup> ( _z_ ) on the center axis of the beam [from Eq. (S137) for identical beams], which corresponds to twice the intensity averaged over the full cross section. 5 Note that, conventionally, the temporal intensity of a pulse is defined within the slowly-varying envelope approximation as _I_ ( _t_ ) = 2 _ε_ 0 _cnA_ <sup>2</sup> ( _t_ ), (S45) wherein _ε_ 0 is the vacuum permittivity, _c_ the vacuum velocity of light, and _n_ the refractive index of the medium in which the intensity is measured. The temporal intensity averages over the individual carrier-frequency oscillations of the electric field but retains the overall shape due to the envelope. For this definition, _A_ ( _t_ ) has to be provided in the correct physical units of electric field strength in [V/m], whereas we have chosen to work with the more directly accessible pulse energy as a scaling factor. We define pulse duration _τ_ p as the full width at half maximum (FWHM) of the spectral power density, which is appropriate for simple envelopes. The duration of more complex pulse shapes may be better characterized with second-order moments [8] or rather the full field profile directly. Thus, we use pulse duration mainly to define initial pulses emitted from a laser via <u>�</u> _E_ ˜ _t_,non-normalized( _j_ ) = exp <u>�</u> _−_ (2 ln 2) <sup>_<u>t</u>_</sup> <sup>2</sup> _τ_ <sup><u>(</u></sup> p <sup><u>2</u></sup> <sup>_<u>j</u>_</sup> <sup><u>)</u></sup> _−_ (2 ln 2) <sup>_<u>t</u>_</sup> <sup>2</sup> _τ_ <sup><u>(</u></sup> p <sup><u>2</u></sup> <sup>_<u>j</u>_</sup> <sup><u>)</u></sup> , (S46) _E_ ˜ _t_ ( _j_ ) = _<u>E</u>_ ˜ _<u>t</u>_ <u>,non-normalized(</u> _<u>j</u>_ <u>)</u> ∑ <sup>_<u>N</u>_</sup> _j_ = <sup>s</sup> 0 <sup>_−_</sup> <sup><u>1</u></sup> ~~�~~ ~~�~~ - _E_ ˜ _t_,non-normalized _j_ =0 (S47) ~~�~~ - _EE_ ˜ _t_ =,non-normalized 1 from Eq. (S41).( _j_ ) ~~�~~ �2 <sup>,</sup> with _t_ ( _j_ ) from Eq. (S35), where _E_ <sup>˜</sup> _t_ ( _j_ ) fulfills the norm _E_ = 1 from Eq. (S41). Combining spatial and temporal properties and allowing the beam to be displaced in the transverse x ˆ and y ˆ directions by _x_ 0 and _y_ 0, respectively, we define the temporally propagated spatial–temporal field under the scaling conditions of Eqs. (S38)–(S43) and combining Eq. (S25) and Eq. (S31), noting that we approximate _R →_ ∞ and _θ_ = 0, as _−_ <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>0)</u></sup> _w_ <sup>2 + (2</sup> ( _z_ ) <sup>_<u>y −</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>0)2</u></sup> _e_ <sup>_i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>r</sup> _<u>S</u>_ _δt_ _w_ <sup><u>2</u></sup> ( _z_ ) _E_ prop <sup>+</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>,</sup> <sup>_z_</sup> <sup>,</sup> <sup>_t_</sup> <sup>) =</sup> <u>2</u> _π_ <u>1</u> _<u>w</u>_ ( _<u>z</u>_ ) <sup>exp</sup> _E_ ˜ _t_ ( _j_ ) _e_ <sup>_−iω_</sup> <sup>0(</sup> <sup>_t−T_</sup> <sup>)</sup>, (S48) from which we obtain the momentary temporal power by spatial integration of the absolute magnitude squared, _Pt_ ( _j_ ) = - _−_ ∞∞ _−_ ∞ prop <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>,</sup> <sup>_z_</sup> <sup>,</sup> <sup>_t_</sup> <sup>)</sup> ��� _E_ + ��� 2 d _x_ d _y_ . (S49) ��� - _−_ ∞∞ _−_ ∞ Note that, due to our choice of normalization, the proportionality factor of Eq. (S45) is not present in Eq. (S49). In complete analogy, we define the corresponding quantities in frequency domain, starting with the spectral power _P_ ( _ω_ ), noting, however, that it is not measured in [W] as the temporal power but rather in [J/(rad s <sup>_−_</sup> <sup>1</sup> )], i.e., energy per angular frequency sampling step. It is sampled at discrete angular frequencies _ω_ ( _j_ ) = _ω_ min + _j δω_ (S50) with indices _j_ = _{_ 0, 1, . . ., _N_ s _−_ 1 _}_, frequency sampling step size <u>2</u> _<u>π</u>_ _δω_ = (S51) _<u>N</u>_ s _δt_ due to Fourier-transformation properties, number of samples _N_ s equal to the number of samples in the time domain, and minimum sampled frequency _ω_ min = _−_ <sup>_<u>N</u>_</sup> <sup><u>s</u></sup> <u>2</u> <sup>_<u>δω</u>_</sup> <u>2</u> <sup>_<u>δω</u>_</sup> = _−_ _δ_ <sup>_<u>π</u>_</sup> _<u>t</u>_ _δ_ <sup>_<u>π</u>_</sup> _<u>t</u>_ <sup>.</sup> (S52) Similar to the case of the temporal field, we add _ω_ 0 to the values in Eq. (S50) for retrieving the “physical” quantities, according to Eq. (S30). In that case, the situation may arise that _ω_ 0 _< |ω_ min _|_ if the temporal sampling step is chosen as _δt_ _<_ _π_ / _ω_ 0, i.e., if more than two samples are taken per carrier oscillation period. This results in negative “physical” frequencies _ω_ ( _j_ ) + _ω_ 0. We have already seen that such negative frequencies arise naturally after Fourier transformation for _E_ ( _ω_ ) in Eq. (S1). Here, however, we deal with _E_ <sup>+</sup> ( _ω_ ) from Eq. (S3) that is zero for negative frequencies. Thus, any sampled values should be zero for such frequencies. In practice, when displaying physical properties for such negative frequencies, they are thus ignored. However, we point out that the separation in Eq. (S3) is problematic for pulses with an extremely broad 6 spectrum, i.e., if the spectral bandwidth approaches _ω_ 0, because then they will not have decayed when approaching zero frequency, and then the simple separation into _E_ <sup>+</sup> ( _ω_ ) and _E_ <sup>_−_</sup> ( _ω_ ) with according symmetry properties does not hold. For pulses with an extremely broad spectrum, one would anyway need more than two sampling points per oscillation period (as defined for the center frequency) to describe the field because for frequencies much larger than the center frequency, the field oscillates faster. This is consistent with the limit derived above. Then the slowly varying envelope approximation breaks down. In the present work, we always remain within this approximation, however, for computational reasons, which is a limitation one should be aware of. In that case, negative frequencies for _E_ <sup>+</sup> ( _ω_ ) are not required and we can choose _δt_ _≥_ _π_ / _ω_ 0. One might select _δt_ = _π_ / _ω_ 0 for maximal spectral coverage. However, in order to realize sufficient computational speed, one also has to keep the number of samples _N_ s small enough for all array operations. This, in turn, reduces the maximum treatable time range that is given by _N_ s _δt_ according to Eq. (S36), so that one might wish to seek a compromise for both _N_ s and _δt_ . Using the definition for the sampling grid, we obtain the sampled spectral power _Pω_ ( _j_ ) = _P_ ( _ω_ ( _j_ )) (S53) with _ω_ ( _j_ ) from Eq. (S50) and the pulse energy _W_ in [J] by _W_ = _≈_ - _−_ ∞∞ (S54) _−_ ∞∞ <sup>_P_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>) d</sup> <sup>_ω_</sup> s _−_ #### ∑ _j_ =0 _N_ s _−_ 1 _Pω_ ( _j_ ) _δω_ . (S55) Using the same pulse-energy scaling factor _S_ as above, we get the spectral power via _Pω_ ( _j_ ) = <sup>_<u>S</u>_</sup> _δω_ (S56) <u>��</u> _E_ ˜ _ω_ ( _j_ )��2 and the spectral intensity _Iω_ ( _j_ ) = <sup><u>2</u></sup> <sup>_<u>Pω</u>_</sup> <sup><u>(</u></sup> <sup>_<u>j</u>_</sup> <sup><u>)</u></sup> _πw_ <sup><u>2</u></sup> ( _z_ <sup><u>2</u></sup> <sup>_<u>Pω</u>_</sup> <sup><u>(</u></sup> <sup>_<u>j</u>_</sup> <sup><u>)</u></sup> (S57) _πw_ <sup><u>2</u></sup> ( _z_ ) on the center axis of the beam, which corresponds to twice the spectral intensity averaged over the full cross section. Note that _E_ <sup>˜</sup> _ω_ ( _j_ ) and _E_ <sup>˜</sup> _t_ ( _j_ ) form a Fourier pair, _E_ ˜ _ω_ ( _j_ ) = Fdiscrete _E_ ˜ _t_ ( _j_ ), (S58) _E_ ˜ _t_ ( _j_ ) = Fdiscrete <sup>_−_</sup> <sup>1</sup> <sup>_E_</sup> <sup>˜</sup> <sup>_ω_</sup> <sup>(</sup> <sup>_j_</sup> <sup>),</sup> (S59) where Fdiscrete indicates a discrete version of the Fourier transformation, in our case implemented as a “Fast Fourier Transformation” (FFT) algorithm, and for which we ensure that the number of samples, _N_ s, is defined as a power of 2. In the algorithmic implementation, the inter-conversion between the two quantities is automatically carried out only when necessary. We obtain the temporally propagated spatial–spectral field considering Eq. (S30), <u>1</u> _<u>w</u>_ ( _<u>z</u>_ ) <sup>exp</sup> _−_ <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>0)</u></sup> _w_ <sup>2 + (2</sup> ( _z_ ) <sup>_<u>y −</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>0)2</u></sup> _e_ <sup>_i_</sup> <sup>k</sup> <sup>_·_</sup> <sup>r</sup> _<u>S</u>_ _δω_ _E_ prop <sup>+</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>,</sup> <sup>_z_</sup> <sup>,</sup> <sup>_ω_</sup> <sup>) =</sup> <u>2</u> _π_ _E_ ˜ _ω_ ( _j_ ) _e_ <sup>_iωT_</sup>, (S60) from which we obtain the spectral power by spatial integration of the absolute magnitude squared, 2 d _x_ d _y_ . (S61) Conceptually, it is not difficult to ��� _Pω_ ( _j_ ) = - _−_ ∞∞ _−_ ∞ - _−_ ∞∞ _−_ ∞ prop <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>,</sup> <sup>_z_</sup> <sup>,</sup> <sup>_ω_</sup> <sup>)</sup> ��� _E_ + Note that we treat the electric field as a scalar throughout. Conceptually, it is not difficult to incorporate polarization phenomena by treating the electric field as a vector. 7 S1.2. Transmission through finite apertures We analyze the transmission of laser beams through finite apertures in a mixture between wave optics and geometrical optics. In order to ensure that the Gaussian beam that is transmitted through an aperture does not have a cross section that extends beyond the aperture limits, one has to evaluate the geometrical common cross section of the laser beam and the aperture. At normal incidence, one requires the common area of two circles formed by the aperture and the laser cross section, in which one then has to fit a third circle that does not extend beyond the common limits. For nonlinear signal generation from at least two separate beams, however, one would already have to take into account at least three circles, i.e., one for the aperture and two for the incident beams. The problem of the common intersection of three circles is already quite involved with an analytical solution reported only in 2006 [20]. Anyway, the laser beam will, in general, not hit the aperture at normal incidence. In that case, one would have to consider the common overlap of three ellipses that is even more complicated than that of three circles because of the many types of overlap cases that have to be distinguished [21, 22]. Since we ignore astigmatism, however, it is enough to consider a suitably adapted scenario with circular symmetry. We have adopted the “mixed” solution that evaluates overlaps between several beams, such as in interference evaluation or nonlinear signal generation, on the basis of overlapping Gaussian functions; as a second component of our approach, we then treat the transmission through a hard aperture in a purely geometrical fashion to ensure that “no” laser beam profile extends beyond the open aperture. The term “no” is set in quotation marks here because the visual appearance of the laser beam, when rendered as a three-dimensional object up to its beam radius, will indeed not be larger than the transmission aperture. On the other hand, since we treat the beam as a Gaussian, this still allows its radial distribution to extend further outwards than the aperture opening. This is a consequence of the hybrid approach, adopted in this work, between geometrical optics and wave optics when diffraction is ignored. Thus, we take the beam radius as the geometric limit. When we then choose to visualize laser beams via plotting their beam radius, an intuitively consistent behavior emerges if the beam waist is taken to represent the “edge.” The relevant geometry is illustrated in Fig. S1. The incident laser beam (from the left, potentially arriving at an additional angle elevated out of the drawing plane) is given by a point of origin in world coordinates, r in, in our evaluation logic usually its starting point at the _previous_ “general optical element” (GOE); a unit directional vector k <sup>ˆ</sup> in = k in/ _|_ k in _|_, where k in is the incident wave vector; and a beam radius _w_ in at the point of intersection with the current GOE. The current GOE is defined by its aperture center in world coordinates, o, a normal vector describing the orientation of the “active” aperture plane, n ˆ, and an aperture radius _a_ . We first determine the propagation vector, L, that extends from the origin of the laser beam at the previous GOE to the intersection with the active plane of the current GOE [23], L = <sup><u>(</u></sup> <sup><u>o</u></sup> <sup>_<u>−</u>_</sup> <sup><u>r</u></sup> <sup><u>in)</u></sup> <sup>_<u>·</u>_</sup> <sup><u>n</u></sup> <sup><u>ˆ</u></sup> k ˆ in if k <sup>ˆ</sup> in _·_ n ˆ _̸_ = 0. (S62) k <u>ˆ</u> in _·_ n ˆ Ifdistinguish further cases. k <sup>ˆ</sup> in _·_ n ˆ = 0, the laser beamIf, in that case, the numerator in Eq. (S62) is not equal to zero, the laserpropagates parallel to the GOE’s active plane, and we have to beam is parallel to but outside of the surface, so that there is no intersection. If the numerator and the denominator in Eq. (S62) are equal to zero, then the laser beam propagates within the surface, i.e., the GOE is hit exactly from the side. We then define the propagation vector such that it propagates the laser beam from its origin to the location closest to the center of the GOE, with the vector projection L = o _−_ r in _−_ proj ˆ k in ( o _−_ r in), (S63) (S64) - _|_ <u>bb</u> _|_ proj ba = a _·_ <sup><u>b</u></sup> - _|_ b _|_ of vector a onto vector b . The propagation length _L_ = _|_ L _|_ enters Eq. (S23) for the calculation of the propagation time _T_ . From the previous origin of the laser and the propagation vector we obtain the “hit” point of intersection with the current GOE, in world coordinates, as and as h = r in + L, (S65) d = h _−_ o (S66) 8 <u>k</u> <u>^</u> <u>out</u> _α_ _w_ out _w_ in _b_ in <u>2</u> _b_ <u>out</u> _b_ out origin r in L o k ^ in d _a_ p o k ^ in d h k ^ in r out _<u>α</u>_ k ^ in n <sup>^</sup> GOE active plane optical axis Fig. S1. Aperture geometry. The input beam (red) propagates along a central “ray” (solid) with lateral width determined by its beam radius (dashed–dotted) until it intersects at an incidence angle _α_ with the central active plane of a general optical element (GOE) that is assumed, without loss of generality, to be normal to the “optical axis” (dashed black). The output beam (green) is likewise defined by a central ray (solid) and radius (dashed–dotted). All relevant scalar and vectorial quantities are marked in blue as defined in the text. in a GOE-local coordinate system with the origin at the center of the GOE, where we further define the scalar intersection distance _d_ = _|_ d _|_ from the GOE center. The vectorial quantity d enters the calculation of directional change by a GOE with focal length not equal to zero, as will be derived below. In the present context, we project the incident beam radius, _w_ in, along direction d to obtain the projected beam radius, _b_ in. For this, we observe in Fig. S1 that cos _α_ = _w_ in/ _b_ in but also that cos _α_ = n ˆ _·_ k <sup>ˆ</sup> in. Eliminating _α_ provides _<u>w</u>_ <u>in</u> _b_ in =, (S67) magnitude operator such that it works also if the surface ~~�~~ <u>�</u> n ˆ _·_ k ˆ in ~~�~~ <u>�</u> where we introduced the absolute magnitude operator such that it works also if the surface normal n ˆ is inverted. In the case of n ˆ _·_ k <sup>ˆ</sup> in = 0, as noted above, the beam travels within the plane, and the projected radius is infinite as it should be. This leads to the further treatment as case 2 in the list below. Now we have obtained the three quantities, aperture radius _a_, intersection distance _d_, and projected beam radius _b_ in, that are required for the following case distinction based on their quantitative relation: 1. _a ≥_ _d_ + _b_ in: The laser beam is completely within the aperture; 2. _b_ in _>_ _d_ + _a_ : The laser beam overfills completely the aperture; 3. _d >_ _b_ in + _a_ : The laser beam is completely outside the aperture; 4. Else: The laser beam is partially within the aperture. Let us evaluate, for each case, the projected radius of the new beam after the aperture, _b_ out, along direction d ; the origin of the new beam after the aperture in world coordinates, r out; and the direction of the new beam after the aperture, k <sup>ˆ</sup> out. Finally, we obtain the new beam radius perpendicular to the new direction of propagation, _w_ out, that is given in all cases, analogous to Eq. (S67), by _w_ out = _b_ out (S68) d only, ��� n ˆ _·_ k ˆ out��� . This is an approximation that Note that in such a treatment, we consider the beam radius as projected along direction d only, and we ignore the shape and extension in the orthogonal direction. This is an approximation that works well for meridional rays but less so for skew rays. Nevertheless, we follow this approach 9 because of our choice to ignore astigmatism for computational efficiency [24], and thus one may define just one particular projection coordinate (not two) to represent a beam radius and shape. Using the meridional-ray approximation leads to the desired effect that no transmitted beam is larger than any circular open aperture. Case 1 ( _a_ _≥_ _d_ + _b_ in) in the list above corresponds to the “normal” alignment goal of having an unclipped beam with an open iris aperture (or a fully reflected beam off a mirror). Then the starting point of the new beam is equal to the intersection point of the incident beam, r out = h, (S69) the new beam direction is given by [25] ~~�~~ <u>�</u>, (S70) k ˆ out = _<u>f</u>_ k ˆ in _<u>−</u>_ <sup><u>d</u></sup> _<u>f</u>_ ~~�~~ <u>�</u> k ˆ in _−_ <u>d</u> _<u>f</u>_ k ˆ in _<u>−</u>_ <sup><u>d</u></sup> and the projected radius is simply _b_ out = _b_ in. (S71) In case 2 ( _b_ in _>_ _d_ + _a_ ), the clipped beam passes, symmetrically distributed, exactly through the center of the GOE, independently of the local intersection coordinate d that was calculated for the center of the unclipped beam. Note that in this geometric treatment, as motivated at the beginning of this section, we do not take into account the Gaussian variation of the intensity within the lateral cross section, and thus we arrive at the statement of the symmetric distribution around the GOE center o . Thus, this case corresponds to a “center ray” in geometrical optics that is unaffected by any focal length, and hence we obtain r out = o (S72) for the origin, for the direction, and k ˆ out = k ˆ in (S73) _b_ out = _a_ (S74) for the projected radius of the new beam. Case 3 ( _d >_ _b_ in + _a_ ) is simple to treat because then no beam is transferred. Finally, in case 4 (“else”), the beam is clipped partially. From Fig. S1, one finds 2 _b_ out = _a −_ _d_ + _b_ in such that the projected radius is _b_ out = <sup><u>1</u></sup> (S75) <u>2</u> <sup>(</sup> <sup>_a −_</sup> <sup>_d_</sup> <sup>+</sup> <sup>_b_</sup> <sup>in).</sup> If the beam shall indeed arise from the common overlap between original projected radius and aperture radius, we have to laterally “move” the new beam’s origin such that it is in the center of the new beam. From Fig. S1, one obtains _p_ = _|_ p _|_ = _d −_ _b_ in + _b_ out = <u>2</u> <sup><u>1</u></sup> <sup>(</sup> <sup>_a_</sup> <sup>+</sup> <sup>_d −_</sup> <sup>_b_</sup> <sup>in) and, as a</sup> GOE-local vector, of the new beam. From Fig. S1, one obtains _p_ = _|_ p _|_ = _d −_ _b_ in + _b_ out = <u>2</u> <sup><u>1</u></sup> <sup>(</sup> <sup>_a_</sup> <sup>+</sup> <sup>_d −_</sup> <sup>_b_</sup> <sup>in) and, as a</sup> GOE-local vector, <sup><u>d</u></sup> _<u>d</u>_ <sup>=</sup> <sup><u>1</u></sup> <u>2</u> p = _p_ <sup><u>d</u></sup> _<u>d</u>_ (S76) <sup><u>1</u></sup> <u>2</u> <sup>(</sup> <sup>_d_</sup> <sup>+</sup> <sup>_a −_</sup> <sup>_b_</sup> <sup>in)</sup> <sup><u>d</u></sup> _<u>d</u>_ such that and r out = o + p (S77) . (S78) p rather than d as in Eq. (S70). We ~~�~~ <u>�</u> k ˆ out = _<u>f</u>_ k ˆ in _<u>−</u>_ <sup><u>p</u></sup> _<u>f</u>_ ~~�~~ <u>�</u> k ˆ in _−_ <u>p</u> _<u>f</u>_ k ˆ in _<u>−</u>_ <sup><u>p</u></sup> Note that now the effective “distance” entering in Eq. (S78) is p rather than d as in Eq. (S70). We illustrate the case of partial beam clipping in Fig. S2, where we vary the lateral shift of a beam incident on a GOE with a finite aperture while displaying the waist and the angle of an output beam. The radii of the input beam and the aperture are set to 3 mm. To invoke a change of the angle of the output beam, we set the focal length of the GOE to _f_ = 37.5 cm. We display two subcases. In case of a small angle of incidence (5.71 <sup>_◦_</sup> ), the output beam waist decreases linearly when shifting the input beam away from the center of the aperture [Fig. S2(a)]. The output beam angle also changes linearly. In case of a steeper angle of incidence (45 <sup>_◦_</sup> ) as shown in Fig. S2(b), 10 3.0 2.5 2.0 1.5 1.0 0.5 0.0 (a) 3.0 2.5 2.0 1.5 1.0 0.5 0.0 (b) αin = 5.71° 6.2 6.0 5.8 5.6 5.4 5.2 αin = 45° 45.4 45.3 45.2 45.1 45.0 44.9 44.8 44.7 -6 -4 -2 0 2 4 6 Lateral shift of incident beam [mm] -6 -4 -2 0 2 4 6 Lateral shift of incident beam [mm] Fig. S2. Output beam from a finite aperture. The lateral shift of an input beam relative to the optical axis is varied under a given incidence angle. The beam waist of the input beam and the aperture radius are both chosen to be 3 mm while the focal length of the GOE is set to 37.5 cm. The beam waist and the angle of the output beam is shown for an incidence angle of (a) 5.71 <sup>_◦_</sup> and (b) 45 <sup>_◦_</sup> . The incidence angles are indicated as horizontal dashed lines. the radius and angle of the outgoing beam remain constant in a region around the center of the aperture. When the incident beam is further laterally shifted, clipping again results in a change of radius and angle of the outgoing beam. Finally, we need to consider the reduction in pulse energy due to beam clipping caused by the finite aperture. Above, we made the approximation of uniform spatial profiles for generating the geometric parameters of the new beam. Let us first consider what would happen at the same level of approximation for the transmitted pulse energy (which, as we will see, is not what we implemented). In this simplest approximation of a “flat-top” beam, we could relate the output energy, _W_ out, to the incident pulse energy, _W_ in, by considering the ratio of the projected cross-sectional areas at the aperture, <u>out</u> _W_ out = <sup>_<u>πb</u>_</sup> <sup>2</sup> _πb_ <sup><u>2</u></sup> _W_ in. (S79) <u>out</u> <sup>_<u>πb</u>_</sup> <sup>2</sup> _πb_ in <sup><u>2</u></sup> in Note that one should not use the orthogonal beam radii _w_ in and _w_ out in this context because they are different already if the output beam direction k <sup>ˆ</sup> out is different from the incidence beam’s direction k <sup>ˆ</sup> in due to an off-axis focusing element with focal length _f̸_ = 0, i.e., the pulse energy does not change but only the intensity changes due to the changed area. While Eq. (S79) describes the situation for a uniform spatial intensity profile, this does not correspond to the properties of a Gaussian beam in which the intensity is higher in the center than at the edge and which is what we introduced in Eq. (S48) and Eq. (S60). The discrepancy would be noticeable and is relevant if the simulation model is used, for example, for didactic training in the context of beam alignment onto an aperture. In those cases, the goal is to align the position of a laser beam with the center of a given aperture (or vice versa, center an aperture on a given laser beam) by monitoring the energy changes detected with a power meter after the aperture when moving the beam (or aperture) laterally. Assume now that the laser overfills the aperture (case 2 in the list above). In that case, the transmitted cross-sectional area would not change, and neither would the transmitted pulse energy according to simplistic Eq. (S79). Thus, we seek a more accurate calculation of the transmitted energy. More accurately, we might alternatively consider, instead of Eq. (S79), Eq. (14) from reference [26] that derives, for normal incidence at which _b_ in = _w_, the following relation: _×_ _k_ #### ∑ - _i_ =0 <u>2</u> <sup>_k_</sup> _<u>d</u>_ <sup>2</sup> <sup>_k_</sup> - _w_ <sup><u>2</u></sup> <sup>_<u>k</u>_</sup> _k_ ! �� _W_ out = _W_ in exp _−_ <sup><u>2</u></sup> _w_ <sup>_<u>d</u>_</sup> <sup><u>22</u></sup> ∞ #### ∑ _k_ =0 _w_ <sup><u>2</u></sup> <sup>_<u>k</u>_</sup> _k_ ! 1 _−_ exp _−_ <sup><u>2</u></sup> _w_ <sup>_<u>a</u>_</sup> <sup><u>22</u></sup> <u>2</u> <sup>_i_</sup> _<u>a</u>_ <sup>2</sup> <sup>_i_</sup> _w_ <sup><u>2</u></sup> <sup>_<u>i</u>_</sup> _i_ ! . (S80) It is discussed in reference [26] that for central beams, i.e., _d_ = 0, one obtains the more well-known relation 1 _−_ exp _−_ <sup><u>2</u></sup> _w_ <sup>_<u>a</u>_</sup> <sup><u>22</u></sup> - _W_ out( _d_ = 0) = _W_ in _w_ <sup><u>2</u></sup> , (S81) �� 11 but this, on its own, is not a useful limit for us either because we want to deal with the particular situation of laterally displaced beams. Thus we evaluate the transmitted energy numerically using precalculated lookup tables. Without loss of generality, we assume that the incident beam is displaced by _d_ (Fig. S1) along the x ˆ axis with respect to the center of the GOE aperture. Using Eqs. (S57), (S60) and (S61), the transverse beam intensity is given by _I_ ( _x_, _y_ ) = _I_ 0 exp (S82) _−_ 2 <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>0)2 + (</u></sup> _w_ <sup><u>2</u></sup> <sup>_<u>y −</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>0)2</u></sup> - with the on-axis intensity _I_ 0 and, in our case, _x_ 0 = _d_ and _y_ 0 = 0. For normalization, the full power of the incident beam, - _−_ ∞∞ - _−_ ∞∞ (S83) _−_ ∞∞ <sup>d</sup> <sup>_y I_</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>),</sup> _<u>πw</u>_ <sup>2</sup> . (S84) <u>2</u> _P_ in = is obtained with help of Eq. (S57) as _−_ ∞∞ <sup>d</sup> <sup>_x_</sup> _<u>πw</u>_ <sup>2</sup> _P_ in = _I_ 0 The outgoing, potentially clipped, beam power is obtained, instead, by restricting the integration area to the circular aperture, d _y_ _−_ 2 <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> _w_ <sup><u>2</u></sup> <sup>_<u>d</u>_</sup> <sup><u>)2</u></sup> <sup>_<u>−</u>_</sup> _w_ <sup><u>2</u></sup> <sup>_<u>d</u>_</sup> <sup><u>)2</u></sup> _−_ 2 _w_ <sup>_<u>y</u>_</sup> <sup>22</sup> _w_ <sup><u>2</u></sup> _P_ out = _I_ 0 d _x_ exp . (S85) ( _x_ <sup>2</sup> + _y_ <sup>2</sup> _≤a_ <sup>2</sup> ) It is convenient to express all spatial quantities in units of the beam radius _w_ because only the ratios determine transmission. Then, we substitute _x_ _x_ <sup>_′_</sup> = <sup>_<u>x</u>_</sup> d _x_ = _w_ d _x_ <sup>_′_</sup>, (S86) _→_ _<u>w</u>_ <sup>,</sup> _y_ _→_ _y_ <sup>_′_</sup> = _<u>w</u>_ <sup>_<u>y</u>_</sup> <sup>,</sup> d _y_ = _w_ d _y_ <sup>_′_</sup>, (S87) _a_ _a_ <sup>_′_</sup> = <sup>_<u>a</u>_</sup> (S88) _→_ _<u>w</u>_ <sup>,</sup> _d_ _d_ <sup>_′_</sup> = <sup>_<u>d</u>_</sup> (S89) _→_ _<u>w</u>_ <sup>,</sup> to get d _x_ <sup>_′_</sup> d _y_ <sup>_′_</sup> _P_ out = _I_ 0 _w_ <sup>2</sup> _e_ <sup>_−_</sup> <sup>2[(</sup> <sup>_x′−d′_</sup> <sup>)2</sup> <sup>_−y′_</sup> <sup>2]</sup> . (S90) ( _x_ <sup>_′_</sup> <sup>2</sup> + _y_ <sup>_′_</sup> <sup>2</sup> _≤a_ <sup>_′_</sup> <sup>2</sup> ) The integral is symmetric in _y_ <sup>_′_</sup>, providing a factor of 2 below, and we can insert explicit expressions for the integral limits, _<u>a</u>_ <sup>_′_</sup> <sup><u>2</u></sup> _−x_ <sup>_′_</sup> <sup><u>2</u></sup> d _y_ <sup>_′_</sup> _e_ <sup>_−_</sup> <sup>2[(</sup> <sup>_x′−d′_</sup> <sup>)2</sup> <sup>_−y′_</sup> <sup>2]</sup>, (S91) 0 - <sup>_√_</sup> _P_ out = 2 _I_ 0 _w_ <sup>2</sup> - _−aa′_ <sup>_′_</sup> <sup>d</sup> <sup>_x′_</sup> - _−aa′_ <sup>_′_</sup> from which we proceed, for numerical evaluation, by discretizing d _x_ <sup>_′_</sup> ∆ _x_ <sup>_′_</sup> = <sup><u>2</u></sup> <sup>_<u>a′</u>_</sup> (S92) _→_ _<u>N</u>_ <sup>,</sup> d _y_ <sup>_′_</sup> ∆ _y_ <sup>_′_</sup> = <sup><u>2</u></sup> <sup>_<u>a′</u>_</sup> (S93) _→_ _<u>N</u>_ <sup>,</sup> for a number of _N_ samples for _x_ <sup>_′_</sup> from _−a_ <sup>_′_</sup> to _a_ <sup>_′_</sup>, and employing the same resolution for _y_ <sup>_′_</sup> . Thus, using integer indices _i_ and _j_, we have to evaluate the intensity at coordinates _x_ <sup>_′_</sup> = _−a_ <sup>_′_</sup> + ( _i_ + <u>2</u> <sup><u>1</u></sup> _y_ <sup>_′_</sup> = ( _j_ + <sup><u>1</u></sup> <u>2</u> <u>2</u> <sup><u>1</u></sup> <sup>)∆</sup> <sup>_x′_</sup> <sup>,</sup> _i_ = 0, . . ., _N −_ 1, (S94) <sup><u>1</u></sup> <u>2</u> <sup>)∆</sup> <sup>_y′_</sup> <sup>,</sup> _j_ = 0, . . ., _j_ max, (S95) 12 with <u>the</u> <u>maximum</u> index along the _y_ coordinate obtained from the integral limit _y_ max <sup>_′_</sup> = _√_ _<u>a</u>_ <sup>_<u>′</u>_</sup> <sup><u>2</u></sup> _−_ _<u>x</u>_ <sup>_<u>′</u>_</sup> <sup><u>2</u></sup> as _<u>a</u>_ <sup>_<u>′</u>_</sup> <sup><u>2</u></sup> _−_ _<u>x</u>_ <sup>_<u>′</u>_</sup> <sup><u>2</u></sup> as 1 _−_ <sup>_<u>x</u>_</sup> _a_ <sup>_′′_</sup> <sup><u>22</u></sup> (S96)  = <u>2</u>  _<u>N</u>_ _j_ max = <u>∆</u> _<u>y</u>_ <sup>_′_</sup> - _<u>y</u>_ <u>max</u> _<u>′</u>_ <u>2</u> 1 _−_ <sup>_<u>x</u>_</sup> _a_ <sup>_′′_</sup> <sup><u>22</u></sup> with the “floor” operator _⌊⌋_ that provides the greatest integer less than or equal to its argument. Thus we can replace the integrals with discrete sums and obtain the transmission factor _T_ = <sup>_<u>P</u>_</sup> <sup><u>out</u></sup> _<u>P</u>_ in (S97) from evaluating _j_ max #### ∑ _j_ =0 _j_ max _T_ = <sup><u>16</u></sup> <sup>_<u>a′</u>_</sup> <sup>2</sup> _πN_ <sup><u>2</u></sup> _N−_ 1 #### ∑ _i_ =0 _e_ <sup>_−_</sup> <sup>2[(</sup> <sup>_x′−d′_</sup> <sup>)2</sup> <sup>_−y′_</sup> <sup>2]</sup> . (S98) We precalculate _T_ ( _a_ <sup>_′_</sup>, _d_ <sup>_′_</sup> ) for a two-dimensional set of _a_ <sup>_′_</sup> and _d_ <sup>_′_</sup> and then simply have to read off the appropriate result during real-time evaluation. In order to obtain a sufficiently large resolution of the _T_ matrix, we use a size of 500 by 500 grid points with aperture and shift step sizes of ∆ _a_ <sup>_′_</sup> = 0.010 _w_ and ∆ _d_ <sup>_′_</sup> = 0.012 _w_, respectively. Transmission factor values between grid points are obtained by rounding the fractional indices _a_ <sup>_′_</sup> /∆ _a_ <sup>_′_</sup> and _d_ <sup>_′_</sup> /∆ _d_ <sup>_′_</sup> to the indices of the nearest grid point. In case of large circular apertures relative to the beam radius, i.e., _a_ _≫_ _w_, the beam clipping can be approximated as clipping at a straight edge. We set the boundary above which this approximation takes place to _a_ = 5 _w_ . The outgoing power of the clipped beam is then obtained by setting the lower integration bound along _x_ to _a_, leading to (S99) - _−_ ∞∞ <sup>d</sup> <sup>_y I_</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>),</sup> _P_ out = d _x_ _a_ <u>�</u> ∞ which can further be expressed using Eqs. (S82), (S83), and (S84) as d _x_ exp _a_ - ∞ _a_ - ∞ . (S100) _−_ 2 <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> _w_ <sup><u>2</u></sup> <sup>_<u>d</u>_</sup> <sup><u>)2</u></sup> _P_ out = _I_ 0 _<u>πw</u>_ <sup><u>2</u></sup> <u>2</u> The integral in Eq. (S100) can be solved by substituting _x →_ _x_ <sup>_′_</sup> = _x −_ _d_, d _x_ = d _x_ <sup>_′_</sup>, (S101) which results in where we further substitute to obtain _x_ <sup>_′_</sup> _→_ _t_ = _P_ out = _I_ 0 _<u>√π</u>_ _<u>πw</u>_ <sup><u>2</u></sup> _P_ out = _I_ 0 <u>2</u> <u>�</u> _a−_ ∞ _d_ <sup>d</sup> <sup>_x′_</sup> <sup>exp</sup> <u>�</u> _a−_ ∞ , (S102) _−_ 2 <sup>_<u>x</u>_</sup> _w_ <sup>_<u>′</u>_</sup> <sup><u>22</u></sup> d _t_, (S103) <u>2</u> _<u>√</u>_ <u>2</u> _<u>w</u>_ d _x_ <sup>_′_</sup> = _<u>w</u>_ <sup>_x′_</sup> <sup>,</sup> _~~√~~_ _<u>π</u>_ _<u>√</u>_ <u>2</u> <u>2</u> <sup>_w_</sup> <sup>2</sup> - _<u>w</u>_ ∞ <sup>(</sup> _<u>√</u>_ _<u>√</u>_ <u>2</u> (S104) _<u>w</u>_ ∞ <sup>(</sup> <sup>_a−d_</sup> <sup>) d</sup> <sup>_t e−t_</sup> <sup>2</sup> <sup>.</sup> Using the definition of the complementary error function, <u>2</u> erfc _x_ = _~~√~~_ _π_ d _t e_ <sup>_−t_</sup> <sup>2</sup>, (S105) _x_ - ∞ Eq. (S104) can be rewritten as . (S106) _<u>π</u>_ _P_ out = _I_ 0 <u>4</u> <sup>_w_</sup> <sup>2 erfc</sup> <u>2</u> - _<u>√w</u>_ <sup>(</sup> <sup>_a −_</sup> <sup>_d_</sup> <sup>)</sup> The transmission factor in case of clipping at a straight edge is thus given by _T_ = <sup>_<u>P</u>_</sup> <sup><u>out</u></sup> _<u>P</u>_ in = <sup><u>1</u></sup> <u>2</u> <sup>erfc</sup> <u>2(</u> _a_ <sup>_′_</sup> _−_ _d_ <sup>_′_</sup> ), (S107) - _√_ 13 (a) (b) 1.0 0.8 0.6 0.4 0.2 0.0 0.0 0.5 1.0 1.5 2.0 2.5 3.0 Aperture [units of beam radius] 0 1 2 3 4 5 Lateral shift [units of beam radius] 1.0 0.8 0.6 0.4 0.2 0.0 Fig. S3. Pulse-energy scaling factor _S_ of a Gaussian beam incident on an aperture. (a) Scaling factor as a function of the aperture size. (b) Scaling factor as a function of the lateral shift relative to an aperture with a size of 3 _w_ . where aperture radius and displacement are expressed in units of the beam radius _w_, i.e., _a_ <sup>_′_</sup> = _a_ / _w_ and _d_ <sup>_′_</sup> = _d_ / _w_, respectively. Using these results allows us to assign transmission values fast for any given combination of beam radius _w_, aperture radius _a_, and displacement _d_ . Note that we do not change the pulse energy directly, but rather the pulse-energy scaling factor _S_ from Eq. (S40). The scaling factor as a function of the aperture radius is displayed in Fig. S3(a), where the behavior of Gaussian beams is evident by _S_ _<_ 1 in the case of _w_ = _a_ . In Fig. S3(b), we laterally shift the input beam relative to an aperture with size _a_ = 3 _w_ . Note that we capture the beams geometrically up to their beam radius, i.e., we treat Gaussian beams, which theoretically go to infinity, as hard-cut structures. This means that if the beam is shifted away from the edge of the aperture by a distance larger than _w_, it is treated as no longer hitting the aperture, leading to zero energy which in turn results in the small “step” visible in Fig. S3(b) at a lateral shift of 4 _w_ . This provides a quantitative estimate for the error at the chosen level of approximation of our model. S2. OVERLAPPING BEAMS S2.1. Product of two-dimensional Gaussian functions While in Section S1.2 we considered the geometric overlap of a laser beam with a hard aperture, we now investigate the overlap of two laser-beam cross sections, but only in the limit of normal incidence, which will be relevant for calculations of interference between several beams and for nonlinear signal generation. Thus we determine the product of two two-dimensional Gaussian distributions, _Ak_ ( _x_, _y_ ) = _Ake_ <sup>_−αk_</sup> <sup>(</sup> <sup>_x−xk_</sup> <sup>)2</sup> <sup>_−βk_</sup> <sup>(</sup> <sup>_y−yk_</sup> <sup>)2</sup>, _k_ = _{_ 1, 2 _}_, (S108) centered at ( _xk_, _yk_ ) and characterized by (potentially different) width parameters, <u>1</u> _αk_ = _w_ <sup><u>2</u></sup> _k_, _x_ <u>1</u> , _βk_ = _w_ <sup><u>2</u></sup> _k_, _y_ , (S109) along the x ˆ and y ˆ directions, respectively. The product is _A_ p( _x_, _y_ ) = _A_ 1( _x_, _y_ ) _A_ 2( _x_, _y_ ) (S110) = _A_ 1 _A_ 2 _e_ <sup>_−_</sup> <sup>[</sup> <sup>_α_</sup> <sup>1(</sup> <sup>_x−x_</sup> <sup>1)2+</sup> <sup>_α_</sup> <sup>2(</sup> <sup>_x−x_</sup> <sup>2)2]</sup> _e_ <sup>_−_</sup> <sup>[</sup> <sup>_β_</sup> <sup>1(</sup> <sup>_y−y_</sup> <sup>1)2+</sup> <sup>_β_</sup> <sup>2(</sup> <sup>_y−y_</sup> <sup>2)2]</sup> . (S111) We hypothesize that _A_ p( _x_, _y_ ) can be written in the form of a new Gaussian with parameters to be determined. For this purpose, we modify the exponent of the first exponential term by 14 multiplying out the binomial terms and “completing the squares,” _α_ 1( _x −_ _x_ 1) <sup>2</sup> + _α_ 2( _x −_ _x_ 2) <sup>2</sup> (S112) = ( _α_ 1 + _α_ 2) _x_ <sup>2</sup> _−_ 2( _α_ 1 _x_ 1 + _α_ 2 _x_ 2) _x_ + _α_ 1 _x_ 1 <sup>2</sup> 1 <sup>2</sup> <sup>+</sup> <sup>_α_</sup> <sup>2</sup> <sup>_x_</sup> 2 <sup>2</sup> (S113) <u>�</u> _x_ + <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> <sup>_<u>x</u>_</sup> <u>1</u> <sup>2</sup> <sup><u>1</u></sup> <sup>_<u>x</u>_</sup> <u>1</u> <sup>2</sup> <sup><u>+</u></sup> <sup>_<u>α</u>_</sup> <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> <u>2</u> <sup>2</sup> _α_ 1 + _α_ 2 = ( _α_ 1 + _α_ 2) = ( _α_ 1 + _α_ 2) = ( _α_ 1 + _α_ 2) = ( _α_ 1 + _α_ 2) = ( _α_ 1 + _α_ 2) _x −_ <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> _α_ <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> 1 <sup><u>+</u></sup> + <sup>_<u>α</u>_</sup> _α_ <sup><u>2</u></sup> 2 <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> _x_ <sup>2</sup> _−_ 2 <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> _α_ <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> 1 <sup><u>+</u></sup> + <sup>_<u>α</u>_</sup> _α_ <sup><u>2</u></sup> 2 <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> _α_ 1 + _α_ 2 _α_ 1 + _α_ 2 _x −_ <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> _α_ <sup>_<u>x</u>_</sup> 1 <sup><u>1</u></sup> + <sup><u>+</u></sup> _α_ <sup>_<u>α</u>_</sup> 2 <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> �� _x −_ <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> _α_ <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> 1 <sup><u>+</u></sup> + <sup>_<u>α</u>_</sup> _α_ <sup><u>2</u></sup> 2 <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> �� _x −_ <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> _α_ <sup>_<u>x</u>_</sup> 1 <sup><u>1</u></sup> + <sup><u>+</u></sup> _α_ <sup>_<u>α</u>_</sup> 2 <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> �� _−_ <sup><u>(</u></sup> <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> ( _α_ <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> 1 <sup><u>+</u></sup> + <sup>_<u>α</u>_</sup> _α_ <sup><u>2</u></sup> 2) <sup>_<u>x</u>_</sup> <sup><u>22)2</u></sup> <u>�</u> _α_ 1 + _α_ 2 + <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> <sup>_<u>x</u>_</sup> <u>1</u> <sup>2</sup> _α_ 1 �2 <sup>_<u>x</u>_</sup> <u>1</u> <sup>2</sup> <sup><u>+</u></sup> <sup>_<u>α</u>_</sup> <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> <u>2</u> <sup>2</sup> _α_ 1 + _α_ 2 (S114) (S115) (S116) (S117) _α_ 1 + _α_ 2 + <sup><u>(</u></sup> <sup>_<u>α</u>_</sup> <sup><u>1 +</u></sup> <sup>_<u>α</u>_</sup> <sup><u>2)(</u></sup> <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> <sup>_<u>x</u>_</sup> <u>1</u> <sup>2</sup> �2 <u>1</u> <sup>2</sup> <sup><u>+</u></sup> <sup>_<u>α</u>_</sup> <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> <u>2</u> <sup>2)</sup> <sup>_<u>−</u>_</sup> <sup><u>(</u></sup> <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> <sup>_<u>x</u>_</sup> <sup><u>1 +</u></sup> <sup>_<u>α</u>_</sup> <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> <sup><u>2)</u></sup> ( _α_ 1 + _α_ 2) <sup><u>2</u></sup> _α_ 1 + _α_ 2 _<u>α</u>_ <u>1</u> _<u>α</u>_ <u>2</u> + _α_ 1 + _α_ 2 �2 _<u>α</u>_ <u>1</u> _<u>α</u>_ <u>2</u> + ( _α_ 1 + _α_ 2) <sup><u>2</u></sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>2)2</sup> �2 ( _x_ 1 _−_ _x_ 2) <sup>2</sup> . (S118) Using the analogous strategy for the second exponential term with the _y_ coordinates, we find the product to be another Gaussian as hypothesized, _A_ p( _x_, _y_ ) = _A_ p _e_ <sup>_−α_</sup> <sup>p(</sup> <sup>_x−x_</sup> <sup>p)2</sup> <sup>_−β_</sup> <sup>p(</sup> <sup>_y−y_</sup> <sup>p)2</sup>, (S119) with product width parameters _α_ p = _α_ 1 + _α_ 2, _β_ p = _β_ 1 + _β_ 2, (S120) center position and amplitude _x_ p = <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> <sup>_<u>x</u>_</sup> <sup><u>1 +</u></sup> <sup>_<u>α</u>_</sup> <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> _α_ 1 + _α_ 2 _x_ p = <sup>_<u>α</u>_</sup> <sup><u>1</u></sup> <sup>_<u>x</u>_</sup> <sup><u>1 +</u></sup> <sup>_<u>α</u>_</sup> <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> , _y_ p = <sup>_<u>β</u>_</sup> <sup><u>1</u></sup> <sup>_<u>y</u>_</sup> <sup><u>1 +</u></sup> <sup>_<u>β</u>_</sup> <sup><u>2</u></sup> <sup>_<u>y</u>_</sup> <sup><u>2</u></sup> _β_ 1 + _β_ 2 , _y_ p = <sup>_<u>β</u>_</sup> <sup><u>1</u></sup> <sup>_<u>y</u>_</sup> <sup><u>1 +</u></sup> <sup>_<u>β</u>_</sup> <sup><u>2</u></sup> <sup>_<u>y</u>_</sup> <sup><u>2</u></sup> , (S121) _−_ _β_ 1 <sup>_<u>β</u>_</sup> + <sup><u>1</u></sup> <sup>_<u>β</u>_</sup> _β_ <sup><u>2</u></sup> ( _y_ 1 _−_ _y_ 2) <sup>2</sup> . (S122) _A_ p = _A_ 1 _A_ 2 exp _−_ _α_ 1 <sup>_<u>α</u>_</sup> + <sup><u>1</u></sup> <sup>_<u>α</u>_</sup> _α_ <sup><u>2</u></sup> _α_ 1 + _α_ 2 ( _x_ 1 _−_ _x_ 2) <sup>2</sup> exp _β_ 1 + _β_ 2 Using the notation with beam radii, this corresponds to a Gaussian _−_ <sup><u>(</u></sup> <sup>_<u>y −</u>_</sup> _w_ p, <sup><u>2</u></sup> <sup>_<u>y</u>_</sup> _y_ <sup><u>p)2</u></sup> _−_ <sup><u>(</u></sup> <sup>_<u>y −</u>_</sup> _w_ p, <sup><u>2</u></sup> <sup>_<u>y</u>_</sup> _y_ <sup><u>p)2</u></sup> _A_ p( _x_, _y_ ) = _A_ p exp <u>�</u> _−_ <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> _w_ p, <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> _x_ <sup><u>p)2</u></sup> _−_ <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> _w_ p, <sup><u>2</u></sup> <sup>_<u>x</u>_</sup> _x_ <sup><u>p)2</u></sup> , (S123) centered at with radii <u>1</u> _w_ p, _x_ = <u>1</u> _<u>w</u>_ 1, <sup><u>2</u></sup> _x_ ~~�~~ , (S124) , _y_ p = _<u>y</u>_ <u>1</u> _<u>w</u>_ <u>1,</u> <sup><u>2</u></sup> _<u>y</u>_ <u>2,</u> _<u>y</u>_ <u>1</u> <u>1</u> _<u>w</u>_ 1, <sup><u>2</u></sup> _y_ <sup>+</sup> _<u>w</u>_ 2, <sup><u>2</u></sup> _y_ <u>1</u> _<u>y</u>_ <u>2</u> <u>1,</u> <sup><u>2</u></sup> _<u>y</u>_ <sup>+</sup> _<u>w</u>_ <u>2,</u> <sup><u>2</u></sup> _<u>y</u>_ <u>1</u> <u>1</u> 1, <sup><u>2</u></sup> _y_ <sup>+</sup> _<u>w</u>_ 2, <sup><u>2</u></sup> _y_ _x_ p = _<u>x</u>_ <u>1</u> _<u>w</u>_ <u>1,</u> <sup><u>2</u></sup> _<u>x</u>_ <u>2,</u> _<u>x</u>_ <u>1</u> <u>1</u> _<u>w</u>_ 1, <sup><u>2</u></sup> _x_ <sup>+</sup> _<u>w</u>_ 2, <sup><u>2</u></sup> _x_ <u>1</u> _<u>x</u>_ <u>2</u> <u>1,</u> <sup><u>2</u></sup> _<u>x</u>_ <sup>+</sup> _<u>w</u>_ <u>2,</u> <sup><u>2</u></sup> _<u>x</u>_ <u>1</u> <u>1</u> 1, <sup><u>2</u></sup> _x_ <sup>+</sup> _<u>w</u>_ 2, <sup><u>2</u></sup> _x_ 2, _x_ 2, _y_ <u>1</u> <u>1</u> 1, <sup><u>2</u></sup> _x_ <sup>+</sup> _<u>w</u>_ 2, <sup><u>2</u></sup> _x_ 2, _x_ <u>1</u> , _w_ p, _y_ = <u>1</u> _<u>w</u>_ 1, <sup><u>2</u></sup> _y_ <sup>+</sup> ~~<u>�</u>~~ <u>1</u> <u>1</u> 1, <sup><u>2</u></sup> _y_ <sup>+</sup> _<u>w</u>_ 2, <sup><u>2</u></sup> _y_ 2, _y_ along the x ˆ and y ˆ directions, respectively, and a product amplitude of <sup>_<u>x</u>_</sup> 1, <sup><u>21</u></sup> _x_ <sup>_<u>−</u>_</sup> <sup>+</sup> <sup>_wx_</sup> <sup><u>2</u></sup> 2, <sup><u>2)2</u></sup> _x_ _−_ _w_ <sup><u>(</u></sup> <sup>_<u>y</u>_</sup> 1, <sup><u>21</u></sup> _y_ <sup>_<u>−</u>_</sup> <sup>+</sup> <sup>_<u>y w</u>_</sup> <sup><u>2</u></sup> 2, <sup><u>2)2</u></sup> _y_ (S125) . (S126) _w_ 1, <sup><u>2</u></sup> 1, <sup><u>2</u></sup> _y_ <sup>+</sup> <sup>_w_</sup> 2, <sup><u>2</u></sup> _y_ _A_ p = _A_ 1 _A_ 2 exp _−_ _w_ <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> 1, <sup><u>21</u></sup> _x_ <sup>_<u>−</u>_</sup> <sup>+</sup> <sup>_wx_</sup> <sup><u>2</u></sup> 2, <sup><u>2)2</u></sup> _w_ 1, <sup><u>2</u></sup> We now determine the field overlap integral _W_ p that is relevant for the scaling of linear interference fringes and nonlinear signal generation. Due to the Gaussian function, the integration can be carried out analytically and delivers - _−_ ∞∞ _W_ p = _−_ ∞ <u>�</u> _−_ ∞∞ _<u>−</u>_ ∞∞ <sup>_e−α_</sup> <sup>p(</sup> <sup>_x−x_</sup> <sup>p)2 d</sup> <sup>_x_</sup> (S127) _−_ ∞∞ <sup>_A_</sup> <sup>p(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>) d</sup> <sup>_x_</sup> <sup>d</sup> <sup>_y_</sup> - _<u>−</u>_ ∞∞ _<u>π</u>_ - _β_ p - _−_ ∞∞ (S128) _−_ ∞∞ <sup>_e−β_</sup> <sup>p(</sup> <sup>_y−y_</sup> <sup>p)2 d</sup> <sup>_y_</sup> = _A_ p = _A_ p _<u>π</u>_ - _α_ p . (S129) 15 For further simplification, we consider circularly symmetric Gaussians (i.e., stigmatic beams as assumed in the main text) with _αj_ = _βj_ . In that case, the width parameters in Eq. (S122) simplify to _<u>α</u>_ <u>1</u> _<u>α</u>_ <u>2</u> _α_ 1 + _α_ 2 _<u>β</u>_ <u>1</u> _<u>β</u>_ <u>2</u> = _β_ 1 + _β_ 2 2 = <u>1</u> <u>2</u> <u>1</u> _<u>w</u>_ 1 <sup><u>2</u></sup> <sup>+</sup> _<u>w</u>_ <u>1</u> _<u>w</u>_ <u>1</u> <sup><u>2</u></sup> 1 <sup><u>2</u></sup> <sup>+</sup> _<u>w</u>_ <sup><u>1</u></sup> 2 <sup><u>2</u></sup> <u>1</u> <u>1</u> <sup><u>2</u></sup> _<u>w</u>_ <u>2</u> <sup><u>2</u></sup> (S130) (S131) <u>1</u> = _w_ 1 <sup><u>2</u></sup> <sup>+</sup> , (S132) 1 <sup><u>2</u></sup> <sup>+</sup> <sup>_w_</sup> 2 <sup><u>2</u></sup> and thus <u>�</u> 1 <sup><u>2</u></sup> <sup>+</sup> <sup>_w_</sup> 2 <sup><u>2</u></sup> _A_ p = _A_ 1 _A_ 2 exp _−_ <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> _w_ <sup><u>)</u></sup> 1 <sup><u>22 + (+</u></sup> <sup>_wy_</sup> 2 <sup><u>21</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>2)2</u></sup> _w_ 1 <sup><u>2</u></sup> . (S133) The overlap integral in Eq. (S129), for circularly symmetric Gaussians, simplifies to _<u>π</u>_ _α_ 1 + _α_ 2 <u>�</u> _W_ p = _A_ p = _A_ p = _A_ p <u>1</u> 1 <sup><u>2</u></sup> <sup>+</sup> _<u>w</u>_ <sup><u>1</u></sup> 2 <sup><u>2</u></sup> _<u>π</u>_ _β_ 1 + _β_ 2 <u>�</u> _<u>π</u>_ <u>1</u> _<u>w</u>_ 1 <sup><u>2</u></sup> <sup>+</sup> _<u>w</u>_ <sup><u>1</u></sup> 2 <sup><u>2</u></sup> ~~<u>��</u>~~ _<u>π</u>_ 1 <sup><u>2</u></sup> <sup>+</sup> _<u>w</u>_ <sup><u>1</u></sup> 2 <sup><u>2</u></sup> 2 <u>1</u> _<u>w</u>_ 1 <sup><u>2</u></sup> ~~��~~ 1 <sup><u>2</u></sup> <sup>+</sup> _<u>w</u>_ <sup><u>1</u></sup> 2 <sup><u>2</u></sup> 2 (S134) (S135) ~~�~~ (S136) _<u>π</u>_ <u>1</u> _<u>w</u>_ 1 <sup><u>2</u></sup> <sup>+</sup> 2 1 <sup><u>2</u></sup> <sup>+</sup> <sup>_w_</sup> 2 <sup><u>2</u></sup> _<u>π</u>_ <u>1</u> _<u>w</u>_ 1 <sup><u>2</u></sup> <sup>+</sup> 2 _−_ <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>2</u></sup> _w_ <sup><u>)</u></sup> 1 <sup><u>22 + (+</u></sup> <sup>_wy_</sup> 2 <sup><u>21</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>2)2</u></sup> _w_ 1 <sup><u>2</u></sup> = _A_ 1 _A_ 2 1 <sup><u>2</u></sup> <sup>+</sup> _<u>w</u>_ <sup><u>1</u></sup> 2 <sup><u>2</u></sup> . . (S137) exp For determining the overlap between three Gaussians, _A_ 1( _x_, _y_ ), _A_ 2( _x_, _y_ ), and _A_ 3( _x_, _y_ ), we obtain first the overlap between, say, _A_ 2( _x_, _y_ ) and _A_ 3( _x_, _y_ ), according to the procedure above, and then repeat the calculation a second time with _A_ 1( _x_, _y_ ) and _A_ p( _x_, _y_ ), i.e., replacing _A_ 2( _x_, _y_ ) above with _A_ p( _x_, _y_ ) from the first step, ( _x_ 2, _y_ 2) with ( _x_ p, _y_ p) from the first step, and _w_ 2 with _w_ p from the first step. Analogously, this can be extended to more than three Gaussians. The order of calculation in this algorithm is irrelevant because each calculation step delivers a Gaussian again, and the multiplications are commutative and associative. S2.2. Interference visibility factor We solve Eq. (9) from the main text by substituting _x_ _→_ _x_ ˜ = _x −_ _x_ p and _y →_ _y_ ˜ = _y −_ _y_ p to make the integrals symmetric around the origin, pulling out all factors that are independent of _x_ ˜ and _y_ ˜, and separating the _x_ ˜ and _y_ ˜ integrals, <u>1</u> - _w_ <sup><u>2</u></sup> _k_ <u>2</u> _ηk_, _l_ = _πwkwl_ exp _−_ <sup><u>(</u></sup> <sup>_<u>xk −</u>_</sup> <sup>_<u>x</u>_</sup> _w_ <sup>_<u>l</u>_</sup> <sup><u>)2</u></sup> _k_ <sup>2 + (+</sup> <sup>_wy_</sup> <sup><u>2</u></sup> _l_ <sup>_<u>k −</u>_</sup> <sup>_<u>yl</u>_</sup> <sup><u>)2</u></sup> _e_ <sup>_i_</sup> <sup>(∆</sup> <sup>_kx_</sup> <sup>_x_</sup> <sup>p+∆</sup> <sup>_kyy_</sup> <sup>p)</sup> _w_ <sup><u>2</u></sup> _k_ <sup><u>2</u></sup> _k_ <sup>+</sup> <sup>_w_</sup> <sup><u>2</u></sup> _l_ _l_ <sup><u>2</u></sup> _l_ (S138) - _−_ ∞∞ <sup>exp</sup> - _−_ ∞∞ _−_ _e_ <sup>_i_</sup> <sup>∆</sup> <sup>_kx_</sup> <sup>˜</sup> <sup>_x_</sup> d ˜ _x_ _e_ <sup>_i_</sup> <sup>∆</sup> <sup>_ky_</sup> <sup>˜</sup> <sup>_y_</sup> d ˜ _y_ . _×_ - _−_ ∞∞ <sup>exp</sup> _−_ _k_ + <sup><u>1</u></sup> <u>1</u> - _w_ <sup><u>2</u></sup> _k_ + <sup><u>1</u></sup> _w_ <sup><u>2</u></sup> _l_ _x_ ˜ <sup>2</sup> _y_ ˜ <sup>2</sup> _w_ <sup><u>2</u></sup> _l_ _l_ Consider the first of the remaining two integrals and write the complex exponential using Euler’s formula, <sup>2</sup> _k_ - _−_ ∞∞ <sup>exp</sup> - _−_ ∞∞ - _−_ ∞∞ - _−_ ∞∞ _−_ ∞∞ <sup>exp</sup> _−_ ∞∞ <sup>exp</sup> _−_ _−_ _e_ <sup>_i_</sup> <sup>∆</sup> <sup>_kx_</sup> <sup>˜</sup> <sup>_x_</sup> d ˜ _x_ = + _i_ cos(∆ _kx_ ˜ _x_ ) d ˜ _x_ sin(∆ _kx_ ˜ _x_ ) d ˜ _x_, <u>1</u> - _w_ <sup><u>2</u></sup> _k_ <u>1</u> - _w_ <sup><u>2</u></sup> _k_ _k_ + <sup><u>1</u></sup> _−_ <u>1</u> - _w_ <sup><u>2</u></sup> _k_ _k_ + <sup><u>1</u></sup> _x_ ˜ <sup>2</sup> (S139) _w_ <sup><u>2</u></sup> _l_ _l_ _w_ <sup><u>2</u></sup> _l_ _l_ + <sup><u>1</u></sup> _x_ ˜ <sup>2</sup> _x_ ˜ <sup>2</sup> _w_ <sup><u>2</u></sup> _l_ _l_ then the second term disappears for symmetry reasons and the remaining Gaussian integral evaluates to <sup><u>2</u></sup> _k_ <sup>+</sup> _<u>w</u>_ <sup><u>12</u></sup> _l_ _l_ cos(∆ _kx_ ˜ _x_ ) d ˜ _x_ = 16 <sup><u>2</u></sup> _k_ <sup>+</sup> _<u>w</u>_ <sup><u>12</u></sup> _l_ _<u>w</u>_ <sup><u>2</u></sup> _l_ _l_ - _−_ ∞∞ <sup>exp</sup> - _−_ ∞∞ _<u>π</u>_ <u>1</u> - _<u>w</u>_ <sup><u>2</u></sup> _k_ <sup>+</sup>  <u>∆</u> _<u>k</u>_ <sup>2</sup> _<u>x</u>_  4 <u>1</u> _<u>w</u>_ <sup><u>2</u></sup> _k_ <sup>+</sup>  _−_ ~~�~~  (S140)   . _−_ <u>1</u> - _w_ <sup><u>2</u></sup> _k_ + <sup><u>1</u></sup> _w_ <sup><u>2</u></sup> _l_ _x_ ˜ <sup>2</sup> exp _<u>w</u>_ <sup><u>2</u></sup> _l_ _l_ ~~�~~ The second integral in Eq. (S138) evaluates analogously, delivering <sup><u>2</u></sup> _k_ <sup>+</sup> <sup>_w_</sup> <sup><u>2</u></sup> _l_ _<u>w</u>_ <sup><u>2</u></sup> _l_ _l_ <u>2</u> _ηk_, _l_ = _πwkwl_ <u>2</u> _<u>W</u>_ <u>p</u> = _πwkwl_ _<u>w</u>_ <sup><u>2</u></sup> _l_ _<u>π</u>_ <u>1</u> _<u>w</u>_ <sup><u>2</u></sup> _k_ <sup>+</sup> _<u>w</u>_ <sup><u>2</u></sup> _l_ _l_   _−_ 2 <u>1</u> _<u>w</u>_ <sup><u>2</u></sup> _k_ ~~�~~ ∆ _<u>k</u>_ <sup>2</sup> _<u>x</u>_ + ∆ _<u>k</u>_ <sup>2</sup> _<u>y</u>_ <sup><u>2</u></sup> _k_ <sup>+</sup> _<u>w</u>_ <sup><u>12</u></sup> _l_ _−_ <sup><u>(</u></sup> <sup>_<u>xk −</u>_</sup> <sup>_<u>x</u>_</sup> _w_ <sup>_<u>l</u>_</sup> <sup><u>)2</u></sup> _k_ <sup>2 + (+</sup> <sup>_wy_</sup> <sup><u>2</u></sup> _l_ <sup>_<u>k −</u>_</sup> <sup>_<u>yl</u>_</sup> <sup><u>)2</u></sup> _w_ <sup><u>2</u></sup> _k_    (S141) ~~�~~ _l_ _e_ <sup>_i_</sup> <sup>(∆</sup> <sup>_kx_</sup> <sup>_x_</sup> <sup>p+∆</sup> <sup>_kyy_</sup> <sup>p)</sup> exp <sup><u>2</u></sup> _k_ <sup>+</sup> _<u>w</u>_ <sup><u>12</u></sup> _l_ exp 2 <u>1</u> _<u>w</u>_ <sup><u>2</u></sup> _k_ ~~�~~ <u>1</u> <sup><u>2</u></sup> _k_ <sup>+</sup> _<u>w</u>_ <sup><u>12</u></sup> _l_ _e_ <sup>_i_</sup> <sup>(∆</sup> <sup>_kx_</sup> <sup>_x_</sup> <sup>p+∆</sup> <sup>_kyy_</sup> <sup>p)</sup> exp    _−_ ∆ _<u>k</u>_ <sup>2</sup> _<u>x</u>_ + ∆ _<u>k</u>_ <sup>2</sup> _<u>y</u>_  (S142)   _l_ ~~�~~ using _W_ p from Eq. (S137) with _A_ 1 = _A_ 2 = 1, representing the overlap area, and thus yields Eq. (10) from the main text. In the limiting case of identical beam radii _w_ = _wk_ = _wl_ and identical intersection positions ( _xk_, _yk_ ) = ( _xl_, _yl_ ) but different incidence directions, one finds _W_ p = _πw_ <sup>2</sup> /2 and _ηk_, _l_ = exp _−_ _<u>w</u>_ <sup>2</sup> (∆ _<u>k</u>_ <sup>2</sup> _<u>x</u>_ + ∆ _<u>k</u>_ <sup>2</sup> _<u>y</u>_ ) <u>4</u> . (S143) In another limiting case of Eq. (S142), considering identical directions but displaced beams, one finds <u>2</u> _<u>W</u>_ <u>p</u> _ηk_, _l_ = _πwkwl_ (S144) such that visibility is determined by the overlap area, i.e., for beams with less mutual overlap, the interference visibility is decreased as expected. Finally, if all parameters are identical, _ηk_, _l_ = 1 leads to perfect visibility. We can use this result to estimate the degree of alignment accuracy required for the observation of spectral interference. If we require a visibility of at least _ηk_, _l_ = 1/ _e_ = 37 %, this corresponds to a radial (transverse) wave-vector mismatch (equal to the total wave-vector mismatch at identical carrier frequencies) of at most ∆ _k_ <sup>2</sup> _x_ + ∆ _k_ <sup>2</sup> _y_ = <sup><u>2</u></sup> _<u>w</u>_ ∆ _kr_ = <sup><u>2</u></sup> (S145) _<u>w</u>_ in the limit of Eq. (S143), corresponding to an angular mismatch of _<u>λ</u>_ ∆ _α_ = <sup><u>∆</u></sup> <sup>_<u>kr</u>_</sup> = (S146) _<u>k</u>_ _πw_ for the common beam radius _w_ . At a propagation length _L_, the initial lateral displacement thus may be at maximum ∆ _r_ = ∆ _α L_ = <sup>_<u>λL</u>_</sup> _πw_ <sup>_<u>λL</u>_</sup> (S147) _πw_ <sup>.</sup> Inserting typical values of _λ_ = 800 nm, _L_ = 0.5 m and _w_ = 1 mm, one obtains ∆ _r_ = 0.1 mm, which explains why micrometer fine-adjustment screws are helpful to align an interferometer. If we consider the minimal possible beam radius _w_ min from Eq. (S186) in a tight focus, we obtain a comparatively large allowed angular difference of ∆ _α_ = 1/ _M_ <sup>2</sup> = 1 rad for a Gaussian beam from Eq. (S146), which makes sense intuitively because for a diffraction-limited spot, all partial wavelets with different beam directions add up constructively. In the literature, the deduction in the previous paragraph is formulated to indicate that there is no phase mismatch in the focus of a microscope. This is relevant for nonlinear spectroscopy that uses phase matching to distinguish signal contributions and is thus not applicable in a very tight focus. Instead, phase matching for nonlinear spectroscopy works rather in the opposite limit of plane waves. In the context of spectral interference visibility, this finding means that focusing the beams improves the visibility contrast for a given angular mismatch. Likewise, visibility can be improved, with indirect proportionality according to Eq. (S147), by closing an entrance aperture _a_ directly in front of the spectrometer (thus decreasing _w_ = _a_ ). This is because selecting a small region from the spatial interference pattern – ideally containing only one interference fringe within the aperture – results in maximum contrast. Concerning transverse displacement at the detector position, one obtains, for identical beam radii and identical directions, (S148) _ηk_, _l_ = exp _−_ <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>2)2</u></sup> 2 <sup><u>+ (</u></sup> _w_ <sup><u>2</u></sup> <sup>_<u>y</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>2)2</u></sup> 17 (a) 1.0 (b) 1.0 (c) 0.8 0.6 0.4 0.2 0.3 0.2 0.1 0.0 Aperture 1 2 3 4 5 6 Aperture radius [mm] 0.8 0.6 0.4 0.2 0.0 -10 -5 0 5 10 Lateral shift of second beam [mm] 5 10 -0.10 -0.05 0 0.05 0.10 Relative incidence angle of second beam [°] -0.10 -0.05 0 0.05 0.10 0.0 Fig. S4. Interference visibility factor _η_ 1,2 between two light fields. (a) Interference visibility resulting from the second beam being laterally shifted relative to the first beam where both beams have a radius of 1 mm (blue), 2 mm (red) or 4 mm (green). (b) Dependence of the interference visibility on the relative incidence angle of the second beam [colors correspond to the same beam radii as in (a)]. (c) Interference visibility of two beams incident on an aperture with varying radius. Here, both beams have a radius of 4 mm and one of the beams is laterally shifted by 1 mm from the center of the aperture at normal incidence while the other beam is laterally shifted by 4 mm relative to the first beam and has an incidence angle of 0.01 <sup>_◦_</sup> (fixed parameters). from Eq. (S144) and Eq. (S137). Requiring again _ηk_, _l_ = 1/ _e_, this leads to a maximally allowed beam displacement of <u>2</u> _w_, (S149) ∆ _r_ = ∆ _x_ <sup>2</sup> + ∆ _y_ <sup>2</sup> = _√_ and thus ∆ _r_ = 1.4 mm for the same exemplary beam radius of _w_ = 1 mm. Hence, for these parameters, lateral parallel displacement is somewhat more “forgiving” compared to angular mismatch arising from the same amount of lateral displacement (but then overlapping beams at the intersection point). Of course the situation changes for different values of the beam radius. In Fig. S4(a), we illustrate the dependence of the interference visibility _η_ 1,2 between two beams on various parameters. In the first example [Fig. S4(a)], one beam remains constant and the second beam is shifted laterally with otherwise identical parameters. We show three exemplary curves for the cases in which both beams have a radius of 1 mm (blue), 2 mm (red), and 4 mm (green). It is evident that the interference visibility can be maintained over a larger lateral shift range in case of larger beam radii. In Fig. S4(b), we show the influence of the wave-vector mismatch on the interference visibility by varying the propagation angle of the second beam relative to the first. Here, the angular mismatch has less impact on the interference visibility when both beams have smaller radii, which reflects the general behavior of the last exponential function in Eq. (S141). In Fig. S4(c), we display the interference visibility factor in the case where two beams with a radius of 4 mm are incident on an aperture while the size of the aperture is changed. One of the beams is laterally shifted by 1 mm relative to the center of the aperture at normal incidence whereas the other beam has an exemplary lateral shift of 4 mm relative to the first beam and is incident at an angle of 0.01 <sup>_◦_</sup> . The two beams hit the aperture at a distance of 1 m from their origin, resulting in the second beam being displaced in the plane of the iris by 4.8 mm relative to the center of the iris. This configuration leads to a beam overlap region that is displaced relative to the center of the iris, as indicated in the inset of Fig. S4(c). This example shows that closing the aperture (initially considered to have an infinite opening radius) leads to an increase of the interferometric contrast as those parts of the beams that do not overlap get truncated. However, when closing the aperture further, the overlapping parts get truncated as well, which leads to reduction in contrast such that there is an optimum aperture opening. Note that the slight kink at an aperture radius of 3 mm is due to the transition in how the beam cutting is calculated as discussed in connection with Fig. S3(b). 18 S3. LINEAR RESPONSE S3.1. Taylor expansion of dispersive phase We perform a Taylor expansion of the dispersive phase Φdisp( _ω_ ) = _kL_ (S150) = <sup>_<u>n</u>_</sup> <sup><u>(</u></sup> <sup>_<u>ω</u>_</sup> <sup><u>)</u></sup> <sup>_<u>ωL</u>_</sup>, (S151) _<u>c</u>_ analogous to Eq. (S16), and keep Taylor coefficients _bj_,disp = d <sup>_j_</sup> Φdisp( _ω_ ) d _ω_ <sup>_<u>j</u>_</sup> _ω_ = _ω_ 0 ����� (S152) up to _j_ = 3. The resulting parameters are available for many different optical materials [27]. Thus we find, for a material of thickness _L_, the change in the absolute phase _b_ 0,disp = <sup>_<u>ω</u>_</sup> <sup><u>0</u></sup> <sup>_<u>L</u>_</sup> _<u>v</u>_ ph (S153) (S154) with phase velocity _v_ ph = <sup>_<u>c</u>_</sup> _<u>n</u>_ 0 and the refractive index at center frequency _n_ 0 = _n_ ( _ω_ 0), (S155) the linear phase coefficient with group velocity and group index _n_ gr = <sup><u>d</u></sup> <sup>_<u>k</u>_</sup> <u>d</u> _ω_ _n_ gr = <sup><u>d</u></sup> <sup>_<u>k</u>_</sup> <u>d</u> _<u>L</u>_ _b_ 1,disp = _<u>v</u>_ gr _<u>c</u>_ _v_ gr = _<u>n</u>_ gr (S156) (S157) (S158) _ω_ = _ω_ 0 _k_ ���� defined via the frequency-dependent wave number _k_, the quadratic phase coefficient (or “groupdelay dispersion”) _b_ 2,disp = _L_ GVD (S159) with group-velocity dispersion and the third-order phase coefficient with third-order dispersion TOD = <sup><u>d3</u></sup> <sup>_<u>k</u>_</sup> d _ω_ <sup><u>3</u></sup> 19 GVD = <sup><u>d2</u></sup> <sup>_<u>k</u>_</sup> d _ω_ <sup><u>2</u></sup> _ω_ = _ω_ 0 ���� , (S160) _b_ 3,disp = _L_ TOD (S161) _ω_ = _ω_ 0 ���� . (S162) S3.2. First-order resonant response It is convenient to start with a response function in time domain, rather than frequency domain, to treat a resonantly excited material such as an ensemble of molecules in a solvent. The frequency-domain modulation function is then obtained by Fourier transformation via Eq. (S58) and appropriate further scaling, as described below. The linear temporal response function in a Franck–Condon model under the rotating-wave approximation (RWA) is given by [7] _<u>S</u>_ <u>HR</u> <sup>_j_</sup> _<u>j</u>_ <u>!</u> <sup>_e−ijω_</sup> <sup>vib</sup> <sup>_t_</sup> <sup>,</sup> (S163) RWA <sup>(1)</sup> <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_<u>i</u>_</sup> _<u>h</u>_ <u>¯</u> _S_ <sup>(1)</sup> <sup>_<u>i</u>_</sup> _<u>h</u>_ <u>¯</u> <sup>_µ_</sup> <sup>2</sup> eg <sup>2</sup> <sup>exp</sup> _−γt −_ <u>2</u> <sup><u>1</u></sup> <sup>∆</sup> <sup>_ω_</sup> <sup>2</sup> <sup>_t_</sup> <sup>2</sup> _e_ <sup>_−i_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>eg</sup> <sup>_−ω_</sup> <sup>0)</sup> <sup>_t_</sup> _e_ <sup>_−S_</sup> <sup>HR</sup> - _N_ vib _−_ 1 #### ∑ _j_ =0 where _θ_ ( _t_ ) is the Heaviside step function, _S_ HR the Huang–Rhys factor of a vibrational mode and _ω_ vib its frequency, _N_ vib the total number of vibrational states, _ω_ 0 the laser center frequency, _ω_ eg the frequency of the (near-)resonant electronic transition, _µ_ eg the transition dipole moment connecting ground ( _|_ g _⟩_ ) and excited ( _|_ e _⟩_ ) states, _γ_ the total dephasing rate, and ∆ _ω_ the inhomogeneous spectral broadening. We now have to introduce an appropriate scaling of _µ_ eg to convert between “physical” quantities and computationally stored arrays. This problem is similar to the scaling of electric fields that we solved by normalizing with respect to a given temporal power and, ultimately, a given pulse energy, via Eq. (S43). Thus we apply a similar strategy here. Furthermore, we seek a behavior of the modulation function such that longer paths through the material lead to stronger absorption fulfilling the Lambert–Beer law for the pulse energy, _W_ out = _W_ in _e_ <sup>_−αL_</sup>, (S164) with a given extinction coefficient _α_ of the material. As a first step, we evaluate Eq. (S163) on the same time grid as for regular laser pulses [Eq. (S35)] and set _µ_ <sup>2</sup> eg/¯ _h_ = 1. The Fourier transform of the result is the (unscaled) frequency-domain linear susceptibility, _S_ RWA <sup>(1)</sup> , (S165) <u>�</u> _µ_ <sup>2</sup> eg/¯ _h_ =1 <u>���</u> _χ_ unscaled( _ω_ ) = F RWA <sup>(1)</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> from which we get the (unscaled) complex index of refraction, _n_ ˜ unscaled( _ω_ ) = _χ_ unscaled( _ω_ ) + 1, (S166) symbol indicates a complex-valued square-root where it is understood that the square-root symbol indicates a complex-valued square-root operation. Now we obtain a suitable scaling factor, _<u>αc</u>_ _s_ = <u>2</u> _ωα_ <u>Im</u> _<u>n</u>_ <u>˜</u> unscaled( _ωα_ ) <sup>,</sup> (S167) where _α_ is the absorption coefficient of Eq. (S164) to which we want to scale the material response and _ωα_ is the angular frequency at which this absorption coefficient shall be reached (typically a peak of the resulting absorption spectrum that can be found by locating the frequency at which Im _n_ ˜ unscaled( _ω_ ) has a maximum). Using Eq. (S167) allows us to calculate a scaled susceptibility, _χ_ ( _ω_ ) = _sχ_ unscaled( _ω_ ), (S168) and a scaled complex index of refraction, _n_ ˜ ( _ω_ ) = and finally the desired modulation function, _χ_ ( _ω_ ) + 1, (S169) _M_ resonant( _ω_ ) = exp _i_ <sup>_<u>n</u>_</sup> <sup><u>˜</u></sup> <sup><u>(</u></sup> <sup>_<u>ω</u>_</sup> <sup><u>)</u></sup> <sup>_<u>ωL</u>_</sup>, (S170) _<u>c</u>_ - for a material of thickness _L_ . In Fig. S5, we show the modulation function for an exemplary absorbing molecular response featuring typical vibrational progression. The plot shows the real (red) and imaginary (blue) part of _M_ resonant( _ω_ ) for a molecule with an absorption coefficient of _α_ = 8 cm <sup>_−_</sup> <sup>1</sup> in a cuvette with _L_ = 1 mm path length. The laser center frequency is resonant with the electronic transition into the first excited state with _ω_ eg = 3.2 rad/fs, which is coupled to a vibrational mode _ω_ vib = 0.304 rad/fs with _S_ HR = 0.6 and _N_ vib = 5. The resonances are inhomogeneously broadened by ∆ _ω_ = 0.076 rad/fs whereas the dephasing rate was set to _γ_ = 0.01 fs <sup>_−_</sup> <sup>1</sup> . 20 1.0 0.8 0.6 0.4 0.2 0.0 -0.2 2.0 2.5 3.0 3.5 4.0 4.5 5.0 Frequency [rad/fs] Fig. S5. Linear resonant response. Exemplary modulation function _M_ resonant( _ω_ ) for an absorbing molecular response (red: real part, blue: imaginary part). S4. NONLINEAR RESPONSE S4.1. Derivation of electric field parameters of second-order response Here we derive expresssions for the electric field resulting from second-order response, starting from Eq. (14) in the main text, which we reproduce here for easier reference, _E_ <sup>2</sup> ( _t_ ) = _E_ <sup>˜</sup> 1 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_ei_</sup> <sup>(2</sup> <sup>k</sup> <sup>1</sup> <sup>_·_</sup> <sup>r</sup> <sup>_−_</sup> <sup>2</sup> <sup>_ω_</sup> <sup>1</sup> <sup>_t_</sup> <sup>) + c.c. +</sup> <sup>_E_</sup> <sup>˜</sup> 2 <sup>2(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_ei_</sup> <sup>(2</sup> <sup>k</sup> <sup>2</sup> <sup>_·_</sup> <sup>r</sup> <sup>_−_</sup> <sup>2</sup> <sup>_ω_</sup> <sup>2</sup> <sup>_t_</sup> <sup>) + c.c.</sup> + 2 _E_ <sup>˜</sup> 1( _t_ ) _E_ <sup>˜</sup> 2( _t_ ) _e_ <sup>_i_</sup> <sup>[(</sup> <sup>k</sup> <sup>1+</sup> <sup>k</sup> <sup>2)</sup> <sup>_·_</sup> <sup>r</sup> <sup>_−_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>1+</sup> <sup>_ω_</sup> <sup>2)</sup> <sup>_t_</sup> <sup>]</sup> + c.c. (S171) <sup>˜</sup> 2 <sup>_∗_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_ei_</sup> <sup>[(</sup> <sup>k</sup> <sup>1</sup> <sup>_−_</sup> <sup>k</sup> <sup>2)</sup> <sup>_·_</sup> <sup>r</sup> <sup>_−_</sup> <sup>(</sup> <sup>_ω_</sup> <sup>1</sup> <sup>_−ω_</sup> <sup>2)</sup> <sup>_t_</sup> <sup>] + c.c.</sup> + 2 _E_ <sup>˜</sup> 1( _t_ ) _E_ <sup>˜</sup> 2 <sup>_∗_</sup> �� _E_ ˜1( _t_ )��2 + 2 �� _E_ ˜2( _t_ )��2 . + 2 Equation (S171) contains multiplicative electric-field terms. Hence, we use Eq. (S48) and multiply the propagated fields, _mE_ <sup>+</sup> 1,prop <sup>+</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>,</sup> <sup>_z_</sup> <sup>,</sup> <sup>_t_</sup> <sup>)</sup> <sup>_E_</sup> 2,prop <sup>+</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>,</sup> <sup>_z_</sup> <sup>,</sup> <sup>_t_</sup> <sup>)</sup> <u>2</u> _π_ <u>�</u> _−_ <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>1)</u></sup> _w_ <sup>2 + (</sup> 1 <sup><u>2(</u></sup> <sup>_z_</sup> <sup>)</sup> <sup>_<u>y −</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>1)2</u></sup> (S172) _δt_ = _m_ <u>1</u> _<u>w</u>_ 1( _<u>z</u>_ ) <sup>exp</sup> _E_ ˜1, _t_ ( _j_ 1) _e_ <sup>_−iω_</sup> <sup>1(</sup> <sup>_t−T_</sup> <sup>1)</sup> _e_ <sup>_i_</sup> <sup>k</sup> <sup>1</sup> <sup>_·_</sup> <sup>r</sup> _w_ 1 <sup><u>2</u></sup> 1 <sup><u>2(</u></sup> <sup>_z_</sup> <sup>)</sup> 2 <sup><u>2(</u></sup> <sup>_z_</sup> <sup>)</sup> _<u>S</u>_ <u>1</u> _δt_ _−_ <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>2)</u></sup> _w_ <sup>2 + (</sup> 2 <sup><u>2(</u></sup> <sup>_z_</sup> <sup>)</sup> <sup>_<u>y −</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>2)2</u></sup> _<u>S</u>_ <u>2</u> _δt_ _δt_ _E_ ˜2, _t_ ( _j_ 2) _e_ <sup>_−iω_</sup> <sup>2(</sup> <sup>_t−T_</sup> <sup>2)</sup>, _×_ <u>2</u> _π_ <u>1</u> _<u>w</u>_ 2( _<u>z</u>_ ) <sup>exp</sup> _w_ 2 <sup><u>2</u></sup> _e_ <sup>_i_</sup> <sup>k</sup> <sup>2</sup> <sup>_·_</sup> <sup>r</sup> wherein the multiplication of the two Gaussian exponentials generates a new Gaussian _A_ p( _x_, _y_ ) according to Eq. (S123) with the product amplitude _A_ p in Eq. (S133) and _A_ 1 = _A_ 2 = 1. Because we consider the stigmatic approximation, we have _w_ 1, _x_ = _w_ 1, _y_ and _w_ 2, _x_ = _w_ 2, _y_ according to Eqs. (S123)–(S133). Further, _m_ = 1 for second-harmonic generation (SHG) but _m_ = 2 for sumfrequency generation (SFG) according to Eq. (S171) due to the two possible permutations _E_ 1 _E_ 2 and _E_ 2 _E_ 1 that both deliver an SFG field in the same direction. We want to write the result of Eq. (S172) as a new (but not yet correctly energy-scaled) SFG field, (S173) _E_ SFG,prop <sup>+</sup> <sup>(</sup> <sup>_x_</sup> <sup>,</sup> <sup>_y_</sup> <sup>,</sup> <sup>_z_</sup> <sup>,</sup> <sup>_t_</sup> <sup>) =</sup> <u>2</u> _π_ <u>1</u> _<u>w</u>_ SFG exp <u>�</u> _<u>−</u>_ <sup><u>(</u></sup> <sup>_<u>x −</u>_</sup> <sup>_<u>x</u>_</sup> <sup><u>SFG)</u></sup> _w_ <sup>2 + (</sup> SFG <sup><u>2</u></sup> <sup>_<u>y −</u>_</sup> <sup>_<u>y</u>_</sup> <sup><u>SFG)2</u></sup> _e_ <sup>_i_</sup> <sup>k</sup> <sup>SFG</sup> <sup>_·_</sup> <sup>r</sup> _w_ <sup><u>2</u></sup> SFG _×_ _<u>S</u>_ <u>SFG,unscaled</u> _δt_ _δt_ _E_ ˜SFG, _t_ ( _j_ SFG) _e_ <sup>_−iω_</sup> <sup>SFG(</sup> <sup>_t−T_</sup> <sup>SFG)</sup>, with appropriate parameters. Comparing the individual factors of Eq. (S172) and Eq. (S173), we 21 find: _x_ SFG = _x_ p = _y_ SFG = _y_ p = _<u>x</u>_ <u>1</u> _<u>w</u>_ <u>1</u> <sup><u>2(</u></sup> _<u>w</u>_ <u>1</u> <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> <sup>+</sup> _<u>w</u>_ <u>2</u> <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> <u>1</u> <u>1</u> _<u>w</u>_ 1 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> <sup>+</sup> _<u>w</u>_ 2 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> _<u>w</u>_ <u>1</u> <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> <sup>+</sup> _<u>w</u>_ <u>2</u> <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> <u>1</u> <u>1</u> _<u>w</u>_ 1 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> <sup>+</sup> _<u>w</u>_ 2 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> _<u>x</u>_ <u>1</u> _<u>x</u>_ <u>2</u> <u>1</u> <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> <sup>+</sup> _<u>w</u>_ <u>2</u> <sup><u>2(</u></sup> <u>1</u> <u>1</u> 1 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> <sup>+</sup> _<u>w</u>_ 2 <sup><u>2(</u></sup> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>2</u> <u>1</u> <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> <sup>+</sup> _<u>w</u>_ <u>2</u> <sup><u>2(</u></sup> <u>1</u> <u>1</u> 1 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> <sup>+</sup> _<u>w</u>_ 2 <sup><u>2(</u></sup> _<u>y</u>_ <u>1</u> _<u>w</u>_ <u>1</u> <sup><u>2(</u></sup> <u>2</u> <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> from Eq. (S124), (S174) <u>1</u> 2 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> <u>2</u> <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> from Eq. (S124), (S175) <u>1</u> 2 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> <u>1</u> _w_ SFG = _w_ p = <u>1</u> _<u>w</u>_ 1 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> ~~�~~ _ω_ SFG = _ω_ 1 + _ω_ 2, from Eq. (S125), (S176) <u>1</u> 2 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> <u>1</u> <u>1</u> 1 <sup><u>2(</u></sup> <sup>_<u>z</u>_</sup> <sup>)</sup> <sup>+</sup> _<u>w</u>_ 2 <sup><u>2(</u></sup> _ω_ SFG = _ω_ 1 + _ω_ 2, (S177) k SFG = k 1 + k 2, (S178) _T_ SFG = <sup>_<u>ω</u>_</sup> <sup><u>1</u></sup> <sup>_<u>T</u>_</sup> <sup><u>1 +</u></sup> <sup>_<u>ω</u>_</sup> <sup><u>2</u></sup> <sup>_<u>T</u>_</sup> <sup><u>2</u></sup> _ω_ 1 + _ω_ 2 , (S179) _E_ ˜SFG, _t_ ( _j_ SFG) = _E_ ˜1, _t_ ( _j_ 1) ˜ _E_ 2, _t_ ( _j_ 2), (S180) <u>2</u> <u>1</u> _<u>S</u>_ <u>SFG,unscaled</u> <u>1</u> _<u>√S</u>_ <u>1</u> _<u>S</u>_ <u>2</u> = _m_ <sup><u>2</u></sup> . (S181) - _π_ _<u>w</u>_ SFG - _δt_ _π_ _<u>w</u>_ 1( _<u>z</u>_ ) _<u>w</u>_ 2( _<u>z</u>_ ) <sup>_A_</sup> <sup>p</sup> _δt_ <u>1</u> _<u>w</u>_ SFG _<u>S</u>_ <u>SFG,unscaled</u> _δt_ <u>SFG,unscaled</u> = _m_ <sup><u>2</u></sup> _δt_ _π_ _<u>√S</u>_ <u>1</u> _<u>S</u>_ <u>2</u> _π_ <u>1</u> _<u>w</u>_ 1( _<u>z</u>_ ) _<u>w</u>_ 2( _<u>z</u>_ ) <sup>_A_</sup> <sup>p</sup> . (S181) _δt_ Note that the beam radius of the SFG beam is smaller than those of the fundamental beams, as expected due to the field multiplication. If both incident beams have the same radius, they are larger than the SFG radius by a factor of _√_ <u>2 according to Eq. (S176).</u> Solving Eq. (S181) for _√_ are larger than the SFG radius by a factor of _√_ <u>2 according to Eq. (S176).</u> Solving Eq. (S181) for _S_ SFG,unscaled, using the explicit results for _w_ SFG from Eq. (S176) and for _A_ p from Eq. (S133) (with _A_ 1 = _A_ 2 = 1) and simplifying leads to 1 <sup><u>2(</u></sup> <sup>_z_</sup> <sup>) +</sup> <sup>_w_</sup> 2 <sup><u>2(</u></sup> <sup>_z_</sup> <sup>)</sup> _S_ SFG,unscaled = <sup><u>2</u></sup> <sup>_<u>m</u>_</sup> <sup>2</sup> _π_ <u>1</u> _w_ 1 <sup><u>2(</u></sup> <sup>_z_</sup> <sup>) +</sup> <u>1</u> _<u>S</u>_ <u>1</u> _<u>S</u>_ <u>2</u> 1 <sup><u>2(</u></sup> <sup>_z_</sup> <sup>) +</sup> <sup>_w_</sup> 2 <sup><u>2(</u></sup> <sup>_z_</sup> <sup>)</sup> _δt_ exp _δt_ _−_ 2 <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> _w_ <sup>_<u>x</u>_</sup> 1 <sup><u>2(2</u></sup> <sup>_z_</sup> <sup><u>)2) + + (</u></sup> <sup>_wy_</sup> 2 <sup><u>21(</u></sup> <sup>_<u>−z</u>_</sup> <sup>)</sup> <sup>_<u>y</u>_</sup> <sup><u>2)2</u></sup> _w_ 1 <sup><u>2</u></sup> . (S182) Concerning the multiplication of envelopes in Eq. (S180), we have to use the appropriate array indices. Note that we have to add the respective propagation times _T_ 1 and _T_ 2 to Eq. (S35) before extracting the relevant indices _j_ 1 and _j_ 2 of the array elements to be multiplied in Eq. (S180). In the multiplication, it will thus happen that a theoretically requested array index is out of range of the available indices _j_ = _{_ 0, 1, . . ., _N_ s _−_ 1 _}_, i.e., the time shift between the two pulses is such that for a time coordinate _t_ ( _j_ 1) at index _j_ 1 of the first field no “matching” index _j_ 2 is found because the particular _t_ ( _j_ 1) is not contained in the list for _t_ ( _j_ 2) of the second field. Then we assume the multiplier field to be zero, and thus also the SHG field will vanish at this time coordinate. We illustrate how _S_ SFG,unscaled varies when displacing one of the fundamental beams relative to the other in Fig. S6. Each of the fundamental beams had a pulse energy of 1 mJ and the beam radius of one beam was set to 1 mm (blue), 2 mm (red), and 4 mm (green) while that of the other beam was kept at 1 mm. It is evident that the scaling factor generally shows the largest change with increasing overlap when both beams have small radii. In other words, the SFG intensity at maximum overlap increases with increasing energy density of the fundamental beams. We still have to find an appropriate absolute scaling factor for the SFG field. In principle, proper perturbation theory of light–matter interaction delivers already the correct scaling factor of the absolute signal strength in terms of an appropriate response function. This is, however, not applicable in our situation because we chose a simplified treatment for reasons of computational speed, rather than dealing with a more realistic but much more complicated full spatial–temporal model [28–32]. In particular, the response-function treatment provides the field at one particular spatial position only, and one then has to solve the wave equation with that nonlinear field as a source term upon propagation through the full length of the material. This is beyond our scope. Thus, we do not take into account propagation effects and want the final signal to scale simply with the square of the incident field. Then we have to ensure, however, that the pulse energy in the second-harmonic field does not exceed the sum of pulse energies in the initial fields because then energy conservation could not be fulfilled. In practice, we will require only a (small) fraction of the power to be converted in order to prevent saturation effects. Here we derive a scaling factor for second-order generated fields ensuring that energy conservation can always be fulfilled. For this purpose we might envision a simple scaling procedure in which we calculate, in a first step, _E_ s( _t_ ) with an arbitrary scaling, then obtain the pulse energy via Eq. (S40), and finally simply scale down _E_ s( _t_ ) such that the pulse energy is only a user-provided 22 4 3 2 1 0 <u>× 10</u> <sup>5</sup> -6 -4 -2 0 2 4 6 Lateral shift of second beam [mm] Fig. S6. Beam energy scaling factor for sum-frequency generation. The plots show the dependence of the beam energy scaling factor for sum-frequency generation, _S_ SFG,unscaled, on the lateral shift between two fundamental beams. The beam radius of the first beam was varied (blue: 1 mm, red: 2 mm, green: 4 mm), whereas that of the second beam was held constant (1 mm). fraction of the sum of input pulse energies. This would omit, however, the desired scaling with spatial and temporal pulse overlap that is an integral part of the present simulation model. For example, a second-harmonic signal increases with tighter focusing. Thus, we need to define the proportionality factor between fundamental and second-order fields as an appropriate “global” constant that is not adjusted. If we still want to ensure that energy conservation and a maximal conversion efficiency are fulfilled for all possible situations, we have to calculate the maximum possible second-order field under optimal spatial–temporal conditions and use this result to scale all signals. Thus we ensure that in all other situations, the actual field will be smaller. Maximum nonlinear signal generation occurs with optimum spatial– temporal overlap (that we consider by calculating SHG of a single beam instead of SFG between two beams) at the highest possible peak intensity. The temporal intensity scales proportional to pulse energy according to Eq. (S43) and inversely proportional to the cross-section area according to Eq. (S44). Furthermore, it can be shown analytically that the highest possible SHG pulse energy is reached, for a given fundamental spectrum _A_ ( _ω_ ), if the spectral phase Φ( _ω_ ) has zero curvature [33], i.e., a non-dispersed or “bandwidth-limited” pulse. Thus, we derive the scaling factor for the situation that the incident pulse has the “highest possible” pulse energy _W_ max, “smallest possible” beam radius _w_ min, and “shortest possible” pulse duration _τ_ p,min. (The latter is strictly true for any given general spectral distribution _A_ ( _ω_ ) only if pulse duration is defined as a second-order moment, rather than as an intensity FWHM, but if we observe the condition to analyze a flat spectral phase, the result is correct in any event [33].) Let us find _W_ max first. Of course, laser pulses do not have an absolute upper theoretical bound of their energy (though a practical one). However, we need to analyze only the specific pulses generated with the chosen laser settings. Let us ignore the possibility for amplification of laser pulses once they are emitted by the laser. Amplification would change the subsequent analysis. In the absence of amplification, however, the pulse energy can only decrease due to absorption in samples, splitting of beams, imperfect optics, etc., such that we simply have _W_ max = _W_ 0 according to Eq. (S42), where _W_ 0 is the pulse energy of the laser-emitted pulse, and thus _S_ max = _S_ 0 = _W_ 0 in terms of the pulse-energy scaling factor (noting that the initial norm fulfills _E_ 0 = 1). The condition of a flat spectral phase for maximum SHG efficiency is reached, in our model calculation, by assuming the electric field profile of the pulse initially emitted by the laser (without dispersion) and quantified in Eq. (S47) in the case of a Gaussian. Finally, the smallest beam radius is reached at the beam waist, _w_ min = _w_ 0, for any given Gaussian beam. Thus we have to find the minimum possible beam waist that is fundamentally 23 limited by diffraction. The half-divergence angle of a Gaussian beam, _β_, is defined via tan _β_ = <sup>_<u>w</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> <sup><u>(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> (S183) _<u>z</u>_ _−−−→_ _z≫z_ R _<u>w</u>_ <u>0</u> _<u>z</u>_ R (S184) = <sup>_<u>λM</u>_</sup> <sup>2</sup> _πw_ 0 , (S185) using the beam-radius evolution of Eq. (S233) for _w_ ( _z_ ) and the definition of Eq. (S32) for the Rayleigh range _z_ R. Let us assume we cannot focus tighter than with a half-divergence angle of _β_ max = 45 <sup>_◦_</sup> so that tan _β_ max = 1. Then we obtain _w_ min = <sup>_<u>λM</u>_</sup> <sup>2</sup> (S186) _π_ for wavelength _λ_ and beam-quality factor _M_ <sup>2</sup> . Now we can calculate the maximum SHG pulse energy _W_ SHG,max under these optimal conditions and use it for appropriate scaling of SFG or SHG under any other condition. For this purpose, we first use Eq. (S182) to determine _S_ SHG,max = _S_ SFG,unscaled (S187) while setting _S_ 1 = _S_ 2 = _S_ max = _S_ 0 = _W_ 0, (S188) _w_ 1( _z_ ) = _w_ 2( _z_ ) = _w_ min = <sup>_<u>λM</u>_</sup> <sup>2</sup>, (S189) _π_ _x_ 1 = _x_ 2, (S190) _y_ 1 = _y_ 2 (S191) with _m_ = 1 in Eq. (S182) from the main text (signifying second-harmonic generation) because we use the full power _W_ 0 rather than splitting it first into two beams of half the energy each that are then overlapped again (which would give the identical result due to the squared response), so that _S_ SHG,max = _λ_ <sup><u>2</u></sup> _<u>πMW</u>_ <sup><u>4</u></sup> <u>0</u> <sup>2</sup> _δ_ _λ_ <sup><u>2</u></sup> _M_ <sup><u>4</u></sup> <u>0</u> _δt_ <sup>.</sup> (S192) Then, we obtain the norm _E_ SHG,max, as defined in Eq. (S41), of the SHG envelope as defined in Eq. (S180), using the _E_ -normalized laser output pulse from Eq. (S47) for both envelopes _E_ ˜1, _t_ ( _j_ 1) = _E_ ˜2, _t_ ( _j_ 2). From both quantities, the maximum (unscaled) SHG pulse energy is _W_ SHG,max = _S_ SHG,max _E_ SHG,max <sup>2</sup> (S193) using Eq. (S40). If we allow only a fraction _η_ 2 of the fundamental pulse energy _W_ 0 to be converted to SHG under optimum conditions (leading to a maximum SHG pulse energy _W_ SHG,max), the final result for the pulse-energy scaling factor is _S_ SFG = _η_ 2 _<u>W</u>_ <u>0</u> _<u>W</u>_ SHG,max _S_ SFG,unscaled. (S194) We may set 0 _<_ _η_ 2 _≤_ 1 at will to guarantee energy conservation in conjunction with an appropriate reduction of the fundamental energies as explained in Section S4.3. We may select, e.g., _η_ 2 = 10 % to stay away from the saturation regime. This evaluation has to be done only once for a given laser (unless the laser output parameters are changed). The intermediate multiplication result _η_ 2 _W_ 0/ _W_ SHG,max can then simply be stored as a number and used as a multiplier on _S_ SHG,unscaled. 24 S4.2. Nonlinear signal beam curvature We now discuss the beam radius and radius of curvature of a nonlinear signal beam that arises from the corresponding properties of the incident fields. The incident fields may be mutually different in general, e.g., in pump–probe experiments with different beam radii of pump and probe beams. We thus need to address where the focus of the resulting beam will be located. Here we derive beam parameters of a signal beam arising from nonlinear response, i.e., in particular its beam radius and focus position, that can be used to obtain the complex beam parameter _q_ . We follow, for the first steps, the treatment by Boyd [5], where it is shown that the Gaussian beam from Eq. (S31) can alternatively be written as 0 <sup><u>2(1 +</u></sup> <sup>_iζ_</sup> <sup>)</sup> _<u>A</u>_ _A_ ( _r_, _z_ ) = <u>1 +</u> _<u>iζ</u>_ <sup>exp</sup> with the scaled longitudinal position parameter _<u>r</u>_ <sup>2</sup> _−_ _w_ 0 <sup><u>2(1</u></sup> _w_ 0 <sup><u>2</u></sup> (S195) _ζ_ = <sup>_<u>z</u>_</sup> _<u>z</u>_ R , (S196) at position _z_, measured with respect to the longitudinal position of the beam waist, the waist radius _w_ 0, the Rayleigh length _z_ R from Eq. (S32), and an amplitude _A_ that we have set equal to 1 in Eq. (S31) because we considered the amplitude as part of the time- or frequency-dependent factors. Harmonic generation from a single incident beam is provided as a textbook example [5], but we here deviate from that treatment and instead consider the generalized case of ( _n_ + 1)wave mixing at nonlinear order _n_, arising from potentially distinct input beams. This can be described in the slowly varying amplitude approximation and in the paraxial approximation via the “paraxial wave equation” _<u>∂A</u>_ <u>s(</u> _<u>r</u>_ <u>,</u> _<u>z</u>_ <u>)</u> 2 _ik_ s <sup>2</sup> T <sup>_A_</sup> <sup>s(</sup> <sup>_r_</sup> <sup>,</sup> <sup>_z_</sup> <sup>) =</sup> <sup>_−_</sup> _ε_ <sup>_<u>ω</u>_</sup> 0 _c_ <sup><u>s22</u></sup> <u>(</u> _<u>r</u>_ <u>,</u> _<u>z</u>_ <u>)</u> _∂z_ + _∇_ <sup>2</sup> T (S197) _ε_ <sup>_<u>ω</u>_</sup> 0 _c_ <sup><u>s22</u></sup> <sup>_P_</sup> <sup>s(</sup> <sup>_r_</sup> <sup>,</sup> <sup>_z_</sup> <sup>)</sup> <sup>_ei_</sup> <sup>∆</sup> <sup>_kz_</sup> with the transverse Laplace operator _∇_ T <sup>2</sup> <sup>that is part of the full Laplace operator</sup> T <sup>+</sup> <sup>_<u>∂</u>_</sup> <sup>2</sup> <sup>2</sup> _∂z_ T _∇_ <sup>2</sup> = _∇_ <sup>2</sup> <sup>_<u>∂</u>_</sup> <sup>2</sup> (S198) _∂z_ <sup><u>2</u></sup> <sup>,</sup> while we ignore contributions _∂_ <sup>2</sup> _A_ / _∂z_ <sup>2</sup> in Eq. (S197). The nonlinear signal polarization _P_ s( _r_, _z_ ) = _ε_ 0 _χ_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> ( _ω_ s, _ω_ 1, . . ., _ωn_ ) _n_ #### ∏ _i_ =1 _Ai_ <sup>(</sup> <sup>_∗_</sup> <sup>)</sup> ( _r_, _z_ ) (S199) is given in terms of the _n_ th-order frequency-dependent nonlinear susceptibility _χ_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup>, evaluated at the signal frequency _ω_ s = _n_ #### ∑ _i_ =1 _αiωi_ (S200) for incident center frequencies _ωi_, phase-matching coefficients _αi_ _∈{−_ 1, +1 _}_, and amplitudes _Ai_ <sup>(</sup> <sup>_∗_</sup> <sup>)</sup> ( _r_, _z_ ) = _Ai_ ( _r_, _z_ ), if _αi_ = +1, - _Ai_ <sup>_∗_</sup> <sup>(</sup> <sup>_r_</sup> <sup>,</sup> <sup>_z_</sup> <sup>),</sup> if _αi_ = _−_ 1, if _αi_ = +1, (S201) _i_ <sup>_∗_</sup> <sup>(</sup> <sup>_r_</sup> <sup>,</sup> <sup>_z_</sup> <sup>),</sup> if _αi_ = _−_ 1, such that complex conjugation (indicated by a star) is applied for those beams entering with a minus sign in the calculation of the phase mismatch _n_ #### ∆ k = ∑ - _i_ =1 _αi_ k _i_ _−_ k s (S202) that in turn results from the incident wave vectors k _i_ and the signal wave vector k s. In the case of perfect phase matching, ∆ k = 0, one obtains, for the example of sum-frequency generation, k s = k 1 + k 2. 25 Gaussian beams, written as Eq. (S195), solve the left-hand side of the paraxial wave equation in Eq. (S197) which can be shown by using the cylindrical coordinate representation for _∇_ T <sup>2</sup> <sup>, and</sup> thus a good ansatz for the signal beam is 0,s <sup><u>2</u></sup> <sup>(1 +</sup> <sup>_iζ_</sup> <sup>s)</sup> _A_ s( _r_, _z_ ) = <sup>_<u>A</u>_</sup> <sup><u>s(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> exp <u>1 +</u> _<u>iζ</u>_ s _A_ s( _r_, _z_ ) = <sup>_<u>A</u>_</sup> <sup><u>s(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> _<u>r</u>_ <sup>2</sup> _−_ _w_ 0,s <sup><u>2</u></sup> <sup>(1</sup> _w_ <sup><u>2</u></sup> (S203) with the _z_ -dependent amplitude function _A_ s( _z_ ) to allow taking into account the polarization source term on the right-hand side of the wave equation. Using Eq. (S203) in Eq. (S197), one arrives at an ordinary differential equation for d _A_ s( _z_ )/d _z_ that can be integrated directly to give the solution <sup>_<u>iω</u>_</sup> <sup><u>s</u></sup> <u>2</u> _<u>c</u>_ <sup>_χ_</sup> <sup>(</sup> <sup>_n_</sup> <sup>)(</sup> <sup>_ω_</sup> <sup>s,</sup> <sup>_ω_</sup> <sup>1, . . .,</sup> <sup>_ωn_</sup> <sup>)</sup> <u>�</u> _z−z_ + _LL_ /2/2 _i_ <sup>_<u>′</u>_</sup> <sup>)</sup> <sup>_ei_</sup> <sup>∆</sup> <sup>_kz′_</sup> _A_ s( _z_ ) = <sup>_<u>iω</u>_</sup> <sup><u>s</u></sup> <u>2</u> _<u>c</u>_ (S204) <u>1 +</u> _<u>iζ</u>_ <u>s</u> <sup>_<u>′</u>_</sup> ∏ _i_ <sup>_~~n~~_</sup> =1 <sup>(1 +</sup> <sup>_<u>i</u>_</sup> _i_ <sup>_~~n~~_</sup> =1 <sup>(1 +</sup> <sup>_<u>iαiζ</u>_</sup> _i_ <sup>_<u>′</u>_</sup> <u>1</u> _n_ #### ∑ 0,s <sup><u>2</u></sup> <sup>(1 +</sup> <sup>_iζ_</sup> <sup>s)</sup> <sup>+</sup> _i_ =1 _z−L_ /2 <u>1</u> _w_ 0, <sup><u>2</u></sup> _i_ <sup>(1 +</sup> <sup>_iαiζi_</sup> <sup>)</sup> �� <u>1</u> _−_ _w_ 0,s <sup><u>2</u></sup> <sup>(1</sup> _×_ exp _−r_ <sup>2</sup> d _z_ <sup>_′_</sup>, where we are interested in the solution at position _z_ that we choose to be co-located with a sample of length _L_ because we want to obtain the correct transformation of beam parameters at the sample. We consider the limit of thin samples such that (S205) - _z−z_ + _LL_ /2/2 <sup>_f_</sup> <sup>(</sup> <sup>_z′_</sup> <sup>) d</sup> <sup>_z′_</sup> <sup>_≈_</sup> <sup>_f_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_L_</sup> <sup>.</sup> Since we want the solution to be represented as a Gaussian beam and the ansatz _A_ s( _z_ ) did not depend on _r_, the square-bracketed term in the _r_ -containing exponent in the second line of Eq. (S204) has to be equal to 0, requiring <u>1</u> _n_ #### ∑ _w_ 0,s <sup><u>2</u></sup> <sup>(1 +</sup> <sup>_iζ_</sup> <sup>s)</sup> <sup>=</sup> _i_ =1 Making denominators real leads to <u>1</u> (S206) _w_ 0, <sup><u>2</u></sup> _i_ <sup>(1 +</sup> <sup>_iαiζi_</sup> <sup>)</sup> <sup>.</sup> <u>1</u> _w_ 0, <sup><u>2</u></sup> _i_ <sup>(1 +</sup> #### 1 − iζ s ∑ n _w_ 0,s <sup><u>2</u></sup> <sup>(1 +</sup> <sup>_ζ_</sup> <sup>s2)</sup> <sup>=</sup> _i_ =1 <u>1</u> _<u>−</u>_ _<u>iαiζi</u>_ (S207) _w_ 0, <sup><u>2</u></sup> _i_ <sup>(1 +</sup> <sup>_ζ_</sup> _i_ <sup><u>2)</u></sup> <sup>.</sup> Comparing separately the real and imaginary parts leads to the conditions <u>1</u> _n_ #### ∑ _w_ 0,s <sup><u>2</u></sup> <sup>(1 +</sup> <sup>_ζ_</sup> <sup>s2)</sup> <sup>=</sup> _i_ =1 _n_ #### ζ s ∑ _w_ 0,s <sup><u>2</u></sup> <sup>(1 +</sup> <sup>_ζ_</sup> <sup>s2)</sup> <sup>=</sup> _i_ =1 _<u>αiζi</u>_ (S209) _w_ 0, <sup><u>2</u></sup> _i_ <sup>(1 +</sup> <sup>_ζ_</sup> _i_ <sup><u>2)</u></sup> <sup>.</sup> <u>1</u> (S208) _w_ 0, <sup><u>2</u></sup> _i_ <sup>(1 +</sup> <sup>_ζ_</sup> _i_ <sup><u>2)</u></sup> <sup>,</sup> We note that 1 + _ζ_ <sup>2</sup>, (S210) _w_ ( _z_ ) = _w_ 0 which is further discussed in Section S5.1, so that the condition in Eq. (S208) for the real part can be written as (S211) _i_ <sup><u>2(</u></sup> <sup>_z_</sup> <sup>)</sup> <sup>,</sup> <u>1</u> _w_ s <sup><u>2</u></sup> ( _z_ ) <sup>=</sup> _n_ #### ∑ _i_ =1 <u>1</u> _wi_ <sup><u>2(</u></sup> which is the same result for the signal beam radius that we have already obtained by considering the purely two-dimensional Gaussian beam cross-section overlap in Section S2.1, Eq. (S125), where we had ignored beam curvature. We use this result to replace the denominator on the left-hand side of Eq. (S209), and Eq. (S210) to replace the denominator on the right-hand side, yielding _<u>αiζi</u>_ (S212) _wi_ <sup><u>2(</u></sup> <sup>_z_</sup> <sup>)</sup> <sup>.</sup> _ζ_ s = _w_ s <sup>2(</sup> <sup>_z_</sup> <sup>)</sup> _n_ #### ∑ _i_ =1 26 (a) 1.5 (b) 1.0 0.5 0.0 -0.5 -1.0 -1.5 -2 -1 0 1 2 Lateral shift of second beam [mm] 0 1 2 3 4 5 Waist of second beam [mm] 1.2 1.0 0.8 0.6 0.4 0.2 0.0 Fig. S7. Nonlinear signal beam. (a) Lateral position of the SHG beam waist emerging from two collinear fundamental beams with the same radius while the second beam is laterally shifted. The lateral position of the SHG beam is given relative to that of the first fundamental beam. (b) Beam waist of the SHG beam depending on the beam waist of the second fundamental beam. The waist of the first fundamental beam is set to 1 mm. In the evaluation, we require the parameters _ζi_ of the incident beams. From Eq. (S32), Eq. (S33), and Eq. (S34) we find that _z_ = Re _q_ (with respect to the beam-waist position) and _z_ R = _−_ Im _q_ . Using the definition for _ζ_ in Eq. (S196), we obtain (S213) _ζ_ = _−_ <u>Im</u> <sup><u>Re</u></sup> <sup>_<u>q</u>_</sup> _<u>q</u>_ that can be inserted into the sum of Eq. (S212) for given incident beam parameters _qi_ . Lastly, the real-valued curvature radius _R_ ( _z_ ) at position _z_, i.e., at the point of the thin sample, is given by 1 + <sup><u>1</u></sup> _ζ_ <sup><u>2</u></sup> <u>�</u> (S214) <u>�</u> (S215) <u>�</u> <u>+ 1</u> (S216) _ζ_ _R_ ( _z_ ) = _z_ <u>0</u> = <sup>_<u>πw</u>_</sup> <sup>2</sup> <u>0</u> <sup>_<u>w</u>_</sup> <sup>2</sup> _λ_ _ζ_ + <sup><u>1</u></sup> _ζ_ <u>�</u> _ζ_ _<u>πw</u>_ <sup>2</sup> <u>(</u> _<u>z</u>_ <u>)</u> = _λ_ (1 + _ζ_ <sup><u>2</u></sup> ) _<u>ζ</u>_ <sup>2</sup> <u>+ 1</u> = <sup>_<u>πw</u>_</sup> <sup>2(</sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> . (S217) _λζ_ Thus, the desired nonlinear signal Gaussian beam parameters are given by Eq. (S211), Eq. (S212), and Eq. (S217), from which the complex radius of curvature can be constructed. For one particular limiting case, consider that the sample or nonlinear crystal is placed near the position of the beam waist of all incident beams, i.e., _ζi_ _≪_ 1. This represents the “plane-wave” situation (for which _Ri_ _→_ ∞) that can be realized either by placing the sample at the focal point or by employing collimated beams. Then, _ζ_ s _≪_ 1, and the signal focus is located at the same longitudinal position as the incident beams are. In other words, the signal beam is created at its waist in the sample. In Fig. S7(a), we illustrate different focusing conditions of two incoming beams by plotting the lateral SHG beam waist position while varying the lateral displacement between the incoming beams. We consider two collinear beams under perfect phase matching. In case of perfect cofocusing, the waist position of the SHG beam is the same as that of the incident beams. When one of the incident beams is laterally displaced, the SHG beam waist position also shifts, but by half the value of the displacement. For SHG, the Rayleigh range _z_ R is the <u>same</u> as that of the fundamental [5]. Thus, the half-divergence angle of SHG is smaller by 1/ _√_ <u>2 with respect to</u> _√_ the fundamental [5]. Thus, the half-divergence angle of SHG is smaller by 1/ _√_ <u>2 with respect to</u> the fundamental according to Eq. (S184), with the beam waist smaller by the same factor. If the two beams are co-focused on the sample while the first beam has a fixed radius and the radius of the other beam is increased, the radius of the SHG beam approaches that of the first beam asymptotically [Fig. S7(b)]. 27 Consider for further illustration, as another exemplary special case, pump–probe transient absorption spectroscopy, even though its response-function treatment is beyond the scope of the present work. Nevertheless, this case is instructive for illuminating the generality of the derived beam-parameter results. In that case, the phase-matching direction of the signal is given by k s = _−_ k pu + k pu + k pr (S218) for incident pump ( k pu) and probe ( k pr) wave vectors. The wave vector k pu appears twice in this equation, once with a positive sign and once with a negative sign, because there are two (phase-conjugate) interactions with the pump pulse. Thus, the phase-matching coefficients are _{α_ 1, _α_ 2, _α_ 3 _}_ = _{−_ 1, +1, +1 _}_ and the signal propagates into the direction of the probe beam (leading to constructive or destructive interference that is then interpreted in measurements as absorbance changes). From Eq. (S211), we obtain <u>1</u> <u>2</u> <u>1</u> _w_ s <sup><u>2</u></sup> ( _z_ ) <sup>=</sup> _w_ pu <sup><u>2</u></sup> ( _z_ ) <sup>+</sup> _w_ pr <sup><u>2</u></sup> ( _z_ ) <sup>.</sup> (S219) It is often customary to choose the pump-beam radius (much) larger than the probe-beam radius. Under this condition, we find from Eq. (S219) that _w_ s _≈_ _w_ pr and from Eq. (S212) that _ζ_ s _≈_ _ζ_ pr, and thus the signal beam has the exact same characteristics as the probe beam. This is the reason for choosing a larger pump-beam diameter because then the interference leads to a spatially uniform transient absorption signature across the full probe-beam profile. Otherwise, the signal beam might deviate from the probe beam and one loses contrast. S4.3. Reduction of fundamental pulse energies upon nonlinear signal generation Let us consider sum-frequency generation (SFG) as in Eq. (S171). Each SFG photon has an energy of ¯ _hω_ SFG, and the fundamental beams _E_ <sup>˜</sup> 1( _t_ ) and _E_ <sup>˜</sup> 2( _t_ ) carry photons of energy ¯ _hω_ 1 and ¯ _hω_ 2, respectively. The incident fundamental pulse energies, _W_ 1,in and _W_ 2,in, and the generated SFG pulse energy, _W_ SFG, can be obtained from the fields via Eq. (S40). Thus, a number of _W_ SFG/( _h_ ¯ _ω_ SFG) photons have to be generated. This requires the same number of photons contributed from each of the incident beams, reducing their energies accordingly by _<u>h</u>_ <u>¯</u> _<u>ω</u>_ <u>1</u> _<u>h</u>_ <u>¯</u> _<u>ω</u>_ <u>2</u> ∆ _W_ 1 = _W_ SFG, ∆ _W_ 2 = _<u>h</u>_ <u>¯</u> _ω_ SFG _<u>h</u>_ <u>¯</u> _ω_ SFG _W_ SFG. (S220) Analogously, one obtains the beam reductions for second-harmonic generation by setting _W_ 2 = _W_ 1, i.e., the fundamental beam is reduced by twice the value (in addition to the reduction from potential SFG contributions). Furthermore, it is possible that more than two beams interact in any given GOE with second-order response. In that case, we calculate the reductions for all beam-pair combinations (SFG and SHG) and then, in the end, obtain the reduced fundamental output pulse energies by #### W 1,out = W 1,in − ∑ k _k_ _k_ #### ∆ W 1, k, W 2,out = W 2,in − ∑ k ∆ _W_ 2, _k_, (S221) where the index _k_ runs over all pairwise combined processes. Note that we reduce the fundamental pulse energies only after having generated all second-order beams with the full incident energy. This ensures that no particular pair of beams is “prioritized” and has a higher pulse energy than any of the others when calculating the SFG and SHG beams successively. Of course the beamenergy reductions occur in addition to those from beam clipping as discussed in Section S1.2, and we do not modify _W_ directly but rather the pulse-energy scaling factor _S_ from Eq. (S40). Working with photon numbers and center frequencies only is an approximation. In principle, one could analyze the complete spectral intensity shape for the correct result [15], but since we require only the adjustment of absolute energies here, such small variations are irrelevant. For the spectral–temporal shapes of the signal and transmitted pulses themselves we take into account the explicit field profiles. S5. GRAPHICAL LASER BEAM REPRESENTATION S5.1. Gaussian beam scaling Here we show that any Gaussian beam can be derived from the general shape of a “reference beam” by suitable scaling. Let us assume that we start with a suitable representation of the 28 reference beam that is given by the beam radius, 1 , (S222) ~~�~~ 2 _w_ ˜ ( _z_ ) = _w_ ˜ 0 1 + _<u>z</u>_ <u>˜R</u> ~~�~~ _<u>z</u>_ as a function of the distance _z_ from the beam waist with a “Rayleigh length” [compare Eq. (S32)] _z_ ˜R = <sup>_<u>πw</u>_</sup> <sup><u>˜</u></sup> <u>0</u> <sup>2</sup> (S223) _λM_ <sup><u>2</u></sup> <sup>,</sup> for propagation along the z ˆ direction, wavelength _λ_, and beam-quality parameter _M_ <sup>2</sup> _≥_ 1 (for Gaussian beams, _M_ <sup>2</sup> = 1), with the waist _w_ ˜ 0 located at _z_ = 0. The tilde symbolizes the “reference” character. We seek a new beam (S224) ~~�~~ 2 _w_ ( _z_ ) = _w_ 0 1 + _<u>z</u>_ R ~~�~~ _<u>z −</u>_ _<u>z</u>_ <u>0</u> with a new Rayleigh length given by Eq. (S32) and whose (potentially different) waist _w_ 0 is located at position _z_ = _z_ 0, and we would like to obtain this beam as a suitably transformed version of the reference beam. It is often convenient to treat Gaussian beam propagation using a complex-valued beam curvature radius _q_, as introduced in Eq. (S33) [16], at a position _z_ with relation to the wavefront curvature radius _R_ . Beam propagation in free space follows Eq. (S34) [18, 19] for propagation by _z_, and _q_ 0 = _q_ (0). Optical elements such as lenses or mirrors will lead to a modification of _q_ [24]. According to Eq. (S34), we have _q_ ˜( _z_ ) = _q_ ˜0 + _z_ (S225) and _q_ ˜0 = _−iz_ ˜R (S226) for the propagation law of the reference beam, and its complex curvature at its waist position, respectively. Assume we are given _q_ = Re _q_ + _i_ Im _q_, with Re _q_ and Im _q_ providing the real and imaginary parts of the complex radius of curvature _q_ of the “new” beam, immediately after transfer through an optical element. Then the new beam waist is located at a position _z_ 0 = _−_ Re _q_, translated with respect to the current position at the optical element, and the transformed Rayleigh length is given by _zR_ = _−_ Im _q_ . Let us define the scaling factor Let us define the scaling factor _b_ = <sup>_<u>z</u>_</sup> <sup><u>R</u></sup> _<u>z</u>_ <u>˜R</u> = _−_ <sup><u>Im</u></sup> _<u>z</u>_ <u>˜R</u> <sup>_<u>q</u>_</sup> (S227) such that and Then we obtain _z_ R = _bz_ ˜R (S228) _<u>w</u>_ <u>0</u> _<u>w</u>_ <u>˜</u> 0 <u>R</u> = <sup>_<u>z</u>_</sup> <sup>2</sup> R <u>R</u> <sup>_<u>z</u>_</sup> <sup>2</sup> _z_ ˜ <sup><u>2</u></sup> R = _b_ <sup>2</sup> . (S229) (S230) ~~<u>�</u>~~ 2 _w_ ( _z_ + _z_ 0) = _w_ 0 1 + _<u>z</u>_ R ~~<u>�</u>~~ _<u>z</u>_ 0 <u>�</u> 1 + _<u>bz</u>_ <u>˜R</u> ~~�~~ _<u>z</u>_ . (S232) (S231) ~~�~~ 2 = _b_ <sup>2</sup> _w_ ˜ 0 _<u>b</u>_ - _<u>z</u>_ = _b_ <sup>2</sup> _w_ ˜ Thus, the new beam _w_ can be obtained from the reference beam _w_ ˜ by a scaling factor _b_ <sup>2</sup> along the transverse coordinates ( _x_ and _y_ ) and by a scaling factor _b_ along the longitudinal propagation coordinate _z_ [noting that the beam is increased in size for _b_ _>_ 1 along transverse as well as longitudinal coordinates despite the factor _b_ appearing once in the numerator and once in the denominator of Eq. (S232)]. The result is then shifted by _−z_ 0, i.e., by + Re _q_, along the positive propagation direction. 29 S5.2. Optimal vertex distribution for Gaussian beam modeling Optimal mesh spacing for the representation of three-dimensional objects has been discussed in the literature [34, 35]. We adapt that treatment for the specific situation of Gaussian laser beams. The main idea is to analyze the local “mesh curvature” and to require the distance between two neighboring mesh vertices to be inversely proportional to that curvature. In that way, for a mesh that is strongly curved locally, the mesh uses fine steps, and for a mesh that has small curvature, larger step sizes suffice because the rendering uses straight lines between mesh points. Given the radial symmetry of the Gaussian beam, we analyze separately the curvature along and perpendicular to the direction of propagation, starting with the former. Assume we are given the relation , (S233) ~~�~~ 2 _w_ ( _z_ ) = _w_ 0 1 + _<u>z</u>_ R ~~�~~ _<u>z</u>_ where we leave out the tilde signs of Eq. (S222) for brevity and to indicate that the same treatment is applicable to any beam without necessarily making use of the mesh transformation of Eq. (S232). For analyzing the mesh curvature, we calculate the first and second derivatives of Eq. (S233) with respect to _z_ that read, respectively, <u>2</u> _<u>z</u>_ �2 <sup>�</sup> _−_ <sup><u>1</u></sup> _z_ <sup><u>2</u></sup> R _w_ <sup>_′_</sup> ( _z_ ) = <sup><u>d</u></sup> <sup>_<u>w</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> = _w_ 0 <u>d</u> _<u>z</u>_ 1 + - - _<u>zz</u>_ R , (S234) 1 + _<u>z</u>_ R - _<u>z</u>_ _<u>z</u>_ R - _<u>z</u>_ <u>2</u> _−_ �2 <sup>�</sup> _−_ <sup><u>1</u></sup> �2 <sup>�</sup> 1 + _<u>z</u>_ R - _<u>z</u>_ <u>2</u>  �2 <sup>�</sup> _−_ <sup><u>3</u></sup>   (S235)   <sup>.</sup> At the origin, _w_ <sup>_′′_</sup> ( _z_ ) = <sup><u>d2</u></sup> <sup>_<u>w</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> d _z_ <sup><u>2</u></sup> _z_ <sup><u>2</u></sup> R <sup>_<u>w</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> = <sup>_<u>w</u>_</sup> <sup><u>0</u></sup> d _z_ <sup><u>2</u></sup> _z_ <sup><u>2</u></sup> R R      Let us evaluate _w_ <sup>_′′_</sup> ( _z_ ) at specific locations for illustration of the general behavior. At the origin, we find _w_ <sup>_′′_</sup> (0) = <sup>_<u>w</u>_</sup> <sup><u>0</u></sup> _z_ <sup><u>2</u></sup> R (S236) R which is the largest (longitudinal) mesh curvature along the whole beam, occurring at the beam waist. Note that the mesh curvature defined here is different from the curvature _R_ of the wave fronts, defined in Eq. (S33). The mesh curvature drops to _w_ <sup>_′′_</sup> ( _z_ R) = _<u>√</u>_ <u>2</u> <u>4</u> <sup>_w′′_</sup> <sup>(0)</sup> <sup>_≈_</sup> <sup>0.35</sup> <sup>_w′′_</sup> <sup>(0)</sup> (S237) at the distance of one Rayleigh length, and _w_ <sup>_′′_</sup> ( _z_ ) _−−−→x→_ ∞ <sup>0</sup> (S238) as it should be, approaching the straight-line asymptote of the hyperbola of a Gaussian beam. Following Eqs. (22) and (25) of Ref. [35] for _θ_ _≈_ 0, we obtain the local mesh step size (S239) ∆ _z_ ( _z_ ) = min _<u>g</u>_ <u>(</u> _<u>ε</u>_ <u>)</u> - _|w_ <sup>_′′_</sup> ( _<u>z</u>_ ) _|_ <sup>, ∆</sup> <sup>_z_</sup> <sup>max</sup> at local position _z_ along the propagation z ˆ axis, with a user-provided maximal step size ∆ _z_ max that ensures a minimum number of mesh points for a certain distance, independent of the “optimal” number, and a function [34] �40 ~~�~~ _g_ ( _ε_ ) _≈_ (1 _−_ _ε_ ) ~~�~~ 1 _−_ 1 _−_ <u>5</u> <sup><u>6</u></sup> <sup>_ε_</sup> ~~�~~ (S240) that depends on the desired tolerance _ε_ for the relative error of the approximated straight mesh segment compared to the real curved mesh segment. Exemplarily, requiring _ε_ = 1 %, we get _g_ ( _ε_ ) = 0.49 for the scaling factor between inverse curvature and longitudinal mesh step size. Now we calculate the total number of steps, _N_ longitudinal, required to render a Gaussian beam along its longitudinal direction, by adding up the individual steps. Instead of a discrete sum, which would be correct, the corresponding approximate integral _N_ longitudinal( _ε_ ) _≈_ 2 30 <u>d</u> _<u>z</u>_ (S241) 0 <u>∆</u> _<u>z</u>_ ( _<u>z</u>_ ) - _L_ for a laser segment ranging from _z_ = _−L_ to _z_ = _L_ (with the factor of 2 taking into account the mirror symmetry) allows obtaining a closed expression using Eq. (S234) and Eq. (S239), ignoring user-defined maximum step sizes, _N_ longitudinal( _ε_ ) = 2 0 <u>�</u> _L_ _<u>w</u>_ <sup>_<u>′′</u>_</sup> <u>(</u> _<u>z</u>_ <u>)</u> 0 _<u>g</u>_ ( _ε_ ) _L_ _<u>g</u>_ ( _ε_ ) <sup>d</sup> <sup>_z_</sup> (S242) <u>2</u> = _<u>g</u>_ ( _ε_ ) _w_ <sup>_′_</sup> ( _L_ ) _−_ _w_ <sup>_′_</sup> (0) (S243) R <u>2</u> _<u>L</u>_ �2 <sup>�</sup> _−_ <sup><u>1</u></sup> _z_ <sup><u>2</u></sup> R <u>2</u> = _<u>g</u>_ ( _ε_ ) <sup>_w_</sup> <sup>0</sup> 1 + _<u>z</u>_ R - _<u>L</u>_ . (S244) The longer the beam, the more steps are required. In the limit of a long beam, _L ≫_ _z_ R, this can be simplified to <u>2</u> _<u>w</u>_ <u>0</u> _N_ longitudinal,max( _ε_ ) = _<u>g</u>_ ( _ε_ ) _<u>z</u>_ R (S245) . (S246) and, using the definition in Eq. (S32), <u>2</u> _<u>λM</u>_ <sup>2</sup> _N_ longitudinal,max( _ε_ ) = _πg_ ( _ε_ ) _<u>w</u>_ 0 This result is largest for a minimal _w_ 0, i.e., a tight focus. Using the result for the minimal _w_ 0 from Eq. (S186) in Eq. (S246), we obtain the very simple final result <u>2</u> _N_ longitudinal,max( _ε_ ) = _<u>g</u>_ ( _ε_ ) <sup>.</sup> (S247) For example, requiring again _ε_ = 1 %, we need a maximum number of _N_ longitudinal, max(1 %) = 4 steps along the longitudinal direction, which can be rendered with 5 vertex points. In practice, it may not be practical to use too few vertices along the longitudinal direction because then the resulting mesh might be much larger than the required beam segment between two optical elements. In that case, there would be no mesh vertices at all in the required spatial region. While it is still possible, using suitable rendering agorithms with clipping, to display objects whose vertices are all located outside of the visible region, it may become preferable to define the object with closer-spaced vertices. In particular, the mesh vertices may be required not only for a faithful representation of an (infinitely long) Gaussian beam, but they are also used to terminate the graphical representation when the laser intersects with an object. For that reason, it is helpful to adopt a smaller-step longitudinal mesh spacing in practice by selecting an appropriate maximum step size between any two vertices along the propagation direction, i.e., by selecting an appropriate ∆ _z_ max in Eq. (S239). The present analysis assures, however, that the relative local error _ε_ will always be smaller than the given error threshold, and thus the graphical output will approximate the real beam shape well. Next, we analyze the optimal mesh spacing along the circumference of the cross section. The curvature of a circle is given by the inverse of its radius, so that we obtain <u>1</u> _y_ <sup>_′′_</sup> ( _z_ ) = <sup>_<u>∂</u>_</sup> <sup>2</sup> <sup>_<u>y</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x</u>_</sup> <sup><u>,</u></sup> <sup>_<u>z</u>_</sup> <sup><u>)</u></sup> = (S248) _∂x_ <sup><u>2</u></sup> _<u>w</u>_ ( _<u>z</u>_ ) <sup>,</sup> for a given radius _w_ ( _z_ ) at position _z_, where we have chosen a coordinate system with arbitrary transverse x ˆ and y ˆ directions, because the result is in fact independent of the angular coordinate due to circular symmetry. Alternatively, one can derive and formulate the result using angular coordinates. Analogous to Eq. (S239), the mesh step size is then given by _<u>g</u>_ <u>(</u> _<u>ε</u>_ <u>)</u> ∆ _x_ ( _z_ ) = _|y_ <sup>_′′_</sup> ( _<u>z</u>_ ) _|_ <sup>=</sup> <sup>_g_</sup> <sup>(</sup> <sup>_ε_</sup> <sup>)</sup> <sup>_w_</sup> <sup>(</sup> <sup>_z_</sup> <sup>),</sup> (S249) with a total number of vertices along the circumference of length 2 _πw_ ( _z_ ) of _N_ circumference( _ε_ ) = <sup><u>2</u></sup> <u>∆</u> <sup>_<u>π</u>_</sup> _<u>x</u>_ <sup>_<u>w</u>_</sup> ( <sup><u>(</u></sup> _<u>z</u>_ <sup>_<u>z</u>_</sup> ) <sup><u>)</u></sup> <u>∆</u> <sup>_<u>π</u>_</sup> _<u>x</u>_ <sup>_<u>w</u>_</sup> ( <sup><u>(</u></sup> _<u>z</u>_ <sup>_<u>z</u>_</sup> ) <sup><u>)</u></sup> <sup>=</sup> _<u>g</u>_ <sup><u>2</u></sup> ( <sup>_<u>π</u>_</sup> _ε_ (S250) _<u>g</u>_ <sup><u>2</u></sup> ( <sup>_<u>π</u>_</sup> _ε_ ) <sup>,</sup> 31 which is independent of _w_ ( _z_ ) and thus independent of _z_ . No matter what the size of the circle is, we should always use the same number of points. For example, requiring again _ε_ = 1 % and _g_ ( _ε_ ) = 0.49, we obtain _N_ circumference(1 %) = 13. (S251) It is possible to arrive at the same result without making use of the approximations implicit in Eq. (S240). The chord length of a circle segment of angle _ϕ_ is 2 sin( _ϕ_ /2), and thus the relative difference _ε_ between the two lengths is given by <u>2</u> . (S252) 1 _−_ _ε_ = <sup><u>2 sin</u></sup> _ϕ_ <sup>_<u>ϕ</u>_</sup> For a given _ε_ = 1 %, the numerical solution of Eq. (S252) delivers _N_ circumference(1 %) = 12.8 _≈_ 13 as above. Combining Eq. (S247) and Eq. (S250), we arrive at a total number of <u>4</u> _<u>π</u>_ _N_ total,max( _ε_ ) = _N_ longitudinal,max( _ε_ ) _N_ circumference( _ε_ ) = (S253) _g_ <sup><u>2</u></sup> ( _ε_ ) and, at an error level of 1 %, a maximum of (4 + 1) _×_ 13 = 65 vertices that suffice to describe any Gaussian laser beam, independent of its specific geometrical parameters [and (6 + 1) _×_ 18 = 126 for _ε_ = 0.5 %]. If one desires to limit the absolute error instead of the relative error, the numeric results change, but the basic analysis above can still be used. S5.3. Color perception of a standard observer The human eye with normal vision contains three types of cone cells with different spectral sensitivities in the range of long (L), middle (M), and short (S) visible wavelengths. This trifold distribution forms the basis for being able to represent colors on display devices via additive mixing of three “primary colors” called red (R), green (G), and blue (B). We start by representing a color in the device-independent “Commission Internationale de l’Éclairage” (CIE) XYZ standard (“tristimulus values”) in its most recent implementation [36] and employ the “2-deg XYZ color matching functions transformed from the CIE (2006) 2-deg LMS cone fundamentals,” _x_ ¯( _λ_ ), _y_ ¯( _λ_ ), ¯ _z_ ( _λ_ ), sampled at a step size of 1 nm [37]. Given a laser spectral intensity _I_ ( _λ_ ) (more accurately, “spectral radiance,” but this is irrelevant due to the normalization discussed below), we obtain the CIE XYZ color coordinates as _X_ = _Y_ = _Z_ = _λ_ min - _λ_ max _λ_ min - _λ_ max _λ_ min - _λ_ max _λ_ min _λ_ min _λ_ min _x_ ¯( _λ_ ) _I_ ( _λ_ ) d _λ_, (S254) _y_ ¯( _λ_ ) _I_ ( _λ_ ) d _λ_, (S255) _z_ ¯( _λ_ ) _I_ ( _λ_ ) d _λ_, (S256) by integration between _λ_ min = 390 nm and _λ_ max = 830 nm. Moving to frequency-dependent fields and intensities, we transform the wavelength-dependent properties accordingly, using _λ_ ( _ω_ ) = <sup><u>2</u></sup> <sup>_<u>πc</u>_</sup> <sup>_<u>πc</u>_</sup> (S257) _ω_ along with to make the transition d _λ_ = _−_ <sup><u>2</u></sup> _ω_ <sup>_<u>π</u>_</sup> <sup><u>2</u></sup> <sup>_<u>c</u>_</sup> <sup>d</sup> <sup>_ω_</sup> <sup>,</sup> (S258) _ω_ ( _λ_ min) - _ω_ ( _λ_ max) _<u>x</u>_ <u>¯[</u> _<u>λ</u>_ <u>(</u> _<u>ω</u>_ <u>)]</u> _I_ ( _ω_ ) d _ω_ (S260) _ω_ <sup><u>2</u></sup> _X_ = _−_ _ω_ ( _λ_ min) _ω_ min - _ω_ max _x_ ¯[ _λ_ ( _ω_ )] _I_ ( _ω_ ) <sup><u>2</u></sup> <sup>_<u>πc</u>_</sup> (S259) _ω_ <sup><u>2</u></sup> <sup>d</sup> <sup>_ω_</sup> = 2 _πc_ _≈_ 2 _πc_ s _−_ #### ∑ _j_ =0 _ω_ min _N_ s _−_ 1 _x_ ¯ _ω_ <sup>_′_</sup> <sup>(</sup> <sup>_j_</sup> <sup>)</sup> <sup>_Iω_</sup> <sup>(</sup> <sup>_j_</sup> <sup>)</sup> <sup>_δω_</sup> <sup>,</sup> (S261) 32 where in the last line we adopt the discretized sampling from Eq. (S57) at frequency positions given by Eq. (S50) with indices _j_ = _{_ 0, 1, . . ., _N_ s _−_ 1 _}_, frequency sampling step size as in Eq. (S51), number of samples _N_ s, and minimum sampled frequency as in Eq. (S52). Here, the discretized color-matching functions are _x_ ¯ _ω_ <sup>_′_</sup> <sup>(</sup> <sup>_j_</sup> <sup>) =</sup> , _ω_ <sup><u>2</u></sup> if _λ_ min _≤_ <sup><u>2</u></sup> _ω_ <sup>_<u>πc</u>_</sup> <sup>_≤_</sup> <sup>_λ_</sup> <sup>max,</sup> �0, _<u>x</u>_ <u>¯[</u> _<u>λ</u>_ <u>(</u> _<u>ω</u>_ <u>)]</u> otherwise, (S262) wherein _x_ ¯[ _λ_ ( _ω_ )] can be obtained from _x_ ¯( _λ_ ) by interpolative resampling onto the _ω_ ( _j_ ) grid using an intermediate spline fit. Using our conventions, the (on-axis) spectral laser intensity _Iω_ ( _j_ ) is defined with respect to spectral power _P_ ( _ω_ ) for a given beam radius _w_, which is in turn defined with respect to the complex spectral envelope _E_ <sup>˜</sup> _ω_ ( _j_ ) using a pulse-energy scaling factor _S_ as in Eq. (S56), so that together <u>2</u> _<u>S</u>_ _Iω_ ( _j_ ) = _πw_ <sup><u>2</u></sup> _δω_ (S263) �� _E_ ˜color _ω_ ( _j_ )��2coordinates will be normalized in should be employed in Eq. (S261). Since the XYZ color coordinates will be normalized in Eqs. (S267)–(S269) anyway, we can omit some proportionality constants and define a modified coordinate _x_ ¯ _ω_ <sup>_′_</sup> <sup>(</sup> <sup>_j_</sup> <sup>)</sup> _X_ <sup>_′_</sup> = _N_ s _−_ 1 s _−_ 1 #### ∑ _j_ =0 (S264) �� _E_ ˜ _ω_ ( _j_ )��2 . Analogously, we obtain the (modified) coordinates _Y_ <sup>_′_</sup> = _Z_ <sup>_′_</sup> = _N_ s _−_ 1 #### ∑ _j_ =0 _N_ s _−_ 1 #### ∑ _j_ =0 _z_ ¯ <sup>_′_</sup> _ω_ <sup>(</sup> <sup>_j_</sup> <sup>)</sup> _y_ ¯ <sup>_′_</sup> _ω_ <sup>(</sup> <sup>_j_</sup> <sup>)</sup> (S265) �� _E_ ˜ _ω_ ( _j_ )��2, (S266) - _E_ ˜ _ω_ ( _j_ )��2, from which we obtain the chromaticity values, _<u>X</u>_ <sup>_<u>′</u>_</sup> _x_ = _<u>X</u>_ <sup>_′_</sup> + _<u>Y</u>_ <sup>_′_</sup> + _<u>Z</u>_ <sup>_′_</sup> <sup>,</sup> (S267) _<u>Y</u>_ <sup>_<u>′</u>_</sup> _y_ = _<u>X</u>_ <sup>_′_</sup> + _<u>Y</u>_ <sup>_′_</sup> + _<u>Z</u>_ <sup>_′_</sup> <sup>,</sup> (S268) _<u>Z</u>_ <sup>_<u>′</u>_</sup> _z_ = _<u>X</u>_ <sup>_′_</sup> + _<u>Y</u>_ <sup>_′_</sup> + _<u>Z</u>_ <sup>_′_</sup> <sup>,</sup> (S269) that now lie in the interval [0, 1] each. Actually, the value pair ( _x_, _y_ ) alone is sufficient to define the color because _z_ can be obtained from the normalization condition as _z_ = 1 _−_ _x −_ _y_ . We will require _z_ for the next step. Any RGB color can be transformed to a CIE representation using   _x_ _y_ _z_       <sup>=</sup> <sup>_M_</sup>    (S270)    <sup>,</sup>             _R_ _G_ _B_ where _R_, _G_, and _B_ are linear RGB components (without gamma correction applied) and _M_ is a suitable transformation matrix that depends on the particular color space and thus should be chosen according to a specific device. Exemplarily, let us assume that the graphics device can represent colors according to the International Telecommunication Union (ITU) Recommendation BT.2020 standard (known as “Rec. 2020”) that defines a wider gamut (i.e., representable color space) than the traditional RGB or sRGB standards. The RGB or sRGB standards can be implemented analogously, just using the respective differently defined values. According to published specifications, Rec. 2020 is characterized by the primary colors and the CIE D65 standard 33 illuminant (“white point”) in ( _x_, _y_ ) coordinates, Red: (0.708, 0.292), (S271) Green: (0.170, 0.797), (S272) Blue: (0.131, 0.046), (S273) White: (0.3127, 0.3290). (S274) Using these values, one can construct _M_ and from that, its inverse _M_ <sup>_−_</sup> <sup>1</sup>, to obtain   = _M_ <sup>_−_</sup> <sup>1</sup> unbounded           (S275)    <sup>,</sup>      _R_ _G_ _B_ _x_ _y_ _z_        with values for _M_ <sup>_−_</sup> <sup>1</sup> in the case of Rec. 2020 given by    (S276)    <sup>.</sup> [0, 1] interval if a given 1.7166512 _−_ 0.3556708 _−_ 0.2533663 _M_ <sup>_−_</sup> <sup>1</sup> =        _−_ 0.6666844 1.6164812 0.0157685 0.0176399 _−_ 0.0427706 0.9421031 Note that any of the recovered RGB values may lie outside of the allowed [0, 1] interval if a given CIE color cannot be represented in the RGB system of the chosen color space, i.e., in our case if the color is outside the Rec. 2020 gamut. We arrive at the bounded (linear) RGB coordinates by clamping, if required, _R_ = max _{_ 0, min[ _R_ unbounded, 1] _}_, (S277) _G_ = max _{_ 0, min[ _G_ unbounded, 1] _}_, (S278) _B_ = max _{_ 0, min[ _B_ unbounded, 1] _}_ . (S279) Now we have obtained the correct color but still want to render an appropriate luminance. For this purpose, we employ the “alpha” (A) channel in the RGBA system that represents opacity, where _A_ = 1 means completely opaque and _A_ = 0 completely transparent. Thus, if we want to represent a “laser spot” that has high luminance scattered off a surface, we desire a high value for _A_ such that the material of the underlying scattering object in essence does not shine through, and for a low-intensity spot we desire a low _A_ such that the laser-beam scattering is barely visible and the underlying material is visible. The CIE XYZ standard is defined such that the Y channel corresponds to luminance (taking into account human perception according to the “standard observer”), sometimes also called the xyY color space, i.e., taking _Y_ together with the chromaticity values _x_ and _y_ from Eq. (S267) and Eq. (S268), respectively. Above, we defined modified coordinates _X_ <sup>_′_</sup> _Y_ <sup>_′_</sup> _Z_ <sup>_′_</sup> in which _Y_ <sup>_′_</sup> takes already into account the spectral shape but not yet the absolute intensity in terms of pulse energy and beam radius. We obtain the desired _Y_ by re-introducing the correct scaling factors, _Y_ = 4 _c_ <sup>_<u>S</u>_</sup> (S280) _w_ <sup><u>2</u></sup> <sup>_Y′_</sup> <sup>.</sup> Again, we employ a useful normalization such that we can ignore the constant factor 4 _c_ and define <u>�</u> (S281) _A_ = min 1, _<u>wS</u>_ <sup><u>2</u></sup> <sup>_<u>Y′</u>_</sup> _<u>A</u>_ 0 with the reference _A_ 0 = <sup>_<u>S</u>_</sup> <sup><u>0</u></sup> _w_ <sup><u>2</u></sup> <sup><u>0</u></sup> 0 <sup><u>2</u></sup> _Y_ 0 <sup>_′_</sup> _w_ 0 <sup><u>2</u></sup> 0 <sup>_′_</sup> (S282) obtained under the conditions for which maximum opacity shall be reached. If under any conditions, one obtains _<u>wS</u>_ <sup><u>2</u></sup> <sup>_Y′_</sup> <sup>_>_</sup> <sup>_A_</sup> <sup>0, the color cannot increase the perceived luminance, i.e., the</sup> intensity is “saturated.” While one may wish to avoid such a scenario and define _A_ 0 as the achievable maximum under any conditions, this may make it difficult to see some other laser spots under other, less intense, conditions, depending on the pulse energy, spectral range, and beam radius of the laser, and the dynamic range of the display device. Thus, it may be appropriate to introduce a gamma correction for the alpha channel to create a rendering that covers a range large enough to observe the laser spot under a variety of conditions. 34 REFERENCES 1. M. V. Klein and T. E. Furtak, _Optics_ (Wiley, Hoboken, 1986), 2nd ed. 2. M. Born and E. Wolf, _Principles of Optics:_ _Electromagnetic Theory of Propagation, Interference and_ _Diffraction of Light_ (Cambridge University Press, Cambridge, 1999), 7th ed. 3. W. Zinth and U. Zinth, _Optik. Lichtstrahlen – Wellen – Photonen_ (Oldenbourg Wissenschaftsverlag, München, 2005). 4. L. Novotny and B. Hecht, _Principles of Nano-Optics_ (Cambridge University Press, Cambridge, 2012), 2nd ed. 5. R. W. Boyd, _Nonlinear Optics_ (Academic Press, Burlington, 2008), 3rd ed. 6. B. E. A. Saleh and M. C. Teich, _Fundamentals of Photonics_ (Wiley, Hoboken, 2019), 3rd ed. 7. S. Mukamel, _Principles of Nonlinear Optical Spectroscopy_ (Oxford University Press, New York, 1995), 1st ed. 8. J.-C. Diels and W. Rudolph, _Ultrashort Laser Pulse Phenomena:_ _Fundamentals, Techniques, and_ _Applications on a Femtosecond Time Scale_ (Academic Press Inc, Amsterdam, 2006), 2nd ed. 9. R. Trebino, _Frequency-Resolved_ _Optical_ _Gating:_ _The_ _Measurement_ _of_ _Ultrashort_ _Laser_ _Pulses_ (Springer, New York, 2002), 1st ed. 10. M. Wollenhaupt, A. Assion, and T. Baumert, “Femtosecond laser pulses: Linear properties, manipulation, generation and measurement,” in _Springer_ _Handbook_ _of_ _Lasers_ _and_ _Optics,_ F. Träger, ed. (Springer Science+Business Media, New York, 2007), pp. 937–983. 11. A. M. Weiner, _Ultrafast Optics_ (John Wiley & Sons Inc., Hoboken, 2009), 1st ed. 12. M. Cho, _Two-Dimensional Optical Spectroscopy_ (CRC Press, Boca Raton, 2009). 13. P. Hamm and M. Zanni, _Concepts and Methods of 2D Infrared Spectroscopy_ (Cambridge University Press, New York, 2011), 1st ed. 14. L. Valkunas, D. Abramavicius, and T. Manˇcal, _Molecular Excitation Dynamics and Relaxation_ (Wiley-VCH, Weinheim, 2013), 1st ed. 15. J. Yuen-Zhou, J. J. Krich, I. Kassal, _et al._, _Ultrafast Spectroscopy_ (IOP Publishing, Bristol, 2014), 1st ed. 16. J. Alda, “Laser and Gaussian beam propagation and transformation,” in _Encyclopedia_ _of_ _Optical Engineering,_ C. Hoffman and R. Driggers, eds. (CRC Press, Boca Raton, 2003), pp. 999–1013, 2nd ed. 17. S. Akturk, X. Gu, P. Gabolde, and R. Trebino, “The general theory of first-order spatiotemporal distortions of Gaussian pulses and beams,” Opt. Express 13, 8642–8661 (2005). 18. H. Kogelnik, “Imaging of optical modes – Resonators with internal lenses,” Bell. Sys. Tech. J. 44, 455–494 (1965). 19. H. Kogelnik, “On the propagation of Gaussian beams of light through lenslike media including those with a loss or gain variation,” Appl. Opt. 4, 1562–1569 (1965). 20. M. P. Fewell, “Area of common overlap of three circles,” Tech. Rep. DSTO-TN-0722, Australian Government, Department of Defence (2006). 21. D. Eberly, “The area of intersecting ellipses,” https://www.geometrictools.com/Documenta tion/IntersectionOfEllipses.pdf (2000). 22. G. B. Hughes and M. Chraibi, “Calculating ellipse overlap areas,” Comput. Vis. Sci. 15, 291–301 (2012). 23. “Line–plane intersection,” https://en.wikipedia.org/wiki/Line–plane_intersection. 24. T. Brixner, S. Mueller, A. Müller, _et al._, “femtoPro: Virtual-reality interactive training simulator of an ultrafast laser laboratory,” Appl. Phys. B 129, 78 (2023). 25. I. R. Gatland, “Thin lens ray tracing,” Am. J. Phys. 70, 1184–1186 (2002). 26. T. S. Khwaja and S. A. Reza, “Low-cost Gaussian beam profiling with circular irises and apertures,” Appl. Opt. 58, 1048–1056 (2019). 27. M. N. Polyanskiy, “Refractive index database,” https://refractiveindex.info. 28. G. D. Boyd and D. A. Kleinman, “Parametric interaction of focused Gaussian light beams,” J. Appl. Phys. 39, 3597–3639 (1968). 29. E. Sidick, A. Dienes, and A. Knoesen, “Ultrashort-pulse second-harmonic generation. II. Non-transform-limited fundamental pulses,” J. Opt. Soc. Am. B 12, 1713–1722 (1995). 30. E. Sidick, A. Knoesen, and A. Dienes, “Ultrashort-pulse second-harmonic generation. I. Transform-limited fundamental pulses,” J. Opt. Soc. Am. B 12, 1704–1712 (1995). 31. Y. F. Chen and Y. C. Chen, “Analytical functions for the optimization of second-harmonic generation and parametric generation by focused Gaussian beams,” Appl. Phys. B 76, 645–647 (2003). 32. U. Levy and Y. Silberberg, “Second and third harmonic waves excited by focused Gaussian 35 beams,” Opt. Express 23, 27795–27805 (2015). 33. T. Brixner, “Adaptive femtosecond quantum control,” Ph.D. thesis, Universität Würzburg (2001). 34. R. J. Cass, S. E. Benzley, R. J. Meyers, and T. D. Blacker, “Generalized 3-D paving: An automated quadrilateral surface mesh generation algorithm,” Int. J. Numer. Meth. Engng 39, 1475–1489 (1996). 35. C. K. Lee, “On curvature element-size control in metric surface mesh generation,” Int. J. Numer. Meth. Engng 50, 787–807 (2001). 36. A. Stockman, “Cone fundamentals and CIE standards,” Curr. Opin. Behav. Sci. 30, 87–93 (2019). 37. “Colour & Vision Research Laboratory,” http://www.cvrl.org. 36

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.