From ad476f48b5c5407ad2fcd2b5362fe0806c985c71 Mon Sep 17 00:00:00 2001 From: Didictateur <105631786+Didictateur@users.noreply.github.com> Date: Sun, 22 Oct 2023 18:19:54 +0200 Subject: [PATCH] Update Matrix.md --- docs/Matrix.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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} +```