spheres.stars.pure.xyz_spin¶
-
spheres.stars.pure.
xyz_spin
(xyz)[source]¶ Given the cartesian coordinates of a set of “Majorana stars,” returns the corresponding spin-j state, which is defined only up to complex phase.
- Parameters
xyz (np.ndarray) – A array with shape (2j, 3) containing the 2j cartesian coordinates of the stars.
- Returns
spin – Spin-j state.
- Return type
qt.Qobj