Update Matrix.md
This commit is contained in:
parent
ad476f48b5
commit
dc83fe6fd3
1 changed files with 15 additions and 2 deletions
|
|
@ -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}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue