sf.decompositions¶
Warning
Unless you are a Strawberry Fields developer, you likely do not need to use these functions directly.
See the decomposition operations for details on embedding states, graphs, and unitaries within a photonic quantum circuit.
This module implements common shared matrix decompositions that are used to perform gate decompositions.
Functions¶
|
The symmetric Mach Zehnder interferometer matrix. |
|
The phase shifter matrix. |
|
The Clements T matrix from Eq 1 of the paper |
|
The inverse Clements T matrix |
|
Embed a bipartite graph into a Gaussian state. |
|
Bloch-Messiah decomposition of a symplectic matrix. |
|
Converts a covariance matrix to a Hamiltonian. |
|
Embed a graph into a Gaussian state. |
|
Embed a graph into a Gaussian state. |
|
Converts a Hamiltonian matrix to a covariance matrix. |
|
A two-mode Mach-Zehnder interferometer section. |
|
The inverse of the Mach-Zehnder unitary matrix. |
|
Nullifies element n,m of U using mach_zehnder. |
|
Nullifies element m,n of U using mach_zehnder_inv. |
|
Nullifies element n,m of U using T |
|
Nullifies element m,n of U using Ti |
|
Rectangular decomposition of a unitary matrix, with local phase shifts applied between two interferometers. |
|
Rectangular decomposition of a unitary matrix, with local phase shifts applied between two interferometers. |
|
Rectangular decomposition of a unitary with sMZIs and phase-shifters, as given in FIG. |
|
Rectangular decomposition of a unitary matrix, with all local phase shifts placed after the interferometers. |
|
Decomposition of a unitary into an array of symmetric beamsplitters. |
|
Recursive factorization of unitary transfomations. |
|
Autonne-Takagi decomposition of a complex symmetric (not Hermitian!) matrix. |
|
Triangular decomposition of a unitary matrix due to Reck et al. |
|
Triangular decomposition of a unitary matrix with sMZIs and phase-shifters, as given in FIG. |
|
Williamson decomposition of positive-definite (real) symmetric matrix. |