Update Matrix.md

This commit is contained in:
Didictateur 2023-10-22 18:21:24 +02:00 committed by GitHub
parent ad476f48b5
commit dc83fe6fd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,7 +165,7 @@ e^{-i\frac \phi 2} & 0\\
1 & 0 & 0 & 0\\
0 & 1 & 0 & 0\\
0 & 0 & 0 & 1\\
0 & 0 & 1 & 0\\
0 & 0 & 1 & 0
\end{pmatrix}
```
@ -178,6 +178,19 @@ e^{-i\frac \phi 2} & 0\\
1 & 0 & 0 & 0\\
0 & 0 & 1 & 0\\
0 & 1 & 0 & 0\\
0 & 0 & 0 & 0\\
0 & 0 & 0 & 0
\end{pmatrix}
```
- ```Cu(u: Matrix) -> Matrix```
returns the matrix
```math
\begin{pmatrix}
1 & 0 & 0 & 0\\
0 & 1 & 0 & 0\\
0 & 0 & u_{00} & u_{01}\\
0 & 0 & u_{10} & u_{11}\\
\end{pmatrix}
```