WorksPhysics and Astronomy
quantEM: Quantitative Electron Microscopy Analysis from Differentiable Physics to Neural Priors
Abstract
Quantitative electron microscopy includes imaging, diffraction, spectroscopy, and tomography measurements, and the analysis of these measurements increasingly requires solving inverse problems with physical forward models. Open-source software has made many of these analyses widely available, but most packages are organized around a single modality, so that multimodal analyses require moving data between packages, and new methods cannot easily reuse the physical models and optimizers of existing ones. Here we present quantEM, an open-source Python package for quantitative electron microscopy that uses PyTorch tensors for computation and automatic differentiation, and Zarr for storage. We implement each analysis method by writing a differentiable forward model and choosing a representation, loss function, constraints, and optimizer from a library of components, so that every method runs on CPUs and GPUs, can be saved and resumed, and uses the same calibrated data structures and visualization tools. We describe the current modules, including orientation and strain mapping, direct and iterative ptychography, tomography with neural representations, and X-ray and electron energy-loss spectroscopy, and show how we assemble combined methods such as ptychographic tomography from existing components. quantEM is available under the MIT license, together with documentation, tutorials, and curated example datasets.
Introduction
Quantitative Electron Microscopy
Transmission electron microscopy (TEM) and scanning TEM (STEM) can measure the atomic structure, composition, bonding, and electromagnetic fields of materials over length scales from micrometers to atomic resolution [1, 2]. Modern TEM and STEM instruments support a variety of characterization modalities, including imaging, diffraction, spectroscopy, and 3D tomography [3]. These methods can be further expanded to include time-series measurements during a wide variety of applied sample stimuli, including heating, cooling, electrical biasing, and straining [4].
The volume of data collected has also dramatically expanded with the widespread adoption of high-speed direct electron detectors. For example, in situ or operando experiments can record continuous movies over very large fields of view [5], and current detectors running at their maximum frame rates produce a terabyte of data in several minutes [6]. Four-dimensional STEM (4DSTEM) experiments, where we record a 2D image of the diffracted probe over a grid of 2D positions [7], have massive data rates. Spectroscopy data have also expanded in size, especially when we perform simultaneous multimodal imaging experiments and extend these measurements to tilt series to recover 3D chemistry [8]. These datasets can easily require hundreds of gigabytes of storage per experiment, and with modern detectors we may collect hundreds of these large datasets per day [9]. Quantitative analysis of these large TEM and STEM datasets requires robust analysis software, careful calibration, and in many cases solving nonconvex, underdetermined inverse problems [10, 11]. Automated acquisition and online analysis place additional demands on the speed, scalability, and reproducibility of analysis software [12].
Open-Source Software for Electron Microscopy
Open-source software is widely used to analyze large-scale TEM and STEM datasets, especially given the widespread deployment of machine learning for data analysis [13]. Python in particular has become the de facto programming language for both open-source scientific analysis [14, 15] and machine learning [16, 17], including for TEM. One of the first wide-ranging TEM data analysis toolkits was HyperSpy, a general Python framework for multidimensional electron microscopy signals with calibrated axes, lazy loading of large datasets, and model fitting, initially for electron energy-loss spectroscopy (EELS) and X-ray energy-dispersive spectroscopy (XEDS) spectrum images [18, 19]. The HyperSpy ecosystem now includes specialized packages such as RosettaSciIO for file input and output [20], eXSpy for spectroscopy [21], pyxem for 4DSTEM [22], orix for crystal orientations [23], and Atomap for atomic-resolution images [24]. Another widely used tool for 4DSTEM analysis is py4DSTEM [25], which includes virtual imaging, Bragg disk detection, strain mapping, orientation mapping [26], and phase retrieval [27], together with an HDF5-based file format. We previously described the architecture, development cycle, and governance of py4DSTEM as an example of research software co-created by many contributors [28], and many of the design decisions in quantEM follow directly from that experience. Similar lessons have been described for pymatgen [29], one of the largest open-source codebases in materials science, after 15 years of community-driven development [30]. A third widely used TEM analysis package is LiberTEM, which processes large datasets user-defined functions in a map-reduce framework that scales from a workstation to a cluster [31], and was later extended to live processing during 4DSTEM acquisition [32, 33]. Other open-source tools for TEM analysis include pycroscopy and USID [34], AtomAI for deep learning [35], StatSTEM (MATLAB) for model-based quantification of atomic-resolution images [36], and a package for real-time phase contrast imaging from sparse electron event data recorded by the 4D Camera [37].
Open-source 3D tomographic reconstruction codes that are not specific to TEM include TomoPy [38], the ASTRA toolbox [39, 40], TIGRE [41], and the Core Imaging Library (CIL) [42]. Electron tomography codes include IMOD [43], Tomo3D [44], and AreTomo [45], which are widely used for cryo-electron tomography, and tomviz [46], GENFIRE [47], RESIRE [48], and ETSpy [49] for materials science. Open-source ptychography codes include PtychoShelves [50] and its electron ptychography extension fold_slice [51], PtyPy [52], PyNX [53], PtyLab [54], PtyRAD [55], Pty-Chi [56], phaser [57], and PtyRANNOSAUR [58].
Several open-source packages are widely used for TEM and STEM simulations. These include STEM [59], Dr. Probe [60], computem [61], Prismatic [62, 63, 64], and abTEM [65], which is now the most widely used. abTEM has been widely adopted because of its easily expandable and modular all-Python implementation, fast computational models, ease of use, implementation of many algorithms and electron scattering modalities, and integration with first-principles simulations in GPAW [66, 67].
Nearly all of these packages are built on the scientific Python stack, including NumPy [68], SciPy [69], Matplotlib [70], scikit-image [71], and Jupyter notebooks [72]. Many follow the FAIR principles for data and research software and the software citation principles [73, 74, 75]. Most of these packages target one modality or one class of algorithms, and many implement the update rule of each reconstruction algorithm by hand, although recent ptychography codes use automatic differentiation [55, 56, 57]. As a result, multimodal analyses require conversion between packages, and each new forward model often requires its gradients to be derived and implemented by hand.
Differentiable Programming for Inverse Problems
Automatic differentiation (AD) computes exact gradients of a numerical program by applying the chain rule to each elementary operation, at a computational cost comparable to evaluating the program itself [76]. AD therefore removes the need to derive the gradients of each new forward model by hand, and greatly simplifies phase retrieval algorithms for complicated forward models [77]. AD has been applied to X-ray ptychography [78, 79, 80], and generalized to other X-ray modalities in Adorym [81]. In electron ptychography, AD has been used to reconstruct datasets with reduced information content using regularization [82] and to invert partially coherent dynamical scattering [83]. AD also underlies the PyTorch-based packages PtyRAD and Pty-Chi [55, 56].
Deep learning frameworks such as PyTorch provide AD, GPU acceleration, and distributed training [17, 84, 85], and make it straightforward to represent an unknown object with a neural network. Many different neural network architectures have been proposed, including deep image priors [86], neural radiance fields [87], implicit neural representations (INRs) with periodic activations or Fourier features [88, 89], hash encoding [90], tensor decompositions such as K-Planes [91], and many others. Neural representations have reconstructed heterogeneous structures in cryo-EM [92] and noisy STEM tomography data [93].
We have applied these ideas to ptychography with deep generative priors [94, 95], INR tomography with joint alignment [96], three-dimensional multislice ptychography [27, 97], cryo-electron ptychography of proteins [98], and phase-contrast cryo-tomography [99], among other applications.
Overview of This Work
In this paper, we describe quantEM, an open-source Python package for quantitative electron microscopy built on differentiable physical models [100], shown schematically in Figure 1. We focus on its current modules and on how we implement new analysis methods. Our goal is to make quantitative analysis of electron microscopy data calibrated, reproducible, and differentiable, and to reduce the effort needed to turn a new physical model into a working analysis method. We write each analysis method in quantEM as a forward model in PyTorch, so that the gradients of the loss with respect to all model parameters are computed by automatic differentiation rather than derived by hand, and the same code runs on CPUs, GPUs, and multiple GPUs. Every dataset stores the origin, sampling, and units of each axis, every operation updates these calibrations, and we can save any analysis object, including neural network weights and optimizer states, to a single Zarr file, which we can share with others or reload later to resume the analysis. We assemble new methods from shared components, including calibrated data structures, physics models, object representations, loss functions, constraints, and optimizers, so that we can build multimodal methods such as ptychographic tomography directly from the methods they combine. We organize analysis methods into five domains (imaging, diffraction, tomography, spectroscopy, and simulation) connected by a shared physics layer. We keep all modalities in a single repository under the permissive MIT license, and we intend quantEM to be used alongside the existing open-source tools described above.
Figure 1. Structure of quantEM: open-source foundations, the quantEM core, the shared physics layer, five domains, the analysis modules in each domain, and combined modules.
§ 2 describes the overall structure of the project and the design decisions behind it (§ 2.1–§ 2.3), the Dataset and Vector classes (§ 2.4), differentiable forward models (§ 2.5), serialization (§ 2.6), visualization (§ 2.7), and the building blocks for new analysis methods (§ 2.8). § 3 describes the current modules in each domain. § 4 compares quantEM to other open-source packages (§ 4.1), describes how we develop it (§ 4.2), and gives the development status and roadmap (§ 4.3). Finally, § 5 summarizes this work.
We describe several quantEM modules in more detail in separate method papers, including direct ptychography [101] and multi-angle precession electron diffraction [102]. Here we summarize each module with references to the method papers.
Project Structure
Figure 1 shows the layers of quantEM from the most general to the most specialized: open-source foundations, the core class functionality, a shared physics layer, five domains, the modules within each domain, and combined modules. The figure shows the planned scope, and Table 2 gives the current status of each module.
| Layer or domain | Component | Status |
| Core | Dataset for one- to four-dimensional data and 4DSTEM | Released |
| Core | Conversion of storage from NumPy arrays to PyTorch tensors | In development |
| Core | Ragged data (Vector, PyTorch-backed) | Released |
| Core | Polar 4DSTEM and spectroscopy datasets | Released |
| Core | Five- and six-dimensional datasets | In development |
| Core | Serialization to Zarr | Released |
| Core | Optimizers, constraints, losses | Released |
| Core | Neural representations (CNN, SIREN, K-Planes) | Released |
| Core | Multi-GPU ptychography | Released |
| Core | show_2d() and normalizations | Released |
| Core | Interactive widgets (Show4DSTEM) | In development |
| Physics | Crystallography, scattering factors, calibration | Released |
| Physics | Probe and aberration model | Released |
| Imaging | Drift correction | Released |
| Imaging | Lattice vector fitting | Released |
| Diffraction | Bragg disk detection, orientation and phase mapping | Released |
| Diffraction | Bragg strain mapping, Bloch wave refinement | Released |
| Diffraction | Reverse Monte Carlo diffuse scattering | Released |
| Diffraction | Pair angle distribution function | In development |
| Diffraction | MAPED | Released |
| Diffractive imaging | Iterative ptychography | Released |
| Diffractive imaging | Direct ptychography | Released |
| Diffractive imaging | Direct ptychography montage, event data | Released |
| Diffractive imaging | Tilt-corrected dark field, PRISM ptychography | In development |
| Tomography | SIRT, FBP, INR and K-Planes tomography | Released |
| Tomography | Gradient-based voxel tomography | Planned |
| Tomography | Gaussian splatting tomography | In development |
| Tomography | Atom tracing and 3D atomic models | Released |
| Spectroscopy | XEDS fitting and quantification | Released |
| Spectroscopy | EELS background, thickness | Released |
| Simulation | Bloch wave, kinematical diffraction | Released |
| Simulation | Standalone multislice | Planned |
| Combined | Ptychographic tomography | In development |
| Combined | Scanning diffraction tomography | In development |
| Combined | XEDS/EELS tomography | In development |
Table 2. Development status of quantEM components.
Open-Source Foundations
We use PyTorch to provide the tensors used by every module, on CPUs, NVIDIA GPUs (CUDA), and Apple silicon GPUs (MPS), together with reverse-mode AD, neural network layers, optimizers, learning-rate schedulers, and communication between GPUs and nodes [17, 84, 85]. We use Zarr (version 3) to store N-dimensional arrays as compressed chunks in a directory or a single zip file [103]. Supporting libraries include NumPy and SciPy [68, 69], Matplotlib [70], scikit-image [71], RosettaSciIO for file input and output [20], Optuna for hyperparameter optimization [104], and anywidget for interactive widgets [105].
Core, Physics Layer, and Domains
The core provides automatic serialization to every module, and defines two Python classes for data: Dataset for calibrated N-dimensional arrays and Vector for ragged data on a fixed grid (§ 2.4). Many modules implement automatic differentiation, and a shared physics layer collects the models needed by several domains: crystallography, electron scattering factors and potentials, electron optics, detector response, and calibration. Most modules fall into imaging, diffraction, tomography, and spectroscopy categories [3]. Simulation provides forward models for the other domains, and we build combined modules such as diffractive imaging, ptychographic tomography, and XEDS and EELS tomography from the classes of the domains they combine. We package each module under a descriptive name, such as quantem.imaging, quantem.diffraction, quantem.diffractive_imaging, quantem.tomography, and quantem.spectroscopy.
Design Decisions
We use PyTorch as the single compute backend. Using a single backend avoids the interchangeable NumPy and CuPy code paths of py4DSTEM [25], which in our experience increased the testing effort and made GPU support uneven across modules. We chose PyTorch over JAX, which offers similar AD and accelerator support with a functional programming model, because its object-oriented modules map onto the object, probe, and detector components of a forward model, it supports Apple silicon GPUs, and it is widely used in microscopy and machine learning [35, 55, 56, 92]. The costs are a large dependency and a higher per-operation overhead than NumPy for small arrays. Our goal is to run every module on PyTorch, and we are converting the few modules that still use NumPy and SciPy, such as drift correction and lattice fitting. The chunked Zarr format with JSON metadata allows partial reads of large arrays, parallel writes, and cloud object storage [103], and the bioimaging community has adopted it as the basis of OME-Zarr for the same reasons [106, 107]. Large materials databases are also moving to the cloud. For example, the Materials Project, which is built on pymatgen, is transitioning its entire data pipeline to cloud resources, including those of Amazon Web Services [108, 109].
We keep all domains in a single repository, unlike the HyperSpy ecosystem, which has separated spectroscopy and file input and output into the eXSpy and RosettaSciIO packages [20, 21]. Keeping all domains in one package means that data structures, physics models, representations, losses, and optimizers are written once and shared, so an improvement to a shared component reaches every method that uses it. Combined methods such as ptychographic tomography can then import directly from several domains without version conflicts between packages, and we test every change to the core against all modules in one continuous integration run, at the cost of a larger package.
Dataset and Vector Classes
The Dataset class stores an N-dimensional array with the origin, sampling, and units of each axis, and slicing, cropping, binning, and Fourier resampling update these calibrations (Figure 2a). We follow the axis convention of RosettaSciIO [20]. Derived data inherit these calibrations, so the mean diffraction pattern and virtual images of a 4DSTEM dataset are returned as Dataset2d objects in inverse Ångströms and Ångströms. Subclasses of Dataset cover one- to four-dimensional data (Dataset1d to Dataset4d), 4DSTEM and polar-transformed 4DSTEM data (Dataset4dstem and Polar4dstem), and XEDS and EELS spectrum images (Dataset3dxeds and Dataset3deels), with five- and six-dimensional datasets in development (Figure 2d). Each subclass adds methods specific to its measurement, such as virtual images and mean diffraction patterns for Dataset4dstem, but the same data can also be stored in the generic class of the same dimension, such as Dataset4d, which keeps the calibrations, slicing, and binning. Each of these classes has a show() method that displays the data with calibrated axes.
Figure 2. Figure 2: Core data structures in quantEM. (a) An atomic-resolution image, an X-ray spectrum image shown by its summed spectrum, and a 4DSTEM scan, each with its calibrations. (b) Bragg disks detected at nine probe positions and the Vector that stores them. (c) Saving and loading a 4DSTEM dataset, and the file tree of the saved file. (d) Selected classes that inherit AutoSerialize, colored by domain. Tree lines show inheritance, and dashed chips show the classes stored as attributes.
Dataset and Vector inherit from the AutoSerialize base class, which saves and loads every attribute of an object (§ 2.6). Analysis classes such as BraggVectors, OrientationMap, StrainMap, Ptychography, Tomography, and DriftCorrection inherit from the same base class, so we save and load them in the same way (Figure 2d). Many of these classes also store other quantEM classes as attributes; for example, BraggVectors stores the detected Bragg disks as a Vector, and Ptychography stores its object and probe models (Figure 2d).
Many analyses produce a variable number of entries at each probe position, such as detected Bragg disks. The Vector class stores these ragged data on the fixed grid of probe positions, as the rows of one PyTorch tensor with named fields and units, together with the start and length of each position’s rows (Figure 2b). In Figure 2b, we color rows by probe position, and each bar shows the value of one field. Indexing a Vector by probe position returns another Vector, and selecting fields returns a view that writes through to the shared buffer, so that operations such as calibrating the positions of all Bragg disks act on the whole buffer at once rather than looping over probe positions. The buffer moves between the CPU and GPU like any other tensor.
We read vendor formats, including DigitalMicrograph, Velox EMD, Merlin MIB, and SER files, and standard formats such as Berkeley EMD, MRC, and TIFF, through the RosettaSciIO package with calibrations from the file metadata [20]. We can also read legacy py4DSTEM files and abTEM simulation outputs [25, 65].
Differentiable Forward Models
Each differentiable analysis in quantEM is a forward model of learnable components and fixed physics operators (Figure 3b–Figure 3d). For example, in ptychography, the scan positions, probe, and object are learnable, and multislice propagation and the detector response are physics operators (Figure 3b). We use a loss function to compare the predicted measurement with the measured data, and automatic differentiation sends the gradient of the loss back to every learnable component (red paths in Figure 3b–Figure 3d). For tomography, the learnable volume is an INR or K-Planes decomposition projected along each tilt (Figure 3c), and for XEDS, learnable elemental maps and a background polynomial in energy form a spectrum model (Figure 3d). By default, we compute gradients with autograd, so new losses, constraints, and components need no derived update rules. For the most common ptychography loss, we also compute the gradient analytically, which matches autograd at lower cost, and preconditioning this gradient by the probe intensity reproduces the ePIE update [27, 110]. Each component holds its own PyTorch optimizer, learning-rate schedule, and constraints, so that, for example, probe positions can use a different learning rate than the object or be held fixed for the first iterations. We add soft constraints such as total variation to the loss, and apply hard constraints such as positivity to the component output. The loss library includes amplitude and intensity least squares, a Poisson likelihood, a smooth L1 loss, and a structural similarity loss [111].
Figure 3. Differentiable reconstruction examples in quantEM. (a) Object representations. (b–d) Forward models for (b) ptychography, (c) tomography, and (d) X-ray energy-dispersive spectroscopy. Colored: learnable components. Gray: physics operators. Black outline: measured data. Red: gradients.
We use interchangeable representations, where any component can be a pixel or voxel grid, a deep image prior [86], an INR [88], or a tensor decomposition [91] behind the same interface. Switching between them changes one argument, which allows direct comparisons of regularization strategies on the same data [94, 96]. The representations in Figure 3a include a K-Planes decomposition built from three feature planes, and complex-valued layers let networks output wavefunctions and transmission functions directly. The deep image prior is currently available for the ptychographic object, and tomography uses INR and K-Planes volumes.
Reconstructions run on CPUs, on CUDA and Apple silicon GPUs, and on several GPUs from a Jupyter notebook or under torchrun, with gradients averaged between workers [85]. The same code runs on several nodes of high-performance computing (HPC) systems. We have also implemented custom CUDA kernels to accelerate the most expensive operations in tomography, which also run under distributed training.
Serialization
We can save any analysis object, from a dataset to a full reconstruction with its neural networks and optimizer states, to one Zarr zip file with save(). We can then read these objects with load() (Figure 2c). In reconstructions, we can store the path to the raw data and its preprocessing parameters instead of the raw data itself, which keeps saved files small.
Visualization
Visualization has two levels: static Matplotlib figures for notebooks and publications [70], and interactive anywidget widgets for exploring large datasets [105]. For example, our function show_2d() displays arrays, tensors, or datasets, alone or as a grid of panels, with per-panel normalization, colorbars, titles, and calibrated scale bars, and all six panels of Figure 4 come from a single call. We use intensity normalizations, adapted from Astropy [112], to combine an interval (manual, centered, or quantile) with a stretch (linear, power-law, logarithmic, or inverse hyperbolic sine), as in Figure 4a–Figure 4c. We display complex-valued arrays by mapping amplitude to lightness and phase to hue in the perceptually uniform CIECAM02 color space, with an adjustable color saturation (Figure 4e,Figure 4f). We simulate the probe in Figure 4e at 300 kV with a 25 mrad aperture and 150 Å defocus. The phase of the transmission function in Figure 4f exceeds at the heavy atomic columns and wraps around the color wheel.
Figure 4. Visualization of simulated data with show_2d(). (a–c) A nanobeam diffraction pattern with linear, power-law, and logarithmic normalizations. (d) An atomic-resolution image. (e) A STEM probe wavefunction. (f) An object transmission function, with the phase colorbar for (e) and (f).
As an example of interactivity, the Show4D STEM widget shows the diffraction pattern at a selected probe position and updates a virtual image as the user draws detectors in diffraction space, with data and GPU computation in Python and rendering in the browser.
Building Blocks
We assemble a new method from six types of building blocks, shown as the columns of Figure 5: data, representations, physics operators, loss functions, constraints, and optimizers. We read crystal structures from CIF files or ASE Atoms objects [113], determine their space group symmetry with spglib [114], and compute their reciprocal lattices and kinematical and dynamical structure factors in double precision, so that we can refine lattice parameters, strain, and orientation by gradient descent. We compute electron scattering factors and projected potentials from a parameterization that obeys all physical constraints [115]. We model the loss of elastically scattered intensity to thermal diffuse scattering with absorptive form factors, which we compute numerically [116].
Figure 5. Building blocks for new analysis methods in quantEM. Blocks used by ptychographic tomography are colored by source: ptychography (violet to blue), tomography (teal), and the quantEM core (black).
The differentiable probe model forms probes in real or Fourier space, including aberrations [61], so that we can refine aberration coefficients in any reconstruction. Calibration routines determine the diffraction pattern origin, the rotation between scan and diffraction coordinates, the diffraction pixel size, and the elliptical distortion of the diffraction plane. We compute Fourier ring and shell correlations and the spectral signal-to-noise ratio from half datasets made by splitting the recorded electron counts, so that we evaluate every method with the same resolution metrics [117].
The core also logs the progress of every method, and the diffractive imaging modules tune their hyperparameters by Bayesian optimization with Optuna [104]. Ptychographic tomography reuses the ptychography reconstruction with a voxel or K-Planes object that is rotated for each tilt before multislice propagation, using the blocks highlighted in Figure 5.
Other similar examples include full-pattern strain fitting, which models each diffraction pattern as a lattice of disk templates on a background, fits this differentiable model with the core optimizers, and measures strain from the fitted lattice vectors. We have also implemented fused XEDS and HAADF tomography, which reuses the INR tomography reconstruction with a multichannel K-Planes object, a Poisson likelihood for the XEDS counts, and a chemical sparsity penalty.
Current Modules
Crystal Orientation, Phase, and Strain
We detect Bragg disks in 4DSTEM data by cross correlation with a vacuum probe template followed by subpixel refinement [118]. We store the detected disks with calibrated positions and intensities, which we then use for indexing, lattice fitting, strain, and orientation mapping. Automated crystal orientation mapping matches each diffraction pattern to a library of simulated patterns over all orientations [119]. We previously accelerated this matching in py4DSTEM using a sparse correlation on the radial bands that contain reciprocal lattice points [26], and in quantEM the matching, refinement, and grain clustering all run as batched GPU operations. We can also determine the phase fractions at each probe position from a nonnegative least-squares fit of several candidate crystal structures.
We measure strain from the positions of the Bragg disks relative to a reference lattice [118, 120]. For thicker samples, we use Bloch wave calculations to refine the local thickness, tilt, and strain from the full intensity distribution of each pattern, extending the stacked Bloch wave approach [121]. In multi-angle precession electron diffraction (MAPED), we record 4DSTEM data at several beam tilts, align the datasets in real and diffraction space, and combine them to reduce dynamical scattering effects [102].
Disordered and Semicrystalline Materials
For amorphous and nanocrystalline materials, we compute the pair distribution function (PDF), the probability of finding two atoms at a given separation, from the radial diffraction intensity [3]. The pair angle distribution function (PADF) extends this analysis to three-body correlations using angular correlations in the diffraction patterns [122], and fluctuation electron microscopy measures medium-range order from the variance of the diffracted intensity [123]. We also use reverse Monte Carlo fitting to refine a supercell model against diffuse scattering measured along several zone axes, which gives the Warren–Cowley short-range order parameters and atomic size effects.
Phase Retrieval
Diffractive imaging reconstructs the phase of the transmission function from 4DSTEM data, using either direct methods with closed-form solutions or iterative methods that solve an optimization problem [124]. Direct methods include differential phase contrast and its integrated forms [125, 126, 127], single sideband ptychography [128, 129], optimum bright field imaging [130], matched illumination and detector interferometry [131], and parallax or tilt-corrected bright field imaging [132]. In quantEM, these direct methods share GPU kernels and fit the aberrations and scan rotation by cross correlation or least squares, with Bayesian hyperparameter search [104]. The shared framework includes upsampling, which relaxes the sampling requirements of direct ptychography [101], and the spectral signal-to-noise ratio, which provides a finite-dose metric for comparing phase retrieval methods [117]. We can also reconstruct large fields of view by combining several scans, including ungridded and sparse scans, event-based detector data, and tilted samples with a varying defocus.
Iterative ptychography solves for the object and probe from overlapping diffraction patterns [110, 133, 134], and can include mixed-state probes [135], multislice objects [136], and maximum-likelihood noise models [137]. Electron ptychography has reached deep sub-Ångström resolution in two-dimensional materials and thick crystals [51, 138]. In quantEM, iterative ptychography refines the scan positions, descan, background, probe, and single-slice or multislice object together, and each of these components can use a pixelated or neural representation [94]. We also provide a simplified interface with default settings for common reconstructions. Multislice ptychography in py4DSTEM, the predecessor of quantEM, has resolved the three-dimensional structure of core-shell nanoparticles [97].
Atomic-Resolution Imaging
Serial acquisition makes STEM images sensitive to sample drift and scan instabilities, which can be corrected by nonrigid registration of image series [139] or by combining images recorded with orthogonal scan directions [140]. In quantEM, drift correction aligns two or more images using translation, affine, and nonrigid models.
We fit lattice vectors to atomic-resolution images to define a reference for atom positions and strain. Geometric phase analysis (GPA) measures displacement and strain fields from the phase of Bragg reflections in the Fourier transform of high-resolution images [141].
Three-Dimensional Structure
Electron tomography reconstructs a three-dimensional volume from a tilt series of projections [11, 142], and has reached atomic resolution [143, 144, 145]. quantEM provides filtered back projection (FBP) and the simultaneous iterative reconstruction technique (SIRT) [146] on the GPU, as well as gradient-based reconstruction, which represents the volume as an INR or K-Planes decomposition and jointly refines the tilt angles and shifts of each projection [96]. The INR regularizes the reconstruction and fills in the missing wedge of unmeasured tilt angles [93, 96]. Gaussian splatting, a method adapted from novel view synthesis [147], represents a volume as a set of three-dimensional Gaussians whose positions, shapes, and amplitudes are optimized against the measured projections. We can fit atomic positions to the reconstructed volumes, and analyze the resulting three-dimensional atomic models with radial distribution functions, nearest-neighbor statistics, polyhedral template matching, grain segmentation, and three-dimensional strain.
Ptychographic tomography reconstructs a three-dimensional potential from ptychographic datasets recorded at several tilt angles [27, 99, 145, 148], and in quantEM we build it directly from the ptychography reconstruction (§ 2.8). Scanning diffraction tomography reconstructs the local crystal orientation of each voxel from 4DSTEM datasets recorded at several tilts, using a multislice forward model. Bend contour electron tomography (BCET) measures the strain and topography of thin crystalline films from the bend contours in a tilt series [149].
Chemical Analysis
We quantify XEDS spectrum images by identifying the X-ray lines, fitting backgrounds, denoising, generating elemental maps, and applying the Cliff–Lorimer method [150, 151], or by fitting a model of the full spectrum image using gradient descent [152]. We process EELS spectrum images by fitting power-law backgrounds, aligning the zero-loss peak, and estimating the relative thickness using the log-ratio method [153]. XEDS and EELS tomography reconstruct three-dimensional elemental distributions from spectrum images recorded at several tilts [154, 155], and fusing the spectroscopic and HAADF signals improves the chemical resolution [156, 157] (§ 2.8).
Simulation
The two standard methods for simulating elastic electron scattering are Bloch waves [158] and the multislice method [61, 159]. Using Bloch waves, quantEM computes dynamical diffraction patterns, convergent-beam and large-angle convergent-beam electron diffraction patterns, and Kossel patterns with absorptive potentials. We can also compute kinematical diffraction patterns with precession and convergent-beam excitation envelopes. Multislice propagation is currently part of the forward models for multislice ptychography and scanning diffraction tomography, and tomographic projection operators provide the forward models for tomography. We intend these simulations to be used as forward models for specific analyses, and recommend abTEM or Prismatic for general-purpose image and diffraction simulations [63, 65].
Discussion
Comparison with Existing Software
Table 1 compares quantEM with other open-source Python packages for electron microscopy. The main difference is that quantEM uses one differentiable backend for every modality, so that all reconstructions share the same optimizer framework, neural representations, and serialization, and we can assemble new methods from existing components. HyperSpy and RosettaSciIO support a much wider range of signal types and file formats than quantEM, and we use RosettaSciIO for file input. py4DSTEM includes mature 4DSTEM analysis workflows that are not yet available in quantEM, and quantEM can read py4DSTEM files so that both packages can be used together. LiberTEM provides distributed and live processing of very large datasets with user-defined functions, which quantEM does not currently provide. PtyRAD [55] and phaser [57] are dedicated electron ptychography packages that also use automatic differentiation, while quantEM applies the same approach across imaging, diffraction, tomography, and spectroscopy.
| Package | Primary scope | Array backend | Autodiff | Native format | License |
| HyperSpy | Multidimensional signals, model fitting [18, 19] | NumPy, Dask | No | HDF5, Zarr | GPL-3.0 |
| eXSpy | EELS and XEDS [21] | NumPy, Dask | No | HDF5, Zarr | GPL-3.0 |
| holospy | Off-axis electron holography [160] | NumPy, Dask | No | HDF5, Zarr | GPL-3.0 |
| RosettaSciIO | File reading and writing [20] | NumPy, Dask | No | HDF5, Zarr | GPL-3.0 |
| pyxem | 4DSTEM and diffraction [22] | NumPy, Dask | No | HDF5, Zarr | GPL-3.0 |
| py4DSTEM | 4DSTEM [25] | NumPy, CuPy | No | HDF5 | GPL-3.0 |
| LiberTEM | Scalable and live processing [31] | NumPy, CuPy | No | None | MIT |
| pyTEMlib | Spectroscopy, diffraction, and imaging in pycroscopy [34] | NumPy, Dask | No | HDF5 | MIT |
| abTEM | Simulation [65] | NumPy, CuPy, Dask | No | Zarr | GPL-3.0 |
| PtyRAD | Electron ptychography [55] | PyTorch | Yes | HDF5 | LGPL-3.0 |
| phaser | Electron ptychography [57] | NumPy, CuPy, JAX, PyTorch | Yes | HDF5 | MPL-2.0 |
| quantEM | Imaging, diffraction, tomography, spectroscopy, simulation [100] | PyTorch | Yes | Zarr | MIT |
Table 1. Comparison of quantEM with other open-source Python packages for electron microscopy.
Contributing
We develop quantEM on GitHub, where we merge contributions into a dev branch and publish releases to PyPI from the main branch. Our contribution guidelines describe the development environment, code formatting, and pull request process, and are available online. Each new module includes tests and a tutorial notebook, and the tests run on Linux for Python 3.11 to 3.14 for every pull request, and on Windows and macOS for each release. The citation file lists the software authors and the method papers for each module [75].
Development Status and Roadmap
Table 2 lists the development status of each component as of November 2026. Released components are available in the quantEM repository, components in development are in an open pull request or a feature branch, and we have not yet started the planned components. The largest ongoing change is the conversion of all dataset storage from NumPy arrays to PyTorch tensors, so that every operation on a dataset can run on the GPU and be differentiable. We are also adding the quantEM version to every saved file, together with a safe loading mode that reads only arrays and tensors.
Conclusions
We have described quantEM, an open-source Python package for quantitative electron microscopy built on PyTorch and Zarr, and its current modules across imaging, diffraction, tomography, spectroscopy, and simulation. We implement analysis methods in quantEM by writing a forward model and choosing representations, losses, constraints, and optimizers from shared components, so that every method gains GPU execution, serialization, and visualization from the core, and combined methods such as ptychographic tomography need no new gradient derivations or file conversions. We encourage developers of new reconstruction methods to write them as differentiable forward models with shared data structures, so that they can be combined with other modalities and reused by other researchers.
Code and Data Availability
quantEM is available at https://github.com/electronmicroscopy/quantem under the MIT license and can be installed from PyPI with pip install quantem. We archive each release on Zenodo [100]. Tutorials are available at https://github.com/electronmicroscopy/quantem-tutorials, and documentation at https://electronmicroscopy.github.io/quantem-docs/. Curated example datasets are available from the EM-Database at https://electronmicroscopy.github.io/emdatabase/.
Acknowledgments
CO and ARCM acknowledge funding support from the Accelerated Materials Design & Discovery Program in the Toyota Research Institute. GV acknowledges support from the Miller Institute for Basic Research in Science. This material is based upon work supported by the U.S. Department of Energy, Office of Science, Office of Basic Energy Sciences, as part of the Genesis Mission National Science and Technology Challenges under Award Number DE-SCL0000271. Work at the Molecular Foundry was supported by the Office of Science, Office of Basic Energy Sciences, of the U.S. Department of Energy under Contract No. DE-AC02-05CH11231 under user proposal numbers MFP-9442, MFP-9619, and MFP-11179.
References
- [1]DB Williams and CB Carter. Transmission Electron Microscopy. Springer US, 2009. doi:10.1007/978-0-387-76501-3.DOI
- [2]SJ Pennycook and PD Nellist, editors. Scanning Transmission Electron Microscopy. Springer New York, 2011. doi:10.1007/978-1-4419-7200-2.DOI
- [3]C Ophus. Quantitative Scanning Transmission Electron Microscopy for Materials Science: Imaging, Diffraction, Spectroscopy, and Tomography. Annual Review of Materials Research, 53(1):105–141, 2023. doi:10.1146/annurev-matsci-080921-092646.DOI
- [4]Z Fan, L Zhang, D Baumann, L Mei, Y Yao, X Duan, Y Shi, J Huang, Y Huang, and X Duan. In Situ Transmission Electron Microscopy for Energy Materials and Devices. Advanced Materials, 31(33):1900608, 2019. doi:10.1002/adma.201900608.DOI
- [5]AS McKeown-Green, P Moradifar, Z Zhang, C Lim, A Barnum, L Yuan, R Sinclair, F Abild-Pedersen, C Ophus, and JA Dionne. In Situ Gas-Cell Electron Microscopy Reveals Pressure-Selected Restructuring Pathways in AuRu Ammonia Catalysts. Journal of the American Chemical Society, 148(37):39609–39622, 2026. doi:10.1021/jacs.6c08457.
- [6]A Datta, KF Ng, D Balakrishnan, M Ding, SW Chee, Y Ban, J Shi, and ND Loh. A data reduction and compression description for high throughput time-resolved electron microscopy. Nature Communications, 12:664, 2021. doi:10.1038/s41467-020-20694-z.DOI
- [7]C Ophus. Four-Dimensional Scanning Transmission Electron Microscopy (4D-STEM): From Scanning Nanodiffraction to Ptychography and Beyond. Microscopy and Microanalysis, 25(3):563–582, 2019. doi:10.1017/S1431927619000497.DOI
- [8]SM Collins and PA Midgley. Progress and opportunities in EELS and EDS tomography. Ultramicroscopy, 180:133–141, 2017. doi:10.1016/j.ultramic.2017.01.003.DOI
- [9]P Ercius, IJ Johnson, P Pelz, BH Savitzky, L Hughes, HG Brown, SE Zeltmann, SL Hsu, CCS Pedroso, BE Cohen, et al. The 4D Camera: An 87 kHz Direct Electron Detector for Scanning/Transmission Electron Microscopy. Microscopy and Microanalysis, 30(5):903–912, 2024. doi:10.1093/mam/ozae086.DOI
- [10]JR Fienup. Phase retrieval algorithms: a comparison. Applied Optics, 21(15):2758, 1982. doi:10.1364/ao.21.002758.DOI
- [11]PA Midgley and RE Dunin-Borkowski. Electron tomography and holography in materials science. Nature Materials, 8(4):271–280, 2009. doi:10.1038/nmat2406.DOI
- [12]SR Spurgeon, C Ophus, L Jones, A Petford-Long, SV Kalinin, MJ Olszta, RE Dunin-Borkowski, N Salmon, K Hattar, WCD Yang, et al. Towards data-driven next-generation transmission electron microscopy. Nature Materials, 20(3):274–279, 2020. doi:10.1038/s41563-020-00833-z.DOI
- [13]SV Kalinin, C Ophus, PM Voyles, R Erni, D Kepaptsoglou, V Grillo, AR Lupini, MP Oxley, E Schwenker, MKY Chan, et al. Machine learning in scanning transmission electron microscopy. Nature Reviews Methods Primers, 2(1), 2022. doi:10.1038/s43586-022-00095-w.DOI
- [14]TE Oliphant. Python for Scientific Computing. Computing in Science & Engineering, 9(3):10–20, 2007. doi:10.1109/MCSE.2007.58.DOI
- [15]KJ Millman and M Aivazis. Python for Scientists and Engineers. Computing in Science & Engineering, 13(2):9–12, 2011. doi:10.1109/MCSE.2011.36.DOI
- [16]S Raschka, J Patterson, and C Nolet. Machine Learning in Python: Main Developments and Technology Trends in Data Science, Machine Learning, and Artificial Intelligence. Information, 11(4):193, 2020. doi:10.3390/info11040193.DOI
- [17]A Paszke, S Gross, F Massa, A Lerer, J Bradbury, G Chanan, T Killeen, Z Lin, N Gimelshein, L Antiga, et al. PyTorch: An Imperative Style, High-Performance Deep Learning Library. In Advances in Neural Information Processing Systems, volume 32, 2019. doi:10.48550/arXiv.1912.01703.DOI
- [18]F de la Pena, T Ostasevicius, V Tonaas Fauske, P Burdet, P Jokubauskas, M Nord, M Sarahan, E Prestat, DN Johnstone, J Taillon, et al. Electron Microscopy (Big and Small) Data Analysis With the Open Source Software Package HyperSpy. Microscopy and Microanalysis, 23(S1): 214–215, 2017. doi:10.1017/S1431927617001751.DOI
- [19]F de la Peña, E Prestat, J Lähnemann, VT Fauske, P Burdet, P Jokubauskas, T Furnival, C Francis, M Nord, T Ostasevicius, et al. HyperSpy (v2.5.0). Zenodo software archive, 2026.
- [20]E Prestat, F de la Peña, J Lähnemann, et al. RosettaSciIO (v0.15.0). Zenodo software archive, 2026.
- [21]F de la Peña, E Prestat, J Lähnemann, et al. eXSpy (v0.3.2). Zenodo software archive, 2025.
- [22]N Cautaerts, P Crout, HW Ånes, E Prestat, J Jeong, G Dehm, and CH Liebscher. Free, flexible and fast: Orientation mapping using the multi-core and GPU-accelerated template matching capabilities in the Python-based open source 4D-STEM analysis toolbox Pyxem. Ultramicroscopy, 237:113517, 2022. doi:10.1016/j.ultramic.2022.113517.DOI
- [23]DN Johnstone, BH Martineau, P Crout, PA Midgley, and AS Eggeman. Density-based clustering of crystal (mis)orientations and the orix Python library. Journal of Applied Crystallography, 53(5):1293–1298, 2020. doi:10.1107/S1600576720011103.DOI
- [24]M Nord, PE Vullum, I MacLaren, T Tybell, and R Holmestad. Atomap: a new software tool for the automated analysis of atomic resolution images using two-dimensional Gaussian fitting. Advanced Structural and Chemical Imaging, 3(1), 2017. doi:10.1186/s40679-017-0042-5.DOI
- [25]BH Savitzky, SE Zeltmann, LA Hughes, HG Brown, S Zhao, PM Pelz, TC Pekin, ES Barnard, J Donohue, L Rangel DaCosta, et al. py4DSTEM: A Software Package for Four-Dimensional Scanning Transmission Electron Microscopy Data Analysis. Microscopy and Microanalysis, 27 (4):712–743, 2021. doi:10.1017/S1431927621000477.DOI
- [26]C Ophus, SE Zeltmann, A Bruefach, A Rakowski, BH Savitzky, AM Minor, and MC Scott. Automated Crystal Orientation Mapping in py4DSTEM using Sparse Correlation Matching. Microscopy and Microanalysis, 28(2):390–403, 2022. doi:10.1017/S1431927622000101.DOI
- [27]G Varnavides, SM Ribet, SE Zeltmann, Y Yu, BH Savitzky, DO Byrne, FI Allen, VP Dravid, MC Scott, and C Ophus. Iterative Phase Retrieval Algorithms for Scanning Transmission Electron Microscopy. arXiv:2309.05250, 2023.arxiv.org/abs/2309.05250
- [28]BH Savitzky, A Rakowski, A Bruefach, SM Ribet, G Varnavides, SE Zeltmann, T Mishra, M Scott, AM Minor, and C Ophus. Architecture, Development Cycle, and Governance Considerations in Co-created Research Software: the Example of py4DSTEM and Analysis of 4D-STEM Data. Microscopy and Microanalysis, 29(S1):339–341, 2023. doi:10.1093/micmic/ozad067.158.DOI
- [29]SP Ong, WD Richards, A Jain, G Hautier, M Kocher, S Cholia, D Gunter, VL Chevrier, KA Persson, and G Ceder. Python Materials Genomics (pymatgen): A robust, open-source python library for materials analysis. Computational Materials Science, 68:314–319, 2013. doi:10.1016/j.commatsci.2012.10.028.DOI
- [30]J George, MK Horton, AD Kaplan, SR Kavanagh, J Riebesell, AS Rosen, H Yang, F Adams, M Amachraa, O Andriuc, et al. pymatgen: 15 years of community growth, new functionality, and future prospects. arXiv:2610.23538, 2026.arxiv.org/abs/2610.23538
- [31]A Clausen, D Weber, K Ruzaeva, V Migunov, A Baburajan, A Bahuleyan, J Caron, R Chandra, S Halder, M Nord, et al. LiberTEM: Software platform for scalable multidimensional data processing in transmission electron microscopy. Journal of Open Source Software, 5(50):2006, 2020. doi:10.21105/joss.02006.DOI
- [32]A Strauch, D Weber, A Clausen, A Lesnichiaia, A Bangun, B März, FJ Lyu, Q Chen, A Rosenauer, R Dunin-Borkowski, et al. Live Processing of Momentum-Resolved STEM Data for First Moment Imaging and Ptychography. Microscopy and Microanalysis, 27(5):1078–1092, 2021. doi:10.1017/s1431927621012423.DOI
- [33]A Clausen, D Weber, E Mueller, E Poghosyan, D Stroppa, and R Dunin-Borkowski. Live Data Processing of 4D STEM Experiments: LiberTEM Meets ARINA Hybrid-Pixel Detector. Microscopy and Microanalysis, 29(S1):293–293, 2023. doi:10.1093/micmic/ozad067.135.DOI
- [34]S Sommath, CR Smith, N Laanait, RK Vasudevan, A Ievlev, A Belianinov, AR Lupini, M Shankar, SV Kalinin, and S Jesse. USID and Pycroscopy — Open frameworks for storing and analyzing spectroscopic and imaging data. arXiv:1903.09515, 2019.
- [35]M Ziatdinov, A Ghosh, CY Wong, and SV Kalinin. AtomAI framework for deep learning analysis of image and spectroscopy data in electron and scanning probe microscopy. Nature Machine Intelligence, 4(12):1101–1112, 2022. doi:10.1038/s42256-022-00555-8.DOI
- [36]A De Backer, K van den Bos, W Van den Broek, J Sijbers, and S Van Aert. StatSTEM: An efficient approach for accurate and precise model-based quantification of atomic resolution electron microscopy images. Ultramicroscopy, 171:104–116, 2016. doi:10.1016/j.ultramic.2016.08.018.DOI
- [37]PM Pelz, I Johnson, C Ophus, P Ercius, and MC Scott. Real-Time Interactive 4D-STEM Phase-Contrast Imaging From Electron Event Representation Data: Less computation with the right representation. IEEE Signal Processing Magazine, 39(1):25–31, 2022. doi:10.1109/msp.2021.3120981.DOI
- [38]D Gürsoy, F De Carlo, X Xiao, and C Jacobsen. TomoPy: a framework for the analysis of synchrotron tomographic data. Journal of Synchrotron Radiation, 21(5):1188–1193, 2014. doi:10.1107/S1600577514013939.DOI
- [39]W van Aarle, WJ Palenstijn, J De Beenhouwer, T Altantzis, S Bals, KJ Batenburg, and J Sijbers. The ASTRA Toolbox: A platform for advanced algorithm development in electron tomography. Ultramicroscopy, 157:35–47, 2015. doi:10.1016/j.ultramic.2015.05.002.DOI
- [40]W van Aarle, WJ Palenstijn, J Cant, E Janssens, F Bleichrodt, A Dabravolski, J De Beenhouwer, K Joost Batenburg, and J Sijbers. Fast and flexible X-ray tomography using the ASTRA toolbox. Optics Express, 24(22):25129, 2016. doi:10.1364/oe.24.025129.DOI
- [41]A Biguri, M Dosanjh, S Hancock, and M Soleimani. TIGRE: a MATLAB-GPU toolbox for CBOT image reconstruction. Biomedical Physics & Engineering Express, 2(5):055010, 2016. doi:10.1088/2057-1976/2/5/055010.DOI
- [42]JS Jørgensen, E Ametova, G Burca, G Fardell, E Papoutsellis, E Pasca, K Thielemans, M Turner, R Warr, WRB Lionheart, and PJ Withers. Core Imaging Library - Part I: a versatile Python framework for tomographic imaging. Philosophical Transactions of the Royal Society A, 379(20204):20200192, 2021. doi:10.1098/rsta.2020.0192.DOI
- [43]JR Kremer, DN Mastronarde, and JR McIntosh. Computer Visualization of Three-Dimensional Image Data Using IMOD. Journal of Structural Biology, 116(1):71–76, 1996. doi:10.1006/jsbi.1996.0013.DOI
- [44]JI Agulleiro and JJ Fernandez. Fast tomographic reconstruction on multicore computers. Bioinformatics, 27(4):582–583, 2011. doi:10.1093/bioinformatics/btq692.DOI
- [45]S Zheng, G Wolff, G Greenan, Z Chen, FGA Faas, M Bárcena, AJ Koster, Y Cheng, and DA Agard. AreTomo: An integrated software package for automated marker-free, motion-corrected cryo-electron tomographic alignment and reconstruction. Journal of Structural Biology: X, 6:100068, 2022. doi:10.1016/j.yjsbx.2022.100068.DOI
- [46]J Schwartz, C Harris, J Pietryga, H Zheng, P Kumar, A Visheratina, NA Kotov, B Major, P Avery, P Ercius, et al. Real-time 3D analysis during electron tomography using tomviz. Nature Communications, 13(1), 2022. doi:10.1038/s41467-022-32046-0.DOI
- [47]A Pryor, Y Yang, A Rana, M Gallagher-Jones, J Zhou, YH Lo, G Melinte, W Chiu, JA Rodriguez, and J Miao. GENFIRE: A generalized Fourier iterative reconstruction algorithm for high-resolution 3D imaging. Scientific Reports, 7(1), 2017. doi:10.1038/s41598-017-09847-1.DOI
- [48]M Pham, Y Yuan, A Rana, S Osher, and J Miao. Accurate real space iterative reconstruction (RESIRE) algorithm for tomography. Scientific Reports, 13(1):5624, 2023. doi:10.1038/s41598-023-31124-7.DOI
- [49]AA Herzing and JA Taillon. ETSpy: A HyperSpy extension package for electron tomography data processing and reconstruction. Micron, 190:103774, 2025. doi:10.1016/j.micron.2024.103774.DOI
- [50]K Wakonig, HC Stadler, M Odstrčil, EHR Tsai, A Diaz, M Holler, I Usov, J Raabe, A Menzel, and M Guizar-Sicairos. PtychoShelves , a versatile high-level framework for high-performance analysis of ptychographic data. Journal of Applied Crystallography, 53(2):574–586, 2020. doi:10.1107/S1600576720001776.DOI
- [51]Z Chen, Y Jiang, YT Shao, ME Holtz, M Odstrčil, M Guizar-Sicairos, I Hanke, S Ganschow, DG Schlom, and DA Muller. Electron ptychography achieves atomic-resolution limits set by lattice vibrations. Science, 372(6544):826–831, 2021. doi:10.1126/science.abg2533.DOI
- [52]B Enders and P Thibault. A computational framework for ptychographic reconstructions. Proceedings of the Royal Society A, 472(2196):20160640, 2016. doi:10.1098/rspa.2016.0640.DOI
- [53]V Favre-Nicolin, G Girard, S Leake, J Carnis, Y Chushkin, J Kieffer, P Paleo, and MI Richard. PyNX: high-performance computing toolkit for coherent X-ray imaging based on operators. Journal of Applied Crystallography, 53(5):1404–1413, 2020. doi:10.1107/S1600576720010985.
- [54]L Loetgering, M Du, D Boonzajer Flaes, T Aidukas, F Wechsler, DS Penagos Molina, M Rose, A Pelekanidis, W Eschen, J Hess, T Wilhein, R Heintzmann, J Rothhardt, and S Witte. PtyLab.m/py/jl: a cross-platform, open-source inverse modeling toolbox for conventional and Fourier ptychography. Optics Express, 31(9):13763, 2023. doi:10.1364/OE.485370.DOI
- [55]CH Lee, SE Zeltmann, D Yoon, D Ma, and DA Muller. PtyRAD: A High-Performance and Flexible Ptychographic Reconstruction Framework with Automatic Differentiation. Microscopy and Microanalysis, 31(4):ozaf070, 2025. doi:10.1093/mam/ozaf070.DOI
- [56]M Du, H Ruth, S Henke, Y Jiang, V Nikitin, A Tripathi, J Deng, J Klug, P Myint, T Zhou, et al. Pty-Chi: A PyTorch-based modern ptychographic data analysis package. arXiv:2510.20929, 2025.arxiv.org/abs/2510.20929
- [57]C Gilgenbach, M Zhu, and JM LeBeau. phaser: a unified and extensible framework for fast electron ptychography. npj Computational Materials, 12(1):89, 2026. doi:10.1038/s41524-026-01956-8.DOI
- [58]K Loehr, R Raja, X Ding, J Huang, G Nolan, SH Bae, BK Clark, and PY Huang. PtyRAN-NOSAuR: Ptychography with Robust Artificial Neural Networks Optimized for Sub-Angstrom Accuracy and Ultrafast Reconstruction. arXiv:2606.27587, 2026.arxiv.org/abs/2606.27587
- [59]LJ Allen, AJ D’Alfonso, and SD Findlay. Modelling the inelastic scattering of fast electrons. Ultramicroscopy, 151:11–22, 2015. doi:10.1016/j.ultramic.2014.10.011.DOI
- [60]J Barthel. Dr. Probe: A software for high-resolution STEM image simulation. Ultramicroscopy, 193:1–11, 2018. doi:10.1016/j.ultramic.2018.06.003.DOI
- [61]EJ Kirkland. Advanced Computing in Electron Microscopy. Springer International Publishing, 2020. doi:10.1007/978-3-030-33260-0.DOI
- [62]C Ophus. A fast image simulation algorithm for scanning transmission electron microscopy. Advanced Structural and Chemical Imaging, 3(1), 2017. doi:10.1186/s40679-017-0046-1.DOI
- [63]L Rangel DaCosta, HG Brown, PM Pelz, A Rakowski, N Barber, P O’Donovan, P McBean, L Jones, J Ciston, M Scott, et al. Prismatic 2.0 – Simulation software for scanning and high resolution transmission electron microscopy (STEM and HRTEM). Micron, 151:103141, 2021. doi:10.1016/j.micron.2021.103141.DOI
- [64]P Pelz, L DaCosta, AM Rakowski, M Scott, and C Ophus. A faster image simulation algorithm for scanning transmission electron microscopy. Microscopy and Microanalysis, 27 (S1):1272–1275, 2021. doi:10.1017/S1431927621004773.DOI
- [65]J Madsen and T Susi. The abTEM code: transmission electron microscopy from first principles. Open Research Europe, 1:24, 2021. doi:10.12688/openreseurope.13015.2.DOI
- [66]JJ Mortensen, AH Larsen, M Kuisma, AV Ivanov, A Taghizadeh, A Peterson, A Haldar, AO Dohn, C Schäfer, EÖ Jónsson, et al. GPAW: An open Python package for electronic structure calculations. The Journal of Chemical Physics, 160(9):092503, 2024. doi:10.1063/5.0182685.DOI
- [67]T Susi, J Madsen, U Ludacka, JJ Mortensen, TJ Pennycook, Z Lee, J Kotakoski, U Kaiser, and JC Meyer. Efficient first principles simulation of electron scattering factors for transmission electron microscopy. Ultramicroscopy, 197:16–22, 2019. doi:10.1016/j.ultramic.2018.11.002.DOI
- [68]CR Harris, KJ Millman, SJ van der Walt, R Gommers, P Virtanen, D Cournapeau, E Wieser, J Taylor, S Berg, NJ Smith, et al. Array programming with NumPy. Nature, 585(7825):357–362, 2020. doi:10.1038/s41586-020-2649-2.DOI
- [69]P Virtanen, R Gommers, TE Oliphant, M Haberland, T Reddy, D Cournapeau, E Burovski, P Peterson, W Weckesser, J Bright, et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature Methods, 17(3):261–272, 2020. doi:10.1038/s41592-019-0686-2.DOI
- [70]JD Hunter. Matplotlib: A 2D Graphics Environment. Computing in Science & Engineering, 9(3):90–95, 2007. doi:10.1109/mcse.2007.55.DOI
- [71]S van der Walt, JL Schönberger, J Nunez-Iglesias, F Boulogne, JD Warner, N Yager, E Gouillart, and T Yu. scikit-image: image processing in Python. PeerJ, 2:e453, 2014. doi:10.7717/peerj.453.DOI
- [72]T Kluyver, B Ragan-Kelley, F Pérez, B Granger, M Bussonnier, J Frederic, K Kelley, J Hamrick, J Grout, S Corlay, et al. Jupyter Notebooks: a publishing format for reproducible computational workflows. In Positioning and Power in Academic Publishing: Players, Agents and Agendas. IOS Press, 2016. doi:10.3233/978-1-61499-649-1-87.DOI
- [73]MD Wilkinson, M Dumontier, IJ Aalbersberg, G Appleton, M Axton, A Baak, N Blomberg, JW Boiten, LB da Silva Santos, PE Bourne, et al. The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data, 3(1), 2016. doi:10.1038/sdata.2016.18.DOI
- [74]M Barker, NP Chue Hong, DS Katz, AL Lamprecht, C Martinez-Ortiz, F Psomopoulos, J Harrow, LJ Castro, M Gruenpeter, PA Martinez, et al. Introducing the FAIR Principles for research software. Scientific Data, 9(1), 2022. doi:10.1038/s41597-022-01710-x.DOI
- [75]AM Smith, DS Katz, and KEa Niemeyer. Software citation principles. PeerJ Computer Science, 2:e86, 2016. doi:10.7717/peerj-cs.86.DOI
- [76]AG Baydin, BA Pearlmutter, AA Radul, and JM Siskind. Automatic differentiation in machine learning: a survey. Journal of Machine Learning Research, 18(153):1–43, 2018. doi:10.48550/arXiv.1502.05767.
- [77]AS Jurling and JR Fienup. Applications of algorithmic differentiation to phase retrieval algorithms. Journal of the Optical Society of America A, 31(7):1348, 2014. doi:10.1364/josaa.31.001348.DOI
- [78]YS Nashed, T Peterka, J Deng, and C Jacobsen. Distributed Automatic Differentiation for Ptychography. Procedia Computer Science, 108:404–414, 2017. doi:10.1016/j.procs.2017.05.101.DOI
- [79]S Ghosh, YSG Nashed, O Cossairt, and A Katsaggelos. ADP: Automatic differentiation ptychography. In 2018 IEEE International Conference on Computational Photography (ICCP), pages 1–10, 2018. doi:10.1109/iccp.2018.8368470.DOI
- [80]S Kandel, S Maddali, M Allain, SO Hruszkewycz, C Jacobsen, and YSG Nashed. Using automatic differentiation as a general framework for ptychographic reconstruction. Optics Express, 27(13):18653, 2019. doi:10.1364/oe.27.018653.DOI
- [81]M Du, S Kandel, J Deng, X Huang, A Demortiere, TT Nguyen, R Tucoulou, V De Andrade, Q Jin, and C Jacobsen. Adorym: a multi-platform generic X-ray image reconstruction framework based on automatic differentiation. Optics Express, 29(7):10000, 2021. doi:10.1364/oe.418296.DOI
- [82]M Schloz, TC Pekin, Z Chen, W Van den Broek, DA Muller, and CT Koch. Overcoming information reduced data and experimentally uncertain parameters in ptychography with regularized optimization. Optics Express, 28(19):28306, 2020. doi:10.1364/oe.396925.DOI
- [83]B Diederichs, Z Herdegen, A Strauch, F Filbir, and K Müller-Caspary. Exact inversion of partially coherent dynamical electron scattering for picometric structure retrieval. Nature Communications, 15(1), 2024. doi:10.1038/s41467-023-44268-x.DOI
- [84]J Ansel, E Yang, H He, N Gimelshein, A Jain, M Voznesensky, B Bao, P Bell, D Berard, E Burovski, et al. PyTorch 2: Faster Machine Learning Through Dynamic Python Bytecode Transformation and Graph Compilation. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, pages 929–947, 2024. doi:10.1145/3620665.3640366.DOI
- [85]S Li, Y Zhao, R Varma, O Salpekar, P Noordhuis, T Li, A Paszke, J Smith, B Vaughan, P Damania, et al. PyTorch distributed: experiences on accelerating data parallel training. Proceedings of the VLDB Endowment, 13(12):3005–3018, 2020. doi:10.14778/3415478.3415530.DOI
- [86]D Ulyanov, A Vedaldi, and V Lempitsky. Deep Image Prior. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9446–9454, 2018. doi:10.1109/cvpr.2018.009984.
- [87]B Mildenhall, PP Srinivasan, M Tancik, JT Barron, R Ramamoorthi, and R Ng. NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis. In Computer Vision – ECCV 2020, pages 405–421, 2020. doi:10.1007/978-3-030-58452-8_24.DOI
- [88]V Sitzmann, JNP Martel, AW Bergman, DB Lindell, and G Wetzstein. Implicit Neural Representations with Periodic Activation Functions. In Advances in Neural Information Processing Systems, volume 33, 2020. doi:10.48550/arXiv.2006.09661.DOI
- [89]M Tancik, PP Srinivasan, B Mildenhall, S Fridovich-Keil, N Raghavan, U Singhal, R Ramamoorthi, JT Barron, and R Ng. Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domains. In Advances in Neural Information Processing Systems, volume 33, 2020. doi:10.48550/arXiv.2006.10739.DOI
- [90]T Müller, A Evans, C Schied, and A Keller. Instant neural graphics primitives with a multiresolution hash encoding. ACM Transactions on Graphics, 41(4):1–15, 2022. doi:10.1145/3528223.3530127.DOI
- [91]S Fridovich-Keil, G Meanti, FR Warburg, B Recht, and A Kanazawa. K-Planes: Explicit Radiance Fields in Space, Time, and Appearance. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 12479–12488, 2023. doi:10.1109/cvpr52729.2023.01201.
- [92]ED Zhong, T Bepler, B Berger, and JH Davis. CryoDRGN: reconstruction of heterogeneous cryo-EM structures using neural networks. Nature Methods, 18(2):176–185, 2021. doi:10.1038/s41592-020-01049-4.DOI
- [93]H Kniesel, T Ropinski, T Bergner, KS Devan, C Read, P Walther, T Ritschel, and P Hermosilla. Clean Implicit 3D Structure from Noisy 2D STEM Images. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 20730–20740, 2022. doi:10.1109/cvpr52688.2022.02010.DOI
- [94]ARC McCray, SM Ribet, G Varnavides, and C Ophus. Deep generative priors for robust and efficient electron ptychography. arXiv:2511.07795, 2025.
- [95]ARC McCray, SM Ribet, G Varnavides, and C Ophus. Accelerating iterative ptychography with an integrated neural network. Journal of Microscopy, 300(2):180–190, 2025. doi:10.1111/jmi.13407.
- [96]C Lim, C Casert, ARC McCray, S Lee, A Barnum, J Dionne, and C Ophus. Missing Wedge Inpainting and Joint Alignment in Electron Tomography through Implicit Neural Representations. arXiv:2512.08113, 2025.arxiv.org/abs/2512.08113
- [97]SM Ribet, G Varnavides, CCS Pedroso, BE Cohen, P Ercius, MC Scott, and C Ophus. Uncovering the three-dimensional structure of unconventional core–shell nanoparticles with multislice electron ptychography. Applied Physics Letters, 124(24), 2024. doi:10.1063/5.0206814.DOI
- [98]B Küçükoğlu, I Mohammed, RC Guerrero-Ferreira, SM Ribet, G Varnavides, ML Leidl, K Lau, S Nazarov, A Myasnikov, M Kube, et al. Low-dose cryo-electron ptychography of proteins at sub-nanometer resolution. Nature Communications, 15(1), 2024. doi:10.1038/s41467-024-52403-5.DOI
- [99]J Lee, SW Song, MG Cho, G Varnavides, SM Ribet, C Ophus, MC Scott, and ML Whittaker. PhaseT3M: 3D imaging at 1.6 Å resolution via electron cryo-tomography with nonlinear phase retrieval. Nature Communications, 17(1), 2025. doi:10.1038/s41467-025-67303-5.DOI
- [100]G Varnavides, C Lim, ARC McCray, C Ophus, SM Ribet, SB Lee, D Mali, H Huang, M Feickert, W Millsaps, and N Marchese. quantem: quantitative electron microscopy analysis toolkit (v0.1.9). Zenodo software archive, 2026.
- [101]G Varnavides, JM Bekkevold, SM Ribet, MC Scott, L Jones, and C Ophus. Relaxing Direct Ptychography Sampling Requirements via Parallax Imaging Insights. Microscopy and Microanalysis, 32(2):ozaf139, 2026. doi:10.1093/mam/ozaf139.DOI
- [102]SM Ribet, R Dhall, C Ophus, and KC Bustillo. Multi-angle Precession Electron Diffraction (MAPED): A Versatile Approach to 4D-STEM Precession. Microscopy and Microanalysis, 31(6), 2025. doi:10.1093/mam/ozaf103.DOI
- [103]A Miles, D Bennett, jakirkham, D Stansby, DP Orfanos, J Hamman, M Bussonnier, J Moore, M Jones, T Augspurger, et al. zarr-python (v3.4.1). Zenodo software archive, 2026.
- [104]T Akiba, S Sano, T Yanase, T Ohta, and M Koyama. Optuna: A Next-generation Hyperparameter Optimization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 2623–2631, 2019. doi:10.1145/3292500.3330701.DOI
- [105]T Manz, N Abdennur, and N Gehlenborg. anywidget: reusable widgets for interactive analysis and visualization in computational notebooks. OSF Preprints, 2024.
- [106]J Moore, C Allan, S Besson, JM Burel, E Diel, D Gault, K Kozlowski, D Lindner, M Linkert, T Manz, et al. OME-NGFF: a next-generation file format for expanding bioimaging data-access strategies. Nature Methods, 18(12):1496–1498, 2021. doi:10.1038/s41592-021-01326-w.DOI
- [107]J Moore, D Basurto-Lozada, S Besson, J Bogovic, J Bragantini, EM Brown, JM Burel, X Casas Moreno, G de Medeiros, EE Diel, et al. OME-Zarr: a cloud-optimized bioimaging file format with international community support. Histochemistry and Cell Biology, 160(3): 223–251, 2023. doi:10.1007/s00418-023-02209-1.DOI
- [108]A Jain, SP Ong, G Hautier, W Chen, WD Richards, S Dacek, S Cholia, D Gunter, D Skinner, G Ceder, and KA Persson. Commentary: The Materials Project: A materials genome approach to accelerating materials innovation. APL Materials, 1(1):011002, 2013. doi:10.1063/1.4812323.DOI
- [109]MK Horton, P Huck, RX Yang, JM Munro, S Dwaraknath, AM Ganose, RS Kingsbury, M Wen, JX Shen, TS Mathis, et al. Accelerated data-driven materials science with the Materials Project. Nature Materials, 24(10):1522–1532, 2025. doi:10.1038/s41563-025-02272-0.DOI
- [110]AM Maiden and JM Rodenburg. An improved ptychographical phase retrieval algorithm for diffractive imaging. Ultramicroscopy, 109(10):1256–1262, 2009. doi:10.1016/j.ultramic.2009.05.012.DOI
- [111]Z Xie, X Yang, Y Yang, Q Sun, Y Jiang, H Wang, Y Cai, and M Sun. S3IM: Stochastic Structural SIMilarity and Its Unreasonable Effectiveness for Neural Fields. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 17978–17988, 2023. doi:10.1109/iccv51070.2023.01652.DOI
- [112]Astropy Collaboration, AM Price-Whelan, PL Lim, N Earl, N Starkman, L Bradley, DL Shupe, AA Patil, L Corrales, CE Brasseur, et al. The Astropy Project: Sustaining and Growing a Community-oriented Open-source Project and the Latest Major Release (v5.0) of the Core Package. The Astrophysical Journal, 935(2):167, 2022. doi:10.3847/1538-4357/ac7c74.DOI
- [113]A Hjørth Larsen, J Jørgen Mortensen, J Blomqvist, IE Castelli, R Christensen, M Dulak, J Friis, MN Groves, B Hammer, C Hargus, et al. The atomic simulation environment—a Python library for working with atoms. Journal of Physics: Condensed Matter, 29(27):273002, 2017. doi:10.1088/1361-648x/aa680e.
- [114]A Togo, K Shinohara, and I Tanaka. Spglib: a software library for crystal symmetry search. Science and Technology of Advanced Materials: Methods, 4(1):2384822, 2024. doi:10.1080/27660400.2024.2384822.DOI
- [115]I Lobato and D Van Dyck. An accurate parameterization for scattering factors, electron densities and electrostatic potentials for neutral atoms that obey all physical constraints. Acta Crystallographica Section A Foundations and Advances, 70(6):636–649, 2014. doi:10.1107/s205327331401643x.DOI
- [116]A Weickenmeier and H Kohl. Computation of absorptive form factors for high-energy electron diffraction. Acta Crystallographica Section A Foundations of Crystallography, 47(5):590–597, 1991. doi:10.1107/s0108767391004804.DOI
- [117]G Varnavides, JM Bekkevold, SM Ribet, ARC McCray, MC Scott, L Jones, and C Ophus. Beyond Contrast Transfer: Spectral SNR as a Finite-Dose Metric for STEM Phase Retrieval. Microscopy and Microanalysis, 32(2), 2026. doi:10.1093/mam/ozaq005.DOI
- [118]TC Pekin, C Gammer, J Ciston, AM Minor, and C Ophus. Optimizing disk registration algorithms for nanobeam electron diffraction strain mapping. Ultramicroscopy, 176:170–176, 2017. doi:10.1016/j.ultramic.2016.12.021.DOI
- [119]E Rauch and M Véron. Automated crystal orientation and phase mapping in TEM. Materials Characterization, 98:1–9, 2014. doi:10.1016/j.matchar.2014.08.010.DOI
- [120]VB Ozdol, C Gammer, XG Jin, P Ercius, C Ophus, J Ciston, and AM Minor. Strain mapping at nanometer resolution using advanced nano-beam electron diffraction. Applied Physics Letters, 106(25), 2015. doi:10.1063/1.4922994.DOI
- [121]SE Zeltmann, SL Hsu, HG Brown, S Susarla, R Ramesh, AM Minor, and C Ophus. Uncovering polar vortex structures by inversion of multiple scattering with a stacked Bloch wave model. Ultramicroscopy, 250:113732, 2023. doi:10.1016/j.ultramic.2023.113732.DOI
- [122]AV Martin. Orientational order of liquids and glassesviafluctuation diffraction. IUCrJ, 4(1):24–36, 2017. doi:10.1107/S2052252516016730.DOI
- [123]MMJ Treacy and JM Gibson. Variable Coherence Microscopy: a Rich Source of Structural Information from Disordered Materials. Acta Crystallographica Section A Foundations of Crystallography, 52(2):212–220, 1996. doi:10.1107/S0108767395012876.DOI
- [124]G Varnavides, WPMd Kleijnе, and SM Ribet. The ABCs of phase retrieval: Connecting the acronyms of scanning transmission electron microscopy. MRS Bulletin, 51(7):897–912, 2026. doi:10.1557/s43577-026-01100-3.DOI
- [125]R Close, Z Chen, N Shibata, and S Findlay. Towards quantitative, atomic-resolution reconstruction of the electrostatic potential via differential phase contrast using electrons. Ultramicroscopy, 159:124–137, 2015. doi:10.1016/j.ultramic.2015.09.002.DOI
- [126]I Lazić, EG Bosch, and S Lazar. Phase contrast STEM for thin samples: Integrated differential phase contrast. Ultramicroscopy, 160:265–280, 2016. doi:10.1016/j.ultramic.2015.10.011.DOI
- [127]CP Yu, T Friedrich, D Jannis, S Van Aert, and J Verbeeck. Real-Time Integration Center of Mass (riCOM) Reconstruction for 4D STEM. Microscopy and Microanalysis, 28(5):1526–1537, 2022. doi:10.1017/S1431927622000617.DOI
- [128]J Rodenburg, B McCallum, and P Nellist. Experimental tests on double-resolution coherent imaging via STEM. Ultramicroscopy, 48(3):304–314, 1993. doi:10.1016/0304-3991(93)90105-7.DOI
- [129]TJ Pennycook, AR Lupini, H Yang, MF Murfitt, L Jones, and PD Nellist. Efficient phase contrast imaging in STEM using a pixelated detector. Part 1: Experimental demonstration at atomic resolution. Ultramicroscopy, 151:160–167, 2015. doi:10.1016/j.ultramic.2014.09.013.DOI
- [130]K Ooe, T Seki, Y Ikuhara, and N Shibata. Ultra-high contrast STEM imaging for segmented/pixelated detectors by maximizing the signal-to-noise ratio. Ultramicroscopy, 220:113133, 2021. doi:10.1016/j.ultramic.2020.113133.DOI
- [131]C Ophus, J Ciston, J Pierce, TR Harvey, J Chess, BJ McMorran, C Czarnik, HH Rose, and P Ercius. Efficient linear phase contrast in scanning transmission electron microscopy with matched illumination and detector interferometry. Nature Communications, 7(1), 2016. doi:10.1038/ncomms10719.DOI
- [132]G Varnavides, SM Ribet, and C Ophus. Tilt-Corrected BF-STEM. Elemental Microscopy, 2024. doi:10.69761/xunr2166.DOI
- [133]HML Faulkner and JM Rodenburg. Movable Aperture Lensless Transmission Microscopy: A Novel Phase Retrieval Algorithm. Physical Review Letters, 93(2), 2004. doi:10.1103/physrevlett.93.023903.DOI
- [134]P Thibault, M Dierolf, A Menzel, O Bunk, C David, and F Pfeiffer. High-Resolution Scanning X-ray Diffraction Microscopy. Science, 321(5887):379–382, 2008. doi:10.1126/science.1158573.DOI
- [135]P Thibault and A Menzel. Reconstructing state mixtures from diffraction measurements. Nature, 494(7435):68–71, 2013. doi:10.1038/nature11806.DOI
- [136]AM Maiden, MJ Humphry, and JM Rodenburg. Ptychographic transmission microscopy in three dimensions using a multi-slice approach. Journal of the Optical Society of America A, 29(8):1606, 2012. doi:10.1364/josaa.29.001606.DOI
- [137]M Odstrčil, A Menzel, and M Guizar-Sicairos. Iterative least-squares solver for generalized maximum-likelihood ptychography. Optics Express, 26(3):3108, 2018. doi:10.1364/oe.26.003108.DOI
- [138]Y Jiang, Z Chen, Y Han, P Deb, H Gao, S Xie, P Purohit, MW Tate, J Park, SM Gruner, et al. Electron ptychography of 2D materials to deep sub-ångström resolution. Nature, 559(7714):343–349, 2018. doi:10.1038/s41586-018-0298-5.DOI
- [139]L Jones, H Yang, TJ Pennycook, MSJ Marshall, S Van Aert, ND Browning, MR Castell, and PD Nellist. Smart Align—a new tool for robust non-rigid registration of scanning microscope data. Advanced Structural and Chemical Imaging, 1(1), 2015. doi:10.1186/s40679-015-0008-4.DOI
- [140]C Ophus, J Ciston, and CT Nelson. Correcting nonlinear drift distortion of scanning probe and scanning transmission electron microscopies from image pairs with orthogonal scan directions. Ultramicroscopy, 162:1–9, 2016. doi:10.1016/j.ultramic.2015.12.002.DOI
- [141]M Hÿtch, E Snoeck, and R Kilaas. Quantitative measurement of displacement and strain fields from HREM micrographs. Ultramicroscopy, 74(3):131–146, 1998. doi:10.1016/S0304-3991(98)00035-7.DOI
- [142]PA Midgley, M Weyland, JM Thomas, and BFG Johnson. Z-Contrast tomography: a technique in three-dimensional nanostructural analysis based on Rutherford scattering. Chemical Communications, pages 907–908, 2001. doi:10.1039/b101819c.DOI
- [143]MC Scott, CC Chen, M Mecklenburg, C Zhu, R Xu, P Ercius, U Dahmen, BC Regan, and J Miao. Electron tomography at 2.4-ångström resolution. Nature, 483(7390):444–447, 2012. doi:10.1038/nature10934.DOI
- [144]J Miao, P Ercius, and SJL Billinge. Atomic electron tomography: 3D structures without crystals. Science, 353(6306), 2016. doi:10.1126/science.aaf2157.DOI
- [145]PM Pelz, SM Griffin, S Stonemeyer, D Popple, H DeVyldere, P Ercius, A Zettl, MC Scott, and C Ophus. Solving complex nanostructures with ptychographic atomic electron tomography. Nature Communications, 14(1), 2023. doi:10.1038/s41467-023-43634-z.DOI
- [146]P Gilbert. Iterative methods for the three-dimensional reconstruction of an object from projections. Journal of Theoretical Biology, 36(1):105–117, 1972. doi:10.1016/0022-5193(72)90180-4.DOI
- [147]B Kerbl, G Kopanas, T Leimkuehler, and G Drettakis. 3D Gaussian Splatting for Real-Time Radiance Field Rendering. ACM Transactions on Graphics, 42(4):1–14, 2023. doi:10.1145/3592433.DOI
- [148]M Dierolf, A Menzel, P Thibault, P Schneider, CM Kewish, R Wepf, O Bunk, and F Pfeiffer. Ptychographic X-ray computed tomography at the nanoscale. Nature, 467(7314):436–439, 2010. doi:10.1038/nature09419.DOI
- [149]HG Bell, C Xu, A McCray, M Han, Y Zhuang, HY Hwang, C Ophus, and A Zong. Bend Contour Electron Tomography (BCET): Quantitative strain and topography mapping. arXiv:2609.21041, 2026.DOI
- [150]G Cliff and GW Lorimer. The quantitative analysis of thin specimens. Journal of Microscopy, 103(2):203–207, 1975. doi:10.1111/j.1365-2818.1975.tb03895.x.DOI
- [151]M Watanabe and DB Williams. The quantitative analysis of thin specimens: a review of progress from the Cliff-Lorimer to the new ζ-factor methods. Journal of Microscopy, 221(2):89–109, 2006. doi:10.1111/j.1365-2818.2006.01549.x.DOI
- [152]S Lee, L Yuan, E Begin, D Yang, C Lim, YA Zhang, L Ma, C Ophus, Y Cui, JL Bao, and JA Dionne. Plasmonic Photocatalysis Enables Selective Oxidative Coupling of Methane with Nitrous Oxide under Ambient Conditions. arXiv:2604.18417, 2026.arxiv.org/abs/2604.18417
- [153]R Egerton. Electron Energy-Loss Spectroscopy in the Electron Microscope. Springer US, 2011. doi:10.1007/978-1-4419-9583-4.DOI
- [154]K Jarausch, P Thomas, DN Leonard, R Twesten, and CR Booth. Four-dimensional STEM-EELS: Enabling nano-scale chemical tomography. Ultramicroscopy, 109(4):326–337, 2009. doi:10.1016/j.ultramic.2008.12.012.DOI
- [155]A Genc, L Kovarik, M Gu, H Cheng, P Plachinda, L Pullan, B Freitag, and C Wang. XEDS STEM tomography for 3D chemical characterization of nanoscale particles. Ultramicroscopy, 131:24–32, 2013. doi:10.1016/j.ultramic.2013.03.023.DOI
- [156]J Schwartz, ZW Di, Y Jiang, AJ Fielitz, DH Ha, SD Perera, I El Baggari, RD Robinson, JA Fessler, C Ophus, et al. Imaging atomic-scale chemistry from fused multi-modal electron microscopy. npj Computational Materials, 8(1), 2022. doi:10.1038/s41524-021-00692-5.DOI
- [157]J Schwartz, ZW Di, Y Jiang, J Manassa, J Pietryga, Y Qian, MG Cho, JL Rowell, H Zheng, RD Robinson, et al. Imaging 3D chemistry at 1 nm resolution with fused multi-modal electron tomography. Nature Communications, 15(1), 2024. doi:10.1038/s41467-024-47558-0.DOI
- [158]H Bethe. Theorie der Beugung von Elektronen an Kristallen. Annalen der Physik, 392(17):55–129, 1928. doi:10.1002/andp.19283921704.DOI
- [159]JM Cowley and AF Moodie. The scattering of electrons by atoms and crystals. I. A new theoretical approach. Acta Crystallographica, 10(10):609–619, 1957. doi:10.1107/S0365110X57002194.DOI
- [160]E Prestat, F de la Peña, V Migunov, J Lähnemann, J Caron, et al. holospy. Zenodo software archive, 2026.
Machine contribution statement
No AI-use declaration is available for this version in Valency.
The available record does not establish whether AI systems or models contributed to this work.




