Skip to content

Add double slit notebook (D3) - #19

Merged
aeberspaecher merged 1 commit into
mainfrom
claude/project-thread-tnji31
Oct 26, 2026
Merged

aeberspaecher merged 1 commit into
mainfrom
claude/project-thread-tnji31

Conversation

@aeberspaecher

Copy link
Copy Markdown
Owner

Requested by Alex · project thread

Item D3 of the plan: notebooks/08_double_slit.ipynb.

  • A small Slits(so.Potential2d) class in the notebook (wall at x = 0 with tanh-smoothed gaps), so no new library code.
  • Gaussian packet (λ = 1) through slits with d = 5, a = 1 on a 614×512 grid with a wide, weak BoundaryAbsorber2d (a narrow/strong one reflected enough to put visible ripples on the screen pattern).
  • Animation of the passage (animate2d).
  • Screen at x = 40: time-integrated density from IntegratedDensity, compared with a Huygens–Fresnel wavelet sum and the Fraunhofer cos²·sinc² formula. Fringe positions match both (spacing λL/d = 8); outer fringe heights lie between the two.
  • One slit at a time: P₁₂ vs P₁ + P₂ (P₂ from mirror symmetry, so only one extra run). Flux behind the wall shows transmission adds up: 0.0913 for both slits vs 2 × 0.0456.
  • README notebook table row with Colab badge, CHANGELOG "Unreleased" entry. JupyterLite picks up the notebook automatically.

Runs in about 45 s natively; outputs are stored like the other notebooks (~3 MB, mostly the animation). ruff check/ruff format --check pass.


Generated by Claude Code

A wavepacket passes a double slit in 2d (a small Potential2d subclass
in the notebook). The time-integrated density on a screen, recorded with
IntegratedDensity, is compared with the Huygens-Fresnel sum and the
Fraunhofer formula; closing one slit shows P12 != P1 + P2 while the
transmitted probability from Flux adds up.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MjBTTx7zRUNSFYGDpyPsTp
@aeberspaecher aeberspaecher self-assigned this Oct 26, 2026
@aeberspaecher
aeberspaecher merged commit a1fe595 into main Oct 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants