Skip to main content

Simulation of quantum optic elements

Project description

quanta

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optiqs-0.0.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optiqs-0.0.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file optiqs-0.0.1.tar.gz.

File metadata

  • Download URL: optiqs-0.0.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for optiqs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 95ab882f44a44b4dc9feb503e767af0403ce928e48bb76842f93585ccf2c2b36
MD5 5698985c0accfec70d9a8dc0b19d251d
BLAKE2b-256 4e853c2aba603781e47287e77e87bc9f40f2c7bacf29ca47d43b1186c49d13a2

See more details on using hashes here.

File details

Details for the file optiqs-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: optiqs-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for optiqs-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24e39db2aca841dfcb822dc4d995ba7703bd6f0840512c8b17c4bd8a4dd71a43
MD5 c4a6d6fd7ebee72ae1109995728ff173
BLAKE2b-256 8b8822078df544dbd849434f438bda3970c591dd92a63a2c760b515f352a27d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page