Skip to main content
Sandbox Physics

Optics 072 · Diffraction, Fourier optics, and computational imaging

Ptychography & Coherent Diffraction Imaging

Lensless imaging from overlapping diffraction records: a moving specimen, Poisson counts and known-probe PIE amplitude/phase recovery.

Interactive modelPtychography & Coherent Diffraction Imaging
Measured-amplitude fit εA\varepsilon_A0.500.50
Simulation-only complex truth error εtruth\varepsilon_{\rm truth}50%50\%
Pass / scans / selected electrons k,Nscan,Cjk,N_{\rm scan},C_j0.00π0.00\pi
Model regimevalid model regime\text{valid model regime}

Physics tutorial

Audit the physics of Ptychography & Coherent Diffraction Imaging

BackgroundA localized known probe multiplies the unknown thin specimen. Far away, a camera records only Ij=∣F{P Oj}∣2I_j=|\mathcal F\{P\,O_j\}|^2. The specimen moves between exposures; shared illuminated regions must agree across many intensity constraints. There is no imaging lens between specimen and detector.

Why it mattersHow does overlapping illumination make a lensless amplitude-and-phase reconstruction possible?

Start with the essentials

Focus question
How does overlapping illumination make a lensless amplitude-and-phase reconstruction possible?
One-sentence intuition
Intensity loses the constant phase: ∣F{eiϕ0POj}∣2=Ij|\mathcal F\{e^{i\phi_0}P O_j\}|^2=I_j. Turn the phase-offset knob: phase colors rotate while predicted counts stay unchanged. Disconnected illuminated islands can have separate offsets.

Core mathematical model

Record exit-wave intensity

ψj=POjμjq=Nin∣Fψj∣q2n2∑∣P∣2Djq∼Poisson⁡(μjq)\begin{aligned}\psi_j&=P O_j\\\mu_{jq}&=\frac{N_{\rm in}|\mathcal F\psi_j|_q^2}{n^2\sum |P|^2}\\D_{jq}&\sim\operatorname{Poisson}(\mu_{jq})\end{aligned}

Finite discrete Fourier modes, unit efficiency. Normalization conserves transmitted power without undoing absorption. Noise off records expectations.

Measured modulus, estimated phase

ψj′=F−1 ⁣[Dj/a eiarg⁡(Fψj)]\psi'_j=\mathcal F^{-1}\!\left[\sqrt{D_j/a}\,e^{i\arg(\mathcal F\psi_j)}\right]

Only measured electron amplitudes constrain the detector plane. Scaling is calibrated. No true detector phase is supplied.

Original soft-probe PIE

W=∣P∣∣P∣max⁡P∗∣P∣2+0.01Oj←Oj+βW(ψj′−ψj)\begin{aligned}W&=\frac{|P|}{|P|_{\max}}\frac{P^*}{|P|^2+0.01}\\O_j&\leftarrow O_j+\beta W(\psi'_j-\psi_j)\end{aligned}

Chapter Eq. 6 with user step. Shared object pixels accumulate overlapping constraints. Probe is known, not jointly estimated: not blind ePIE.

Conjugate sampling

ΔxD=λznΔxO=2.078125 mm\Delta x_D=\frac{\lambda z}{n\Delta x_O}=2.078125\,\mathrm{mm}

532 nm, 250 mm propagation and 64 micrometre patch width. Scalar paraxial far field, not high-NA continuous pixel integration or metrology.

Common difficulties

A low residual proves the object?

Typical misconceptionFit a diffraction image and the entire specimen is known.

Better mental modelOne frame, missing regions and phase ambiguities admit alternatives. Overlap couples estimates but does not guarantee uniqueness or convergence. Truth is separate scoring-only data.

Run the experiment

  1. 01

    Scene 1: Overlapping scan · phase recovered

    Pause and inspect scans. The stage moves opposite the probe coordinates; the illuminated lab-axis point stays fixed.

    What to observe: Neither diffraction phase nor truth enters PIE. Known probe and exact positions are calibration assumptions, not recovered here.
  2. 02

    Scene 2: Disconnected illumination · ambiguity

    Replay zero to thirty passes. Compare acquired/predicted diffraction, then recovered amplitude/phase with separately labelled answers.

    What to observe: Absorption reduces expected total electrons. Every frame retains its physical scale; displays use a separate fixed logarithmic scale.
  3. 03

    Scene 3: Photon-starved diffraction

    Try disconnected illumination, one frame, low Poisson counts and different seeds. Rotate the unobservable phase offset.

    What to observe: Unilluminated recovery pixels are dark. Truth scoring removes one constant phase only, never feeding the solver.
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy