summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorPrefetch2021-05-01 17:23:45 +0200
committerPrefetch2021-05-01 17:23:45 +0200
commite394d6c45bcc1e5650bcbeff5a3246316f6842f0 (patch)
tree28e00f180c222cb316894e25030609862c73aadf /sources
parent8f883023e6354648727479aec029f418b30ef2dc (diff)
Expand knowledge base
Diffstat (limited to 'sources')
-rw-r--r--sources/know/concept/bernstein-vazirani-algorithm/circuit.tex37
-rw-r--r--sources/know/concept/deutsch-jozsa-algorithm/circuit.tex2
-rw-r--r--sources/know/concept/simons-algorithm/circuit.tex51
3 files changed, 89 insertions, 1 deletions
diff --git a/sources/know/concept/bernstein-vazirani-algorithm/circuit.tex b/sources/know/concept/bernstein-vazirani-algorithm/circuit.tex
new file mode 100644
index 0000000..95bae6b
--- /dev/null
+++ b/sources/know/concept/bernstein-vazirani-algorithm/circuit.tex
@@ -0,0 +1,37 @@
+\documentclass[11pt]{article}
+\usepackage[utf8]{inputenc}
+\usepackage{amsmath}
+\usepackage{amsfonts}
+\usepackage{physics}
+\usepackage{yquant}
+
+
+\begin{document}
+
+\section{Spacer}
+
+\yquantdefinebox{dots}[inner sep=0pt]{$\vdots$}
+\begin{tikzpicture}
+ \begin{yquant}[operator/separation=5mm]
+ qubit {$\ket{0}_1$} a1;
+ qubit {$\ket{0}_2$} a2;
+ nobit ellipsis;
+ qubit {$\ket{0}_{\!N\!}$} aN;
+
+ h a1;
+ h a2;
+ dots ellipsis;
+ h aN;
+ box {$U_f$} (a1, a2, ellipsis, aN);
+ h a1;
+ h a2;
+ dots ellipsis;
+ h aN;
+ measure a1;
+ measure a2;
+ dots ellipsis;
+ measure aN;
+ \end{yquant}
+\end{tikzpicture}
+
+\end{document}
diff --git a/sources/know/concept/deutsch-jozsa-algorithm/circuit.tex b/sources/know/concept/deutsch-jozsa-algorithm/circuit.tex
index ad0dff3..6c82e9f 100644
--- a/sources/know/concept/deutsch-jozsa-algorithm/circuit.tex
+++ b/sources/know/concept/deutsch-jozsa-algorithm/circuit.tex
@@ -25,7 +25,7 @@
\section{Spacer}
-\yquantdefinebox{dots}[inner sep=0pt]{$\dots$}
+\yquantdefinebox{dots}[inner sep=0pt]{$\vdots$}
\begin{tikzpicture}
\begin{yquant}[operator/separation=5mm]
qubit {$\ket{0}$} a[2];
diff --git a/sources/know/concept/simons-algorithm/circuit.tex b/sources/know/concept/simons-algorithm/circuit.tex
new file mode 100644
index 0000000..54583ca
--- /dev/null
+++ b/sources/know/concept/simons-algorithm/circuit.tex
@@ -0,0 +1,51 @@
+\documentclass[11pt]{article}
+\usepackage[utf8]{inputenc}
+\usepackage{amsmath}
+\usepackage{amsfonts}
+\usepackage{physics}
+\usepackage{yquant}
+
+
+\begin{document}
+
+\section{Spacer}
+
+\yquantdefinebox{dots}[inner sep=0pt]{$\vdots$}
+\begin{tikzpicture}
+ \begin{yquant}[operator/separation=5mm, register/separation=0mm]
+ qubit {$\ket{0}_1$} a1;
+ qubit {$\ket{0}_2$} a2;
+ nobit adots;
+ qubit {$\ket{0}_{n\!}$} aN;
+
+ nobit sep;
+
+ qubit {$\ket{0}_1$} b1;
+ qubit {$\ket{0}_2$} b2;
+ nobit bdots;
+ qubit {$\ket{0}_{n\!}$} bN;
+
+ h a1;
+ h a2;
+ dots adots;
+ h aN;
+ dots bdots;
+ box {$U_f$} (a1, a2, adots, aN, sep, b1, b2, bdots, bN);
+ h a1;
+ h a2;
+ dots adots;
+ h aN;
+ dots bdots;
+ align a1, a2, adots, aN, b1, b2, bdots, bN;
+ measure a1;
+ measure a2;
+ dots adots;
+ measure aN;
+ measure b1;
+ measure b2;
+ dots bdots;
+ measure bN;
+ \end{yquant}
+\end{tikzpicture}
+
+\end{document}