Simulation of quantum optic elements
Project description
A python library simulating optical circuits.
stokes formalism
The relationship of the Stokes parameters S0, S1, S2, S3 to intensity and polarization ellipse parameters is shown by:
S0 = I
S1 = I*p*cos(2φ)cos(2χ)
S2 = I*p*sin(2φ)sin(2χ)
S3 = I*p*sin(2χ)
where: I : intensity of the polarizer p : degree of polarization φ : angle between the major axis of the ellipse and the x-axis χ : ellipticity angle
Stokes vector is given by:
S = [S0,S1,S2,S3]
Apart from getting output for specific values there are four common states which are horizontally polarized, vertically polarized, polarized at 45 and -45 degrees.
Example code
import stokes_formalism from qwanta
print(stokes_formalism.diagonal_positive()) # polarized at 45 degrees
print(stokes_formalism.diagonal_negative()) # polarized at 45 degrees
print(stokes_formalism.horizontal()) # horizontally polarized
print(stokes_formalism.vertical()) # vertically polarized
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
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 optiqs-0.0.2.tar.gz.
File metadata
- Download URL: optiqs-0.0.2.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a93218750a043559e92245953fd64d75a23f818bc4fb7bed169251599a025e2
|
|
| MD5 |
245ffec5a06c19570ce725d0fc7dadec
|
|
| BLAKE2b-256 |
a678048a26e953db78d1d310affd60f791d828b7138e5414c5703647b204bdc1
|
File details
Details for the file optiqs-0.0.2-py3-none-any.whl.
File metadata
- Download URL: optiqs-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
238d70c6d4efa3c62a4f0718e5292dc5600ae42bc34296cdf378e06e7a37ec45
|
|
| MD5 |
b8f634a00e4413ec5aa841e7efdcf6b7
|
|
| BLAKE2b-256 |
ea2f8fda86599cd0f2bc9a22598e1d3437f2090aa6eecc1f088a9914995a29d7
|