spheres.symplectic.upgrade_single_mode_operator

spheres.symplectic.upgrade_single_mode_operator(O, i, n_modes)[source]

Upgrades a single mode real symplectic operator O to act on the i’th of n modes (where the latter are represented in terms of their first and second moments.)

Parameters
  • O (np.array) – Single mode operator.

  • i (int) – Which mode to act on.

  • n_modes (int) – Of how many modes.

Returns

U – Upgraded operator.

Return type

np.array