Skip to main content

Package for polarization state calculations

Project description


Pylarization is a Python module that aids in processing light polarization states. For given method of polarization description it can calculate all parameters of a polarization ellipse.


The following should do, as pylarization does not have any platform-specific dependancies.

pip install pylarization


Polarization Ellipse

PolarizationEllipse is the base class for all classes describing different methods of describing the state of polarization.

To create an instance it is necessary to supply light amplitudes along the X and Y axes and the phase difference between the amplitudes.

light = PolarizationEllipse(0.445, 0.89, 1.57)


Jones Vector

light = JonesVector(0.445, 0.89j)

Stokes Vector

light = StokesVector(1, 0.6, 0, 0.8)


Jonex Matrix

matrix_values = numpy.matrix([[1, 0], [0, -1j]])
light = JonesMatrix(matrix_values) *  JonesVector(1, -1j)
matrix([[ 1.+0.j],

Mueller Matrix

matrix_values = numpy.matrix([[0.5, 0.5, 0, 0], [0.5, 0.5, 0, 0], [0 , 0, 0, 0], [0 , 0, 0, 0]])
light = MuellerMatrix(matrix_values) *  StokesVector(1, 0, 0, 0)
        [0. ],
        [0. ]])

Coherency Matrix

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pylarization-0.1.6-py3-none-any.whl (7.0 kB) Copy SHA256 hash SHA256 Wheel py3
pylarization-0.1.6.tar.gz (5.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page