spheres.oscillators.spin_osc

spheres.oscillators.spin_osc(spin, cutoff_dim=None, map=None)[source]

Returns the 2D oscillator state corresponding to a given spin-j state (pure or mixed).

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

  • cutoff_dim (int) – Cutoff dimension.

  • map (qt.Qobj) – Map from spin-j Hilbert space to double harmonic oscillator space. Constructed if not provided.

Returns

osc – 2D quantum harmonic oscillator state.

Return type

qt.Qobj