mm.math.Zmat¶
- math.Zmat(num_modes)¶
The matrix \(Z_n = \begin{bmatrix}I_n & 0\\ 0 & -I_n\end{bmatrix}.\)
- Parameters:
num_modes (
int
) – A positive integer representing the number of modes.- Returns:
The \(2N\times 2N\) array
code/api/mrmustard.math.Zmat
Download Python script
Download Notebook
View on GitHub