OPTICSIN 5 MINUTES

E06 / AN INTERACTIVE OPTICS LESSON

Remove full turns.
Keep the focus.

A thin element controls phase through height. Wrapping that phase makes a shallow optic, while quantization and colour reveal the price of the simplification.

12–15-minute lesson · 25–30-minute Python lab
Prerequisites & recommended learning resources ↓

Computed illustration from this lesson’s numerical model.
COMPUTED FROM THE LESSON MODEL

CONCEPTS IN THIS EPISODE

See this episode in the concept map ↓

E06 / WHY LEARN THIS?

How much of a lens's thickness is doing useful work?

A compact optical system needs a shallow focusing element. Removing material changes the phase delay, but at one wavelength a full phase turn can be removed without changing the thin-element transmission. Fabrication steps and a change of colour then test how far that shortcut remains useful.

What you gain: Turn a desired phase into a height profile, estimate the cost of using only a few height levels, and judge the wavelength range and model assumptions behind a flat-optic design.

BEFORE E06 / PREREQUISITES

Check your starting point.

Useful earlier lessons: E01, E02

  • Complex amplitudes and phase. Use exp(i(φ + 2π)) = exp(iφ) and distinguish phase from physical path length.Used here: A phase wrap preserves the complex transmission at the design wavelength.
  • A lens as a phase element. Read a thin optical element as multiplication by a spatially varying phase.Used here: The lesson converts a focusing phase profile into a physical height profile.
Need a refresher? Open the recommended reading.

Use the indicated sections for an unfamiliar idea, then return to this lesson.

For the notebook: Apply modulo and quantization to arrays, then compare wavelengths using consistent length units.
NumPy · The absolute basics for beginners ↗ · NumPy · Discrete Fourier Transform ↗

Developed in this lesson: Test wrapped phase, fabrication levels, and chromatic mismatch in a flat optic.

Browse all prerequisites and learning resources →

Flat optics and wrapped phase

Watch the story, then use the experiment below to test the ideas yourself.

5:15 · E06 · Flat optics and wrapped phaseWatch on YouTube ↗

The film’s logic, step by step.

How can phase wrapping flatten a lens, and when does that equivalence fail?

Follow the film’s argument, then open an explanation where a step feels too fast. Times are approximate; select one to replay that part of the film.

Logic flow

  1. 0:00

    Compare equal green-light foci with unequal colour response

    A thick lens and a thin relief can focus the design wavelength similarly. Their different white-light behaviour shows that matching one phase profile is only part of the problem.

  2. 0:23

    Translate height into a local phase delay

    Relative to air, glass adds optical path (n − 1)h. The thin element approximation treats each transverse point as an independent phase multiplier.

    Open the missing step →
  3. 1:13

    Remove full 2π turns

    At one wavelength, removing integer multiples of λ/(n − 1) preserves exp(iφ). The remaining height profile is a kinoform with progressively finer outer zones.

    Open the missing step →
  4. 2:06

    Quantize the profile and follow the leaked power

    A staircase approximates a continuous phase ramp. Phase errors reduce the intended order’s coherent amplitude and redirect power into other orders.

    Open the missing step →
  5. 2:54

    Change wavelength and lose the phase equivalence

    Fixed zone positions steer longer wavelengths more strongly. The design diffraction order has f ≈ f₀λ₀/λ, while material dispersion also changes its efficiency.

    Open the missing step →
  6. 3:36

    Test the independent-column assumption

    Fine zones allow diffraction, reflections, and electromagnetic coupling inside the structure. A full-wave solution can therefore disagree with the local phase-screen prediction.

    Open the missing step →
  7. 4:26

    Simulate the profile that can actually be made

    Apply the fabricated height profile, then propagate. Sampling, height quantization, and edge rounding all matter before comparing the predicted focused power.

  8. 4:52

    Use periodic structure to improve the model

    The outer zones resemble gratings. E07 uses periodicity to compute their allowed orders and electromagnetic response rather than assigning phase from height alone.

Unpack the difficult steps

Why is removing material harmless at one colour but not at all colours?

1:13 · Replay this part

h₂π = λ₀/[n(λ₀) − 1]
Δφ(λ) = 2π [λ₀/λ] [n(λ) − 1]/[n(λ₀) − 1]

At λ₀, removing h₂π changes phase by exactly 2π, so the complex transmission is unchanged in the thin-element model. At another wavelength the removed optical path is generally not an integer number of wavelengths. Phase equality at a single frequency therefore does not imply equal group delay or broadband wavefronts.

The fixed zone geometry gives the design diffraction order a focal length approximately inversely proportional to wavelength. The amount of power reaching that order also varies with the relief’s wavelength-dependent phase depth. The film’s percentages and chromatic examples describe its chosen elements, not all flat optics or all glass lenses.

Why is efficiency sinc²(1/N), rather than just proportional to the number of levels?

2:23 · Replay this part

sinc(u) = sin(πu)/(πu)
a₁ = N ∫[−1/(2N), 1/(2N)] e^(i2πu) du = sinc(1/N)
η₁ = |a₁|²

Measure each staircase segment’s phase error relative to the ideal ramp. Over one equal-width segment, that error sweeps a short arc; integrating the unit phasors gives a shorter resultant. All N segments contribute the same aligned resultant to the intended order, giving the sinc amplitude above. Power is amplitude squared.

The result assumes a lossless, scalar, uniformly illuminated, ideal N-level approximation to a full 2π ramp. It is the efficiency into the intended diffraction order, not total transmitted power. Reflection, absorption, finite apertures, fabrication error, and vector coupling can reduce an actual device’s performance further.

What does “thin” mean if the relief is only a micron high?

3:36 · Replay this part

The approximation Uout(x) = t(x)Uin(x) assumes a local response: light at x is affected only by the material at x. Physical height alone does not establish this. Lateral transport, internal reflections, high index contrast, wavelength-scale features, and resonances can couple neighbouring positions even in a shallow structure.

A metasurface library improves the local response by solving Maxwell’s equations for a unit cell, including amplitude and phase. Placing different cells next to each other still makes a local-periodicity approximation. Strong gradients or coupling can require a full-device calculation. Test the approximation against a more complete model for the actual geometry and illumination.

Explore the full experiment →

What to notice first.

A transparent material slows the phase of a wave relative to the surrounding medium. In the thin-element approximation, each transverse location supplies a local multiplier. For glass of refractive index n in air, a height h gives a phase delay φ = (2π/λ₀)(n − 1)h. This model ignores light coupling sideways while it passes through the structure.

U_out(x) = U_in(x)eiφ(x)   ·   h₂π = λ₀/(n − 1)

A lens makes different parts of an incoming wave arrive in phase near a focus. A paraxial lens has a quadratic phase profile. Adding or subtracting an integer multiple of 2π at any location leaves its complex multiplier unchanged. Cutting away full-height phase turns therefore creates a wrapped lens, or kinoform, with a much smaller maximum height.

The demonstration uses a 1D lens cross-section in nondispersive glass with n = 1.5. Its design wavelength is 550 nm, so one full turn corresponds to 1.10 μm of glass. The unwrapped and continuous wrapped profiles produce the same field at that wavelength under the stated thin-element model. Their geometrical shapes are different, but their complex transmissions are equal.

That equivalence concerns a specified wavelength and model. It does not say that two fabricated structures scatter identically under Maxwell’s equations, nor that they remain equivalent across a broad spectrum.

By the end, you can

  1. Convert physical height into a phase delay.
  2. Explain why phase wrapping is equivalent at one design wavelength.
  3. Quantify staircase efficiency and identify when the thin-element model fails.

PREDICT BEFORE YOU CHANGE A CONTROL

A glass profile delays light by exactly one full phase turn at 550 nm. If you remove that height, will the device remain equivalent at 450 nm?

Change one thing.
Follow what changes.

All plotted fields and curves are calculated from the stated model. Keep the other controls fixed while testing a prediction.

Model: 1D scalar thin-element lens, fixed n = 1.5, design λ₀ = 550 nm, aperture radius 15 μm and paraxial focal length 120 μm. Propagation uses exact scalar ASM. Fresnel reflection, material dispersion, polarization, and sidewall coupling are omitted.

  1. At 550 nm, compare the unwrapped and continuous wrapped focal profiles using the same incident-intensity scale.
  2. Keep wavelength fixed and reduce the number of phase levels. Inspect how energy leaves the intended focal order.
  3. Restore a continuous wrapped surface and change wavelength. Compare the axial focus curves of the two physical profiles, then move the observation plane to the new peak.

A staircase is an approximation to a rotation.

Fabrication often offers a finite set of heights. An N-level staircase approximates a smooth phase ramp with N constant phases. Contributions intended to add in one diffraction order are then slightly misaligned. Some power goes to other orders even if the element itself has no absorption.

η₁ = sinc²(1/N),   sinc(x) = sin(πx)/(πx)

This expression is the scalar first-order efficiency of an ideal, uniformly quantized, full-2π blazed phase grating at its design wavelength. It gives about 41%, 81%, 95%, and 99% for 2, 4, 8, and 16 levels. It is a useful reference for local kinoform zones, not a complete prediction of a finite lens’s throughput, fabrication loss, or focal encircled energy.

Colour changes the meaning of a removed turn.

A removed thickness h₂π at λ₀ produces a phase of 2πλ₀/λ at another wavelength if n is constant. That is generally not an integer turn. The wrapped surface therefore changes its interference pattern with colour. In the paraxial design order, its focus follows approximately f(λ) = f₀λ₀/λ. Longer wavelengths focus closer to the element in this model.

The unwrapped profile here uses a constant refractive index, so its geometrical focusing power is nearly wavelength-independent; diffraction spot size still changes. Real glass is dispersive. The notebook keeps this distinction explicit so that material dispersion is not confused with the stronger wavelength dependence caused by phase wrapping.

When local phase is insufficient.

The thin-element approximation treats columns independently. Steep sidewalls, wavelength-scale features, reflection, polarization dependence, and resonances can transfer energy between columns. Sampling the local-phase mask more finely cannot repair missing physics. E07 and E09 introduce models that can represent coupling and full-wave scattering.

The optional notebook experiment smooths a fabricated height profile before computing its phase. This is different from smoothing the final intensity image: fabrication changes the optical field before interference. All efficiency comparisons use the same incident normalization, avoiding an apparent improvement caused by rescaling each result to its own peak.

Make a prediction before checking the explanation.

Can you explain the change?

1. Removing h₂π leaves the field multiplier unchanged…
2. An ideal lossless two-level grating sends about 41% into its design order. The rest…
3. A finer grid always fixes a thin-element model that neglects sidewall scattering.

Your own computational experiment.

The standalone notebook builds the model in small steps, draws the results, and checks the calculation against independent predictions. It runs on CPU using NumPy, SciPy, and Matplotlib. No repository clone, GPU, or external dataset is needed.

In Colab, sign in with a Google account and select Runtime → Run all. Save a copy in Drive to retain edits. Saved notebook outputs and downloadable PNG figures provide a fallback if Colab’s output frame cannot load.

A short lab report

  1. Verify wrapping. Compare complex transmissions of continuous and wrapped profiles at two wavelengths.
  2. Measure order efficiency. Compute the +1 Fourier coefficient of 2-, 4-, 8-, and 16-level phase ramps.
  3. Separate error sources. Compare quantization, height smoothing, and pixel refinement.
Compare your reasoning

Verify wrapping

They agree at λ₀ up to floating-point error. At another wavelength the removed height need not be a full phase turn.

Measure order efficiency

Use a common unit-amplitude input and compare squared coefficient magnitude with sinc²(1/N).

Separate error sources

Quantization and smoothing alter the modeled device; pixel refinement changes its numerical representation. Full-wave model error is a separate issue.

Optional deeper extension

Measure blazed-grating order efficiency, vary wavelength, and smooth a fabricated height profile before propagation. Separate fabrication approximation, sampling error, and model error.

The notebook marks the extension clearly. Complete the core experiment and its checks first.

Instructor notes and assessment rubric ↗ · Model, setup, and reproducibility ↗

Know what the model leaves out.

1D scalar thin-element lens, fixed n = 1.5, design λ₀ = 550 nm, aperture radius 15 μm and paraxial focal length 120 μm. Propagation uses exact scalar ASM. Fresnel reflection, material dispersion, polarization, and sidewall coupling are omitted.

Video companion: watch the E06 film above (5:15).

Calculations and concept checks run locally in your browser. Quiz answers are not uploaded or stored.

Keep exploring from this episode.

Highlighted concepts appear in this episode. Select any concept to find related episodes.

In this episodeUnderstanding foundationCross-topic connection

Connections describe ideas, not a required episode order.

SELECTED CONCEPT

Complex field & phase

In this episode

Keep amplitude and phase together to describe what light does before a detector measures intensity.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Fourier representation

Describe a field by its spatial-frequency components. The same representation connects propagation, imaging, reconstruction, and design.

Other episodes with this concept

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Wave propagation

Follow a field through space by advancing its components and combining them again.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Interference & coherence

Connect field correlations to what survives a camera's averaging: interference, fringe visibility, and speckle.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Imaging & resolution

Use point responses and frequency transfer to understand which details an optical image can carry.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Holography & phase recovery

Recover information about an optical field using a reference or constraints on intensity measurements.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Phase control

In this episode

Turn a desired phase profile into an optical element, then examine wrapping, quantization, and wavelength dependence.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Periodicity & band gaps

Use repetition to connect diffraction directions, Bloch propagation, and frequency bands that a structure rejects.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Eigenmodes & resonance

Find field patterns adapted to an operator or structure. Related eigenvalue methods also describe Bloch waves and statistical coherent modes.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Sampling & discretization

Understand what changes when continuous fields become arrays: sampling limits, computational windows, and derivative approximations.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Maxwell & FDTD

Evolve coupled electric and magnetic fields on a grid, and test the accuracy of time steps and boundaries.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas

SELECTED CONCEPT

Adjoints & inverse design

Use a scalar objective and an adjoint calculation to find how every design parameter changes the result.

Other episodes with this concept

Explore through connected ideas

Foundations & connections

Refresh the foundations

Connected ideas