spheres.coordinates.xyz_spinor

spheres.coordinates.xyz_spinor(xyz)[source]

Converts cartesian coordinates to a spinor by reverse stereographic projection to the extended complex plane, and then lifting the latter to a 2-vector.

Parameters

xyz (list/np.ndarray) – (List of) cartesian coordinates.

Returns

spinor – Spinor(s).

Return type

qt.Qobj or list