S1350 of 55
0 XP
  1. Hook
  2. Predict
  3. Name it
  4. Check
  5. Explain

S13 · Lesson 50 · Optics lab

Carrying a Gaussian beam's q parameter through lenses and free space in Python, solving a slab waveguide's mode equations by bisection, and propagating a sampled field with the FFT using free space's transfer function, each checked against the closed forms of the earlier lessons

Three of the course's core calculations become a few lines of NumPy each: the ABCD law for Gaussian beams (lesson 3), the transcendental equations for a slab's modes (lesson 16), and free space as a filter on spatial frequencies (lesson 4). Each is checked against numbers derived by hand. The last one hides a trap that has bitten many simulation codes: a square root with the wrong sign makes evanescent waves grow without limit.

Predict

Your angular-spectrum code multiplies each spatial frequency by e−jkzz with kz=2π1/λ2−ν2. For ν above 1/λ, NumPy's complex square root returns a positive imaginary part. What happens to those components?

Name it

Task 1: the q parameter

Start from q0=jz0 at a waist and apply q→(Aq+B)/(Cq+D) for each element; recover w=−λ/(πIm(1/q)) and R=1/Re(1/q).

Task 2: slab modes

With V=k0aNA, mode m has u=κa in (mπ/2,min⁡((m+1)π/2,V)); even modes solve tan⁡u=V2−u2/u and odd ones −cot⁡u=V2−u2/u. On each interval the difference is monotonic, so bisection finds every root.

Task 3: angular spectrum

FFT the sampled field, multiply by e−jkzz with the decaying branch of kz, inverse FFT. Measure the width by the second moment of intensity: for a Gaussian |E|2∝e−2x2/w2, ⟨x2⟩=w2/4.

Worked example

What should task 1 give for a 1 mm, 1550 nm waist focused by a 50 mm lens, and for a 50/100 mm telescope?

Show the solution
  1. The focused beam. Scanning distance after the lens, the smallest width is 24.66 µm at 49.97 mm, lesson 3's numbers.
  2. The telescope. With a 50 mm lens, 150 mm of space and a 100 mm lens, the beam leaves 2.000 mm wide and almost collimated.
  3. A free-space check. Starting from the waist, 2z0 of free space gives exactly w=5w0R=2.5z0

Answer the smallest width after the 50 mm lens is 24.66 µm at 49.97 mm, and the 50/100 mm telescope sends the beam out 2.000 mm wide and almost collimated.

Worked example

What should task 2 find for lesson 16's slab and a silicon slab?

Show the solution
  1. Lesson 16's slab. The 10 µm, 1.48/1.46 slab at 1550 nm carries four TE modes, with effective indices 1.478604,1.474485,1.467940,1.460440
  2. Thinned to 3 µm. It's single-mode, at 1.472453.
  3. A silicon slab. A 0.4 µm silicon slab (3.5 in 1.45) has V = 2.58 and two modes, despite being so thin, because its index contrast is so high.

Answer lesson 16's slab gives four TE modes (1.478604, 1.474485, 1.467940 and 1.460440), one mode at 1.472453 when thinned to 3 µm, and the silicon slab gives two modes.

Check

Step 1. Write propagate_q and beam: Gaussian beams through ABCD systems.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Step 2. Write slab_te_modes: every TE mode by bisection.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Step 3. Write angular_spectrum: free space as a filter, by FFT.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why does the angular-spectrum method reproduce Gaussian beam spreading so exactly?

Practice

Keep practicing

3 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.