Polarization#

class LeftCircular#

Bases: PolarizationState

Left circular polarization state. This class represents a left circular polarization state, where the electric field rotates in a left-handed manner as it propagates. It can be initialized with an optional angle in radians to specify the orientation of the polarization.

__init__(self: PyMieSim.polarization.LeftCircular) None#
class PolarizationState#

Bases: pybind11_object

Polarization state binding for PyMieSim. This class represents the polarization state of the source in PyMieSim. It can be initialized either with a Jones vector or with an angle in radians.

__init__(*args, **kwargs)#

Overloaded function.

  1. __init__(self: PyMieSim.polarization.PolarizationState, jones_vector: collections.abc.Sequence[typing.SupportsComplex | typing.SupportsFloat | typing.SupportsIndex]) -> None

    Initializes the polarization state using a Jones vector. The Jones vector should be a list or array of two complex numbers representing the x and y components of the electric field, respectively. Example: polarization = PolarizationState(jones_vector=[1+0j, 0+1j])

    jones_vectorlist or numpy.ndarray

    A list or array of two complex numbers representing the x and y components of the electric field

  2. __init__(self: PyMieSim.polarization.PolarizationState, angle: object) -> None

    Initializes the polarization state using an angle in radians. The angle represents the orientation of the polarization, where 0 radians corresponds to linear polarization along the x-axis, and π/4 radians corresponds to circular polarization.

    anglepint.Quantity

    The angle in radians representing the orientation of the polarization. It can be provided as a pint.Quantity object.

class RightCircular#

Bases: PolarizationState

Right circular polarization state. This class represents a right circular polarization state, where the electric field rotates in a right-handed manner as it propagates. It can be initialized with an optional angle in radians to specify the orientation of the polarization.

__init__(self: PyMieSim.polarization.RightCircular) None#