spheres.stars.pure.spin_xyz

spheres.stars.pure.spin_xyz(spin)[source]

Takes a spin-j state and returns the cartesian coordinates on the unit sphere corresponding to its “Majorana stars.” Each contributes a quantum of angular momentum \(\frac{1}{2}\) to the overall spin.

Note: If given a spin-0 state, returns [[0,0,0]]. If given a state with 0 norm, returns a list of 2j 0-vectors.

Parameters

spin (qt.Qobj) – Spin-j state.

Returns

xyz – A array with shape (2j, 3) containing the 2j cartesian coordinates of the stars.

Return type

np.ndarray