spheres.oscillators.osc_spinblocks

spheres.oscillators.osc_spinblocks(O, map=None)[source]

Extracts spin-j blocks from a 2D oscillator operator.

Parameters
  • O (qt.Qobj) – 2D oscillator operator.

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

Returns

blocks – List of qt.Qobj operators appearing along the diagonal.

Return type

list