summaryrefslogtreecommitdiff
path: root/sources/know/concept/bernstein-vazirani-algorithm/circuit.tex
diff options
context:
space:
mode:
Diffstat (limited to 'sources/know/concept/bernstein-vazirani-algorithm/circuit.tex')
-rw-r--r--sources/know/concept/bernstein-vazirani-algorithm/circuit.tex37
1 files changed, 37 insertions, 0 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}