Expand this Topic clickable element to expand a topic
Skip to content
Optica Publishing Group

Wave-optics simulation software for synchrotron radiation from 4th generation storage rings based on a coherent modes model

Open Access Open Access

Abstract

The evolution from 3rd to 4th generation of storage rings significantly enhanced the coherence of synchrotron radiation sources, making coherent scattering techniques such as coherent X-ray diffraction imaging (CXDI) and X-ray photon correlation spectroscopy more accessible. In conformance with the design requirements of coherent beamlines at the High Energy Photon Source (HEPS), we have developed wave optics simulation software, the Coherence Analysis Toolbox, based on coherent modes decomposition and a wavefront propagation model. Simulations of beamline performance and a CXDI experiment on the hard X-ray coherent scattering beamline at HEPS were carried out. This software is open source and now available on GitHub.

© 2022 Optica Publishing Group under the terms of the Optica Open Access Publishing Agreement

1. Introduction

Synchrotron radiation (SR) storage rings have advanced from the 3rd to 4th generation with development of multi-bend achromat lattices [1], which allows electron emittance to be reduced to enhance the brilliance and transverse coherence of the SR source. For example, the electron emittance of the European Synchrotron Radiation Facility – Extremely Brilliant Source (ESRF-EBS), Advanced Photon Source – Upgrade (APS-U) and Spring-8-II are 132 pm.rad, 42 pm.rad and 149 pm.rad, respectively [2]. The electron emittance of the High Energy Photon Source (HEPS), which is a new SR source under construction, reaches 34 pm·rad [3]. Coherent scattering techniques such as coherent X-ray diffraction imaging (CXDI) [4,5] and X-ray photon correlation spectroscopy (XPCS) [6] would greatly benefit from the enhanced coherence of SR from 4th generation sources. CXDI and XPCS strongly depend on the coherence of the X-ray beams at the sample, and it is therefore important to analyze the coherence of X-ray beamlines. Furthermore, coherent scattering experiments could be simulated more accurately by considering the coherence of the X-rays, which could also help to characterize the performance of 4th generation SR beamlines [79].

For example, the propagation of multiple wavefronts using Monte Carlo simulation considers the emittance and propagation of X-ray wavefronts for every sampled electron, and coherence is calculated statistically [10,11]. Based on this method, simulations of coherent scattering experiments, such as coherent scattering and XPCS, have been performed on 3rd generation SR sources [12,13]. Although accuracy could be ensured [14], the demands on computational resources reduced the flexibility of this method, leading to exploration of other approaches [15].

Taking advantage of the enhanced coherence of 4th generation SR sources, coherent modes decomposition (CMD) and wavefront propagation methods have become more efficient. Based on statistical optics, the spatial coherence of an X-ray beam can be fully described by cross-spectral density (CSD), the expansion of which results in orthonormal coherent modes [16]. For 4th generation SR, the number of required coherent modes for coherence analysis is about 102–103 [16], which is much more efficient than for wavefront analysis (∼103–105 for the Monte Carlo multi-electron method). Furthermore, an accurate estimate of the coherent fraction of the X-ray beam can be obtained using this method.

Several tools have been developed for coherent mode analysis of SR produced by storage rings. For example, prior to CMD, the CSD of the ESRF-EBS has been calculated with COMSYL (Coherent Modes for SYnchrotron Light) software using the brightness convolution theorem [16,17]. Also, Synchrotron Radiation Workshop (SRW) software has added an efficient CMD method by calculating the coherent modes at the beam waist [18]. And X-ray Tracing (XRT) software has incorporated two CMD methods base on the propagated wavefronts [19]. However, the CMD methods requires further development to reduce their high demand for computational resources.

In this study, we have developed CAT, a wave optics simulation software. First, a two-step singular-value decomposition (SVD) method was developed to achieve effective CMD of SR. Then, the coherent modes were propagated and re-diagonalized to analyze the coherence of SR along the beamline, and the performance of optical elements with different figure errors was also analyzed. Finally, X-ray beams of differing partial coherence were constructed for simulations of CXDI.

2. Model description

2.1 Coherent modes decomposition of SR X-rays

Coherent modes are usually decomposed from the CSD $W({{x_1},{x_2};{y_1},{y_2};\omega } )$ [20], and the CSD is in turn calculated from the wavefronts of the radiated electric fields:

$$W({{x_1},{x_2};{y_1},{y_2};\omega } )= {E^\ast }({{x_1},{y_1};\omega } )E({{x_2},{y_2};\omega } ), $$
$$W({{x_1},{x_2};{y_1},{y_2};\omega } )= \mathop \sum \nolimits_m {\rho _m}\varphi _m^\ast ({{x_1},{y_1};\omega } ){\varphi _m}({{x_2},{y_2};\omega } ), $$
where E represents the wavefronts radiated by the electron beam [16], ${\varphi _m}({x,y} )$ is the coherent mode, and ${\rho _m}$ is the eigenvalue. The occupation of the coherent mode is calculated as ${\rho _m}/\mathop \sum \limits_m {\rho _m}$. The coherence fraction (CF) can be defined by the occupation of the first coherent mode [20]. The relationship between intensity $I({x,y} )$ and coherent mode is,
$$I({x,y} )= \mathop \sum \nolimits_m {\rho _m}{|{{\varphi_m}({x,y} )} |^2}. $$
The SVD method provides an alternative strategy for CMD without calculating the CSD. A data matrix A whose columns contain individual wavefront $E({x,y;\omega } )$ (reshaped to one dimension) is constructed, thus A = [E0, E1, …, En] (n is the number of wavefronts). If the size of a wavefront $E({x,y;\omega } )$ is [Nx, Ny], the size of A is [Nx×Ny, n]. For a data matrix like A, there exists the following SVD decomposition,
$$A = U\Sigma {V^ + }, $$
where A+ and V+ is the Hermite conjugation of A and V, respectively, and the columns of matrix U and V are composed of the eigenvectors of matrix AA+ and A+A. Σ is the diagonal matrix composed of the singular values of A. It has been shown that AA+ and A+A have the same eigenvalues [21].

Therefore, the eigenvalues can be calculated by decomposing the matrix A+A of size [n, n] instead of the matrix AA+ of size [Nx×Ny, Nx×Ny] [21]. If n << NNy, the SVD method is much more efficient than CSD decomposition. However, the number of electrons required by the Monte Carlo method is large. Thus, the SVD method does not always offer an advantage for CMD of SR from 4th generation SR source.

A two-step SVD method was developed here. First, A is divided into k parts [A1, A2, …, Ai, …, Ak] along the direction of column, and the size of Ai is [NNy, n/k]. Second, SVD is performed on Ai to generate coherent modes:

$${A_i} = \left[ {{E_{i1}},{E_{i2}}, \ldots ,{E_{i\left( {\frac{n}{k}} \right)}}} \right] = \left[ {\sqrt {{\rho_{i1}}} {\varphi_{i1}},\sqrt {{\rho_{i2}}} {\varphi_{i2}}, \ldots ,\sqrt {{\rho_{it}}} {\varphi_{it}}} \right], $$
where t is the truncation number [16] of the CMD. Since the coherent modes and wavefronts describe the same CSD, the wavefronts were replaced by the decomposed coherent modes to reconstruct A. The size of A = [A1, A2, …, Ak] changes from [NNy, n] to [NNy, t×k]:
$$A = \left[ {{{\left( {\sqrt {{\rho_{1,1}}} {\varphi_{1,1}}, \ldots ,\sqrt {{\rho_{1,t}}} {\varphi_{1,t}}} \right)}_1}, \ldots ,{{\left( {\sqrt {{\rho_{k,1}}} {\varphi_{k,1}}, \ldots ,\sqrt {{\rho_{k,t}}} {\varphi_{k,t}}} \right)}_k}} \right]. $$
For SR from 4th generation sources, the high coherence strongly reduces the truncation number t of CMD, thus t×k. Therefore, SVD was performed efficiently on the reconstructed A to generate the final coherent modes. In practice, the wavefronts were first calculated by SRW [10] using the Monte-Carlo method, and two-step SVD was then performed on the wavefronts.

A schematic diagram of this method is shown in Fig. 1. The efficiency of the two-step SVD method was compared with the CSD decomposition method. Both methods adopt the sparse eigen-solvers of the SciPy library [22]. Figure 2 shows the advantage of two-step SVD over CSD decomposition for CMD of SR from 4th generation sources.

 figure: Fig. 1.

Fig. 1. Sequence of two-step SVD.

Download Full Size | PDF

 figure: Fig. 2.

Fig. 2. The efficiencies of CSD decomposition and two-step SVD. Using the electron beam and undulator parameters (Supplement 1,Table S1, column HXCS), all the calculations were performed on a workstation with an Intel Xeon Gold 6226 2.70 GHz and 64 GB of memory, running the Ubuntu 18.04 LTS operating system. 20 CPU cores were used for parallel computations. The truncation number, t, of the CMD was 200, and the size of the wavefront [Nx, Ny] was [200, 200].

Download Full Size | PDF

The validity of the method used by CAT was evaluated by comparison with SRW and COMSYL software. As comparison of CSDx and CSDy calculated by SRW and CAT is shown in Fig. 3(a). The coherent modes of ESRF-EBS were calculated by CAT (Fig. 3(d)) and compared with the reported results (see Supplement 1 and Figs. S1–S5 for more details and comparisons).

 figure: Fig. 3.

Fig. 3. Comparison of SRW/COMSYL with CAT software. (a) CSDx and CSDy calculated by SRW and CAT. (b) The coherent modes of ESRF-EBS calculated by CAT, m is the index of mode. Details and more comparisons are shown in Supplement 1, Fig. S1.

Download Full Size | PDF

2.2 Propagation of coherent modes

Different propagators were applied in CAT to achieve high propagation efficiency for various optical layouts. In the following description, the coherent mode $\varphi $(x, y) was propagated from the input optic plane (x1, y1) to the output optic plane (x2, y2) over a distance d.

First, the Fresnel diffraction integral was used for long-distance propagation [23],

$$\varphi ({x_2},{y_2}) = \frac{{k{e^{ikd}}}}{{2\pi id}}\smallint {\smallint_{ - \infty }^{ + \infty } {\varphi ({x_1},{y_1}){e^{\frac{{ik}}{{2d}}[{{({x_2} - {x_1})}^2} + {{({y_2} - {y_1})}^2}]}}d{x_1}d{y_1},} } $$
where k = 2π/λ, $\lambda $ is wavelength. The Fresnel diffraction integral was calculated by the convolution theorem using the double fast Fourier transform (D-FFT) algorithm [24].

Second, the angular spectrum method (ASM) was used for propagation over short-distance [23],

$$\varphi ({x_2},{y_2}) = \smallint {\smallint_{ - \infty }^{ + \infty } {\varphi ({k_x},{k_y}){e^{id\sqrt {{k^2} - (k_x^2 + k_y^2)} }}{e^{i({x_2}{k_x} + {y_2}{k_y})}}d{q_x}d{q_y},} } $$
where $\varphi ({{k_x},{k_y}} )$, is the Fourier transform (FT) of $\varphi ({{x_1},{y_1}} )$. The angular spectrum (AS) was calculated using the FFT-AS method [25].

Third, the Chirp-Z transform (CZT) method [2629] was used for sub-micrometer focusing. For the coherent mode $\varphi ({x,y} )$, the discrete representation of one dimension is $x = [{{x_1},{x_2}, \ldots ,{x_n}, \ldots ,{x_N}} ]$, where $n \in [{0,N - 1} ]$, N is the size of the discrete representation of the coherent mode, ${x_n} = n\varDelta r$, and $\varDelta r$ is the pixel size of the coherent mode. The transformed discrete dataset using the CZT is $z = [{{z_1},{z_2}, \ldots ,{z_m}, \ldots ,{z_M}} ]$, where $m \in [{0,M - 1} ]$, M is the size of the transformed dataset, ${z_1} = {k_0}$ defines the starting point of the z, ${z_m} = {k_0} + m\varDelta k$, and $\varDelta k = 2\pi /({M\varDelta r} )$ defines the pixel size of z. The relationship between the x and z datasets is

$${z_m} = \mathop \sum \limits_{n = 1}^N {x_n} \times {a^{ - n}} \times {w^{ - mn}}, $$
where $a = {e^{i{k_0}}}$ and $w = {e^{i\varDelta k}}$. The CZT method can be speed up by Bluestein method, which ensures the efficiency of this propagator.

The propagators in CAT were verified by comparison with SRW [30] . The results are shown in Fig. 4. An optical layout of hard X-ray coherent scattering (HXCS) beamlines with an advanced-KB mirror was used as an example of the performance of the propagators (see Supplement 1, Section 3 and Fig. S7).

 figure: Fig. 4.

Fig. 4. (a) The wavefront was focused by an ideal lens. The distance between the source and lens was 10 m, and the focal length of the lens was 5 m (1:1 focus). Here, the SRW standard propagator was the Fresnel propagator used by SRW, which was calculated by using the convolution theorem. (b) The wavefront was diffracted by a slit. The distance between the source and slit was 10 m, and the distance between the slit and final screen was 10 m. The size of the slit was 50 µm.

Download Full Size | PDF

2.3 Beamline analysis method

The X-ray beam at the optical element was simulated by propagating the coherent modes to the optical plane of the element. For an ideal lens, the phase transformation is

$${\varphi _{ideal\; lens}} = \textrm{\; }{e^{\frac{{ik({{x^2} + {y^2}} )}}{{2f}}}}, $$
where f is the focal length. For a KB mirror, the phase transformation in one direction was
$${\varphi _{KB}} = \textrm{\; }{e^{ik\left( {\sqrt {{x^2} + {p^2}} + \sqrt {{x^2} + {q^2}} } \right)}}, $$
where p and q are the object and image distances. For simulation of a slit, the pixels outside the slit were set to zero.

Coherence analysis of the propagated coherent modes has two steps. First, the CSD of the X-ray beam is calculated by Eq. (2). Second, a re-diagonalization of coherent modes is required when the modes are spatially filtered by the optical elements. SVD was deemed to be an appropriate and highly efficient method here since the number of the propagated coherent modes in SR from a 4th generation source is quite small.

CAT provides an efficient way of simulating the performance of optical elements with different figure errors. Take reflective X-ray optics for example, first, the figure error was transformed into a phase error,

$$erro{r_p} = \textrm{\; }\frac{{2\pi }}{\lambda } \times 2sin(\theta )\times erro{r_s}, $$
where errors is the figure error, θ is the incident angle, errorp is the phase error. Second, the phase error was added with the phase of the coherent mode,
$$\begin{array}{l} \varphi (x,y)\prime = |\varphi (x,y)| \times {e^{i \times \arg [\varphi (x,y)]}} \times {e^{i \times erro{r_p}}}.\\ \end{array} $$
Finally, the coherent mode was propagated to specified optical plane to observe the effect of the figure error. Simulations of the effects of surface error in a compound refractive lens and monochromator thermal deformation are provided as examples (in Supplement 1, Sections 3 and 5 and Figs. S7 and S9).

3. Simulations

3.1 SR source

Based on the parameters of the electron beam and undulator (Table S1), CMD of the HXCS beamline was performed at 12.4 keV to analyze beam coherence. The emitted wavefronts were calculated at a distance of 20 m. Then two-step SVD was performed to calculate the coherent modes ([Nx, Ny] = [150, 150]). As shown in Fig. 5, the calculated CF of the SR source for the HXCS beamline was 20.7%, and the occupation of coherent modes with m = 0 to m = 29 already exceeded 90%, which demonstrated the high coherence of the HEPS (see Supplement 1, Section 2 and Fig. S6 for the occupations).

 figure: Fig. 5.

Fig. 5. The first six coherent modes (φ0∼φ5) and normalized weights (w) of the HEPS.

Download Full Size | PDF

3.2 Coherence analysis of the beamline

An optical layout of HXCS is shown in Fig. 6(a). The sample was placed at 2.7 m from the focus and coherence was adjusted by a secondary source slit (SSS). The secondary source was focused by a 4:3 focus system (object distance = 40 m, imaging distance = 29.3 m). Based on the data in Table S1 (Supplement 1, Section 1), the SR photon beam divergence was calculated to be 4.3 µrad (horizontal direction) and 3.8 µrad (vertical direction). Thus, the size of the propagated X-ray beam incident on the lens was 172 µm (4.3 µrad×40 m, RMS). The diameter of the lens was set to 600 µm to receive most of the incident X-ray beam, and its focal length was 16.91 m.

 figure: Fig. 6.

Fig. 6. (a) HXCS optical layout designed for XPCS and traditional plane wave CXDI. (b) Intensity, (b) CSDx and (c) CSDy of the secondary source.

Download Full Size | PDF

The secondary source was focused by an ideal lens. As shown in Fig. 6(b)–6(d), the intensity, CSDx ($W({{x_1},{x_2};{y_1} = 0,{y_2} = 0;\omega } )$), and CSDy ($W({{x_1} = 0,{x_2} = 0;{y_1},{y_2};\omega } )$) of the secondary source were calculated using propagated coherent modes based on Eq. (2) ([Nx, Ny] = [120, 120]). Based on Fig. 6(b), the size of the secondary source (horizontal×vertical) was 8.81 µm×4.14 µm (RMS), consistent with the theoretical value (7.69 µm×4.10 µm, RMS). The coherence lengths were calculated [31] to be 1.68 µm×2.59 µm (RMS, Fig. 6(c), 6(d)). The SSS was used to modify the partial coherence of the X-ray beam. The size of the slit was adjustable from 21.0 µm×21.0 µm to 12.6 µm×12.6 µm. Finally, the modified coherent modes were propagated from the secondary source to the sample (10 µm×10 µm).

3.3 Simulation of CXDI

Simulation of CXDI was based on the coherent modes and the sample. Using the projection approximation, a sample can be described by a transmission function T(x, y) [12]. When a coherent mode $\varphi ({x,y} )$ illuminates the sample, the exit wave can be represented by $T({x,y} )\varphi ({x,y} )$, which then propagates to the detector. For CXDI, the distance d between the sample and the detector is large enough to allow the propagation to be treated as Fraunhofer diffraction. Thus, the diffraction signal $\varphi ({{q_x},{q_y}} )$ is proportional to a scaled FT of $\varphi ({x,y} )$,

$$\varphi ({{q_x},{q_y}} )\propto FT[{T({x,y} )\varphi ({x,y} )} ]. $$
Therefore, the diffraction pattern at the detector can be calculated by summing the intensities of all the propagated coherent modes:
$$I({{q_x},{q_y}} )= \mathop \sum \nolimits_m {\rho _m}{|{{\varphi_m}({{q_x},{q_y}} )} |^2} \propto \mathop \sum \nolimits_m {\rho _m}{|{FT[{T({x,y} ){\varphi_m}({x,y} )} ]} |^2}, $$
where ${\varphi _m}({x,y} )$ is the coherent mode and ${\rho _m}$ is the eigenvalue. Finally, the exit wave can be reconstructed by phase retrieval algorithms.

Simple CXDI simulations were carried out with different values of partial coherence represented by the CF. The coherent modes propagated at the sample were re-diagonalized within 10 µm×10 µm ([Nx, Ny] = [1000, 1000]), and the results are shown in Fig. 7 (SSS = 21 µm). CMD showed that the CF of the X-ray beams at the sample increased from 89.0% to 95.6% as the width of the SSS decreased from 21.0 µm to 12.6 µm.

 figure: Fig. 7.

Fig. 7. The first three coherent modes of the X-ray beam at the sample.

Download Full Size | PDF

The standard sample used for simulations was a part of the Siemens star (Fig. 8(a), binary sample, created by PyNX [32], 10 µm×10 µm, 256×256 pixels). The spatial dimension of the diffraction pattern was 800×800 pixels (FT of the sample, Fig. 8(b)), and the oversampling ratio was 9.8, which satisfies the requirements of CXDI for accurate sample reconstruction [33]. The sample was reconstructed by the hybrid input-output (HIO) algorithm and error reduction (ER) method [34]. And 5000 HIO iterations and 500 ER iterations were applied.

 figure: Fig. 8.

Fig. 8. (a) The sample used for CXDI simulations. (b) The diffraction pattern of sample.

Download Full Size | PDF

The results of the reconstruction are shown in Fig. 9. It was observed that the quality of the reconstruction increased with coherence. Although the coherence length (10.3 µm×18.0 µm) covered the size of the sample when the CF was 89.0%, an acceptable reconstruction could not be achieved until the CF increased to 94.7%. Therefore, an increase in the quality of the CXDI reconstruction would require an X-ray beam with a higher CF, which could be achieved by decreasing the width of the SSS. However, the flux of the X-ray beam was reduced (see Supplement 1, Section 6 and Fig. S10).

 figure: Fig. 9.

Fig. 9. Reconstruction results for CXDI simulations with the CF ranging from 89.0% to 95.6%.

Download Full Size | PDF

4. Conclusion

In summary, we have developed CAT, a wave optics simulation software. A two-step SVD method was developed to perform effective coherent modes decomposition of the highly coherent X-rays from a 4th generation SR source. Taking advantage of coherent mode propagation and re-diagonalization, the coherence at different optic planes can be easily calculated, and the influence of surface errors in the optics can be simulated. The effect of partial coherence on CXDI experiments was analyzed. Applications of the method and the related code developed here (see Supplement 1 Section 7) were also presented. CAT is open source software available on GitHub, and further development will be pursued.

Acknowledgments

This work was supported by High Energy Photon Source (HEPS), a major national science and technology infrastructure in China.

Disclosures

The authors declare no conflicts of interests.

Data availability

Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.

Supplemental document

See Supplement 1 for supporting content.

References

1. R. Hettel, “DLSR design and plans: an international overview,” J. Synchrotron Radiat. 21(5), 843–855 (2014). [CrossRef]  

2. B. Oh, J. Ko, J. Lee, G. Jang, and S. Shin, “Characteristics of Photon Beam and Preservation of Coherence in Fourth-Generation Light Sources,” Appl. Sci. 11(24), 11896 (2021). [CrossRef]  

3. Y. Jiao, G. Xu, X. H. Cui, Z. Duan, Y. Y. Guo, P. He, D. Ji, J. Li, X. Li, C. Meng, Y. Peng, S. Tian, J. Wang, N. Wang, Y. Wei, H. Xu, F. Yan, C. Yu, Y. Zhao, and Q. Qin, “The HEPS project,” J. Synchrotron Radiat. 25(6), 1611–1618 (2018). [CrossRef]  

4. J. Miao, T. Ishikawa, I. K. Robinson, and M. M. Murnane, “Beyond crystallography: Diffractive imaging using coherent x-ray light sources,” Science 348(6234), 530–535 (2015). [CrossRef]  

5. M. A. Pfeifer, G. J. Williams, I. A. Vartanyants, R. Harder, and I. K. Robinson, “Three-dimensional mapping of a deformation field inside a nanocrystal,” Nature 442(7098), 63–66 (2006). [CrossRef]  

6. F. Giovanni, E. B. Knudsen, T. Ramos, D. Carbone, and J. W. Andreasen, “A Monte Carlo ray-tracing simulation of coherent X-ray diffractive imaging,” J. Synchrotron Radiat. 27(1), 134–145 (2020). [CrossRef]  

7. X. Shi, R. Reininger, R. Harder, and D. Haeffner, “X-ray optics simulation and beamline design for the APS upgrade,” Proc. SPIE 10388, 103880C (2017). [CrossRef]  

8. R. Luca and X. Shi, “Advanced simulation tools in the OASYS suite and their applications to the APS-U optical design,” Proc. SPIE 11493, 1149303 (2020). [CrossRef]  

9. A. Madsen, A. Fluerasu, and B. Ruta, “Structural dynamics of materials probed by X-ray photon correlation spectroscopy,” Synchrotron light sources and free-electron lasers 2, 1–21 (2015). [CrossRef]  

10. O. Chubar and P. Elleaume, “Accurate and efficient computation of synchrotron radiation in the near field region,” Proc. of the EPAC98 Conference 11493, 1177–1179 (1998). [CrossRef]  

11. O. Chubar, L. Berman, Y. S. Chu, A. Fluerasu, S. Hulbert, M. Idir, K. Kaznatcheev, D. Shapiro, Q. Shen, and J. Baltser, “Development of partially-coherent wavefront propagation simulation methods for 3rd and 4th generation synchrotron radiation sources,” Proc. SPIE 8141, 814107 (2011). [CrossRef]  

12. O. Chubar, M. Rakitin, Y. C. K. Chen-Wiegart, A. Fluerasu, and L. Wiegart, “Simulation of experiments with partially coherent X-rays using synchrotron radiation workshop,” Proc. SPIE 10388, 1038811 (2017). [CrossRef]  

13. O. Chubar, L. Wiegart, A. Fluerasu, M. Rakitin, J. Condie, P. Moeller, and R. Nagler, “Simulations of coherent scattering experiments at storage ring synchrotron radiation sources in the hard x-ray range,” Proc. SPIE 11493, 1149310 (2020). [CrossRef]  

14. A. He, O. Chubar, M. Rakitin, L. Samoylova, C. Fortmann-Grote, S. Yakubov, and A. Buzmakov, “Parallel performance of “Synchrotron Radiation Workshop” code: partially coherent calculations for storage rings and time-dependent calculations for XFELs,” Proc. SPIE 11493, 114930H (2020). [CrossRef]  

15. Z. Zhu, H. Xu, L. Hu, M. Li, P. Liu, Y. Dong, and L. Zhou, “A wave optics model for the effect of partial coherence on coherent diffractive imaging,” J. Synchrotron Radiat. 28(2), 499–504 (2021). [CrossRef]  

16. M. Glass, M. Sanchez, and del Rio, “Coherent modes of X-ray beams emitted by undulators in new storage rings,” Europhys. Lett. 119(3), 34004 (2017). [CrossRef]  

17. M. Sanchez del Rio, R. Celestre, M. Glass, G. Pirro, J. R. Herrera, R. Barrett, J. Cesa da Silva, P. Cloetens, X. Shi, and L. Rebuffi, “A hierarchical approach for modeling X-ray beamlines: application to a coherent beamline,” J. Synchrotron Radiat. 26(6), 1887–1901 (2019). [CrossRef]  

18. R. Li and O. Chubar, “CPU and memory efficient coherent mode decomposition for the partially coherent x-ray simulations,” Proc. SPIE 11493, 114930G (2020). [CrossRef]  

19. R. Khubbutdinov, A. P. Menushenkov, and I. A. Vartanyants, “Coherence properties of the high-energy fourth-generation X-ray synchrotron sources,” J. Synchrotron Radiat. 26(6), 1851–1862 (2019). [CrossRef]  

20. A. S. Ostrovsky, Coherent-mode representations in optics (SPIE Press, 2006).

21. B. Anders., Noise and vibration analysis: signal analysis and experimental procedures (John Wiley & Sons, 2011).

22. P. Peterson, “F2PY: a tool for connecting Fortran and Python programs,” International Journal of Computational Science and Engineering 4(4), 296–305 (2009). [CrossRef]  

23. J. Li and Y. Wu, “An indirect algorithm of Fresnel diffraction,” Opt. Commun. 282(4), 455–458 (2009). [CrossRef]  

24. D. Mendlovic, Z. Zalevsky, and N. Konforti, “Computation considerations and fast algorithms for calculating the diffraction integral,” J. Mod. Opt. 44(2), 407–414 (1997). [CrossRef]  

25. F. Shen and A. Wang, “Fast-Fourier-transform based numerical integration method for the Rayleigh-Sommerfeld diffraction formula,” Appl. Opt. 45(6), 1102–1110 (2006). [CrossRef]  

26. L. Rabiner, R. W. Schafer, and C. Rader, “The chirp z-transform algorithm,” IEEE Trans. Audio Electroacoust. 17(2), 86–92 (1969). [CrossRef]  

27. Y. Hu, Z. Wang, X. Wang, S. Ji, C. Zhang, J. Li, W. Zhu, D. Wu, and J. Chu, “Efficient full-path optical calculation of scalar and vector diffraction using the Bluestein method,” Light: Sci. Appl. 9(1), 1–11 (2020). [CrossRef]  

28. M. Leutenegger, R. Rao, R. A. Leitgeb, and T. Lasser, “Fast focus field calculations,” Opt. Express 14(23), 11277–11291 (2006). [CrossRef]  

29. L. Bluestein, “A linear filtering approach to the computation of discrete Fourier transform,” IEEE Trans. Audio Electroacoust. 18(4), 451–455 (1970). [CrossRef]  

30. O. Chubar and C. Rafael, “Memory and CPU efficient computation of the Fresnel free-space propagator in Fourier optics simulations,” Opt. Express 27(20), 28750–28759 (2019). [CrossRef]  

31. T. Takashi and H. Kitamura, “SPECTRA: a synchrotron radiation calculation code,” J. Synchrotron Radiat. 8(6), 1221–1228 (2001). [CrossRef]  

32. V. Favre-Nicolin, G. Girard, S. Leake, J. Carnis, Y. Chushkin, J. Kieffer, P. Paleo, and M. I. Richard, “PyNX: high-performance computing toolkit for coherent X-ray imaging based on operators,” J. Appl. Crystallogr. 53(5), 1404–1413 (2020). [CrossRef]  

33. Y. Shechtman, Y. C. Eldar, O. Cohen, H. N. Chapman, J. Miao, and M. Segev, “Phase retrieval with application to optical imaging: a contemporary overview,” IEEE signal processing magazine 32(3), 87–109 (2015). [CrossRef]  

34. J. R. Fienup, “Phase retrieval algorithms: a comparison,” Appl. Opt. 21(15), 2758–2769 (1982). [CrossRef]  

Supplementary Material (1)

NameDescription
Supplement 1       Supplement 1

Data availability

Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.

Cited By

Optica participates in Crossref's Cited-By Linking service. Citing articles from Optica Publishing Group journals and other participating publishers are listed here.

Alert me when this article is cited.


Figures (9)

Fig. 1.
Fig. 1. Sequence of two-step SVD.
Fig. 2.
Fig. 2. The efficiencies of CSD decomposition and two-step SVD. Using the electron beam and undulator parameters (Supplement 1,Table S1, column HXCS), all the calculations were performed on a workstation with an Intel Xeon Gold 6226 2.70 GHz and 64 GB of memory, running the Ubuntu 18.04 LTS operating system. 20 CPU cores were used for parallel computations. The truncation number, t, of the CMD was 200, and the size of the wavefront [Nx, Ny] was [200, 200].
Fig. 3.
Fig. 3. Comparison of SRW/COMSYL with CAT software. (a) CSDx and CSDy calculated by SRW and CAT. (b) The coherent modes of ESRF-EBS calculated by CAT, m is the index of mode. Details and more comparisons are shown in Supplement 1, Fig. S1.
Fig. 4.
Fig. 4. (a) The wavefront was focused by an ideal lens. The distance between the source and lens was 10 m, and the focal length of the lens was 5 m (1:1 focus). Here, the SRW standard propagator was the Fresnel propagator used by SRW, which was calculated by using the convolution theorem. (b) The wavefront was diffracted by a slit. The distance between the source and slit was 10 m, and the distance between the slit and final screen was 10 m. The size of the slit was 50 µm.
Fig. 5.
Fig. 5. The first six coherent modes (φ0∼φ5) and normalized weights (w) of the HEPS.
Fig. 6.
Fig. 6. (a) HXCS optical layout designed for XPCS and traditional plane wave CXDI. (b) Intensity, (b) CSDx and (c) CSDy of the secondary source.
Fig. 7.
Fig. 7. The first three coherent modes of the X-ray beam at the sample.
Fig. 8.
Fig. 8. (a) The sample used for CXDI simulations. (b) The diffraction pattern of sample.
Fig. 9.
Fig. 9. Reconstruction results for CXDI simulations with the CF ranging from 89.0% to 95.6%.

Equations (15)

Equations on this page are rendered with MathJax. Learn more.

W ( x 1 , x 2 ; y 1 , y 2 ; ω ) = E ( x 1 , y 1 ; ω ) E ( x 2 , y 2 ; ω ) ,
W ( x 1 , x 2 ; y 1 , y 2 ; ω ) = m ρ m φ m ( x 1 , y 1 ; ω ) φ m ( x 2 , y 2 ; ω ) ,
I ( x , y ) = m ρ m | φ m ( x , y ) | 2 .
A = U Σ V + ,
A i = [ E i 1 , E i 2 , , E i ( n k ) ] = [ ρ i 1 φ i 1 , ρ i 2 φ i 2 , , ρ i t φ i t ] ,
A = [ ( ρ 1 , 1 φ 1 , 1 , , ρ 1 , t φ 1 , t ) 1 , , ( ρ k , 1 φ k , 1 , , ρ k , t φ k , t ) k ] .
φ ( x 2 , y 2 ) = k e i k d 2 π i d + φ ( x 1 , y 1 ) e i k 2 d [ ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2 ] d x 1 d y 1 ,
φ ( x 2 , y 2 ) = + φ ( k x , k y ) e i d k 2 ( k x 2 + k y 2 ) e i ( x 2 k x + y 2 k y ) d q x d q y ,
z m = n = 1 N x n × a n × w m n ,
φ i d e a l l e n s = \;  e i k ( x 2 + y 2 ) 2 f ,
φ K B = \;  e i k ( x 2 + p 2 + x 2 + q 2 ) ,
e r r o r p = \;  2 π λ × 2 s i n ( θ ) × e r r o r s ,
φ ( x , y ) = | φ ( x , y ) | × e i × arg [ φ ( x , y ) ] × e i × e r r o r p .
φ ( q x , q y ) F T [ T ( x , y ) φ ( x , y ) ] .
I ( q x , q y ) = m ρ m | φ m ( q x , q y ) | 2 m ρ m | F T [ T ( x , y ) φ m ( x , y ) ] | 2 ,
Select as filters


Select Topics Cancel
© Copyright 2024 | Optica Publishing Group. All rights reserved, including rights for text and data mining and training of artificial technologies or similar technologies.