Fixe matrices

This commit is contained in:
Didictateur 2023-10-21 19:41:08 +02:00 committed by GitHub
parent 88f1123114
commit 39f834304f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,14 +49,17 @@ $\alpha$ |0> + $\beta$ |1>
is represented by
$\begin{pmatrix}
```math
\begin{pmatrix}
\alpha\\
\beta
\end{pmatrix}$
\end{pmatrix}
```
So, the operation corresponding of the inversion of the value of $\alpha$ and $\beta$ is
$\begin{pmatrix}
```math
\begin{pmatrix}
0 & 1\\
1 & 0
\end{pmatrix}
@ -68,7 +71,8 @@ $\begin{pmatrix}
=\begin{pmatrix}
\beta\\
\alpha
\end{pmatrix}$
\end{pmatrix}
```
In theory, the users don't need to use them, the main quantum gates are already implemented.
@ -103,4 +107,4 @@ SWAP(mq, 0, 1)
## Docs
A doc is availaibale [here](docs) where all objects and gates are displayed.
A doc is availaibale [here](docs) where all objects and gates are displayed.