spheres.oscillators.osc_spin¶
-
spheres.oscillators.
osc_spin
(osc, map=None)[source]¶ Returns (nonzero) spin-j states correspond to the 2D oscillator state (pure or mixed).
- Parameters
osc (qt.Qobj) – Double oscillator state.
map (qt.Qobj) – Map from tensor basis to the spin tower basis. Automatically constructed if not provided.
- Returns
spins – List of spins.
- Return type
list