spheres.oscillators.osc_spins

spheres.oscillators.osc_spins(q, map=None)[source]

Extracts spin-j states from a 2D oscillator state.

Parameters
  • q (qt.Qobj) – 2D oscillator state.

  • map (qt.Qobj) – Map from tensor basis to the spin tower basis. Automatically constructed if not provided.

Returns

blocks – List of spins as qt.Qobj’s.

Return type

list