Repository navigation
Add double slit notebook (D3) - #19
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Alex · project thread
Item D3 of the plan:
notebooks/08_double_slit.ipynb.Slits(so.Potential2d)class in the notebook (wall at x = 0 with tanh-smoothed gaps), so no new library code.BoundaryAbsorber2d(a narrow/strong one reflected enough to put visible ripples on the screen pattern).animate2d).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.Fluxbehind the wall shows transmission adds up: 0.0913 for both slits vs 2 × 0.0456.Runs in about 45 s natively; outputs are stored like the other notebooks (~3 MB, mostly the animation).
ruff check/ruff format --checkpass.Generated by Claude Code