spheres.coordinates.spinor_c¶
-
spheres.coordinates.
spinor_c
(spinor)[source]¶ Converts spinor \(\begin{pmatrix} a \\ b \end{pmatrix}\) to extended complex coordinate.
If \(a = 0\), returns \(\infty\).Otherwise returns \(\frac{b}{a}\).- Parameters
spinor (list or qt.Qobj) – Normalized spinor(s).
- Returns
c – Extended complex coordinate(s).
- Return type
complex/inf or np.ndarray