spheres.symplectic¶
Functions for converting between Gaussian Hamiltonians, complex symplectic matrices, and real symplectic matrices.
Functions
|
Converts a complex symplectic transformation into a real symplectic transformation. |
|
Converts a complex symplectic matrix/vector to a real symplectic matrix/vector. |
|
Converts a Gaussian transformation (in the form of a Hermitian matrix and a displacement vector) into a complex symplectic transformation (in the form of a complex symplectic matrix and displacement vector). |
Test if an matrix is complex symplectic. |
|
Test if an matrix is real symplectic. |
|
|
|
|
\(2n \times 2n\) complex symplectic form: \(\Omega_{c} = \begin{pmatrix}I_{n} & 0 \\ 0 & -I_{n} \end{pmatrix}\). |
|
\(2n \times 2n\) real symplectic form: \(\Omega_{c} = \begin{pmatrix}0 & I_{n} \\ -I_{n} & 0 \end{pmatrix}\). |
|
Converts a first quantized operator into a real symplectic matrix via: |
Returns random Gaussian transformation in the form of a Hermitian matrix and a displacement vector. |
|
Returns Pauli matrices expressed as real symplectic transformations. |
|
|
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.) |
|
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). |