diff --git a/docs/Matrix.md b/docs/Matrix.md index b77632e..8ed25f9 100644 --- a/docs/Matrix.md +++ b/docs/Matrix.md @@ -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} +```