---
title: "Electron Holography: Recover the Hidden Phase Interactive Lab | Sandbox Physics"
description: "Can electron holography separate the magnetic part of the phase from the electric part? It can, provided you reverse the magnetization and change nothing else."
canonical_url: "https://sandboxphysics.com/labs/electron-holography/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/electron-holography/"
last_modified: "2026-10-27"
---

E48 · Magnetic electron imaging

# Electron Holography: Recover the Hidden Phase

**Can electron holography separate the magnetic part of the phase from the electric part?** It can, provided you reverse the magnetization and change nothing else. A single phase map mixes the electric and magnetic parts. Take a second map with the magnetization flipped and subtract: the electric part cancels and the magnetic part remains, but only if the electric phase is unchanged and the two maps line up exactly.

Use a biprism to overlap the wave that crossed the specimen with a reference wave that crossed vacuum. Record the specimen in two opposite magnetic states, pick out a Fourier sideband and unwrap its phase. Then separate the magnetic part of the phase before taking its gradient.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

Model assumptions

The beam is fixed at 200 keV and travels along positive z, with x to the right and y up. The field of view is periodic, 800 nm across, sampled on 128 by 128 points at 6.25 nm pitch. The in-plane induction is a prescribed smooth sinusoid, not a micromagnetic solution, and the foil has uniform thickness. The optional electric phase comes from a specified potential with a smooth modulation. Absorption, crystal diffraction, stray-field calculation, out-of-plane induction, aberrations, damage and calibrated material identification are not included. The detector records 80 percent of electrons. Fixed seeds generate independent Poisson records, with a normal approximation above 40 counts. Counts stay linear; display colors are mapped separately. In the apparatus view, thickness, electron paths, angular separation and magnification are schematic. Each acquisition stores two independent holograms of opposite magnetic states, assuming the electric potential and exact pixel registration do not change between them. The vacuum reference wave is idealized as flat and field-free, and the object wave has constant amplitude. The carrier frequency is a whole number of fringes across the field. It stands for a calibrated biprism optical setting, not a model of the electrode voltage. Fringe visibility includes a pixel MTF evaluated at the carrier only, assuming the specimen phase is sampled locally; full subpixel integration is not done. Reconstruction uses only the stored counts, the carrier and a hard-edged circular Fourier mask, and the processing sliders reuse those counts. Row-by-row unwrapping assumes the horizontal phase steps are smooth and smaller than half a cycle, and it removes an arbitrary offset from every row. It cannot handle phase singularities and cannot recover the absolute potential or vertical phase gradients. The magnetic phase is half the difference between the two reconstructed states. Its gradient gives the horizontal-derivative component of projected induction, in tesla nanometres; this is not the magnetization or a 3D field. A separate smooth two-dimensional unwrap retains relative vertical offsets, assuming every neighbouring phase step is below half a cycle and there are no defects. Its half-sum yields a mean-zero relative projected potential using the 200 keV interaction constant. A selectable low-pass bandwidth limits noise before a periodic Laplacian gives projected charge in vacuum permittivity. This charge requires matched longitudinal normal derivatives at the integration boundaries; unknown fringing-field boundary terms are not recovered. The constant potential remains unknown, and thickness is not inferred. The known induction and the error readouts are labeled as forward references from the model input. Non-periodic charge inversion, fringing fields in the reference wave, alignment drift and dynamical-diffraction correction are not included.

Physics tutorial

## Electron Holography: Recover the Hidden Phase

**Background** An electron hologram records interference fringes between a wave that crossed the specimen and a reference wave that crossed vacuum. The specimen's magnetic and electric fields add phase to the object wave, and the fringes shift with it. You recover that phase from the recorded counts and separate out the magnetic part.

**Why it matters** The goal: use reversal separation and phase unwrapping, keep the Fourier mask clear of both the central band and the Nyquist edge, and record at least 1000 counts per pixel per state on average. The recovered projected induction must then match the known reference within 12 percent relative RMS error.

Start with the essentials

- **Focus question**: Can electron holography separate the magnetic part of the phase from the electric part?
- **One-sentence intuition**: A single phase map mixes the electric and magnetic contributions together.

### Core mathematical model

#### Expected counts in each hologram

$$
\begin{aligned}I_\pm&=N_d[1+\mathcal V\cos\Phi_\pm]\\\Phi_\pm&=2\pi q_cx+\phi_e\pm\phi_m\end{aligned}
$$

The reference wave is flat, and the two opposite magnetic states carry independent counting noise.

#### Separating the phase by reversal

$$
\phi_m=\frac{\phi_+-\phi_-}{2},\qquad\phi_e=\frac{\phi_++\phi_-}{2}
$$

This works only if the electric phase is unchanged and the two images are exactly registered. The magnetic derivative uses row-centering; the separate electric path preserves relative row offsets.

#### Projected induction

$$
\int B_y\,dz=\frac{\hbar}{e}\frac{\partial\phi_m}{\partial x}
$$

This gives one component of the induction integrated along the beam path, not the magnetization.

#### Phase from the electric potential

$$
\phi_e=C_E\int V\,dz,\qquad C_E=\frac{e}{\hbar v}
$$

The electric path uses a smooth two-dimensional unwrap to preserve vertical differences. Its global mean is removed, so the potential zero remains unknown. A periodic Laplacian estimates band-limited projected charge only when the two longitudinal boundary derivatives match.

### Common difficulties

#### The reference map is not data

**Typical misconception** The known reference map is the field the microscope recorded or recovered.

**Better mental model** The reference map is the prescribed specimen input. The holograms are counted and processed without it; the reference is used only to score the error.

### Run the experiment

1. 01

   #### Recover electric contrast and charge

   Use Separate and recover, then change the electric inversion bandwidth while keeping the recorded holograms fixed.

   **What to observe:** The relative projected potential preserves vertical structure. Differentiation amplifies noise; bandwidth trades detail for stability. A constant potential remains unobservable.

2. 02

   #### Record the two states

   Compare the two holograms and the Fourier spectrum, then move the Calibrated biprism carrier slider.

   **What to observe:** The sideband has to fit between the central component and the sampling edge.

3. 03

   #### Process the stored counts

   Change the Fourier sideband mask radius and turn on Row phase unwrapping. Nothing is reacquired.

   **What to observe:** A narrow mask wipes out fine detail, and phase left wrapped produces false gradients.

4. 04

   #### Separate before differentiating

   Compare the Single state preset with Magnetic reversal separation turned on, then reach the target.

   **What to observe:** The electric phase is the same in both states, so it cancels in the half-difference.

Physical conclusion

Reversing the magnetic state isolates the magnetic phase only when the electric phase and the registration stay the same. A wider Fourier mask keeps more detail but also lets in more noise and overlap from other bands.

Fields & matter · Starter path

## From a field to an electron microscope

Map an electric field and steer a charged particle. Then find the electron's wavelength and use electron beams to see a crystal and a surface.

[Start here → **Make an Electric Field Visible** Move the probe around a dipole and check that the field always points downhill on the potential landscape. Observe · 8 min](https://sandboxphysics.com/labs/electric-field/)

1. [1 Make an Electric Field Visible](https://sandboxphysics.com/labs/electric-field/)
2. [2 A Charge Bending through Fields](https://sandboxphysics.com/labs/charged-particle/)
3. [3 Electron Wavelength & Voltage](https://sandboxphysics.com/labs/electron-wavelength/)
4. [4 Electron Diffraction & Reciprocal Space](https://sandboxphysics.com/labs/electron-diffraction/)
5. [5 TEM Bright Field, Dark Field & SAED](https://sandboxphysics.com/labs/tem-mode-selector/)
6. [6 SEM Secondary-Electron Topography](https://sandboxphysics.com/labs/sem-topography/)

[View the full path →](https://sandboxphysics.com/topics/fields-and-matter/#starter-path)
