spheres.oscillators.osc_spintower_map¶
-
spheres.oscillators.
osc_spintower_map
(cutoff_dim)[source]¶ Returns permutation from the tensor basis of two oscillators to the basis organized by total N, in other words, to a tower of spin states. Automatically padded so that higher spins whose full Hilbert space is truncated by the cutoff dimension have the right dimensionality.
- Parameters
cutoff_dim (int) – Cutoff dimension of the Fock spaces.
- Returns
P – Permutation operator.
- Return type
qt.Qobj