Introduction

By controlling the amplitude and phase of spectral lines over a coherent, broadband optical spectrum, optical pulse shaping has been widely used in applications for ultrafast optical arbitrary waveform generation1,2,3,4,5,6, wideband radio frequency (RF) photonics7,8,9,10,11,12,13,14,15, and manipulation of frequency-encoded photonic quantum information16,17,18. Fourier transform pulse shapers based on bulk optics comprise a pair of spectral dispersers with spatial light modulators between them. The first spectral disperser scatters, or demultiplexes, a broadband field such that individual spectral components are routed to unique light-modulating elements. Following modification of the amplitude and phase by the spatial light modulator, the spectral components are recombined, or multiplexed, at the second spectral disperser2. Commercially available pulse shapers rely on bulk spectral dispersers and liquid-crystal-on-silicon (LCoS) spatial light modulators to control the amplitude and phase of the input signal19,20. In laboratory settings, it is common to replace or pair diffraction gratings with virtually imaged phase arrays to enhance the spectral resolution21,22,23.

While off-the-shelf equipment is well-suited for femtosecond, high-repetition-rate optical waveform manipulation3, the technology has severe limitations when one requires finer control over the optical spectrum as is the case with low-repetition rate optical pulse shaping or high resolution spectrometry4. In particular, few- or sub-GHz addressability is invariably associated with a significant loss penalty and also requires an increase in the system size, which is prohibitive outside of the laboratory environment.

High resolution optical pulse shaping has proven invaluable across diverse quantum applications. The technology would enable straightforward manipulation and characterization of frequency-encoded photonic quantum information by reducing the separation between addressable modes in the computational space18,24. In addition, it facilitates fast waveform modulation to generate voltage standards traceable to fundamental quantum limits23, as well as precise control of optical transitions in ions or atoms25,26. Furthermore, high spectral resolution is vital in microwave photonics for generating and manipulating longer waveforms13,15. Fine-grained control over the spectral amplitude also has tremendous value in applications where control over the spectral phase is not required. This is particularly true in spectroscopy, where high resolution spectral filtering has been used with Brillouin light-scattering techniques for non-invasive biological imaging27,28 and to characterize stellar illumination in astrophotonics applications29,30.

As an enabling technology, photonic integrated circuits (PICs) offer a low size, weight, and power chip-scale platform for pulse shaping. The silicon-on-insulator (SOI) platform especially benefits from mature complementary metal-oxide-semiconductor (CMOS) process compatibility to enable a rich component ecosystem with the capability for volume production of complex PICs. Numerous on-chip shapers have been shown employing arrayed waveguide gratings (AWGs) as spectral dispersers31,32,33,34,35. However, to achieve a sub-GHz spectral resolution, AWG-based spectral dispersers require an excessively large ( ~cm2) device footprint which leads to increasing phase errors on platforms like SOI36. Also, AWGs do not offer tunability, which results in channel bandwidths and spacings that are fixed. To address these issues, shapers with a microresonator-based spectral disperser, whose channel bandwidth and minimum spacing depend on the quality (Q) factor of the microresonators, have been explored9,37,38. Although previous demonstrations have used microresonators with a low Q factor (linewidth  ~8 GHz or greater), microresonators on SOI can be designed to be extremely wavelength selective with a high Q factor of  >10639,40 and can be realized with a small device footprint of  ~10−2 mm2. Their center frequency can be tuned via the thermo-optic (TO), free-carrier dispersion, or other dispersive effects. TO tuning is common because it offers simple design and fabrication, a wide tuning range, and does not fundamentally induce optical loss. However, thermal crosstalk introduces challenges in the large-scale control of such shapers.

In this paper, we design, fabricate, and optimize high-resolution (~900 MHz linewidth) microresonator filter banks with inline phase control for narrowband pulse shaping. We demonstrate a method of accurately aligning such shapers onto arbitrary frequency grids with any prescribed phase. In particular, we combine multi-heterodyne spectroscopy (MHS)41 and dual-comb spectroscopy (DCS)42 to sample channel frequencies and phases over short acquisition times and with high spectral resolution. This allows real-time monitoring of the system response and accurate tuning of the shaper elements in the presence of thermal crosstalk or environmental disturbances. We employ our method with a six-channel silicon photonic (SiP) device with sub-GHz channel linewidths programmed to operate on a 3 GHz grid to synthesize arbitrary user-defined optical waveforms in the time domain. We emphasize the tunability of our shaper by extending the waveform demonstrations to 4 and 5 GHz frequency grids to phase-compensate residual phases on individual lines of an electro-optic (EO) frequency comb. These demonstrations mark a significant step toward realizing narrowband filtering and high resolution shaping functionality in a scalable manner.

Results

SiP shaper design

Figure 1a is a high-level concept illustration of our SiP microresonator-based spectral shaper, and Fig. 1b displays its microscope image. A common bus waveguide routes an input broadband optical field to a bank of resonators. The input resonator bank downloads slices of the input spectrum and routes them through phase-shifting elements before finally uploading the slices onto a common output bus via the second resonator bank. Transmission spectra of both the input and output resonator banks can be accessed. The shapers are fabricated by SUNY Polytechnic through the foundry services offered by AIM Photonics43 and wirebonded to a custom interposer and printed circuit board.

Fig. 1: Silicon photonic spectral shaper.
figure 1

a Graphic illustration of a six-channel microresonator-based spectral shaper, and a conceptual illustration of line-by-line pulse shaping. An input optical frequency comb with random relative phases between comb lines generates a distorted waveform in the time domain. The spectral shaper chip can be programmed to align the phases and produce transform-limited pulses at the output. b Top-down microscope image of the fabricated system. c Zoomed-in schematic of a single resonator device used in our shaper.

Resonators in our device (diagram in Fig. 1c) are designed using multimode waveguides. Operating these waveguides in the fundamental mode substantially diminishes the predominant loss mechanism of field-sidewall overlap in SiP waveguides, thereby ensuring low-loss performance44,45. The racetrack resonators include 200 μm-long straight waveguides, which have a width of 2 μm. These segments taper down to 1 μm-wide waveguides, which feed into the bus-racetrack coupling region. This permits higher rates of coupling to the resonator, reducing the drop-port loss of the filter. To suppress higher-order mode excitation, the resonator and the bus waveguides follow an Euler curve44. The curve in the resonator reaches a minimum bending radius of 15 μm, and the bus waveguides are designed to be phase-matched at the midpoint of the curve, where the local bending radius, width, and gap are 16 μm, 0.64 μm, and 0.18 μm, respectively. A single resonator occupies a compact footprint of only 0.045 × 0.33 mm2. Each resonator has a measured 3 dB linewidth, drop-port loss, and free spectral range (FSR) of  ~1.3 GHz,  ~2.5 dB, and  ~115 GHz, respectively. We find average intrinsic and loaded quality factors of  ~6.15 × 105 and 1.48 × 105 (see Supplementary Information note 2). Thermo-optic phase shifters comprised of doped silicon slabs functioning as resistive heating elements are placed between resonators in a channel and also embedded within each resonator for tuning the center frequency. Variable optical attenuators are also placed in-line within a channel for amplitude tuning although they are not used here. When resonators on the input and output sides are aligned to a common resonance mode, the composite shaper channel linewidth and drop-port loss are  ~900 MHz and  ~6 dB. Improved engineering of the resonator devices46,47 and CMOS-compatible process quality refinements48,49 may enable reduction in these quantities in future fabrication cycles.

The input and output resonators within any channel must have their center frequencies well-aligned to allow for efficient transmission of a spectral slice. Variation in silicon device layer thickness and sidewall roughness across a die leads to a starting resonant frequency mismatch between filters in a channel. Microheaters allow for thermal tuning of the resonant frequencies, but the simultaneous heating of devices leads to compounding thermal crosstalk making precise alignment challenging. For these reasons, and to exploit the tunability of the resonators, a robust control method must be employed to align resonators within the shaper to specific frequency positions.

MHS/DCS programming method

Figure 2a–i illustrates the experimental setup for the MHS measurement technique. We use a continuous wave (CW) laser and a stabilized mode-locked frequency comb (MLFC) for this purpose. We note that although the concept of MHS and multi-heterodyne beat generation also includes the beating between two frequency combs (i.e., DCS, which we adopt for phase measurement discussed later), we still designate this measurement as MHS to differentiate between this and the latter method. A portion of the spectrum from the MLFC is sent through bus waveguides on both the input and output sides of the shaper as indicated in Fig. 2a–i. The coupling between the bus waveguides and resonators leads to a significant (~10 dB) frequency-dependent extinction as measured from the output of the bus waveguides, indicating the resonance frequencies of the resonators. In this way, the frequency response of the resonator bank is encoded onto the amplitude of the comb lines. By combining the spectrally modified comb exiting the bus waveguides with a CW laser operating at a fixed wavelength and beating on a high-speed photodetector (PD), the optical response of the resonator bank can be downconverted to the RF range after measurement by an oscilloscope and fast-Fourier transform (FFT). The optical spectrum is revealed as amplitude-modified tones spaced at the repetition rate of the comb (frep = 250 MHz). This MHS measurement enables multiple optical spectra to be measured at the same time (limited by the number of oscilloscope channels) and supports high rates of measurement, with a single measurement requiring an acquisition time on the order of  ~μs. Here, we employ this method to measure the optical spectrum of both resonator banks simultaneously (example spectra can be found in Supplementary Information note 4). By varying the resonator drive currents incrementally and processing the RF spectrum each time, the resonance frequencies of both resonators within each channel can be tracked via peak finding methods and tuned to arbitrary frequency positions relative to the CW laser and with a precision corresponding to the MLFC repetition rate. In our experiments, we align shaper channels to a uniformly spaced frequency grid.

Fig. 2: Experimental configuration.
figure 2

High-level schematic diagram of experimental setups for a-i Multi-Heterodyne Spectroscopy (MHS), a-ii Dual-Comb Spectroscopy (DHS), for measuring the channel frequencies and phases, respectively, and a-iii the Waveform Monitor. Yellow and dashed black lines indicate optical and RF connections, respectively. Brown (solid and dashed) and green arrows in (a-i) follow directions of propagation for the MLFC and CW laser, respectively. Orange arrows in (a-ii) follow the signal comb. Arrows on the resonators within the SiP shaper follow the direction of propagation for each method. For clarity, the SiP shaper is drawn here with optical I/O on both sides of the chip; in the experiment, optical I/O is on a single side, as depicted in Fig. 1a. MHS and DCS measurements are run at the same time by adding circulators and DWDM filters. PD: Photodiode. b Flowchart of our shaper control scheme. c-i Transmission spectrum of the as-fabricated spectral shaper and c-ii with the shaper programmed to compress six lines from a 3 GHz EO comb. In both cases, the measurement is from a swept laser source and the two FSRs for MHS and DCS measurement are shown. Transmission is normalized to coupling loss to/from the chip, which we measure to be  ~3.5 dB/facet.

To measure the spectral phase applied to each channel, we adopt a DCS method with two EO combs (schematic in Fig. 2a–ii) generated using the same pump laser. The two oscillators driving the combs are synchronized with each other. The signal comb is driven with a frequency equal to the spacing of the shaper channels (fsig) and the reference comb is driven at a slightly different frequency (fref = fsig + Δf). Signal comb modes on the high-wavelength side of the pump are sent through the shaper to accumulate the phase applied to each channel. The signal comb exiting the chip through the output port is combined with the reference comb and sent to a balanced PD. Heterodyne beats at harmonics of the dual-comb difference frequency (Δf) are generated. The phase difference between the signal and reference comb can be measured by acquiring the generated electronic signal using an oscilloscope and sampling the phase at beat note frequencies after an FFT. Similar to MHS, the DCS measurement can be executed at MHz rates50. More details can be found in Methods and in Supplementary Information note 5.

The MHS and DCS measurements can be performed simultaneously in a bi-directional manner by employing circulators and dense wavelength division multiplexing (DWDM) filters. The periodic spectral response of the resonators permits a particular FSR to be used for MHS while an adjacent FSR is used for DCS phase measurement. We develop a Python-based control routine that takes as input a frequency grid and relative phase vector and iteratively performs MHS and DCS to track and align shaper channels onto the frequency grid and drive phase shifters to the appropriate relative phase values. The phase shifters are pre-driven with a power slightly higher than that to induce a π-phase shift at the start so that the drive can be increased or decreased to reach the desired phase. Likewise, the resonators are pre-detuned in a non-overlapping manner to simplify the alignment. The sequence of operations within the routine is shown in the flowchart of Fig. 2b. More details can be found in Methods and Supplementary Information note 6. The through and drop port transmission spectrum of the device before and after using this method to align channels to a 3 GHz grid with uniform phases is shown in Fig. 2c–i and Fig. 2c–ii, respectively. Note the FSRs used for both MHS and DCS are shown.

Optical arbitrary waveform generation

For the OAWG and pulse compression applications that follow, we shape six lines of the signal comb used for DCS. The waveform monitor (red box in Fig. 2a–iii) is used to measure the optical spectrum and waveform in real time. The signal comb exiting the chip is split by a fiber coupler; half of the light is sent for DCS phase measurement while the other half is sent for temporal/spectral analysis using a 30 GHz PD and 50 GHz sampling oscilloscope and optical spectrum analyzer (OSA). Since the global phase of the output is unobservable in our application, we can automatically assign one of the six shaper phases to zero. Moreover, with the freedom to choose the time origin, any linear contribution to the spectral phase (equivalent to a group delay) can be ignored as well, allowing us to set a second phase shifter to zero. In the context of the tests below, this flexibility allows us to apply zero drive to channels 3 and 6 without loss of functionality.

As a demonstration of the precise phase control achieved in our system, we generate a set of waveforms on a 3 GHz frequency grid from the six EO comb lines. The ideal waveforms we target, without factoring in our measurement system response, are presented in Fig. 3a, b, c–i to show the fine temporal features. The temporal profile of our initial phase state, with channels tuned to a 3 GHz grid and phase shifters driven to induce  ~π phase, is shown in Fig. 3a–ii (black dashed line). The corresponding measured phases for this untuned case (resonators aligned to 3 GHz grid and four phase shifters driven with  ~π) are plotted in Fig. 3a–iii, which shows phase variation across each channel (excluding the two phase reference channels that are always set to zeros). The phase deviations could be caused by variations in tuning efficiency for each phase shifter, variations in optical path length for each channel caused by fabrication, or the input comb’s nonuniform spectral phase profile. We adopt a commonly used normalized energy error (NEE) metric51 to quantify similarity between target a(t) and measured d(t) waveforms as the ratio between the error e(t) = d(t) − a(t) and target waveform energy. For this waveform with untuned phases we find an NEE of 104.6%.

Fig. 3: Optical arbitrary waveform generation.
figure 3

a, b, c-i Ideal target waveforms in the time domain (green traces) and signal comb spectral phase (top) for the compressed, Talbot, and forked state, respectively. a, b, c-ii Measured waveforms (blue trace) and the ideal waveforms convolved with the measurement system impulse response (dashed orange traces) for the compressed, Talbot, and forked states, respectively. An additional waveform is shown in (a-ii) (black dotted trace) with an untuned phase and phase shifters driven to induce  ~π phase. a, b, c-iii Target (gray dashed) and measured (blue scattered with error bars) signal comb spectral phase for the compressed, Talbot, and forked states, respectively. An additional measurement is shown in (a-iii) (black scattered with error bars) for the untuned phase state, with phase shifters driven to induce  ~π phase. Figure legends in (a-i, ii, iii) are shared amongst subplots in a row, and the untuned state is only shown in (a-ii, iii). All theoretical waveforms take into account the optical power of each comb line as measured by OSA. Error bars (standard deviation) in the phase plots are difficult to see. These errors always  <0.15 rad (see Methods and Supplementary Information note 6), and are on average  ~0.05 rad. See Fig. 4a, b, c-iii for a clear example.

The waveform shows a significant difference after the shaper is programmed to achieve a uniform spectral phase, as shown in Fig. 3a–ii (blue line). We also include the ideal waveform (Fig. 3a–i) convolved with our measurement system impulse response in Fig. 3a–ii (orange trace), demonstrating excellent agreement with an NEE of 1.7% (see Methods for measurement of impulse response). Next, we target a phase vector implementing the temporal Talbot effect8 where the phase modulation imposed on each line causes the temporal waveform to exhibit a multiplied repetition rate. We choose a phase vector (above Fig. 3b–i) such that the repetition rate is doubled. The various results for this phase state are shown in Fig. 3b–i, ii, iii. Finally, we program another state, which we term the forked state, with waveform and the phase vector shown in and above Fig. 3c–i. As before, the various results are shown in Fig. 3c–i, ii, iii. We note that the Talbot and forked states are more sensitive to phase accuracy than the compressed pulse. For these waveforms, unlike the compressed state, the phases on each line need to be fine-tuned to obtain the waveform closest to the theoretical prediction. This could be caused by an imperfect reference comb phase measurement and results in a target signal comb phase that is slightly different than the ideal signal comb phase (see Fig. 3b, c–iii). We measure  < −28 dB of nearest-neighbor crosstalk with a 3 GHz channel spacing, enabling the high-fidelity waveform generation (see Supplementary Information note 2). For all states, we see excellent agreement with the target in both the temporal waveform and measured spectral phase, with an NEE of 1.4 and 2.2% for Talbot and forked states, respectively.

Pulse compression

We next show pulse compression for six-line combs with varying repetition rates of frep = 3, 4, and 5 GHz. Once the routine converges, the measured output pulses in the time domain are shown for the 3, 4, and 5 GHz repetition rates in Fig. 4a, b, c–i (blue trace), respectively. The measured waveforms are plotted alongside the simulated ideal waveforms taking into account the response of our measurement system as well as the optical power of the comb lines in Fig. 4a, b, c–i (orange trace). We compute an NEE of 2.1 and 2.3% for the 4 and 5 GHz compressed states, respectively. The measured power spectrum from the OSA (resolution  ~1.25 GHz) of the output comb for each repetition rate is shown in Fig. 4a, b, c–ii. The apparent difference in maximum power between the lines is primarily due to the non-flat region of the EO comb lines sent into the chip. Finally, the difference between the final measured spectral phases and the target phases are shown in Fig. 4a, b, c–iii. We see good agreement between the measured and target temporal waveforms and spectral phases for each grid spacing, showcasing the tunability of our shaper.

Fig. 4: Pulse compression.
figure 4

a, b, c-i Waveforms acquired from a 30 GHz PD and 50 GHz sampling oscilloscope (blue traces) compared with the simulated target waveform after convolution with our measurement system impulse response (red dashed traces), for 3, 4, and 5 GHz channel spacing, respectively. a, b, c-ii OSA power spectral density of the EO comb lines coming out of the shaper after being programmed for compression on 3, 4, and 5 GHz grids, respectively. The power measured here for each spectral line is taken into account in the theoretical trace in (a, b, c-i). a, b, c-iii The difference between measured and target phase vectors with error bars (standard deviation) from the measured phases, after programming for 3, 4, and 5 GHz grids, respectively.

Discussion

Future shaper designs aim to improve the channel resolution (here  ~900 MHz), reduce channel insertion loss (here  ~6 dB), and increase the number of shaper channels. Improving the channel resolution relies in part on reducing the round trip loss in the resonators. Our microresonator intrinsic quality factor corresponds to an average propagation loss of  ~1 dB/cm. Compared to an average propagation loss of  ~2.5 dB/cm for 220 nm-thick SOI singlemode waveguides that the commercial foundry provides49, our multimode design results in a significant reduction of this loss, enabling higher quality factor. Modified resonator designs, such as increasing the length of the straight multimode waveguide segment46 or adopting an adiabatic microring47, along with foundry process quality refinements48,49, have the potential to yield higher intrinsic quality factors on the order of 106. In addition, other integrated material platforms such as Si3N452 and thin-film LiNbO353, with demonstrated ultra-low waveguide loss and high intrinsic Q factors in the order of 107 (108 in LiNbO3), could potentially be adopted to attain a higher resolution. With further engineering of the coupling to the bus waveguides, the drop-port loss could be reduced at the same time. Minimizing the thermal crosstalk and power consumption can help scaling up of shaper channels. The addition of a substrate undercut, thermal trenching process54, the integration of phase change materials on SOI55, or using material platforms with intrinsic nonlinearities like LiNbO353 or AlGaAs56 could significantly reduce crosstalk effects and power consumption and simplify use of the shaper.

Our measurement process can be enhanced on the MHS side by both using a lower repetition-rate MLFC or using multiple CW laser lines (a DCS approach). The first modification would result in a finer resolution measurement of the optical spectrum leading to more accurate channel alignment. The second would increase the measurable optical bandwidth allowing us to scale to larger channel numbers or spacings. Besides reducing the repetition rate of the MLFC, a spline or Lorentzian fit57 could be applied to the MHS spectra to more accurately measure resonance frequencies. The DCS measurement can easily be scaled to accommodate a larger number of shaper channels by increasing the number of components in the EO comb generators or adding components for nonlinear spectral broadening58. Fast PDs ( >200 GHz) on the SOI platform have been demonstrated59, the integration of which could simplify the off-chip setup, while allowing for our tuning method to operate in a similar way. An FPGA, or monolithic electronic-photonic integration60, could replace oscilloscopes and embed electrical signal processing methods to reduce runtime. We note that the impetus for our control scheme was based on available equipment in our laboratory, and there are numerous other approaches for active control that could be useful for our system, for example involving dithering signals, photoconductive measurements, and phase interrogators61,62,63.

A comparison between our SiP shaper and state-of-the-art alternatives is helpful: a comprehensive list is presented in Table 1 and we proceed to discuss these and other pulse shaping systems. Commercial Fourier-transform pulse shapers today offer polarization independence and tunable channel bandwidths and amplitudes, yet are limited to  ~10 GHz resolution and  ~5 dB insertion loss (up to 2 dB increase below 15 GHz resolution)20. Bulk-optics Fourier shapers assembled in research laboratories have shown  <400 MHz resolution with an insertion loss of  ~15 dB4,23. On-chip Fourier-type shapers implementing AWGs have been shown in silica31,32, InP33,35, and Si3N434 platforms with typical channel bandwidths and losses in the 10s of GHz and  ~10 dB range, respectively. AWGs have also been used as de(multiplexers) in tandem with free-space imaging systems and LCoS modulators to realize shapers with resolutions below 800 MHz64. Comparatively, non-Fourier shapers, based on Frequency Shifting Loops and (or) nonlinear optical techniques, have been shown with very high resolution (~10–100 MHz) and low losses12,13,15. However, the demonstrations in12,13 are limited to generating complex waveforms based on a CW seed laser and cannot shape a broadband optical field. Nonlinear methods based on Stimulated Brillouin Scattering15 are capable of operating on an arbitrary optical field, yet they rely on strong optical pump fields to generate sufficient Brillouin signals, which can impose additional requirements like, for example, significant pump suppression when operating on quantum light. In contrast, our shaper is linear and is equally effective for both classical and quantum light65,66. Furthermore, our SiP shaper has, to the best of our knowledge, the highest resolution (channel linewidth 900 MHz) of any on-chip Fourier-transform pulse shaper to date (see Table 1). Combining our chip with advanced edge coupler designs67 and photonic wirebonding techniques68, and fiber-to-fiber losses of our SiP shaper could be comparable to the commercial offering.

Table 1 State-of-the-art for Fourier-transform optical pulse shapers

In conclusion, here we demonstrate a SiP spectral shaper with microresonator filter banks designed beyond the single-mode regime to achieve a high spectral resolution of  ~900 MHz, a significant improvement over the bulk commercial counterpart with  ~10 GHz resolution. In addition, we present an efficient method for adaptively programming such shapers using common spectroscopy techniques and electrical signal processing methods. Our platform is well-suited for large-scale integration to produce the next generation of high resolution pulse shapers.

Methods

Multi-heterodyne spectroscopy

We spectrally filter a portion of a stabilized MLFC (Menlo Systems) with a 250 MHz repetition rate using a 100 GHz DWDM filter and send it through the bus waveguides in the shaper, as indicated by the brown arrows in Fig. 2a–i. The output comb with amplitude-modified lines is then combined with a CW laser fixed to emit at a wavelength near the targeted channel frequencies and fed to a PD to produce heterodyne beat notes. Erbium-doped fiber amplifiers (EDFAs) are used to amplify the optical signal prior to photodetection, along with DWDM filters to suppress amplified spontaneous emission (ASE). We use two 50 GHz PDs (u2tXPDV2020R, Coherent BPDV2120R) connected to a four-channel 30 GHz oscilloscope (80 GSPS, Keysight DSA93004L) to detect these beat notes. An FFT is performed on the oscilloscope after a 2 μs acquisition and transferred via USB to a PC for processing. A single data transfer takes on the order of  ~10 s of ms. RF tones are processed and resonance frequencies are identified using peak finding methods.

Dual-comb spectroscopy

Signal and reference EO combs are generated by cascading a single intensity ( JDS Uniphase, EOspace) and phase modulator (EOspace). Each comb generator is driven with an independent signal generator (Hittite HMC-T2100) with a repetition rate difference of Δfrep = 50 MHz. The signal generators are synchronized to a common clock (10 MHz). The intensity modulators are driven at an RF power that can produce a square-like pulse shape (amplitude of Vπ/2)69. Approximately 26 dBm of RF power is provided to the phase modulator for each comb, leading to broadband combs spreading  ~7 lines on each side of the pump (see Supplemental Information). RF amplifiers are used before the modulators to obtain the appropriate RF power levels. An RF phase shifter is included in each EO comb to align the phases between the intensity modulator and phase modulator. To ensure similar RF power levels for the 3, 4 & 5 GHz EO combs, and to align the phases between intensity and phase modulators, the detailed EO comb configurations (the number of RF amplifiers and the position of phase shifter) are different for each repetition rate. This is not a limitation to the method, but a requirement based on the available RF equipment.

The 2nd–7th signal comb lines at the higher wavelength side of the pump are sent to the chip. The signal comb going through the shaper and the MHS frequency comb going through a loopback are coupled out of the chip through the same waveguide but are spectrally separated with a DWDM filter. A portion of the output signal comb is then combined with the reference comb, detected on a 5 GHz balanced PD (Thorlabs BDX3BA), and is measured with a 2 GHz real-time oscilloscope (Rohde & Schwarz RTO1024). EDFAs are used to amplify the optical signal prior to photodetection, along with DWDM filters to suppress ASE. The scope acquires a 10 μs signal, consisting of 500 interferogram periods (one interferogram period is 1/Δfrep) between the two combs. The signal generator synchronization signal is used to trigger the oscilloscope to minimize the timing jitter between each measurement. FFT processing of the acquired signal provides the desired phase values. To achieve an accurate phase measurement, we process 16 acquisitions for each DCS measurement to obtain a mean and standard deviation of the extracted phases. A linear phase reference is necessary as acquisitions show slight timing jitter between measurements, affecting the mean and standard deviation of the phases. The error bars in the measured phase plots are the standard deviation, which is usually less than 0.1 rad and is not accepted unless  <0.15 rad. We note that the error bar of the 100 MHz-beat (~0.1 rad, channel 1) is slightly higher than the other beats (~0.08 rad for 150 MHz-beat, channel 2, and  ~0.05 rad for the other two beats, channels 4 and 5) possibly due to the low-frequency amplifier noise around  <100 MHz (See Fig. S9(c) in the Supplementary Information note 5).

Control routine

The flowchart of the routine is shown in Fig. 2b. Resonators are tuned within tolerance when the error signal, the difference between measured resonance frequencies f and target frequencies F, satisfies Errf = ∣F − f ∣ < 250 × 106 Hz. Phases are tuned within tolerance when the error signal, the difference between the signal comb phases ϕsig and target phases ϕtarget, satisfies Errϕ = ∣ϕtarget − ϕsig∣ < 0.1 radians. The DCS measured phase vector is ϕDCS = ϕsig − ϕref (where ϕsig and ϕref are absolute phase vectors of the signal and reference combs, respectively). ϕsig can be controlled arbitrarily when an accurate value of ϕref is supplied (see Reference Comb Phase Measurement section in Methods for measurement details of ϕref). As an example, for the pulse compression waveforms ϕsig = 0, which means the DCS measured phase ϕDCS = − ϕref. We approximate ϕref with quadratic frequency dependence and measure the quadratic coefficient to be  ~0.009 rad/GHz2. Microheaters in the resonators and phase shifters are driven with linear steps in power proportional to the respective error signals Errf and Errϕ. The multichannel DC power supply (Nicslab XPOW-40AX-CCvCV-U-V12) updates drives in a serial fashion with a  ~ms setting time. Practically, the control routine takes a couple hundred iterations or just a few minutes to converge to the desired state (see Supplementary Information note 6 for an example). However, in scenarios where phases require fine-tuning like that described for the states in Fig. 3, the control sequence can be run once to converge near to the target state, and additional control sequences can be run with this state from the previous iteration as the starting point. In these cases, convergence to the next state can be reached in a few seconds.

Reference Comb Phase Measurement

We program the shaper to pass only two channels. Two lines from the reference comb are sent through the chip, detected by a 30 GHz BPD (Thorlabs BDX3BA), and measured with a 50 GHz sampling oscilloscope (HP 54120). The sampling oscilloscope is triggered by a signal derived from the signal generator (using a  1∕3 divider) driving the reference comb. The relative phase between the two comb lines is measured from the beat note as a temporal delay70. By tuning the pump laser wavelength in increments of the comb repetition rate, the relative phase difference between each adjacent pair of comb lines can be measured, and the spectral phase of the comb can be computed. A quadratic spectral phase provides a good fit to the measured values (see Supplementary Information note 5).