Update Matrix.md
This commit is contained in:
parent
19857ba7a1
commit
ad476f48b5
1 changed files with 26 additions and 0 deletions
|
|
@ -155,3 +155,29 @@ e^{-i\frac \phi 2} & 0\\
|
||||||
0 & e^{i\phi}
|
0 & e^{i\phi}
|
||||||
\end{pmatrix}
|
\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}
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue