sf.decompositions.P¶
-
P
(j, phi, m)[source]¶ The phase shifter matrix. (Eq 2 of the paper (arXiv:2104.0756).)
- Parameters
j (int) – the starting mode of phase-shifter
phi (complex) – parameter of the phase-shifter
m (int) – the length of the unitary matrix to be decomposed
- Returns
the phase-shifter matrix on the j-th mode
- Return type
array[complex,complex]
code/api/strawberryfields.decompositions.P
Download Python script
Download Notebook
View on GitHub