Update Matrix.md

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

View file

@ -155,3 +155,29 @@ e^{-i\frac \phi 2} & 0\\
0 & e^{i\phi}
\end{pmatrix}
```
- ```CNOT() -> Matrix```
returns the matrix
```math
\begin{pmatrix}
1 & 0 & 0 & 0\\
0 & 1 & 0 & 0\\
0 & 0 & 0 & 1\\
0 & 0 & 1 & 0\\
\end{pmatrix}
```
- ```SWAP() -> Matrix```
returns the matrix
```math
\begin{pmatrix}
1 & 0 & 0 & 0\\
0 & 0 & 1 & 0\\
0 & 1 & 0 & 0\\
0 & 0 & 0 & 0\\
\end{pmatrix}
```