summaryrefslogtreecommitdiff
path: root/source/know/concept/deutsch-jozsa-algorithm
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/deutsch-jozsa-algorithm
parent1d700ab734aa9b6711eb31796beb25cb7659d8e0 (diff)
Change license, add Makefile, add image caching control
Diffstat (limited to 'source/know/concept/deutsch-jozsa-algorithm')
-rw-r--r--source/know/concept/deutsch-jozsa-algorithm/index.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/know/concept/deutsch-jozsa-algorithm/index.md b/source/know/concept/deutsch-jozsa-algorithm/index.md
index 5f2f268..44b06ad 100644
--- a/source/know/concept/deutsch-jozsa-algorithm/index.md
+++ b/source/know/concept/deutsch-jozsa-algorithm/index.md
@@ -41,7 +41,8 @@ In other words, we only need to determine if $$f(0) = f(1)$$ or $$f(0) \neq f(1)
To do this, we use the following quantum circuit,
where $$U_f$$ is the oracle we query:
-{% include image.html file="deutsch-circuit.png" width="48%" alt="Deutsch circuit" %}
+{% include image.html file="deutsch-circuit.png" width="48%"
+ alt="Deutsch circuit" %}
Due to unitarity constraints,
the action of $$U_f$$ is defined to be as follows,
@@ -141,7 +142,8 @@ We are promised that $$f(x)$$ is either constant or balanced;
other possibilities are assumed to be impossible.
This algorithm is then implemented by the following quantum circuit:
-{% include image.html file="deutsch-jozsa-circuit.png" width="52%" alt="Deutsch-Jozsa circuit" %}
+{% include image.html file="deutsch-jozsa-circuit.png" width="52%"
+ alt="Deutsch-Jozsa circuit" %}
There are $$N$$ qubits in initial state $$\Ket{0}$$, and one in $$\Ket{1}$$.
For clarity, the oracle $$U_f$$ works like so: