spheres.symplectic.upgrade_two_mode_operator¶
-
spheres.symplectic.
upgrade_two_mode_operator
(O, i, j, n_modes)[source]¶ Upgrades a two mode real symplectic matrix to act on subsystems i and j of n modes, (where the modes are represented in terms of their first and second moments).
- Parameters
O (np.array) – Two mode operator.
i (int) – First mode to act on.
j (int) – Second mode to act on.
n_modes (int) – Of how many modes.
- Returns
U – Upgraded operator.
- Return type
np.array