A small example package for double slit simulation
Project description
pydouble-slit
A small Python package to simulate the double slit experiment using quantum wavefunctions.
Features
- Simulate electron detection patterns with and without slit measurement
- Visualize 2D detection histograms and 1D detection distributions
- Easily configurable slit distance, screen distance, and screen size
Installation
You can install this package using pip (after building and uploading to PyPI):
Usage
from pydouble_slit import doubleSlit
# Create a double slit experiment instance
experiment = doubleSlit(slit_dist=1, distance_to_screen=10, screen_width=200, screen_height=100, measure_slit=False)
# Fire a single electron
experiment.fire_electron()
# Fire a beam of electrons
experiment.electron_beam(num_electrons=5000)
# Show the 2D detection screen
experiment.show_screen()
# Show the 1D histogram of detections
experiment.show_hist()
# Clear the screen for a new experiment
experiment.clear_screen()
Requirements
- Python 3.9+
- numpy
- matplotlib
- scipy
License
MIT License
Author
Example Author
author@example.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydouble_slit-0.0.4.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydouble_slit-0.0.4.tar.gz.
File metadata
- Download URL: pydouble_slit-0.0.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f031dc66fa732d54a73da70ab0d904b922e275f4998c9ad27592c4e76bccf38c
|
|
| MD5 |
9c239d4799cfdf4bc6ba28efa5c2a81b
|
|
| BLAKE2b-256 |
52f60d547c4fff449aa6dde01c5258a94ab2097d5a6e084a6bdc6ddfc06cef0e
|
File details
Details for the file pydouble_slit-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pydouble_slit-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1f298e951546688d650a045e2a027f483072e36a15ebe998cc18cbb0ce87430
|
|
| MD5 |
451240800c51090dd95f326a80e0016e
|
|
| BLAKE2b-256 |
59dc9563e64687c4b9aeb23c640aa7024117919d641c331f381eed2a9e9ed1e2
|