Abstract
Visualization of internal deformation fields in crystalline materials helps bridge the gap between theoretical models and practical applications. Applying Bragg coherent diffraction imaging under X-ray dynamical diffraction conditions provides a promising approach to the longstanding challenge of investigating the deformation fields in micron-sized crystals. Here, we present an automatic differentiation-based reconstruction method that integrates dynamical scattering theory to accurately reconstruct deformation fields in large crystals. Using this forward model, our simulated and experimental results demonstrate that three-dimensional local strain information inside a large crystal can be accurately reconstructed under coherent X-ray dynamical diffraction conditions with Bragg coherent X-ray diffraction imaging. These findings open an avenue for extending the investigation of local deformation fields to microscale crystals while maintaining nanoscale resolution, leveraging the enhanced coherence and brightness of advanced X-ray sources.
Similar content being viewed by others
Introduction
Visualization of internal deformation fields in functional crystal materials is fundamentally important for their design and practical applications1,2. Such visualization facilitates our understanding of strain-related microscopic mechanisms in these small crystals, as their specialized functionality increasingly relies on complex local deformation information that deviates from an ideal crystal structure. This is especially true for microscale crystal materials, such as ferroelectrics3, piezoelectrics4, shape memory alloys5, and semiconductor microcrystals6, which exhibit unique behaviors due to their intermediate scale that bridges the gap between nanoscale and bulk materials. Advances in deformation detection technology are driving the need for the development, optimization, and application of these functional crystal materials, for example, in mobility engineering of semiconductors7 or control of electronic band structure in quantum materials8.
Among the few powerful X-ray crystal microscope methods capable of measuring internal three-dimensional deformation fields, Bragg Coherent Diffraction Imaging (BCDI) offers great potential for investigating various length scales of crystals with nanoscale resolution9, based on coherently diffracted X-ray patterns. In a typical BCDI experiment, an intense coherent X-ray beam is used to record interference patterns in the vicinity of one or several Bragg reflections of an illuminated crystal10,11,12. However, the phase information of these patterns is lost during measurement. The inversion of these patterns using traditional iterative methods13,14 provides a high-resolution projection of the local deformation field along the reciprocal lattice vector of the crystal, which is obtained from the phase of the recovered complex function12. This process relies on three-dimensional Fourier transformations between real and reciprocal space, which confines the analysis to the framework of kinematical approximation.
As a simplification of the more rigorous dynamical diffraction theory15, only the interactions between the primary incident X-ray beam and the crystal atoms are considered in the kinematical approximation, while higher-order effects are neglected. Consequently, in most BCDI experiments, the crystal size has been limited to nanoscale dimensions to satisfy the kinematical approximation and minimize artifacts in the reconstructed deformation fields caused by dynamical X-ray diffraction effects. As fourth-generation synchrotron radiation sources and X-ray free-electron lasers are developed worldwide16,17, the significant increase in coherence length of X-rays enables the experimental probing of deformation in larger crystals. While BCDI offers a unique capability to resolve three-dimensional (3D) strain in thick crystals with nanoscale resolution, the absence of a robust method to account for dynamical diffraction effects has hindered the quantitative study of deformation fields in crystals whose size exceeds the extinction depth or approaches the Pendellösung distance18,19. To expand these opportunities in recent years, there has been growing interest in understanding the role of dynamical diffraction effects in BCDI experiments, and several approaches have been proposed to address refraction and absorption effects arising from coherent dynamical diffraction15,20,21,22, while a strong coupling between the incident wave and diffractive wave has generally been ignored. Consequently, these methods are only applicable under limited conditions23.
In this paper, we demonstrate an automatic differentiation-based approach that reconstructs the internal deformation field of a crystal from its experimental Bragg coherent diffraction patterns using a coherent X-ray dynamical diffraction formalism. This model is implemented through the integration of the Takagi-Taupin equations (TTEs) on an orthogonal grid during the BCDI reconstruction process. In our approach, the TTEs are solved using exponential Rosenbrock-type methods for numerical integration. By incorporating this dynamical diffraction model into a mini-batch stochastic gradient descent optimization framework, the deformation field of the finite crystal is then reconstructed from its corresponding 3D Bragg coherent diffraction patterns. We have validated our approach using both simulated and experimental data. Compared with traditional iterative methods, our approach enables the direct incorporation of dynamical diffraction theory without compromising the accuracy of the determined internal lattice distortion field. It also provides a more reliable and precise path to convergence. By employing BCDI reconstruction based on dynamical diffraction theory, our approach not only provides a way to investigate deformation fields in microscale crystals but also enables the utilization of the enhanced coherence properties offered by advanced X-ray sources.
Results
Dynamical diffraction and computational model
Figure 1a illustrates the experimental setup for a typical BCDI measurement, based on the geometry at beamline 34-ID-C at the Advanced Photon Source, Argonne National Laboratory. It specifically shows the diffraction geometry within the standard laboratory coordinate system \({{\rm{X}}}^{{\prime} }{{\rm{Y}}}^{{\prime} }{{\rm{Z}}}^{{\prime} }\). A small crystal is fully illuminated by a coherent X-ray beam with wavevector \({{\bf{k}}}_{0}\), with the crystal size being smaller than the beam’s coherence length. The incident X-ray wavefront is assumed to be a plane wave. The diffracted wavevector at a position on a far-field two-dimensional (2D) detector is defined as \({{\bf{k}}}_{{\rm{f}}}\), which equals to \({{\bf{k}}}_{h}\) when satisfying the Bragg condition for a reciprocal lattice vector \({\bf{h}}\), i.e., \({\bf{h}}={{{\bf{k}}}_{h}-{\bf{k}}}_{0}\). Both \({{\bf{k}}}_{0}\) and \({{\bf{k}}}_{{\rm{f}}}\) vectors are defined in vacuum and have same magnitude. Here, it should be noticed that \({{\bf{k}}}_{{\rm{f}}}\) is a variable vector, and \({{\bf{k}}}_{{\bf{h}}}\) is a constant vector, determined solely by \({\bf{h}}\) and \({{\bf{k}}}_{0}\). The momentum transfer vector \({\bf{Q}}\) is therefore given as \({\bf{Q}}={{{\bf{k}}}_{{\rm{f}}}-{\bf{k}}}_{0}\), which is a variable vector and not the same as the fixed point h. To measure the Bragg coherent diffraction pattern around a reciprocal lattice vector \({\bf{h}}\), which requires the satisfaction of the Bragg condition, i.e., when \({\bf{Q}}={\bf{h}}\), the 2D detector is positioned using a combination of the horizontal \(\delta\) and vertical \(\gamma\) angles, and the crystal sample is rotated around the \({\rm{Y}}^{\prime}\)-axis by angle \(\theta\). Since the diffracted coherent diffraction pattern recorded by the detector is a 2D slice in the reciprocal space near h, the 3D diffraction volume in reciprocal space is sampled by a stack of 2D slices by rotating the crystal sample in small \(\Delta \theta\) steps along the rocking curve direction. In this way, the 3D diffraction pattern is measured slice by slice within a parallelepiped volume of Fourier space. When rotating the crystal by the angle \(\Delta \theta\), the reciprocal lattice vector is changed by \(\Delta {\bf{q}}={{\bf{h}}}^{{\boldsymbol{{\prime} }}}-{\bf{h}}\), where \({{\bf{h}}}^{{\boldsymbol{{\prime} }}}\) is the updated reciprocal lattice vector at rotated crystal orientation. Figure 1b presents a detailed 2D sketch of the sampling system, introducing the XYZ coordinate system. It is viewed from the scattering plane defined by \({{\bf{k}}}_{0}\) and \({{\bf{k}}}_{h}\) vector.
a Basic geometry of a BCDI experiment. b Schematic of coherent X-ray diffraction from a crystal in BCDI experiments. c Computational graph for the reconstruction. The forward path marked by solid arrows predicts the diffraction pattern measured by the X-ray detector and evaluates the loss function. The backward path marked by dashed arrows computes the gradients with respect to each optimizable variable.
The mathematical foundation of BCDI within the framework of the kinematical diffraction approximation can be formulated as a three-dimensional Fourier transform based on the 3D diffraction pattern. This approximation becomes invalid when the measured crystal size is close to its Pendellösung distance in Laue geometry (or extinction distance in Bragg geometry). In such cases, the more rigorous dynamical diffraction theory should be employed. According to dynamical X-ray diffraction theory, under the two-beam diffraction approximation, the wavefield inside a crystal can be expressed as a sum of modulated plane waves:
where \({{\bf{k}}}_{0}\) and \({{\bf{k}}}_{h}\) represent the wavevectors of the transmitted and diffracted waves, respectively. The complex wavefronts for the transmitted \({E}_{0}\left({\bf{r}}\right)\) and diffracted \({E}_{h}\left({\bf{r}}\right)\) waves are the solutions of the well-known Takagi-Taupin Equations (TTEs)18,19,24,25. For Bragg coherent X-ray diffraction imaging, they can be obtained by solving the symmetric version of two beam TTEs15, which are given by:
Here, \({\chi }_{0}\) represents the average electric susceptibility of the crystal, with its real and imaginary parts describing refraction and absorption effects, respectively. \({\chi }_{h,\bar{h}}\) are Fourier coefficients of the susceptibility function of the crystal for the diffracted beams, which are related to the crystal structure factor at the corresponding reciprocal lattice vectors, as denoted by their subscripts. The symbol \(C\) stands for the polarization factor, which equals to \(\cos 2{\theta }_{{\rm{B}}}\) in the case of a \({\rm{\pi }}\) polarization and unity in the case of a \({\rm{\sigma }}\) polarization. Here, \({\theta }_{{\rm{B}}}\) is the corresponding Bragg angle. Since we assume that the wavevectors \({{\bf{k}}}_{0}\) and \({{\bf{k}}}_{h}\) are the same inside and outside of the crystal15,18,19,24, the \({E}_{0}\left({\bf{r}}\right)\) and \({E}_{h}\left({\bf{r}}\right)\) are continuous on the boundary of the crystal. It makes the Eq. (2) particularly convenient in the case of a 3D crystal with arbitrary shape. Consequently, Fourier Components \({\chi }_{0}\), \({\chi }_{h}\) and \({\chi }_{\bar{h}}\) of susceptibility will decrease to zero outside the crystal. To account for this, they are multiplied by the introduced crystal amplitude function \({{\rm{s}}}_{0,h,\bar{h}}\), i.e., \({\chi }_{0,h,\bar{h}}\) = \({s}_{0,h,\bar{h}}({\bf{r}}){\chi }_{0,h,\bar{h}}\). In the case of a perfect crystal, \({s}_{0,h,\bar{h}}\) follow the same distribution, where they equal unity within the crystal and zero outside the crystal. However, it should be noticed that in the presence of the deformation field, \({{\rm{s}}}_{h,\bar{h}}\) are related to modulations of atomic planes associated with the measured Bragg reflection of the crystal, and \({{\rm{s}}}_{0}\) is proportional to the electron density of the crystal. \({\bf{u}}\left({\bf{r}}\right)\) is the local deformation field that describes the displacement of atoms from their ideal positions. If the coupling between transmitted and diffracted waves and the effects of refraction and absorption in the Eq. (2) (see SI for details) are neglectable, Eq. (2) can be solved analytically. Then, the far-field Bragg coherent diffraction intensity can be estimated by Fourier transformation of the crystal function \({S}_{h}\left({\bf{r}}\right)\), defined as \({S}_{h}\left({\bf{r}}\right)={{s}_{h}\left({\bf{r}}\right){\rm{e}}}^{i{\varphi }_{h}\left({\bf{r}}\right)}.\,\)Here, the phase by its definition is given as \({\varphi }_{h}\left({\bf{r}}\right)=-{\bf{h}}\cdot {\bf{u}}\left({\bf{r}}\right)\). This estimation corresponds to the kinematical diffraction condition.
Generally, Eq. 2 can only be solved numerically26,27. One traditional approach adopts an oblique coordinate system to solve the TTEs, with the axes aligned with the incident and diffracted wavevectors. To converge, it requires an iterative solution procedure. When the scattering simulation interfaces with material models that require orthogonal grids, the use of oblique coordinates necessitates extra interpolation steps. However, solving the TTEs directly in a orthogonal coordinate system with a finite difference scheme is equivalent to linear interpolation and will lead to accumulated interpolation errors at each step26. Thus, by solving the TTEs in reciprocal space and implicitly utilizing Fourier interpolation, the approach we present here uses an orthogonal grid but avoids these errors (see SI for details). When solving the TTEs in an orthogonal grid, the orientation of the grid can be arbitrary. For a BCDI experiment, as shown in Fig. 1b, it can be generally assumed, that \({{\bf{k}}}_{0}\cdot \hat{{\rm{z}}}{\boldsymbol{ > }}0\) and \({{\bf{k}}}_{{\rm{h}}}\cdot \hat{{\rm{z}}}{\boldsymbol{ > }}0\), where \(\hat{{\rm{z}}}\) is the orthonormal unit vector along the Z axis. To make the calculation of the diffracted wavefront more convenient, as shown in Fig. 1b, the origin of the coordinate system is chosen based on the scattering plane, aligned within the XOZ-plane, where \({{\bf{k}}}_{{\rm{h}}}\) is along the Z axis. Therefore, by applying the transverse Fourier transform (i.e., the 2D Fourier transformation operation \({{\mathcal{F}}}_{\perp }\) within the XOY plane) to Eq. (2), the TTEs can be rewritten as:
Here, the subscripts \(\perp\) are used to represent the XOY-plane component of vectors and the subscript z represents the corresponding perpendicular z component. Tildes represent the transforms of functions, i.e., \({\tilde{E}}_{0}={{\mathcal{F}}}_{\perp }\left({E}_{0}\right)\) and \({\tilde{E}}_{h}={{\mathcal{F}}}_{\perp }\left({E}_{{\rm{h}}}\right)\). \({\bf{q}}\) is the deviation vector from the exact Bragg condition, where \({\bf{q}}={\bf{Q}}-{\bf{h}}\). Variations of the amplitude function inside the crystal describe modulations of atomic planes associated with the chosen reflection h and not electron density modulations. Then, the complex wavefront for the transmitted \({E}_{0}\left({\bf{r}}\right)\) and diffracted \({E}_{{\rm{h}}}\left({\bf{r}}\right)\) can be obtained by solving the above equations with Exponential Runge-Kutta methods26. At the jth rotation angle, the coherent X-ray diffraction patterns \({D}_{j}\left({\bf{q}}\right)\) can be then approximated by propagating the exit wavefront of diffracted \({E}_{h,j}^{{\rm{out}}}\left({\bf{r}}\right)\) to the far-field, which can be evaluated using the squared Fourier transform magnitude \({D}_{j}\left({\bf{q}}\right)={|{{\mathcal{F}}}_{\perp }[{{\rm{E}}}_{h,j}^{\mathrm{out}}({\bf{r}})]|}^{2}\). While Eq. (3) is only valid for a pure \({\rm{\sigma }}\) or \({\rm{\pi }}\) polarization, it can be still applied for a general diffraction geometry. To control the effect of polarization, one can either tune the polarization direction of the incident x-ray to make the geometry into a pure σ or \({\rm{\pi }}\) polarization or, alternatively, use an appropriate sample geometry.
As the TTEs are evaluated on an orthogonal grid, Fourier interpolation is implicitly utilized at the level of the individual finite difference step. We use the ability to freely choose the computational grid to make the implementation of this approach easier. We implemented this approach within automatic differentiation framework28 for dynamical BCDI reconstruction. Figure 1c shows the corresponding schematic of the computational graph for the proposed approach to BCDI reconstruction, where the amplitude function \({{\rm{s}}}_{h}\left({\bf{r}}\right)\) and deformation field \({\rm{u}}\left({\bf{r}}\right)\) of a measured crystal are directly optimized. As a nonlinear optimization problem, the model evaluates the difference between the measured \({I}_{j}\) and the corresponding calculated \({D}_{j}\) to find the minimum of a loss function. Then, the partial derivatives of the loss function with respect to each parameter are backpropagated to update these parameters. For computational efficiency, we adopted a mini-batch gradient descent strategy to find the minimum of the loss function29, where a 2D subset of the 3D input coherent X-ray diffraction dataset (i.e., less than the full dataset) was used at each update until all the measured 2D coherent diffraction patterns had been processed. The 3D dataset was divided into five mini-batches with random order after each epoch. During each mini batch, the target variables were updated with each input subset. The best match between theoretical and experimental diffraction patterns can only be achieved if the amplitude function and deformation field are determined as accurately as possible.
For a coherent X-ray diffraction measurement, the finite X-ray photon statistics and inevitable noise in the measured coherent X-ray diffraction patterns can lead to artifacts in the reconstructed object29. Therefore, an adaptive total variation30,31,32 (ATV, i.e., \({L}_{p}\) norm to the power of \(q\)) denoising was also applied in our proposed BCDI reconstruction method under dynamical X-ray diffraction conditions. The final loss function is a combination of negative maximum likelihood estimation29 and ATV, averaged over all the rocking positions in a mini-batch \(l\) with size of \(L\), formulated as:
Here, the maximum likelihood estimation is given as \({\mathcal{l}_j}\left({\bf{q}}\right)=\frac{1}{M}\sum {\left[{D}_{j}^{\frac{1}{2}}\left({\bf{q}}\right)-{I}_{j}^{\frac{1}{2}}\left({\bf{q}}\right)\right]}^{2}\) and \(M\) is the total number of pixels in a diffraction pattern. \(\alpha\) is a weight parameter. \({{\rm{S}}}_{{\rm{h}}}\) is the crystal function given as \({S}_{h}\left({\bf{r}}\right)={{s}_{h}\left({\bf{r}}\right){\rm{e}}}^{i{\varphi }_{h}\left({\bf{r}}\right)}\). ATV is given as \({ATV}\left({S}_{h}\right)=\frac{1}{\varOmega }\sum {({|{\nabla }_{{\rm{x}}}{S}_{h}|}^{p}+{|{\nabla }_{{\rm{y}}}{S}_{h}|}^{p}+{|{\nabla }_{{\rm{z}}}{S}_{h}|}^{p}+\epsilon)}^{\frac{q}{p}}\), where \(\Omega\) is the array size of the crystal function and \(\nabla\) denotes the finite difference operations. \(\epsilon\) is a small constant used to prevent singular gradient error. Here, we used \(p=2\) and \(q=1\) in our calculations, which is known as the Euclidean norm. The 2D coherent X-ray diffraction patterns for each minibatch were obtained by a random permutation at each iteration. This optimization seeks a solution that fits the dynamical diffraction model but also has a limited total variation for the reconstructed crystal function.
Performance on simulated data
The effects of coherent X-ray dynamical diffraction on these kinematical-diffraction-based inverse methods for reconstructing the deformation field can be illustrated with a numerical study. To highlight the feasibility of our proposed BCDI approach under coherent X-ray dynamical diffraction, a one-micron Au cube with lattice constant \(a=4.07{\text{\AA }}\) was used to simulate the (002) BCDI rocking curve based on Eq. (3). The Au cubic unit cell is aligned along its cube edges. The cube is assumed to be deformed along its (002) crystal direction. Figure 2a shows a schematic of the diffraction geometry at sample with the incident X-ray \({{\bf{k}}}_{h}\) along the Z axis. Figure 2b presents the rocking curve (i.e., the total intensity) of the \({I}_{j}\) as a function of rotation angle, along with the corresponding rocking curve scan from the kinematical approximation using the same Bragg diffraction geometry. For the simulation, Fig. 2c–e demonstrate the corresponding deformation field used. The difference between the kinematical approximation and dynamical theory simulation is clearly observed in the position and intensity, with a more complex structure of the rocking curve profile observed from the dynamical theory simulation. Compared with the kinematical result, it can be seen that there is a displacement of the whole profile, particularly around the Bragg peak position, in the positive direction of the \(\Delta \theta\) axis for the dynamical theory simulations. This is well known in the dynamical theory33 and is caused by refraction. This results in a phase ramp in the reconstructed result, which is a property of the Fourier transform.
a Schematic view of the diffraction geometry at sample. b Rocking curves as a function of crystal rotation angle, on a logarithmic scale, under the kinematical and dynamical approximation, respectively. c–e Central X- Y- and Z-slices of the assumed complex crystal function. f–h Central X- Y- and Z-slices of the complex crystal function reconstructed with a traditional kinematical iterative method. i–k Central X- Y- and Z-slices of the complex crystal function reconstructed with the proposed dynamical method. The HSV color scheme, indicated in (e), uses brightness for the complex amplitude signal and a color wheel for the phase.
To demonstrate how dynamical diffraction affects the reconstruction of the strained Au cube structure, the simulated Bragg Coherent X-ray diffraction patterns (based on dynamical theory) were inverted using the established error reduction (ER) and hybrid input–output (HIO) algorithms (see “Methods” for more details)13,14,34,35. Central cross-sectional views of the reconstructed crystal function are depicted in Fig. 2f–h. Compared with the reference crystal function shown in Fig. 2c–e, the reconstructed crystal function has a nonuniform amplitude profile, and the phase profile is considerably different, particularly at the top of the reconstructed particle, where the beams have travelled furthest. These differences are caused by the coherent X-ray dynamical diffraction effects. It has been proposed20 that applying a linear approximation can remove these artifacts from refraction effects (see Fig. S1 for the corresponding corrected reconstruction). While this would be a satisfactory first approximation for weak phase effects, the coupling between the incident wave and the diffracted wave inside the crystal is generally strong and complicated, resulting in non-linear contributions. Small residual aberrations, apparently linked to the dynamical effects and not to refraction15, can be attributed to the imaginary parts of the Fourier components of the susceptibility \({\chi }_{h}\) and \({\chi }_{\bar{h}}\), which introduce a small phase shift whenever the wave is reflected by a crystalline plane. This motivates use of a rigorous coherent X-ray dynamical diffraction model as an enhancement to traditional BCDI reconstruction. When this is applied to the model diffraction pattern in Fig. 2i–k, a fairly constant crystal function profile, with distortions in excellent agreement between the original model and calculated results, is obtained. These results demonstrate the feasibility of using BCDI under coherent X-ray dynamical diffraction conditions. Our new computational method allows us to extend the accessible size of crystals to the microscale.
Performance on experimental data
To quantitatively evaluate experimental BCDI data to see the benefits of modeling the coherent X-ray dynamical diffraction in the reconstruction process, a micron-sized Sr₂IrO₄ crystal was fabricated using the Focused Ion Beam (FIB) lift-out method. The lattice constants of the crystal are \(a=b=\,5.49\,{\text{\AA }}\) and \(c=\,25.80\,{\text{\AA }}\) with tetragonal symmetry. During the preparation, a large Sr2IrO4 crystal was preoriented crystallographically using a Laue diffractometer, and then a block with size of ~1.5 × 1.5 × 1.2 µm³ was cut out using FIB milling. Afterwards, the obtained Sr2IrO4 crystal was welded with Pt onto a silicon wafer before final polishing, as shown in Fig. 3a, b. The prepared crystal has a well-defined shape close to a parallelepiped with its crystal orientation indicated by the arrows in Fig. 3a. This procedure follows our previous work36.
a Scanning electron microscopy image of the Sr2IrO4 sample viewed from the top, with the crystal orientation indicated by the black arrows. b Corresponding side view. c 3D isosurface plot of the measured coherent diffraction pattern in the detector frame from the (116) peak of the crystal. d 3D isosurface of the reconstructed crystal using the traditional kinematical iterative method. The crystal phase at the surface is illustrated by the color scale. e 3D isosurfaces of the reconstructed crystal using the proposed dynamical BCDI reconstruction method.
Experimental BCDI measurements of the Sr2IrO4 sample were carried out at the 34-ID-C beamline at the Advanced Photon Source of Argonne National Laboratory at an incident X-ray energy of 10 keV. 3D coherent diffraction data were collected by rocking the sample. The crystal (116) peak was studied because of its relatively large structure factor. Figure 3c shows 3D isosurfaces of the Bragg coherent diffraction patterns of the (116) peak from the prepared Sr2IrO4 crystal, recorded in the detector coordinate \({{\rm{X}}}^{{\prime} {\prime} }{{\rm{Y}}}^{{\prime} {\prime} }{{\rm{Z}}}^{{\prime} {\prime} }\) at four isosurface levels. The pattern exhibits well-defined fringe spacings along streaks in directions perpendicular to the well-defined parallel facets of the crystal in real space. However, the 3D diffraction pattern is asymmetrical, suggesting the presence of strain modulation inside the crystal and/or dynamical effects.
We inverted this 3D Bragg coherent diffraction pattern using the traditional iterative method, yielding results in Fig. 4a–c showing the extracted phase information from the reconstruction, where the phase is only allowed to span from \(-{\rm{\pi }}\) to \({\rm{\pi }}\). It should be noted that the results have been converted into the lab coordinate system to remove the shear distortion of the detector geometry. For comparison, Fig. 4d–f shows the corresponding reconstructions with the proposed dynamical BCDI reconstruction approach, using the same 3D coherent diffraction data.
a–c Central slices of retrieved phase using the traditional kinematical iterative reconstruction method. d–f Corresponding retrieved phase from the proposed method. g–i Central slices of obtained lattice displacement using the traditional kinematical method. j–l Corresponding results from the proposed method. m–o Central slices of obtained strain, the derivative of displacement with respect to position along the direction of the Q-vector, using the traditional method. p–r Corresponding results from the proposed method.
As shown in Fig. 4, both methods exhibit good agreement on the crystal shape, however, there is a significant difference between the phases. It can be clearly seen that the experimental image phases, reconstructed by the traditional kinematic approach, mix together the physical crystal strains with the artefacts of dynamical effects. For example, it can be seen that Fig. 4h, k appear to be almost identical, while Fig. 4g, j shows a significant phase difference in the bottom corner of the crystal. This corner is the part of the crystal in contact with the Pt weld used to mount it, seen in Fig. 3b, where contact strain is indeed expected. We can see that the displacement of the corner is much stronger in the dynamical image of Fig. 4i than the kinematical image of Fig. 4l. The crystal displacement has been mostly cancelled out by the dynamical effects in Fig. 4i and is more accurately revealed in Fig. 4l. Meanwhile, the rest of the crystal shows less phase variation in the dynamical-corrected image, suggesting that it is mostly dynamical artefact. The crystal corner also appears strongly in the strain image in Fig. 4p. A similar result was seen previously in a BCDI image of a Pb crystal supported on a Si substrate9, at that time, it was found that correcting for the X-ray refraction effects alone enhanced the apparent strain induced by the substrate but flattened the displacements in the rest of the crystal20. The dynamical theory indeed accounts for the refraction effects, but should be more precise in general, for example, accounting more completely for the X-ray optical propagation through strained regions of a crystal.
This discrepancy directly shows the difference between the kinematical and dynamical approaches. The coherent X-ray dynamical diffraction effect redistributes the corresponding reconstructed phase information; if this were not corrected, it could lead to mistakes in interpreting the obtained images, which could mislead subsequent analyses, such as displacement and strain analysis, as presented in Fig. 4g–r. Since the proposed method models the dynamical diffraction theory throughout the calculation, the dynamical artefacts are naturally excluded from the final image. Thus, the proposed method opens a path for accurate reconstruction of internal deformation fields in large crystals with nanoscale resolution.
Discussion
The introduced BCDI reconstruction algorithm, based on the automatic differentiation (AD) framework of the Takagi-Taupin two-beam formalism, has been shown to be a powerful tool for the accurate reconstruction of deformation field in crystals undergoing coherent X-ray dynamical diffraction. This approach holds significant potential for probing large crystals, which have previously remained inaccessible due to the challenges associated with solving dynamical diffraction equations. Unlike traditional iterative methods, which directly use the 3D diffraction pattern obtained from a stack of measured 2D diffraction patterns for reconstruction, the current method employs a minibatch approach, utilizing subsets of data for each update. This strategy paves the way for future adaptations, such as incorporating rocking angle fluctuations and addressing uncertainties in optimization. Furthermore, the multipeak BCDI approach37, which has great potential for obtaining full strain tensor information, would benefit from further refinements to the model. However, since the current framework relies on automatic differentiation, the inclusion of additional physical models may demand increased computational resources. Consequently, a careful balance between accuracy and efficiency must be considered to optimize the algorithm’s performance. It should also be mentioned that the current TTEs used are only valid with pure \(\sigma\) or \(\pi\) polarization. We believe the proposed dynamical diffraction modeling approach will perform better by further considering the effects of arbitrarily polarized incident X-rays38. However, without restricting its generality, it can be overcome experimentally by tuning the polarization direction of the incident X-ray or sample geometry during a BCDI experiment. For unpolarized incident X-ray, we solve the TTEs for \({\rm{\sigma }}\) component and \({\rm{\pi }}\) component separately. The final coherent x-ray diffraction intensity is found by summing the intensities from these two orthogonal polarization states.
Despite these challenges, the proposed method represents a significant step forward in the field, offering new opportunities for studying complex deformation fields in large crystals with unprecedented precision. As the fourth-generation synchrotron radiation facilities bring large gains in X-ray source coherence, the approach presented is expected to find important applications for looking at strain in micron-scale crystals.
In summary, we have developed a dynamical diffraction modeling approach that enables precise visualization of internal deformation fields measured by coherent X-ray dynamical diffraction, significantly advancing the characterization of large single crystals. By integrating Bragg coherent diffraction imaging (BCDI) with dynamical diffraction modeling, our method is not only compatible with modern optimization techniques but also extends the accessible size range of crystals. A key innovation lies in the direct incorporation of the TTEs on an orthogonal grid into the BCDI reconstruction framework, which effectively eliminates the distortions of the dynamical diffraction in the resulting images. This approach allows for the reconstruction of deformation fields in large crystals with nanoscale resolution, unlocking unprecedented opportunities to explore previously inaccessible structural phenomena in bulk crystalline materials. The inclusion of an ATV constraint further enhances the robustness and applicability of our approach, particularly in handling complex strain fields. Our method demonstrates exceptional potential for fully exploiting the capabilities of enhanced coherence and flux expected from fourth-generation synchrotron X-ray facilities. We anticipate that this work will catalyze the widespread adoption of BCDI at next-generation synchrotrons, enabling transformative studies in materials science. This advancement not only addresses current limitations in crystal deformation field characterization but also establishes a foundation for future investigations of strain-mediated phenomena in functional materials.
Methods
BCDI simulation
In our simulations, we considered the incident plane wave with 8 keV photon energy and (002) reflection conditions of a cube-shaped block of Au. For the (002) reflection, a \(\pi\) polarized diffraction geometry is assumed, given as \({\chi }_{0}=-0.94070\times {10}^{-4}+i0.84962\cdot {10}^{-4}\) and \({\chi }_{h}=0.52548\times {10}^{-4}-i0.59889\cdot {10}^{-5}\). The extinction lengths are 354 nm and 2710 nm for the Bragg and Laue geometries, respectively18,39,40. The corresponding Pendellösung distance33 is given as 863 nm. In this diffraction geometry, the Bragg angle in this condition is \({2\theta }_{{\rm{B}}}=44.76^\circ\), where \(2{\theta }_{{\rm{B}}}\) is the Bragg angle formed by \({{\bf{k}}}_{0}\) and \({{\bf{k}}}_{h}\). The rocking scan was simulated covering the angular range from \(-0.2^\circ\) to \(+0.2^\circ\), with an angular increment of \(1.56\times {10}^{-3}\) degree. The scattered intensity \({I}_{j}\) in the far field was calculated with 256 sampling points in each direction.
BCDI reconstruction
When applying the phase retrieval algorithm, the Bragg 3D diffraction patterns were used as input to the iterative phase retrieval scheme to reconstruct the corresponding real-space structural information. During reconstruction, the initial support size of the particle in real space was half the size of the input diffraction pattern array in each dimension. The algorithm switched between hybrid input-output (HIO) with \(\beta\) = 0.9 and error reduction (ER) after every 50 iterations. After the first 100 iterations, the shrink-wrap method41 was applied in real space to dynamically update the support every ten iterations. At the end of the reconstruction, 200 steps of error reduction were applied. The total number of iterations was 1800. After reconstruction, all results were converted from the detector to sample coordinates. The computation was performed on a system with 251 GB of RAM and 8 NVIDIA-SMI A100 GPUs.
The proposed algorithm for BCDI under coherent X-ray dynamical diffraction was implemented using PyTorch28, where the Wirtinger calculus was applied for gradient calculation of the complex-valued array. The same computational resource has been used for the proposed algorithm. To speed up the reconstruction process, we used the reconstructed result from the iterative method in the Cartesian Laboratory coordinates to initialize the amplitude function and deformation field for the proposed algorithm. For the (116) reflection of Sr2IrO4, a \(\pi\) polarized diffraction geometry was approximated to carry out the calculation, given as \({\chi }_{0}=-0.24947\times {10}^{-4}+i0.96953\times {10}^{-4}\) and \({\chi }_{h}=0.13373\times {10}^{-4}-i0.84241\times {10}^{-6}\). The extinction lengths are 633 nm and 9036 nm for the Bragg and Laue geometries, respectively. The corresponding Pendellösung distance is given as 2876 nm. To minimize the difference between the experimental diffraction patterns, the intensity scale factor applied for the calculated diffraction pattern was also optimized. During the reconstruction, the BCDI reconstructions were completed using the Adam optimizer42. The learning rate was initialized to 0.15 and was dynamically reduced by the scheduler using the loss metrics quantity when no improvement was seen for a “patience” number of epochs. For each epoch, the experimental coherent diffraction was divided randomly into five groups. Inspired by the traditional iterative method, the shrink-wrap method is also applied during the optimization after every 10 epochs. The reconstruction uses 6 h to run 600 iterations.
Sample preparation
The high-quality Sr2IrO4 single crystal was grown from off-stoichiometric quantities of SrCl₂, SrCO3, and IrO2 using self-flux techniques, described in a previous publication36,43. A large Sr2IrO4 crystal was pre-oriented crystallographically using a Laue diffractometer. The Focused Ion Beam (FIB) lift-out protocol was employed to extract a micron-sized Sr2IrO4 sample from the aligned large crystal. Using a Helios G5 Dual Beam SEM/FIB Microscope, a ~5 × 5 × 5 µm³ sample was extracted from the bulk Sr2IrO4 using an Omniprobe needle, and the cube-shaped sample was attached to a silicon wafer with a platinum weld. The lifted Sr2IrO4 sample was then trimmed down to approximately ~1.5 × 1.5 × 1.2 µm³ in each direction by gradually reducing the ion beam voltages and currents. Finally, a cleaning step with a 1 keV Ga beam was used to remove surface damage from the previous FIB milling steps.
BCDI experiments
The Bragg coherent X-ray diffraction experiments were carried out at the 34-ID-C beamline of the Advanced Photon Source. A double crystal monochromator was used to select the energy of 10.0 keV, and Kirkpatrick–Baez mirrors were used to focus the X-ray beam. To fully illuminate the crystal for valid Bragg coherent X-ray imaging, the beam size before focusing was adjusted to 1.2 × 1.4 μm2 (H × V) by changing the coherence-defining entrance X-ray slit to 10 × 20 μm2 (H × V). The sample was mounted on a stage for BCDI measurements. Since the Sr2IrO4 sample was pre-aligned before FIB preparation, the precise crystal alignment was quickly determined by using the (204) and (116) peaks of the sample, with a six-axis diffractometer to maneuver the sample orientation. After the Sr2IrO4 crystal was aligned, the BCDI data were collected by rocking the sample around the (116) peak. The corresponding diffraction signal was collected by a Timepix photon-counting detector mounted 2.5 m away from the Sr2IrO4 sample, and a vacuum flight tube was used to avoid air scattering contribution to the diffraction signal.
Lattice strain calculation
For a given Bragg peak, h, there is a simple linear relationship between the observed phase \({\varphi }_{h}\) (r) and the crystal displacement field u(r): \({\varphi }_{h}({\bf{r}})=-{\bf{h}}\cdot {\bf{u}}({\bf{r}})\). The strain is related to the variation of the d-spacing of the Sr2IrO4 crystal based on the measured Bragg peak. For the Sr2IrO4 crystal (116) peaks, the strain can be calculated as: \({\epsilon }_{116}=\partial {u}_{116}/\partial {d}_{116}\), where u116 is the corresponding displacement field and d116 is the real-space coordinate perpendicular to the (116) plane.
Data availability
The data that support the findings of this study are available from the corresponding authors upon request.
Code availability
All codes that support the findings of this study will be available upon request to the corresponding authors.
References
Shvartsman, V. V., Dkhil, B. & Kholkin, A. L. Mesoscale domains and nature of the relaxor state by piezoresponse force microscopy. Annu. Rev. Mater. Res. 43, 423–449 (2013).
Nataf, G. F. et al. Domain-wall engineering and topological defects in ferroelectric and ferroelastic materials. Nat. Rev. Phys. 2, 634–648 (2020).
Martin, L. W. & Rappe, A. M. Thin-film ferroelectric materials and their applications. Nat. Rev. Mater. 2, 16087 (2016).
Hao, J., Li, W., Zhai, J. & Chen, H. Progress in high-strain perovskite piezoelectric ceramics. Mater. Sci. Eng. R Rep. 135, 1–57 (2019).
Jani, J. M., Leary, M., Subic, A. & Gibson, M. A. A review of shape memory alloy research, applications and opportunities. Mater. Des. 56, 1078–1113 (2014).
Liu, D. et al. Strain analysis and engineering in halide perovskite photovoltaics. Nat. Mater. 20, 1337–1346 (2021).
Xiong, G. et al. Elastic relaxation in an ultrathin strained silicon-on-insulator structure. Appl. Phys. Lett. 99, 11 (2011).
Kim, S. et al. Emergent symmetry in TbTe3 revealed by ultrafast reflectivity under anisotropic strain. Rep. Prog. Phys. 87, 100501 (2024).
Pfeifer, M. A., Williams, G. J., Vartanyants, I. A., Harder, R. & Robinson, I. K. Three-dimensional mapping of a deformation field inside a nanocrystal. Nature 442, 63–66 (2006).
Williams, G. J., Pfeifer, M. A., Vartanyants, I. A. & Robinson, I. K. Three-dimensional imaging of microstructure in Au nanocrystals. Phys. Rev. Lett. 90, 175501 (2003).
Robinson, I. & Harder, R. Coherent X-ray diffraction imaging of strain at the nanoscale. Nat. Mater. 8, 291–298 (2009).
Robinson, I. K., Vartanyants, I. A., Williams, G. J., Pfeifer, M. A. & Pitney, J. A. Reconstruction of the shapes of gold nanocrystals using coherent x-ray diffraction. Phys. Rev. Lett. 87, 195505 (2001).
Gerchberg, R. W. A practical algorithm for the determination of phase from image and diffraction plane pictures. Optik 35, 237–246 (1972).
Fienup, J. R. Phase retrieval algorithms: a comparison. Appl. Opt. 21, 2758–2769 (1982).
Shabalin, A. G., Yefanov, O. M., Nosik, V. L., Bushuev, V. A. & Vartanyants, I. A. Dynamical effects in Bragg coherent x-ray diffraction imaging of finite crystals. Phys. Rev. B 96, 064111 (2017).
Chushkin, Y. & Zontone, F. Prospects for coherent X-ray diffraction imaging at fourth-generation synchrotron sources. IUCrJ 12, 280–287 (2025).
Khubbutdinov, R., Menushenkov, A. P. & Vartanyants, I. A. Coherence properties of the high-energy fourth-generation X-ray synchrotron sources. J. Synchrotron Radiat. 26, 1851–1862 (2019).
Taupin, D. Prévision de quelques images de dislocations par transmission des rayons X (cas de Laue symétrique). Acta Crystallogr. 23, 25–35 (1967).
Takagi, S. Dynamical theory of diffraction applicable to crystals with any kind of small distortion. Acta Crystallogr. 15, 1311–1312 (1962).
Harder, R., Pfeifer, M. A., Williams, G. J., Vartaniants, I. A. & Robinson, I. K. Orientation variation of surface strain. Phys. Rev. B 76, 115425 (2007).
Gao, Y. et al. Modeling and experimental validation of dynamical effects in Bragg coherent x-ray diffractive imaging of finite crystals. Phys. Rev. B 106, 184111 (2022).
Richard, M. I. et al. Taking Bragg coherent diffraction imaging to higher energies at fourth generation synchrotrons: nanoscale characterization. ACS Appl. Nano Mater. 6, 10246–10255 (2023).
Hu, W., Huang, X. & Yan, H. Dynamic diffraction artefacts in Bragg coherent diffractive imaging. J. Appl. Crystallogr. 51, 167–174 (2018).
Takagi, S. A dynamical theory of diffraction for a distorted crystal. J. Phys. Soc. Jpn. 26, 1239–1253 (1969).
Punegov, V. & Kolosov, S. Two-dimensional recurrence relations and Takagi–Taupin equations. I. Dynamical X-ray diffraction by a perfect crystal. J. Appl. Crystallogr. 55, 320–328 (2022).
Carlsen, M. & Simons, H. A finite difference scheme for integrating the Takagi-Taupin equations on an arbitrary orthogonal grid. Acta Crystallogr. A Found. Adv. 78, 395–401 (2022).
Yan, H. & Li, L. X-ray dynamical diffraction from single crystals with arbitrary shape and strain field: a universal approach to modeling. Phys. Rev. B 89, 014104 (2014).
Paszke, A. et al. PyTorch: an imperative style, high-performance deep learning library. Adv. Neural Inform. Proces. Syst. 32, 8026–8037 (2019).
Wu, L. et al. Dose-efficient automatic differentiation for ptychographic reconstruction. Optica 11, 821–830 (2024).
Chen, Q. et al. Adaptive total variation denoising based on difference curvature. Image Vis. Comput. 28, 298–306 (2010).
Rudin, L. et al. Nonlinear total variation based noise removal algorithms. Phys. D: Nonlinear Phenom. 60, 259–268 (1992).
Rodríguez, P. & Wohlberg, B. A generalized vector-valued total variation algorithm. IEEE Int. Conf. Image Process. s 1-6, 1309 (2009).
Authier, A. in International Tables for Crystallography, International Tables for Crystallography Ch. Chapter 5.1, 534–551 (2006).
Wu, L. et al. Three-dimensional coherent X-ray diffraction imaging via deep convolutional neural networks. npj Comput. Mater. 7, 1–8 (2021).
Wu, L., Juhas, P., Yoo, S. & Robinson, I. Complex imaging of phase domains by deep neural networks. IUCrJ 8, 12–21 (2021).
Wu, L., et al. Anisotropy of antiferromagnetic domains in a spin-orbit Mott insulator. Phys. Rev. B 108 L020403 (2023).
Newton, M. C., Leake, S. J., Harder, R. & Robinson, I. K. Three-dimensional imaging of strain in a single ZnO nanorod. Nat. Mater. 9, 120–124 (2010).
Okitsu, K. X-ray Takagi-Taupin dynamical theory generalized to n-beam diffraction cases. Acta Crystallogr. A 59, 235–244 (2003).
Stepanov, S. X-ray server: an online resource for simulations of X-ray diffraction and scattering. Adv. Comput. Methods X Ray Neutron Opt. 5536, 16–26 (2004).
Vartanyants, I. A. & Kovalchuk, M. V. Theory and applications of x-ray standing waves in real crystals. Rep. Prog. Phys. 64, 1009–1084 (2001).
Marchesini, S. et al. X-ray image reconstruction from a diffraction pattern alone. Phys. Rev. B 68, 140101 (2003).
Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. arXiv preprint https://doi.org/10.48550/arXiv.1412.6980 (2014).
Cao, G., Bolivar, J., McCall, S., Crow, J. E. & Guertin, R. P. Weak ferromagnetism, metal-to-nonmetal transition, and negativedifferential resistivity in single-crystal Sr2IrO4. Phys. Rev. B 57, R11039–R11042 (1998).
Acknowledgements
We thank Ivan Vartanyants, Anatoly Shabalin, Hanfei Yan, and Yuan Gao for helpful discussions of dynamical diffraction formalism. Work at Shanghai Advanced Research Institute was funded by the '100 Talents Project' of the Chinese Academy of Sciences. Work at Brookhaven National Laboratory was supported by the U.S. Department of Energy, Office of Science, Office of Basic Energy Sciences, under Contract No. DE-SC0012704. Measurements were conducted at the Advanced Photon Source (APS) beamline 34-ID-C, which was supported by the U. S. Department of Energy, Office of Science, Office of Basic Energy Sciences, under Contract No. DE-AC02-06CH11357. The beamline 34-ID-C was built with U.S. National Science Foundation grant DMR-9724294.
Author information
Authors and Affiliations
Contributions
L.W. developed the dynamical model and performed the data analysis with the support from I.K.R., S.Y., and A.L. L.W., I.K.R., D.Y., R.J.H., and W.C. performed experimental BCDI measurements. W.W. prepared the FIB sample. L.W. and I.K.R. wrote the manuscript, and all the authors contributed to the discussion of the manuscript.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Wu, L., Yang, D., Wang, W. et al. Unveiling nano-scale crystal deformation using coherent X-ray dynamical diffraction. npj Comput Mater 11, 379 (2025). https://doi.org/10.1038/s41524-025-01858-1
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41524-025-01858-1






