summaryrefslogtreecommitdiff
path: root/source/know/concept/quantum-gate/index.md
diff options
context:
space:
mode:
authorPrefetch2023-01-01 16:40:56 +0100
committerPrefetch2023-01-01 17:02:29 +0100
commitb1a9b1b9b2f04efd6dc39bd2a02c544d34d1259c (patch)
tree1fd87919deee17e58f8ad19c09abd54bd4a70886 /source/know/concept/quantum-gate/index.md
parent1d700ab734aa9b6711eb31796beb25cb7659d8e0 (diff)
Change license, add Makefile, add image caching control
Diffstat (limited to 'source/know/concept/quantum-gate/index.md')
-rw-r--r--source/know/concept/quantum-gate/index.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/know/concept/quantum-gate/index.md b/source/know/concept/quantum-gate/index.md
index e8ff579..9704e53 100644
--- a/source/know/concept/quantum-gate/index.md
+++ b/source/know/concept/quantum-gate/index.md
@@ -204,7 +204,8 @@ but not always in the basis of $$\Ket{0}_1$$, $$\Ket{1}_1$$, $$\Ket{0}_2$$ and $
With that said, the first two-qubit gate is $$\mathrm{SWAP}$$,
which simply swaps $$\Ket{\psi_1}$$ and $$\Ket{\psi_2}$$:
-{% include image.html file="swap.png" width="22%" alt="SWAP gate diagram" %}
+{% include image.html file="swap.png" width="22%"
+ alt="SWAP gate diagram" %}
$$\begin{aligned}
\boxed{
@@ -231,7 +232,8 @@ $$\begin{aligned}
Next, there is the **controlled NOT gate** $$\mathrm{CNOT}$$,
which "flips" (applies $$X$$ to) $$\Ket{\psi_2}$$ if $$\Ket{\psi_1}$$ is true:
-{% include image.html file="cnot.png" width="22%" alt="CNOT gate diagram" %}
+{% include image.html file="cnot.png" width="22%"
+ alt="CNOT gate diagram" %}
$$\begin{aligned}
\boxed{
@@ -256,7 +258,8 @@ More generally, from every one-qubit gate $$U$$,
we can define a two-qubit **controlled U gate** $$\mathrm{CU}$$,
which applies $$U$$ to $$\Ket{\psi_2}$$ if $$\Ket{\psi_1}$$ is true:
-{% include image.html file="cu.png" width="22%" alt="CU gate diagram" %}
+{% include image.html file="cu.png" width="22%"
+ alt="CU gate diagram" %}
$$\begin{aligned}
\boxed{