yasfpy.mueller#
Jones/Mueller matrix utilities.
This module contains helpers to convert between polarization representations, including Jones and Mueller matrices.
Attributes#
Functions#
|
Convert a Jones matrix to a Mueller matrix. |
|
Convert a Jones matrix to a Mueller matrix (Numba-accelerated). |
Module Contents#
- yasfpy.mueller.nb = None#
- yasfpy.mueller.jones_to_mueller(jones)#
Convert a Jones matrix to a Mueller matrix.
- Parameters:
jones – Complex Jones matrix with shape (…, 2, 2).
- Returns:
Real Mueller matrix with shape (…, 4, 4), using Stokes order (I,Q,U,V).
- Return type:
np.ndarray
Notes
Uses the Pauli-matrix trace identity:
M_ij = 0.5 * Re( Tr( σ_i J σ_j J† ) )
where σ_i are (I, Q, U, V) Pauli matrices.
- yasfpy.mueller.jones_to_mueller_numba(jones)#
Convert a Jones matrix to a Mueller matrix (Numba-accelerated).
This is a drop-in replacement for jones_to_mueller, but much faster for large batches.
- Parameters:
jones – Complex Jones matrix with shape (…, 2, 2).
- Returns:
Real Mueller matrix with shape (…, 4, 4), using Stokes order (I,Q,U,V).
- Return type:
np.ndarray