scatterem

scatterem#

Differentiable scattering models and imaging algorithms for microscopy

Three images of the same area of amorphous carbon with Poisson noise at 2 × 10⁴ electrons per square angstrom. Direct ptychography shows the structure with low noise, tilt-corrected dark field is noisy, and the fused full-field image follows direct ptychography.

Amorphous carbon, 300 kV, with Poisson noise at 2 × 104 e/Ų added: direct ptychography, tilt-corrected dark field and their fused full-field image. The fusion weights each channel by its SSNR, so at this dose it keeps mostly the direct ptychography. Data: You et al., Zenodo, doi:10.5281/zenodo.18008901, CC-BY-4.0.#

Two simulated core-loss maps of SrTiO3 viewed along 001. The Ti L map shows a square lattice of bright Ti-O columns; the O K map shows the oxygen columns.

SrTiO3 [001], 100 kV: Ti L2,3 and O K core-loss maps, simulated by BiP-PRISM with analytic hydrogenic states (not quantitative).#

FF-STEM

Fuses direct ptychography and tilt-corrected dark field into one 4D-STEM image with no missing band of spatial frequencies.

S. You et al., Adv. Sci. 13 (2026) e76620, doi:10.1002/advs.76620

BiP-PRISM

Simulates core-loss STEM-EELS. It partitions both scattering matrices, so a full-resolution elemental map fits on one GPU.

P. Pelz, J. Phys. Mater. (2026), doi:10.1088/2515-7639/aebdd0

Elastic PRISM

Simulates elastic 4D-STEM data from the plane-wave and the partitioned scattering matrix.

P. Pelz, J. Phys. Mater. (2026), doi:10.1088/2515-7639/aebdd0

Mixed-state ptychography

Reconstructs a 2D object and a mixed-state probe with second-order solvers, and measures the orbital angular momentum of the probe modes.

S. You et al., arXiv:2608.05749 (2026), doi:10.48550/arXiv.2608.05749

pip install scatterem

Open in molab Run the FF-STEM demo on a free GPU, with nothing to install, or pick one of the notebooks of the example gallery.

Quickstart · API · Cite