spheres.symplectic.operator_real_symplectic

spheres.symplectic.operator_real_symplectic(O, expm=True, theta=2)[source]

Converts a first quantized operator into a real symplectic matrix via: make_gaussian_operator(), gaussian_complex_symplectic(), \(complex_real_symplectic\).

Parameters
  • O (qt.Qobj) – Operator

  • expm (bool) – Whether to exponentiate.

  • theta (float) – Parameter for exponentiation.

Returns

  • R (np.array) – Real symplectic matrix.

  • r (np.array) – Real symplectic displacement vector.