Introduction

Entanglement-based quantum networks offer a promising platform for many dramatic applications, such as distributed quantum computation1, quantum sensing2,3, and multi-user quantum communication4,5,6,7. When constructing a large-scale practical quantum network, the coherent transfer of quantum information with the preservation of the delicate entanglement of photons through a noisy channel become a challenging but important issue8,9,10,11. When coherent light passes through a scattering medium, especially those frequency-sensitive complex media like multimode fiber (MMF), the optical field dramatically changes with the frequency of the input field due to the frequency-dependent mode coupling effect and interference, behaving as various output speckle patterns12,13. Such media involve the complex interplay of hundreds to millions of modes, and the effects of scattering must be overcome in a manner that preserves higher-order quantum coherence between all modes of interest14. In temporal imaging, propagation through a dispersive media causes the constituent frequencies of a pulse to diverge in time, resulting in a temporal disturbance of the photon pulses.

In future quantum networks, MMF has the prospect of becoming a transmission channel for quantum states encoded in multiple degrees of freedom of photons, e.g., spatial mode and frequency, and will play an important role in entanglement distribution process due to its unique characteristics in various propagation modes15. Recently, the wavefront shaping technique based on high-resolution SLMs has made significant progress in performing quantum information tasks through a MMF, including manipulating two-photon quantum walk12, harnessing disorder for reconfigurable optical networks13, and unscrambling spatial entanglement14. Unscrambling entangled photons through a MMF has become an important technique and is essential for constructing a heterogeneous quantum network. To effectively establish entanglement between remote nodes made of quantum memories of a quantum repeater network, the telecommunication photons need to be transferred to near-infrared photons by quantum nonlinear frequency conversion16,17,18,19,20. The temporal disturbance from the MMF will directly affect the temporal overlap degree of single photons and pump pulses21, which may significantly reduce the quantum frequency conversion efficiency22. On the other hand, as an important degree of freedom (DOF), the photon frequency has been leveraged to significantly improve the capacity of an communication channel in large-scale quantum networks, particularly in those specific networks with a fully-connected topological structure5. When the incident light comprises multi-wavelength photon pulses, the MMF responds differently for the distinct spectral components of different pulses and produces a very complex spatiotemporal speckle pattern at the output23. Therefore, to implement the best quality of entanglement distribution through a frequency-sensitive MMF in future quantum network, a frequency-independent spatiotemporal shaping technique is required to compensate for both the spatial and temporal distortions for each frequency component of the quantum links24.

Here, we demonstrate a frequency-independent spatiotemporal shaping scheme to control entangled photon pulses propagating through a frequency-sensitive complex medium, i.e. a 200-meter-long MMF. In general, the propagation through a complex medium can be described by a Transmission Matrix \(\hat{{{{\boldsymbol{\Gamma }}}}}\), which can be acquired by using phase-shifting wavefront shaping techniques. Unlike the traditional wavefront shaping scheme23 (Fig. 1a) which directly modulates the input optical field using a SLM, the frequency-insensitive spatiotemporal shaping scheme is based on Fourier-transform apparatus, as shown in Fig. 1b. In the Fourier-transform apparatus, the input single photon pulses are first spectrally dispersed to different spatial positions by a grating. Each angularly separated frequency component of the pulse is focused onto a specific lateral position in the focal plane of an achromatic lens, yielding an elongated focal spot where the wavelength varies from λmin to λmax according to the parameters of the grating and achromatic lens. A spatial light modulator (SLM) is positioned near the focal plane centered on the beam to implement the targeted masking function. After undergoing a local phase shift for pulse shaping on the SLM, the spectrum-separated single photon pulses are recombined by a second grating, yielding an output pulse of modified temporal shape and optimized wavefront controlled by the genetic algorithm. Considering the two-photon quantum state emitted in a nonlinear crystal11,25: \(\left\vert \psi \right\rangle =\xi \int\,d{\omega }_{i}d{\omega }_{s}\Phi ({\omega }_{i},{\omega }_{s},{{{{\boldsymbol{q}}}}}_{i},{{{{\boldsymbol{q}}}}}_{s}){\hat{a}}_{{\omega }_{i}}^{{\dagger} }({{{{\boldsymbol{q}}}}}_{i},t){\hat{a}}_{{\omega }_{s}}^{{\dagger} }({{{{\boldsymbol{q}}}}}_{s},t)\left\vert 0\right\rangle\), where Φ(ωi, ωs, qi, qs) represents the two-photon amplitude, ξ is the coupling constant corresponding to the second-order susceptibility χ(2) of the nonlinear crystal, and \({\hat{a}}_{{\omega }_{i}}^{{\dagger} }({{{{\boldsymbol{q}}}}}_{i},t)\) is the creation operator of a photon with a transverse momentum qi and the frequency of ωi. We suppose that only the signal photons undergo the scattering of the MMF, which brings a linear transformation Γ on the creation operator \({\hat{a}}_{{\omega }_{s}}^{{\dagger} }({{{{\boldsymbol{q}}}}}_{s},t)\to \int\,d{{{\boldsymbol{\rho }}}}\Gamma ({{{\boldsymbol{\rho }}}},{\omega }_{s})exp(i{{{\boldsymbol{\rho }}}}\cdot {{{{\boldsymbol{q}}}}}_{s}+i\phi (t))\), resulting in the output state:

$$\begin{array}{rcl}{\left\vert \psi \right\rangle }_{out}&=&({\mathbb{1}}\otimes \hat{{{{\boldsymbol{\Gamma }}}}})\left\vert \psi \right\rangle \\ &=&\xi \int\,d{\omega }_{i}d{\omega }_{s}d{{{\boldsymbol{\rho }}}}\Gamma ({{{\boldsymbol{\rho }}}},{\omega }_{s}){\hat{a}}_{{\omega }_{i}}^{{\dagger} }({{{{\boldsymbol{q}}}}}_{i},t){\hat{a}}_{{\omega }_{s}}^{{\dagger} }({{{\boldsymbol{\rho }}}},t)\\ &&\times \Phi ({\omega }_{i},{\omega }_{s},{{{{\boldsymbol{q}}}}}_{i},{{{{\boldsymbol{q}}}}}_{s})exp(i{{{\boldsymbol{\rho }}}}\cdot {{{{\boldsymbol{q}}}}}_{s}+i\phi ({\omega }_{s},t)),\end{array}$$
(1)

where Γ(ρ, ωs) and ϕ(ωs, t) are the amplitude and temporal transfer functions of the MMF, and ρ is the transverse spatial coordinate. The adaptive spatiotemporal shaping presents a solution to the inverse problem, i.e. the inverse matrix \({\hat{{{{\boldsymbol{\Gamma }}}}}}^{-1}\), seeking to find the unknown targeted spatial modes and temporal profiles for different frequency components of incident single photons. By adaptively compensating for the spatial and temporal disorder, we show that such a scheme can significantly improve the entanglement distribution of multi-wavelength single photon pulses through the MMF and enhance the sum frequency generation (SFG) of single photons. Our scheme can serve as a bridging technology to establish the entanglement between remote nodes of spectrally interconnected quantum systems, which is an essential prerequisite for constructing a practical long-distance quantum network.

Fig. 1: Experimental setup.
figure 1

a Schematic of the traditional shaping setup. b Schematic of the Fourier transform shaping setup. c Experimental setup for frequency-insensitive spatiotemporal shaping of single photons. SLM spatial light modulator, L achromatic lens, WDM wavelength division multiplexing filter, DWDM dense wavelength division multiplexing filter, OC optical collimator, PC polarization controller, MMF multimode fiber, SMF single mode fiber, MZI Mach-Zehnder Interferometer, SNSPD superconducting nanowire single photon detector.

Results

Spatiotemporal shaping of multi-wavelength photon pulses

The experimental setup is depicted in Fig. 2, which mainly includes a 4-user fully-connected network based on quantum entanglement and the Fourier-transform apparatus. The second harmonic of an 5-picosecond pulsed laser is used to generate entangled photon pairs through the spontaneous parametric down conversion (SPDC) process in a periodically poled lithium niobate (PPLN) waveguide. By making use of telecommunications wavelength multiplexing and demultiplexing technology, we construct an entanglement-based quantum communication network with a fully connected architecture5, which includes four users identified as Alice, Bob, Chole, and Dave, respectively (see Supplementary Note 1). Ultimately, six pairs of entangled photons are distributed among the four users and each user receives three wavelength-multiplexed channels simultaneously, ensuring they can communicate with each other. One link of photon pulses is firstly sent to the spatiotemporal shaping apparatus to undergo the adaptive temporal and wavefront shaping, and then directed towards Alice via a 200-m-long MMF. The remaining quantum links are distributed to the other three users via single mode fibers directly. In our experiment, the lowest order mode (LP01) of the MMF whose intensity distribution is similar to that of a Gaussian beam is targeted to obtain the corresponding transmission matrix of the MMF by adaptive shaping. After transmission through the MMF, the reshaped photons are coupled into a single-mode fiber and detected by a superconducting nanowire single-photon detector (SNSPD) with a quantum efficiency of about 80%. All the detection events are recorded by a time-correlated single-photon counting (TCSPC), which provides feedback for the computer controlling the SLM to perform the spatiotemporal shaping.

Fig. 2: Optimization processes.
figure 2

a Performance of the genetic algorithm for the Fourier transform shaping setup. b Enhancement of the entanglement distribution. The inset presents the optimal phase pattern after the shaping process.

In the Fourier-transform setup, a SLM leveraged to tailor the temporal profile and spatial wavefront of single photons. It has a resolution of 1920 × 1280 macropixels, each with a rectangular area of 8 × 8 μm. Given that each quantum link consists of three wavelength-multiplexed channels of entangled photons, the SLM is first divided into three rectangular components according to the position of different photon pulses spectrally dispersed by the grating, each comprising 640 × 1280 independently controllable macropixels with a varying phase θ [0, 2π]. Aiming at the improvement of the distribution process of single photons, the phase of each macropixel starts with a set of random phase patterns and is iteratively optimized by the genetic algorithm based on a merit function, which is set as: \({{{{\mathcal{R}}}}}_{t}={{{{\mathcal{C}}}}}_{opt}/{{{{\mathcal{C}}}}}_{ref}\), where \({{{{\mathcal{C}}}}}_{opt}\) and \({{{{\mathcal{C}}}}}_{ref}\) represent the detected photon count for the optimized-phase and flat-phase on the SLM, respectively. The detection result of the single photons provided by the SNSPD and TCSPC serves as a feedback signal for the genetic algorithm controlling the SLM. It is worth noting that the entanglement distribution process for all the multiplexed photon channels can be optimized simultaneously since they can be distinguished by using the time tag function.

Figure 2 shows the experimental results for the proposed spatiotemporal scheme. The optimization process in Fig. 2a presents the maximal values at each iteration of the genetic algorithm for all photon channels distributed to Alice. There is an obviously growing tendency for all the channels that have more photons coupled into the single mode fiber to be detected by the SNSPD, meaning that part of photons with a high-order mode has been transferred to the lowest order mode of the MMF. Figure 2b shows significant enhancement for the optimized SLM pattern shown in the inset, compared with a flat phase at optimal mechanical focus alignment, a reference case in which the SLM serves as a mirror and the manual coupling maximizes the peak. The growth factors after 300 iterations for CH35, CH43 and CH52 are over 3, 6, and 15, respectively, which convincingly imply the frequency-insensitive characteristic of the spatiotemporal shaping scheme based on the Fourier-transform apparatus. The differences in the enhancement ratio for different frequency channels are mainly caused by the difference in the initial output speckle patterns owing to the frequency-sensitive mode coupling characteristics of the MMF. It should be emphasized that before the optimization procedure the system coupling from the MMF to SMF has been artificially adjusted to be the best, ensuring the improvement of entanglement distribution through the MMF is attributed to the genetic algorithm.

For comparison, we optimize the entanglement distribution process through the MMF by using the traditional wavefront shaping scheme shown in Fig. 1a. During this comparative experiment, all other experimental parameters, such as the initial output mode of the MMF, the number of input single photons and system detection efficiency, are kept the same as the optimization procedure for the frequency-insensitive spatiotemporal shaping scheme. The merit function of the genetic algorithm is set as the increase of the total count ratio \({{{{\mathcal{R}}}}}_{total}\) for all photon channels, i.e., CH35, CH43, and CH52. The typical experimental results are shown in Fig. 3. As one can see from the results, although the total count ratio \({{{{\mathcal{R}}}}}_{total}\) grows steadily in the optimum iterative procedure, the evolution curves for each single photon channel show an out of sync serrated shape, which severely limits the overall improvement of the entanglement distribution process through the MMF. In this scheme, the wavelength channel will have a good performance during the shaping process if its photon count ratio is set as the merit function of the genetic algorithm. However, the other channels may not perform well after the transmission through a frequency-sensitive scattering medium. Unlike the traditional scheme, the spatiotemporal shaping scheme based on the Fourier-transform apparatus has the ability of optimizing the entanglement distribution process through a complex medium for multi-wavelength channels simultaneously. Thus, our proposed spatiotemporal shaping scheme is more suitable for a multi-user quantum network to improve the entanglement distribution process through a frequency-sensitive environment.

Fig. 3: Performance of the genetic algorithm for the traditional shaping setup.
figure 3

The inset presents the optimal phase pattern after the shaping process.

Quantum entanglement before and after spatiotemporal shaping

Maintaining quantum entanglement after spatiotemporal shaping is an important feature for a quantum spatiotemporal converter. Obviously, our Fourier-transform apparatus can serve as a coherent interface in a quantum network encoded in time-bin and time-energy DOF, to improve the entanglement distribution through a complex channel. To verify this feature, we measure the time-energy entanglement as an example, which is an inherent feature of photon pairs generated via cw laser-pumped SPDC. After the adaptive shaping process, we replace the pulse pump of the SPDC source with a cw laser and measure the time-energy entanglement by using a Franson-type interferometer26, which consists of two 1-GHZ unbalanced Mach-Zehnder interferometers (MZI). The MZIs are made of free-space optical components and the relative phase between the two arms can be changed by applying the voltages to a resistive heater fixed on an optical element in the MZIs. We measure the Franson-type interference fringes of all the involved photon channels under two nonorthogonal phase bases before and after the spatiotemporal shaping. A flat phase mask and an optimized phase mask are applied to the spatial light modulator for the measurements before and after the spatiotemporal shaping, respectively. The experimental results are shown in Fig. 4, in which a-c and d-f are the interference fringes before and after the adaptively spatiotemporal shaping, respectively. We obtain the average fringe visibilities for the photon pairs CH35 & CH39, CH43 & CH31 and CH52 & CH22 after the spatiotemporal shaping to be V = (Nmax − Nmin)/(Nmax + Nmin) = 98.5% ± 0.5%, 97.4% ± 1.3% and 96.8% ± 0.3%, respectively, while the average fringe visibilities before the spatiotemporal shaping are measured to be 96.5% ± 0.7%, 95.3% ± 1.8% and 93.5% ± 0.7%. Such visibilities exceed the nonlocal bound of 71% of the Bell inequality and reveal a high quality of time-energy entanglement, which proves quantum entanglement can be well conserved during the spatiotemporal shaping. Therefore, our Fourier transform shaping setup can be used in a multi-user quantum network to improve the entanglement distribution through a frequency-sensitive complex scattering channel.

Fig. 4: Franson-type interference fringes before and after the spatiotemporal shaping.
figure 4

ac Franson-type interference fringes before the spatiotemporal shaping. df Franson-type interference fringes after the spatiotemporal shaping. The error bars represent one standard deviation.

Optimal control of SFG process

To unequivocally demonstrate the versatility of the Fourier-transform apparatus, we further investigate the frequency-independent spatiotemporal shaping scheme by adaptively manipulating the SFG of single photons. After transmission through the MMF, the photons are upconverted to 780 nm in a PPLN waveguide pumped by three pulse lasers with a temporal pulse width of about 5 ps. See Supplementary Note 2 for the details of the experimental setup. To achieve the highest efficiency of SFG, one needs to produce additional quadratic temporal phases to the single photons to compensate for the second-order spectral dispersion27,28 generated during transmission through the MMF, which is achieved by the spatiotemporal shaping scheme in our case. Figure 5a shows the efficiency of the SFG processes in the PPLN waveguide for Alice’s photon channels. During the optimization processes, the SFG efficiency is controlled to be about 60%. The merit function for the genetic algorithm is set to be the optimized count ratio \({{{{\mathcal{R}}}}}_{t}^{sfg}={{{{\mathcal{C}}}}}_{opt}^{sfg}/{{{{\mathcal{C}}}}}_{ref}^{sfg}\), where \({{{{\mathcal{C}}}}}_{opt}^{sfg}\) and \({{{{\mathcal{C}}}}}_{ref}^{sfg}\) represent the detected SFG photon count for the optimized-phase and flat-phase on the SLM, respectively. The performance of spatiotemporally optimized controlling the SFG process of single photons is depicted in Fig. 5b. After 300 iterations of optimization processes, the genetic algorithm provides an optimized control of SFG processes with an enhancement of 350%, 190%, and 160% for the photon channels CH35, CH43 and CH52, respectively, which highlights the versatility of spatiotemporal optimization that can control quantum light traversing different complex scattering media.

To be feasible as a quantum interface in practical networks, the quantum characteristics of the single photons should be preserved after frequency upconversion. To investigate this feature, we focus on the second-order autocorrelation function g2(τ) of the SFG photons, which is a key parameter to characterize the figure-of-merit of a quantum field. During the experiment, the Hanbury Brown-Twiss interferometer29 is leveraged to measure the g2(τ) of the upconverted photons. Figure 6a shows a typical result of g2(0) and the corresponding coincidence-to-accidental ratio (CAR) of the entangled photon pairs between Alice and other users after SFG. Such a low autocorrelation and high CAR point to the high quality of the heralded single photon state and verify the single-photon character of the upconverted photons. Maintaining the quantum entanglement of signal photons during frequency conversion is essential for quantum network. For this important feature of the frequency convertor, there are several researches which show that the entangled characteristics can be well preserved during frequency up-conversion process30,31,32. One can easily characterize the time-bin entanglement by measuring the Franson-type interference fringes after frequency upconversion. Different from the original multi-wavelength signal photons with a spectral bandwidth of 100 GHz determined by the DWDM filters, the upconverted photons have a central wavelength of 780 nm and a spectral bandwidth of 0.08 nm, as shown in Fig. 6b, due to the quasi-phase match condition of the PPLN waveguide. The single-wavelength characteristic of the upconverted photons facilitates the following quantum information process in the network, such as quantum memory, entanglement swapping and teleportation which require to perform a HOM interference33.

Fig. 5: Adaptive spatiotemporal shaping for enhancing the SFG process.
figure 5

a Experimental SFG efficiency versus pump power. b The genetic algorithm performance of spatiotemporal shaping. The inset presents the optimal phase pattern after the shaping process.

The future quantum network would be composed of heterogeneous quantum nodes based on entanglement encoded in different DOFs34. Obviously, our Fourier-transform apparatus can serve as a coherent interface in a large-scale quantum network encoded in time-bin and time-energy DOFs, to improve the entanglement distribution through a complex channel and help to establish a connection between remote nodes. Besides, the spatiotemporal wavefront shaping scheme can be easily extended to spatial entanglement35 through a complex medium by performing appropriate projective measurements for the entangled state Fig. 6.

Fig. 6: Quantum characteristics and spectrum of the SFG photons.
figure 6

a The measured g2(0) and CAR after the SFG process. b Spectrum of single photons before and after the SFG process.

Discussion

We implement the frequency-insensitive spatiotemporal shaping to control entangled photon pulses in a fully connected network propagating through a complex media. Based on a Fourier transform setup, our scheme can significantly improve the entanglement distribution process of multi-wavelength single photon pulses by adaptively compensating for the spatial and temporal disorder induced from the MMF. The optimization processes achieve a growth factor of over 300% for both linear entanglement distribution process and SFG processes. The quantum characteristics of the single photons are experimentally verified to be well preserved by certifying the time-energy entanglement and measuring the second-order autocorrelation function after the spatiotemporal shaping. Therefore, our scheme can serve as a bridging technology to establish the entanglement between remote nodes of spectrally interconnect quantum systems, which is an essential prerequisite for constructing a practical long-distance large-scale quantum network.