pub fn jones_rotation_kernel(
jones_matrix: &CausalTensor<Complex<f64>>,
angle: RayAngle,
) -> Result<CausalTensor<Complex<f64>>, PhysicsError>Expand description
Rotates a Jones Matrix (operator) by an angle $\phi$.
$$ M’(\phi) = R(-\phi) \cdot M \cdot R(\phi) $$
where $R(\phi)$ is the 2D rotation matrix: $$ R(\phi) = \begin{pmatrix} \cos\phi & \sin\phi \ -\sin\phi & \cos\phi \end{pmatrix} $$
This transforms an optical element (like a polarizer or waveplate) aligned along the horizontal axis to an arbitrary axis $\phi$.
§Arguments
jones_matrix- The $2 \times 2$ complex Jones matrix of the element.angle- Rotation angle $\phi$.
§Returns
Result<CausalTensor<Complex<f64>>, PhysicsError>- The rotated Jones matrix.