Introduction

The growing demand for precise characterization of materials, non-destructive inspection of semiconductor devices, and high-resolution imaging of biological specimens in their native states has highlighted the critical importance of X-ray imaging, which provides unmatched capabilities for deep penetration and nanoscale resolution of complex internal structures. Due to the advantages of not requiring high-quality imaging lenses and having a spatial resolution theoretically limited only by the illumination wavelength, ptychography has become one of the mainstream methods in X-ray imaging1,2,3. Specifically, it is a scanning coherent diffraction imaging (CDI) method that increases data redundancy through partially overlapping sample scans and achieves high-quality quantitative phase imaging using specific phase retrieval algorithms4,5. Consequently, X-ray ptychography has been widely applied in nanoscale structural measurement of biological and material samples6,7, spatial mapping of chemical compositions8, and non-destructive measurement of integrated circuit architectures and surface morphologies9,10. Due to the demands for high-flux and high-coherence illumination, these experiments have mostly been restricted to synchrotron facilities.

In recent years, technological advancements in laboratory X-ray sources, particularly liquid metal jet X-ray sources and high harmonic generation (HHG) extreme ultraviolet (EUV) sources, have significantly increased their brightness, making them increasingly suitable for lensless imaging techniques11,12,13,14,15,16. However, laboratory X-ray sources typically have a relatively large bandwidth, requiring monochromatic filtering to meet the fully coherent model assumptions of ptychography17. This process significantly reduces the usable flux of the source, thereby affecting the dose-limited spatial resolution and image quality18,19. Therefore, compensating for the effects of broadband sources through algorithms and directly using unfiltered high-flux illumination for imaging is an effective approach.

Recently, several numerical methods have been proposed to enhance the robustness of CDI to broadband sources. A multi-wavelength reconstruction algorithm was developed for CDI experiments utilizing a laboratory-scale high-harmonic-generation (HHG) source, which scales the far-field diffraction pattern of the central wavelength to estimate the intensities of other harmonics and performs incoherent superposition to construct a polychromatic reconstruction model20. Subsequently, this method was further developed into PolyCDI, which enables imaging with continuous-spectrum sources, and was demonstrated using a synchrotron X-ray source, achieving a 60-fold reduction in exposure time compared to monochromatic CDI21. Moreover, a model incorporating the simultaneous propagation of multiple wavelengths was introduced into the reconstruction algorithm, enhancing robustness to broadband sources while enabling the simultaneous reconstruction of responses at multiple wavelengths22,23,24,25,26. In addition, the two-step CDI method, which extracts single-wavelength diffraction patterns from polychromatic data for traditional CDI reconstruction, has been validated using discrete high-harmonic sources27. With advancements in algorithms, numerical monochromatization methods employ regularized inversion to extract monochromatic data from continuous-spectrum datasets, with a bandwidth of up to 11%28. Subsequently, monochromatization methods were further optimized to handle broader bandwidths of sources29,30,31. The above methods are primarily based on the theory of coherent mode decomposition32, relying on known spectral distributions as prior knowledge for incoherent superposition of diffraction patterns and assuming that the sample is non-dispersive, so that diffraction patterns at different wavelengths are scaled versions of each other21.

In practical imaging applications, dispersive samples with complex amplitude information are often encountered, where diffraction patterns are no longer simple scaled versions of each other. Moreover, in the X-ray regime, many elements exhibit absorption edge characteristics, directly causing significant changes in the spectral distribution at the detector. The latest broadband diffraction imaging method can obtain the spectral information through numerical calculations, enabling more precise numerical monochromatization30. Although this method partially compensates for spectral variations arising from sample absorption and detector quantum efficiency, the spectral variations of complex dispersive samples in each scanning region of ptychography are unable to be determined in advance. An alternative partial-coherent-model distinct from the coherent mode decomposition is the convolution model, which offers potential solutions to these challenges. This model represents low-coherence diffraction patterns by convolving a kernel encapsulating coherence information with fully coherent diffraction patterns33,34. By introducing a blind deconvolution step into the iterative reconstruction process of the algorithm, the blur kernel can be progressively updated, thereby compensating for the effects of low spatial or temporal coherence35,36,37.

In this work, we propose an ultra-broadband ptychography method that incorporates the broadband convolution model, enabling imaging of dispersive samples without requiring prior spectral information. Our method uses a multi-kernel iterative deconvolution update strategy called joint deconvolution algorithm, in combination with structured illumination provided by a phase mask in the data acquisition, greatly enhancing the bandwidth robustness and reconstruction quality of our method. We highlight the key reasons for the failure of current methods for dispersive samples and demonstrate a significantly improved approach for handling cases where different regions of the sample exhibit varying spectral responses. The proposed ultra-broadband method is in principle applicable to broadband sources across any wavelength range, including laboratory-scale X-ray and HHG EUV sources.

Results

Ultra-broadband ptychography via convolution model

As illustrated in the schematic diagram in Fig. 1, in far-field ptychography, the broadband illumination passes through a structured aperture to form a probe, which subsequently scans across the sample plane orthogonal to its propagation direction. The illuminated regions at adjacent scan positions \({{{{\bf{r}}}}}_{j}\) exhibit partial overlap, ensuring sufficient redundancy for phase retrieval. The exit waves propagate through free space to the detector plane, where the far-field partially coherent diffraction patterns \({I}_{j}^{{pcoh}}\) are recorded. Here the \({I}_{j}^{{pcoh}}\) can be represented using the broadband convolution model, which is the convolution of a coherent diffraction pattern \({I}_{j}^{{coh}}\) with a blur kernel \({h}_{j}\) containing coherence information33,34,

$${I}_{j}^{{pcoh}}\left({{{\bf{q}}}}\right)={I}_{j}^{{coh}}\left({{{\bf{q}}}}\right)\otimes {h}_{j}({{{\bf{q}}}})$$
(1)

where q is a position vector in reciprocal space and \(\otimes\) represents the convolution operator. Therefore, the robustness of existing fully coherent iterative algorithms can be enhanced for broadband sources by incorporating a blurring kernel, which is obtained through blind deconvolution within the phase retrieval process36,37.

Fig. 1: Principle of ultra-broadband ptychography.
figure 1

The broadband source passes through a phase-type structured aperture, forming a structured probe on the sample for two-dimensional scanning. Then, the transmitted wave propagates through free space to the detector plane, where the broadband far-field diffraction pattern dataset is recorded. The broadband diffraction intensity can be expressed in the form of a convolution between the coherent diffraction intensity and the kernel containing coherence information.

To better fit the measured polychromatic diffraction patterns, we introduced the broadband convolution model into the reconstruction process. As shown in Fig. 1, each diffraction pattern at different scanning positions is assigned its own blurring kernel, rather than sharing a common kernel across all. The kernels are updated throughout the iterative process, which are obtained via blind deconvolution from the measured broadband patterns and the calculated coherent patterns. Here, we employed a joint deconvolution algorithm, inspired by the iterative probe update strategy used in the extended ptychographic iterative engine (ePIE)38. The blurring kernel obtained from the previous scan position is used as the initial value for the deconvolution iterations at the next scan position, thereby further improving the accuracy of the retrieved kernel (detailed in Methods). This strategy, based on the overall stable coherence of the system, leverages the kernel from the preceding scan position as the initial input, effectively utilizing the data redundancy in ptychography to enhance the convergence of the deconvolution algorithm. Subsequent iterative updates for each kernel further compensate for minor decoherence effects arising from system instabilities or sample movements.

Since the kernels of FT-MCF (Fourier transform of the normalized mutual coherence function) are iteratively updated during the reconstruction process, our ultra-broadband ptychography method does not require pre-measured spectral weight distributions as prior information, significantly simplifying broadband imaging experiments. Furthermore, it eliminates the need for the non-dispersive sample assumption, enabling the imaging of samples with absorption edges or significant dispersive effects within the spectral range, thereby greatly expanding the practical applicability. Moreover, we incorporated a phase-type structured mask into the system to generate structured illumination. Although structured light generated by amplitude masks has been proven effective in compensating for decoherence effects39,40, such masks significantly reduce the photon flux. Hence, we integrate the proposed retrieval algorithm with the phase-type structured illumination, significantly enhancing the performance of the broadband imaging while substantially reducing photon flux loss caused by absorption.

Broadband imaging of biological specimens

The capability for high-quality imaging of biological specimens, which are among the most common complex amplitude samples, is crucial for the practical applicability of ultra-broadband ptychography. To validate the feasibility of our method, we initially conducted an optical experiment on an ant utilizing a source with a bandwidth \(\Delta \lambda /\lambda=60\%\), where \(\lambda\) is the central wavelength and \(\Delta \lambda\) is the full width at half maximum (FWHM). Note that all bandwidths mentioned subsequently are defined as the FWHM. We built a proof-of-principle ptychographic imaging system as shown in Fig. 2a. A supercontinuum source with a full width at half maximum (FWHM) of 420 nm (SC-5, YSL Photonics) was used as the source for ultra-broadband illumination, the corresponding spectral distribution is shown in Fig. 2a. However, this spectrum is merely used for demonstration purposes. After collimation and spatial filtering, the broadband illumination passes through a pinhole to form a light probe on the ant specimen. The optical microscope image of the ant is also illustrated in Fig. 2a. Notably, the depth of field under our system configuration is estimated to be ~230 µm, allowing all the samples we used to be reasonably treated as two-dimensional objects under the projection approximation. Here, a phase-type USAF resolution target (Edmund Optics) was placed at the pinhole plane to generate structured illumination. Subsequently, the far-field diffraction patterns of the exit wave of sample were collected by the detector, as shown in Fig. 2a.

Fig. 2: Optical biology experiment of ultra-broadband ptychography at 60% bandwidth.
figure 2

a A proof-of-concept imaging system for ultra-broadband ptychography is depicted and described. The system integrates a super-continuous light source. After collimation and spatial filtering, broadband light passes through a pinhole with a phase-type USAF resolution target to form a light probe that illuminates the ant sample. The displayed images of the sample and pinhole with phase mask were obtained by an optical microscope. Additionally, a broadband diffraction pattern displayed on a logarithmic scale is presented. The spectral distribution of the continuum source employed for ultra-broadband illumination is also presented. b The reconstructed structured probe result, including the amplitude and phase of the ant specimen reconstructed using traditional ptychography, is displayed. c The reconstructed structured probe and sample using our ultra-broadband ptychography method are showcased. The backward propagation to the pinhole yields a clear USAF image, as indicated within the blue circle. The scale bar in (c) corresponds to 500 μm.

The proposed ultra-broadband ptychography method is developed by integrating a broadband convolution model and a joint deconvolution algorithm into ePIE38. Therefore, all subsequent references to traditional ptychography are based on the same ePIE algorithm, using consistent numerical parameters and the same position correction method41, to ensure a fair comparison. Further details can be found in Supplementary Table 1. Here, the central wavelength of our broadband source, 706 nm, was used during the iterative retrieval process. Figure 2b shows the amplitude and phase of the ant specimen reconstructed using traditional ePIE, in which almost no distinguishable details of the ant are visible. In this reconstruction, the algorithm cannot converge due to the incorrect assumption of full coherence. By introducing the convolution model into ptychography, the estimated diffraction intensities can be progressively closer to the recorded diffraction patterns as the iterations go on, which is helpful for the convergence of the algorithm. Figure 2c shows the reconstructed structured probe and sample using our method. The probe is well reconstructed, since the backward propagation to the pinhole yields a clear USAF image as shown in the blue box of Fig. 2c. The outline and detail information of reconstructed amplitude align well with the optical microscope image. As the central wavelength of source is closer to the infrared range, offering better penetration for biological specimens, the recovered amplitude reveals clearer internal details of the ant body. After phase unwrapping with least-squares phase unwrapping method42, the stacked structures of the ant are also clearly revealed. To quantitatively evaluate the spatial resolution of the reconstructed image, we employed the Fourier ring correlation (FRC), a widely used criterion in ptychography13,15. The resulting FRC curve of reconstructed amplitude was evaluated against the half-bit threshold43 to determine the resolution. As shown in the Supplementary Fig. 2, the intersection point corresponds to a spatial resolution of 13.74 μm, which closely matches the theoretical resolution of 12.73 μm, determined by twice the sampling interval at the sample plane. Notably, the resolution here is determined by the system settings and adapted to the resolution requirements of samples. This marks the first successful demonstration of clear ptychographic imaging of biological structures under ultra-broadband sources, validating the effectiveness of our method for complex amplitude sample imaging. This achievement significantly alleviates the limitations of broadband algorithms in practical biological and medical applications.

Broadband quantitative phase imaging

The quantitative phase imaging (QPI) capability is one of the key advantages of ptychography over traditional lens-based imaging techniques. Therefore, it is crucial to validate the QPI capability of our ultra-broadband ptychography method. Here, a custom-designed wavefront modulation plate was selected as a sample. This plate has a random binary phase pattern with a 50% fill factor, fabricated through exposure and development of AZ4562 photoresist (detailed in Methods). The pattern on the plate has a consistent thickness, ensuring a uniform phase shift at a single wavelength, which facilitates measurement of its phase value. The phase shift \(\Delta \phi\) is determined by the thickness d and refractive index n of the photoresist and is given by,

$$\Delta \phi=\frac{2\pi }{\lambda }{nd}$$
(2)

where \(\lambda\) denotes the illumination wavelength. To obtain an accurate phase value as a reference, we first performed ptychographic imaging under narrowband illumination, which has been proven to exhibit QPI capability44. A bandpass filter was introduced to the broadband source above, yielding a filtered central wavelength of 780 nm with a FWHM of 10 nm, resulting in a bandwidth of approximately 1%. Using this narrowband illumination, we recorded a set of diffraction data from the phase plate, while one of patterns is shown in Fig. 3a. The diffraction pattern clearly exhibits distinct speckle characteristics along with uniformly distributed random interference fringes, indicating a high degree of coherence in the source. Figure 3b, c shows the reconstructed probe and phase with a phase offset, recovered from traditional narrowband ptychography, while the bright areas of Fig. 3c represent the patterned regions and the dark areas correspond to the blank regions. The phase region enclosed by red box of Fig. 3a was displayed in 3D in Fig. 3b, demonstrating that the randomly distributed blocks with smooth surfaces and sharp edges can be accurately reconstructed. Additionally, we plotted the phase profile along the red dashed line, and determined a phase shift of 2.49 rad at 780 nm for the binary phase plate. Rescaling the phase to 706 nm using Eq. (2) while keeping n and d constant yields a phase shift of 2.77 rad through the filled pixels of the binary structure, which we use as a reference for quantitative comparisons in the following broadband experiments.

Fig. 3: Quantitative phase analysis of the binary phase plate.
figure 3

a A far-field diffraction pattern obtained under narrowband illumination is presented, which is displayed on a logarithmic scale. b The reconstructed structured probe and its backward propagation to the pinhole are showcased. c Reconstructed phase of binary phase plate achieved from traditional ptychography with 1% bandwidth. The bright areas signify patterned regions, while the dark areas correspond to blank regions. d The 3D visualization of the region enclosed by the red box in (c) and the phase profile along the red dashed line. e The diffraction pattern obtained under 60% bandwidth uniform illumination exhibits pronounced blur. f The reconstructed uniform probe and its backward propagation. g Reconstructed phase of the same sample using ultra-broadband ptychography shows image distortion compared to (c). h 3D phase map and phase profile of the same region as in (d). i The diffraction pattern obtained under 60% bandwidth structured illumination. j The reconstructed structured probe and its backward propagation. k Reconstructed phase using ultra-broadband ptychography exhibits similar quality to (c). l A 3D visualization and phase profile similar to those shown in (d). The scale bar in (c) corresponds to 280 μm and the scale bar in (g, k) correspond to 270 μm.

In this work, an important improvement is the introducing of phase modulation on the illumination probe, which can enhance broadband imaging performance at higher photon throughout compared to using an absorption mask. To quantitatively analyse the impact of structured illumination on the imaging quality of ultra-broadband ptychography, we conducted comparative experiments using a binary phase plate. Both diffraction datasets using uniform or structured illumination were recorded with a 60% bandwidth source and a total photon count of 2 × 107, identical to the narrowband case. As shown in Fig. 3e, i, the interference fringes in the diffraction speckle patterns were both significantly blurred. The proposed ultra-broadband reconstruction algorithm was run on both datasets using identical parameters, yielding high-quality reconstructions of the probes and the pinhole structures in both cases, as shown in Fig. 3f, j. However, the reconstructed phase plate under uniform illumination exhibited significant image distortion, with a structural similarity (SSIM) of only 0.3996 calculated against the reference image shown in Fig. 3c. Figure 3h presents the 3D phase map and phase profile of the same region as in Fig. 3d, exhibiting pronounced fluctuations and noise. The calculated global phase shift is 2.85 rad, which is close to the reference value of 2.77 rad, demonstrating that our ultra-broadband ptychography can retain QPI capability under uniform illumination. With structured illumination, phase reconstruction with higher contrast was obtained (Fig. 3k), achieving an SSIM value of 0.7362. The red-boxed region of the retrieved phase is also displayed in 3D in Fig. 3l, showing similarly sharp edges, with only slight distortions at the block corners where they appear slightly rounded. Additionally, the phase profile appears overall smooth, with only minor fluctuations. The global phase shift was also calculated, yielding a value of 2.82 rad. These results demonstrate that our ultra-broadband algorithm maintains good QPI capability under both uniform and structured illumination, while structured illumination can significantly enhance the quality of broadband reconstructions and improve QPI accuracy. Moreover, broadband experiments using a USAF resolution target (LBTEK) showed that structured illumination improved the resolution by 14% compared to uniform illumination (details can be found in the Supplementary materials).

Performance of different broadband methods in ptychography

The aforementioned mainstream broadband methods employing numerical monochromatization have demonstrated exceptional performance in CDI28, and have recently been applied to ptychography29,30, further enhancing its capabilities. Therefore, we evaluated the performance of monochromatization ptychography (monoPTY) and our proposed method using different samples under a 15% bandwidth light source, with ptychography results under 1.8% bandwidth conditions serving as the benchmark for comparison. The system used in these experiments is consistent with the setup mentioned above, with only the illumination bandwidth being adjusted by changing the filter. Here, the broadband structured illumination has a central wavelength of 550 nm and a FWHM of 80 nm, while the narrowband structured illumination has a central wavelength of 523 nm and a FWHM of 10 nm.

Figure 4 shows the reconstructed results of three samples with different characteristics under the aforementioned experimental conditions. The first row displays the reconstruction using the traditional ptychography under a 1.8% bandwidth source, and the second row and third row show the reconstruction using monoPTY and ultra-broadband ptychography respectively under a 15% bandwidth source. We first use an amplitude-type USAF resolution target as a non-dispersive sample for reconstruction testing, as shown in Fig. 4a. The results demonstrate that the 15% bandwidth diffraction data, reconstructed using both broadband algorithms, achieve a comparable image quality to that of the narrowband data. The FRC analysis yielded a spatial resolution of 8.18 μm at 532 nm narrowband illumination, which was scaled to 8.46 μm at 550 nm. In comparison, the resolution of monoPTY was 9.44 μm, corresponding to a 12% degradation, whereas the resolution of ultra-broadband ptychography was 8.74 μm, with only a 3.3% degradation. The FRC results were shown in Supplementary Fig. 3. Notably, spectral averaging inherent in broadband diffraction data suppresses high-frequency interference fringes, reduces recoverability of data under noisy conditions, and consequently leads to degraded resolution. Subsequently, we conducted a further performance comparison of the algorithm using biological samples. Figure 4b presents a comparison of image reconstruction for the unstained ant specimen. The narrowband ptychography reconstructs the amplitude information of the ant sample with high clarity achieving a resolution of 8.37 μm, and the unwrapped phase clearly reveals its internal structural details. In contrast, the reconstruction amplitude of monoPTY exhibits high background noise, with the resolution degrading to 9.51 μm. This is primarily due to the deviation of the ant sample from the non-dispersive assumption, where the far-field diffraction patterns of different wavelengths are no longer simply related through direct scaling. Indeed, our method overcomes this limitation due to its different broadband model construction, reconstructing high-quality images with low background noise and a resolution of 8.82 μm close to that of narrowband ptychography.

Fig. 4: Performance of different broadband methods in ptychography experiments.
figure 4

The results of the 1.8% bandwidth source combined with traditional ptychography are used as the benchmark for comparison, followed by the processing and comparison of diffraction data from the 15% bandwidth source using monochromatized ptychography and ultra-broadband ptychography, respectively. a Reconstruction of an amplitude-type USAF resolution target. b Reconstruction of an unstained ant specimen. c Reconstruction of a freshwater copepod sample. The yellow circle indicates an empty region, the green circle marks the Fast Green–stained sample region, and the orange dashed circle denotes the Eosin-stained sample region. The scale bar in (a) corresponds to 200 μm; the scale bar in (b) corresponds to 300 μm and the scale bar in (c) corresponds to 400 μm.

Accurate spectral information is an essential prior knowledge for monoPTY, typically obtained directly through a spectrometer. Although recent work has enabled the direct retrieval of the spectral distribution of the illumination after transmission through the sample for numerical monochromatization30, this approach is applicable only to nondispersive samples or samples with globally invariant absorption characteristics. However, most samples consist of multiple materials with different absorption characteristics, leading to significant variations in the transmitted spectrum across different scanning regions, making it evidently challenging for methods that rely on precise spectral distribution to image such samples. The absorption edges of elements are primarily concentrated in the shorter wavelength region, particularly in the X-ray and EUV ranges. Therefore, we selected a stained freshwater copepod, which is a standard biological section (SAGA) obtained by regionally staining with Fast Green and Eosin, to simulate absorption edge effects in the visible light spectrum regime. In Fig. 4c, the transmitted spectrum from the blank region (yellow circle) corresponds to the source spectrum, which is relatively uniform across the 500–600 nm range. The transmitted spectrum from the Fast Green–stained region (green solid circle) exhibits a sharp decline near 600 nm, whereas that from the Eosin-stained region (orange dashed circle) drops steeply near 500 nm, demonstrating clear absorption differences. The color image of the sample, three distinct transmitted spectral distributions and two reconstructions using narrowband ptychography at two different wavelengths, can be found in Supplementary Fig. 4. Here, monoPTY processes the diffraction data using the spectral prior information of source and the results reveal only blurred contours, with all other information completely lost. This further demonstrates that the spectral response of the sample can significantly impact the reconstruction quality of methods that rely on spectral priors. Moreover, we also attempted to incorporate the transmitted spectrum of the sample as prior information in the monoPTY reconstruction (Supplementary Fig. 5). However, no improvement was observed compared to using the source spectrum, primarily due to the inability to perform spectral detection or calibration at each scanning position in ptychography. In contrast, the reconstructed amplitude and unwrapped phase using ultra-broadband ptychography still exhibit high image quality and high resolution (9 μm) comparable to that achieved under the narrowband source (8.8 μm at 550 nm). This performance benefits from our joint deconvolution method, which progressively decouples the blur kernels containing coherence information from the diffraction data during the iterative process. Notably, each diffraction pattern is associated with an individual kernel. Through this broadband visible-light experiment, we successfully demonstrated that the proposed ultra-broadband ptychography can achieve high-quality reconstructions even for samples exhibiting absorption edge effects. Moreover, we also evaluated mixed-state method2 for comparison as shown in Supplementary Fig. 6, which has been demonstrated to be robust to broadband illumination40. This comparison illustrates the strength of our method in providing robust imaging performance for dispersive samples under broadband illumination. Therefore, our proposed method holds strong potential for practical application to the imaging of mixed materials using HHG EUV or broadband X-ray sources.

Broadband ptychography with HHG EUV source

While synchrotron facilities have long served as the dominant sources for X-ray ptychography due to their high brightness and coherence, their limited accessibility and infrastructural demands constrain broader experimental deployment. Therefore, the combination of broadband laboratory-scale EUV or X-ray sources with ptychography offers a promising route to mitigate these limitations and enable more accessible high-resolution imaging. To evaluate the applicability of our ultra-broadband ptychography for broadband laboratory-scale sources, we further conducted a validation experiment using a tabletop EUV source whose spectrum containing three harmonics as shown in Fig. 5a. The restricted wavelength range (40–57 nm) makes it difficult to obtain suitable absorption-edge samples. Consequently, biological specimens, which are readily available and easy to prepare, were employed to demonstrate that the proposed method can effectively enhance reconstruction quality under discrete broadband EUV. Considering the resolution capability of the experimental system, we ultimately selected osteosarcoma cells as the sample, mounted on a 50-nm-thick silicon nitride membrane as the supporting substrate. Figure 5b shows the acquired multichromatic diffraction pattern. Here, in comparison with reconstruction of traditional ePIE (Fig. 5c), a significant improvement in the reconstruction quality of osteosarcoma cells can be observed using ultra-broadband ePIE (Fig. 5d). Furthermore, the achievable resolution was enhanced from 776 nm to 640 nm, corresponding to an improvement of approximately 18%. We also compared the results using the polychromatic ePIE from the previous work45, and found that the ultra-broadband ptychography still provides superior image quality (Supplementary Fig. 6). This is because the polychromatic method in ref. 45 is also primarily based on the assumption of non-dispersive samples. Notably, due to the high absorption of the biological sample in the utilized wavelength range, only the contour information is clearly revealed. Therefore, this experiment serves solely as an attempt to demonstrate the applicability of this method for imaging dispersive samples using broadband tabletop EUV sources (Experimental details in Methods).

Fig. 5: EUV experimental validation using tabletop HHG source.
figure 5

a The spectrum of an EUV HHG source. b Polychromatic diffraction pattern obtained by the source. c Reconstructed amplitude of osteosarcoma cells using traditional ePIE. d Reconstructed amplitude of the same sample using ultra-broadband ePIE. The scale bar in (d) corresponds to 25 μm.

Discussion

We have demonstrated a practical solution to the challenges of broadband imaging in dispersive samples, which is, in principle, applicable to broadband sources across any wavelength range and to samples with varying spectral responses. The ultra-broadband ptychography overcomes several challenges associated with traditional broadband methods. Our method incorporates the convolution model to address the issue where broadband far-field diffraction patterns of dispersive samples cannot be accurately fitted through wavelength scaling. Additionally, we demonstrate that this method enables high-quality imaging without any prior spectral knowledge or the sample spectral response, effectively overcoming the significant challenges of traditional broadband methods when samples exhibit regionally varying spectral responses. Furthermore, we introduced a phase mask into the system to enable structured illumination, significantly enhancing reconstruction quality while minimizing energy loss. As an algorithmic innovation, we combine the iterative blind deconvolution algorithm with the multi-kernel strategy in ultra-broadband ePIE, leveraging data redundancy to solve the mutual coherence functions at each scan position. We have presented biological sample imaging under an ultra-broadband source with a 60% bandwidth and demonstrated the quantitative phase imaging capability of the proposed method. Moreover, by simulating absorption edge effects using a biological sample stained with different staining agents in the visible range, the results further demonstrate the substantial advantages of ultra-broadband ptychography over other broadband methods. The HHG EUV biological imaging experiment further demonstrates that our method maintains robust performance when extended to short-wavelength sources.

The broadband imaging capability of ultra-broadband ptychography can potentially become a critical asset in addressing the flux limitations of laboratory-scale X-ray sources caused by monochromatic filtering. The combination of broadband diffraction imaging techniques with the high brightness of laboratory-scale broadband X-ray sources presents a promising method for transitioning biological and material analysis from large-scale facilities to laboratory settings. On one hand, it is complementary to current efforts to enhance the flux of existing laboratory-scale X-ray imaging systems to improve reconstruction quality under dose-limited conditions. On the other hand, the proposed method is applicable to dispersive samples and is expected to enable element-specific imaging with further algorithmic development.

Methods

Details of optical experiments

In our optical experiments, a broadband illumination centered at about 706 nm with 60% bandwidth was used as the source. Here, a 4 f system is used to perform aperture filtering on the illumination, thereby enhancing its spatial coherence. A 600 µm pinhole serves as an aperture to confine the illumination size, thereby ensuring that the probe generated at the sample plane satisfies the oversampling criterion46. All samples are placed on a stepper motor stage (Newport MFA-CC) and scanned relative to the probe following a scan pattern with a concentric trajectory, with a step size of 70 µm between adjacent positions. Subsequently, the detector (ZL41 Wave, Andor), with pixels 6.5 μm in size, recorded a series of broadband diffraction patterns, each of size 512 × 512 pixels, for phase retrieval. The far-field diffraction data is obtained after the exit wave of sample propagates through an achromatic Fourier lens with a 30-mm focal length.

Details of EUV experiments

In the EUV experiments, the tabletop HHG source uses a commercial femtosecond laser (Light Conversion, Pharos) with a central wavelength of 1030 nm as the driving source. The laser beam is focused to 5 mm and passed through a 0.5 mm BBO crystal, generating laser pulses with a central wavelength of 515 nm, an average power of 1.8 W, and a pulse duration of 180 fs. Then, the 515 nm beam is focused into a 95-mbar pressurized Argon gas cell with a focal spot size of 60 μm, where the gas cell is a tube with an inner diameter of 2 mm. Finally, a 250 nm thick Al filter is used to remove the driving laser, yielding a pure HHG beam. More detailed information about this HHG source can be found in ref. 45. The beam containing three harmonic components is focused by a toroidal mirror onto a 20-μm pinhole to form the probe. Subsequently, the sample mounted on a translation stage (LS35.Lab.O, MultiFields Tech) is scanned with a step size of 3 μm. The exit waves propagate freely over 37 mm and are captured by a detector (XF95, Tucsen) with an 11 μm pixel size, producing polychromatic diffraction patterns with 512 × 512 pixels.

Fabrication of binary phase plate

A substrate was first prepared for the mask fabrication. In this case, after ensuring its surface cleanliness and smoothness, a layer of AZ4562 photoresist was spin-coated onto the substrate. The photoresist, which mainly consists of phenolic resin, photoinitiator, plasticizer, and solvent, was then exposed to ultraviolet (UV) light through a pre-designed photomask. The photomask was designed with a specific binarized random pattern, which was defined by a digital layout consisting of 1000 × 1000 pixels with a pitch of 50 μm. Based on the characteristics of the photoresist and the desired pattern features, the exposure dose and development time are optimized. Through iterative fabrication and subsequent inspection, the desired pattern depth on the substrate is ultimately achieved.

Broadband convolution model

In far-field ptychography, the Fraunhofer diffraction patterns of exit waves \({\varphi }_{j}\left({{{\bf{r}}}}\right)=P\left({{{\bf{r}}}}\right)O({{{\bf{r}}}}+{{{{\bf{r}}}}}_{j})\) can be expressed as,

$${I}_{j}^{{coh}}\left({{{\bf{q}}}}\right)={\left|{\psi }_{j}\left({{{\bf{q}}}}\right)\right|}^{2}={\left|\int P\left({{{\bf{r}}}}\right)O\left({{{\bf{r}}}}+{{{{\bf{r}}}}}_{j}\right){e}^{-i{{{\bf{qr}}}}}d{{{\bf{r}}}}\right|}^{2}$$
(3)

where \({\psi }_{j}\) is the Fourier transform of \({\varphi }_{j}\), \(O\left({{{\bf{r}}}}+{{{{\bf{r}}}}}_{j}\right)\) is the object transmission function, \(P\left({{{\bf{r}}}}\right)\) is the probe function and r is a position vector in the sample plane. This represents the diffraction intensity under ideal conditions of full coherence. When the imaging system experiences decoherence effects due to partial coherent illumination, sample motion, or detector point spread, additional parameters must be introduced into Eq. (3) to characterize the degree of coherence, thereby obtaining an expression for partially coherent diffraction intensity \({I}_{j}^{{pcoh}}\),

$${I}_{j}^{{pcoh}}\left({{{\bf{q}}}}\right)=\iint J\left({{{{\bf{r}}}}}_{1},{{{{\bf{r}}}}}_{2}\right){\gamma }_{{||}}\left({{{{\bf{r}}}}}_{1}-{{{{\bf{r}}}}}_{2}\right)O\left({{{{\bf{r}}}}}_{1}+{{{{\bf{r}}}}}_{{{{\rm{j}}}}}\right){O}^{*}({{{{\bf{r}}}}}_{2}+{{{{\bf{r}}}}}_{j})\times {e}^{-i{{{\bf{q}}}}({{{{\bf{r}}}}}_{1}-{{{{\bf{r}}}}}_{2})}d{{{{\bf{r}}}}}_{1}d{{{{\bf{r}}}}}_{2}$$
(4)

where \(J\left({{{{\bf{r}}}}}_{1},{{{{\bf{r}}}}}_{2}\right)\) represents the mutual optical intensity (MOI) and \({\gamma }_{{||}}({{{{\bf{r}}}}}_{1}-{{{{\bf{r}}}}}_{2})\) captures the temporal (or longitudinal) coherence properties associated with the spectral bandwidth of the illumination. According to the generalized Schell model, the MOI can be further described as \(J\left({{{{\bf{r}}}}}_{1},{{{{\bf{r}}}}}_{2}\right)=P\left({{{{\bf{r}}}}}_{1}\right){P}^{*}\left({{{{\bf{r}}}}}_{2}\right){\gamma }_{\perp }\left({{{{\bf{r}}}}}_{1}-{{{{\bf{r}}}}}_{2}\right)\), where \({\gamma }_{\perp }\left({{{{\bf{r}}}}}_{1}-{{{{\bf{r}}}}}_{2}\right)\) represents the spatial (or transverse) coherence properties. Therefore, the impact of partial coherence can be effectively described using the normalized mutual coherence function (MCF), which is defined as \(\gamma={\gamma }_{\perp }{\gamma }_{\parallel }\). By simplifying Eq. (4), the blurred diffraction pattern resulting from partial coherence can ultimately be expressed using a convolution model33,34

$${I}_{j}^{{pcoh}}\left({{{\bf{q}}}}\right)={I}_{j}^{{coh}}\left({{{\bf{q}}}}\right)\otimes {\hat{\gamma }}_{j}({{{\bf{q}}}})$$
(5)

where \({\hat{\gamma }}_{j}({{{\bf{q}}}})\) is the Fourier transform of the normalized MCF. Incorporating this diffraction intensity model into the ptychography reconstruction algorithm allows for a more accurate representation of the measured broadband diffraction data.

However, the MCF of system cannot be easily pre-calibrated for dispersive samples. Therefore, a critical step in the reconstruction algorithm of ultra-broadband ptychography is solving for the kernel \({\hat{\gamma }}_{j}({{{\bf{q}}}})\) that contains partial coherence information. We integrated the Wiener–Lucy (W-L) tandem deconvolution algorithm with ePIE to develop a blur-kernel-decoupling method (joint deconvolution), which fully exploits the data redundancy inherent in ptychography to enhance the accuracy of the deconvolution. Considering the relatively consistent overall coherence of the system, the kernels corresponding to different diffraction patterns are expected to exhibit substantial similarity. Thus, the kernel solved from the previous scan position is used as the initial value in the current deconvolution iteration, significantly enhancing the speed and accuracy of \({\hat{\gamma }}_{j}({{{\bf{q}}}})\) decoupling. The iterative decoupling process of \({\hat{\gamma }}_{j}({{{\bf{q}}}})\) is given by,

$${\hat{\gamma }}_{k+1,j}\left({{{\bf{q}}}}\right)= {{\omega }_{1}\hat{\gamma }}_{k,j}\left({{{\bf{q}}}}\right)\left[\frac{{I}_{j}^{m}\left({{{\bf{q}}}}\right)}{{I}_{j}^{{coh}}\left({{{\bf{q}}}}\right)\bigotimes {\hat{\gamma }}_{k,j}\left({{{\bf{q}}}}\right)}\bigotimes {I}_{j}^{{coh}}\left({{{\bf{q}}}}\right)\right] \\ +{\omega }_{2}{{{{\mathcal{F}}}}}^{-1}\left[\frac{{conj}\left[{{{\mathcal{F}}}}\left({I}_{j}^{{coh}}\left({{{\bf{q}}}}\right)\right)\right]}{{\left|{{{\mathcal{F}}}}\left({I}_{j}^{{coh}}\left({{{\bf{q}}}}\right)\right)\right|}^{2}}{{{\mathcal{F}}}}\left({I}_{j}^{m}\left({{{\bf{q}}}}\right)\right)\right],$$
(6)

where \({{{\mathcal{F}}}}\) represents the Fourier transform operator, ‘conj’ denotes the complex conjugate operation and k represents the sub-iteration index which is set to 20 iterations. \({I}_{j}^{m}({{{\bf{q}}}})\) is the measured diffraction data. \({\omega }_{1}\) and \({\omega }_{2}\) are weighted coefficients summing to 1, with \({\omega }_{1}\) gradually increasing and \({\omega }_{2}\) decreasing as the sub-iterations progress. Notably, \({\hat{\gamma }}_{k=0,j}\left({{{\bf{q}}}}\right)={\hat{\gamma }}_{j-1}\left({{{\bf{q}}}}\right)\). After more than half of the algorithm iterations, we remove the associations above between the blur kernels, allowing them to update independently. This operation compensates for spectral variations at each scan position or disturbances caused by light source jitter, thereby significantly improving the reconstruction quality of the image.

Reconstruction algorithm

Ultra-broadband ptychography primarily incorporates a convolution model into traditional ptychography to represent broadband diffraction patterns, while employing a blind deconvolution approach to simultaneously separate fully coherent diffraction patterns and the blur kernel during the iterative process. Normally, we start with the estimated exit waves of sample \({\varphi }_{i,j}\left({{{\bf{r}}}}\right)=P\left({{{{\bf{r}}}}}_{i}\right)O({{{{\bf{r}}}}}_{i}+{{{{\bf{r}}}}}_{{{{\rm{j}}}}})\) and proceed as follows for the ith iteration,

  1. (i)

    Propagating \({\varphi }_{i,j}\left({{{\bf{r}}}}\right)\) to the detector plane generates an estimate of the fully coherent diffraction intensity \({I}_{i,j}^{{coh}}\left({{{\bf{q}}}}\right)\) as shown in Eq. (3).

  2. (ii)

    Applying the iterative blind deconvolution algorithm yields the estimate of FT-MCF,

    $${\hat{\gamma }}_{i,j}\left({{{\bf{q}}}}\right)={deconvWL}\left\{{I}_{i,j}^{m}\left({{{\bf{q}}}}\right),{I}_{i,j}^{{coh}}\left({{{\bf{q}}}}\right),{\hat{\gamma }}_{i,j-1}\left({{{\bf{q}}}}\right)\right\}$$
    (7)

    where \({deconvWL}\{\cdot \}\) represents the W-L tandem deconvolution algorithm. Every 10 iterations in the paper, the \({\hat{\gamma }}_{j}\left({{{\bf{q}}}}\right)\) will be updated.

  3. (iii)

    Generate the estimate of broadband diffraction pattern \({I}_{i,j}^{{pcoh}}({{{\bf{q}}}})\) according to Eq. (5).

  4. (iv)

    Apply the modulus constraint to \({\psi }_{i,j}\left({{{\bf{q}}}}\right)\),

    $${\hat{\psi }}_{i,j}\left({{{\bf{q}}}}\right)={\psi }_{i,j}\left({{{\bf{q}}}}\right)\left[\frac{{\sqrt{I}}_{i,j}^{m}({{{\bf{q}}}})}{{\sqrt{I}}_{i,j}^{{pcoh}}({{{\bf{q}}}})}\right]$$
    (8)
  5. (v)

    Back-propagate \({\hat{\psi }}_{i,j}\left({{{\bf{q}}}}\right)\) to the sample plane to form a revised exit wave \({\hat{\varphi }}_{i,j}\left({{{\bf{r}}}}\right)\). Subsequently, apply the overlap constraint to update both the object and probe simultaneously according to the following functions:

$$\hat{O}\left({{{{\bf{r}}}}}_{i}+{{{{\bf{r}}}}}_{j}\right)=O\left({{{{\bf{r}}}}}_{i}+{{{{\bf{r}}}}}_{j}\right)+\alpha \frac{{conj}\left(P\left({{{{\bf{r}}}}}_{i}\right)\right)\left[{\hat{\varphi }}_{i,j}\left({{{\bf{r}}}}\right)-{\varphi }_{i,j}\left({{{\bf{r}}}}\right)\right]}{{\left|P\left({{{{\bf{r}}}}}_{i}\right)\right|}_{\max }^{2}}$$
(9)
$$\hat{P}\left({{{{\bf{r}}}}}_{i}\right)=P\left({{{{\bf{r}}}}}_{i}\right)+\alpha \frac{{conj}\left(O\left({{{{\bf{r}}}}}_{i}+{{{{\bf{r}}}}}_{j}\right)\right)\left[{\hat{\varphi }}_{i,j}\left({{{\bf{r}}}}\right)-{\varphi }_{i,j}\left({{{\bf{r}}}}\right)\right]}{{\left|O\left({{{{\bf{r}}}}}_{i}+{{{{\bf{r}}}}}_{j}\right)\right|}_{\max }^{2}}$$
(10)

where the coefficient \(\alpha\), a constant set to a value of 1 in our experiment, could affect the convergence speed and robustness of the phase retrieval algorithm.

Repeat the above steps until all positions have been updated to complete one iteration. The reconstruction process will terminate after a predetermined number of iterations.