spheres.coordinates.c_spinor¶
-
spheres.coordinates.
c_spinor
(c)[source]¶ Converts extended complex coordinate to a spinor.
If \(c = \infty\), returns \(\begin{pmatrix} 0 \\ 1 \end{pmatrix}\).Otherwise, returns \(\frac{1}{\sqrt{1+|c|^2}} \begin{pmatrix} 1 \\ c \end{pmatrix}\)- Parameters
c (complex/inf or list/np.ndarray) – Extended complex coordinate(s).
- Returns
spinor – (List of) normalized spinor(s).
- Return type
list or qt.Qobj