A computational framework for ptychographic reconstructions

Ptychography is now a well-established X-ray microscopy tool for synchrotron end-stations equipped with a scanning stage and a pixelated detector. Ptychographic phasing algorithms use information from coherent diffraction to deliver quantitative images of the specimen at a resolution higher than the scanning resolution. These algorithms have traditionally been implemented in software on a per-instrument basis in various degrees of user-friendliness and sophistication. Here, we present Ptypy, a ptychography software written with the intention to serve as a framework across the diverse sets of available instruments and usage cases. A distinctive feature of the software is its formalism, which provides a convenient abstraction of the physical model, thus allowing for concise algorithmic implementations and portability across set-up geometries. We give an overview of the supported usage cases, explain the abstraction layer and design principles, and provide a step-by-step guide describing how an algorithm may be realized in a concise and readable manner. The software capabilities are illustrated with reconstructions from visible light and X-ray data.

[1]  J. Rodenburg,et al.  An improved ptychographical phase retrieval algorithm for diffractive imaging. , 2009, Ultramicroscopy.

[2]  O. Bunk,et al.  Influence of the overlap parameter on the convergence of the ptychographical iterative engine. , 2008, Ultramicroscopy.

[3]  Jesse N. Clark,et al.  Dynamic imaging using ptychography. , 2014, Physical review letters.

[4]  D. Sayre,et al.  Electronic Reprint Foundations of Crystallography Reconstruction of a Yeast Cell from X-ray Diffraction Data Foundations of Crystallography Reconstruction of a Yeast Cell from X-ray Diffraction Data , 2022 .

[5]  S. Eisebitt,et al.  Lensless imaging of magnetic nanostructures by X-ray spectro-holography , 2004, Nature.

[6]  Guoan Zheng,et al.  Quantitative phase imaging via Fourier ptychographic microscopy. , 2013, Optics letters.

[7]  J. Rodenburg,et al.  An annealing algorithm to correct positioning errors in ptychography. , 2012, Ultramicroscopy.

[8]  Franz Pfeiffer,et al.  Ptychography with broad-bandwidth radiation , 2014 .

[9]  O. Bunk,et al.  Ptychographic X-ray computed tomography at the nanoscale , 2010, Nature.

[10]  A. Diaz,et al.  Three-dimensional high-resolution quantitative microscopy of extended crystals. , 2011, Nature communications.

[11]  Andreas Menzel,et al.  Probe retrieval in ptychographic coherent diffractive imaging. , 2009, Ultramicroscopy.

[12]  J. Miao,et al.  Extending the methodology of X-ray crystallography to allow imaging of micrometre-sized non-crystalline specimens , 1999, Nature.

[13]  D. R. Luke Relaxed averaged alternating reflections for diffraction imaging , 2004, math/0405208.

[14]  Mario A. Storti,et al.  MPI for Python: Performance improvements and MPI-2 extensions , 2008, J. Parallel Distributed Comput..

[15]  T. Salditt,et al.  Phase retrieval for object and probe using a series of defocus near-field images. , 2013, Optics express.

[16]  O. Bunk,et al.  Ptychographic coherent diffractive imaging of weakly scattering specimens , 2010 .

[17]  S. Marchesini,et al.  Chemical composition mapping with nanometre resolution by soft X-ray microscopy , 2014, Nature Photonics.

[18]  O. Bunk,et al.  High-throughput ptychography using Eiger: scanning X-ray nano-imaging of extended regions. , 2014, Optics express.

[19]  Talita Perciano,et al.  SHARP: a distributed, GPU-based ptychographic solver , 2016, 1602.01448.

[20]  Gaël Varoquaux,et al.  The NumPy Array: A Structure for Efficient Numerical Computation , 2011, Computing in Science & Engineering.

[21]  Franz Pfeiffer,et al.  Near-field ptychography: phase retrieval for inline holography using a structured illumination , 2013, Scientific Reports.

[22]  D. Vine,et al.  Simultaneous cryo X-ray ptychographic and fluorescence microscopy of green algae , 2015, Proceedings of the National Academy of Sciences.

[23]  A. Menzel,et al.  On-the-fly scans for X-ray ptychography , 2014 .

[24]  Manuel Guizar-Sicairos,et al.  Density mapping of hardened cement paste using ptychographic X-ray computed tomography , 2013 .

[25]  K. Nugent,et al.  Diffractive imaging using partially coherent x rays. , 2009, Physical review letters.

[26]  V. M. Ghete,et al.  Observation of the Associated Production of a Single Top Quark and a W Boson in pp Collisions at √s=8 TeV , 2014, 1401.2942.

[27]  O. Bunk,et al.  High-Resolution Scanning X-ray Diffraction Microscopy , 2008, Science.

[28]  V. Elser Solution of the crystallographic phase problem by iterated projections. , 2002, Acta crystallographica. Section A, Foundations of crystallography.

[29]  Chao Yang,et al.  Alternating direction methods for classical and ptychographic phase retrieval , 2012 .

[30]  Travis E. Oliphant,et al.  Python for Scientific Computing , 2007, Computing in Science & Engineering.

[31]  Chao Yang,et al.  Augmented projections for ptychographic imaging , 2012, 1209.4924.

[32]  W. Hoppe Beugung im inhomogenen Primärstrahlwellenfeld. I. Prinzip einer Phasenmessung von Elektronenbeungungsinterferenzen , 1969 .

[33]  T. Salditt,et al.  Semi-transparent central stop in high-resolution X-ray ptychography using Kirkpatrick–Baez focusing , 2013, Acta Crystallographica Section A: Foundations of Crystallography.

[34]  F. Pfeiffer,et al.  Quantitative biological imaging by ptychographic x-ray diffraction microscopy , 2009, Proceedings of the National Academy of Sciences.

[35]  A. Diaz,et al.  Translation position determination in ptychographic coherent diffraction imaging. , 2013, Optics express.

[36]  J. Rodenburg,et al.  Ptychographic transmission microscopy in three dimensions using a multi-slice approach. , 2012, Journal of the Optical Society of America. A, Optics, image science, and vision.

[37]  A. Talneau,et al.  Strain in a silicon-on-insulator nanostructure revealed by 3D x-ray Bragg ptychography , 2015, Scientific Reports.

[38]  Franz Pfeiffer,et al.  X-ray near-field ptychography for optically thick specimens , 2015 .

[39]  J. Rodenburg,et al.  Movable aperture lensless transmission microscopy: a novel phase retrieval algorithm. , 2004, Physical review letters.

[40]  Garth J. Williams,et al.  Lensless imaging using broadband X-ray sources , 2011 .

[41]  Tom Peterka,et al.  Continuous Motion Scan Ptychography: Characterization for Increased Speed in Coherent X-ray Imaging References and Links Chemical Composition Mapping with Nanometre Resolution by Soft X-ray Microscopy, " Nature , 2022 .

[42]  J. Fienup,et al.  Phase retrieval with transverse translation diversity: a nonlinear optimization approach. , 2008, Optics express.

[43]  Andreas Menzel,et al.  Reconstructing state mixtures from diffraction measurements , 2013, Nature.

[44]  R. Gerchberg A practical algorithm for the determination of phase from image and diffraction plane pictures , 1972 .

[45]  K. Nugent Coherent methods in the X-ray sciences , 2009, 0908.3064.

[46]  Tanneguy Redarce,et al.  Automatic Lip-Contour Extraction and Mouth-Structure Segmentation in Images , 2011, Computing in Science & Engineering.

[47]  T. Kurz,et al.  Non-iterative coherent diffractive imaging using a phase-shifting reference frame , 2009 .

[48]  Tom Peterka,et al.  Parallel ptychographic reconstruction. , 2014, Optics express.

[49]  Andreas Fehringer,et al.  X-ray nanotomography using near-field ptychography. , 2015, Optics express.

[50]  F. Maia The Coherent X-ray Imaging Data Bank , 2012, Nature Methods.

[51]  R. J.,et al.  Reconstruction of a complex-valued object from the modulus of its Fourier transform using a support constraint , 2002 .

[52]  P. Thibault,et al.  Maximum-likelihood refinement for coherent diffractive imaging , 2012 .