pub fn stokes_from_jones_kernel(
jones: &JonesVector,
) -> Result<StokesVector, PhysicsError>Expand description
Converts a pure state Jones vector to a Stokes vector.
$$ S_0 = |E_x|^2 + |E_y|^2 $$ $$ S_1 = |E_x|^2 - |E_y|^2 $$ $$ S_2 = 2\text{Re}(E_x E_y^) $$ $$ S_3 = -2\text{Im}(E_x E_y^) $$
§Arguments
jones- Input Jones vector $\begin{pmatrix} E_x \ E_y \end{pmatrix}$.
§Returns
Result<StokesVector, PhysicsError>- The corresponding Stokes vector.