summaryrefslogtreecommitdiff
path: root/sources/know/concept/shors-algorithm
diff options
context:
space:
mode:
authorPrefetch2021-05-05 20:18:57 +0200
committerPrefetch2021-05-05 20:18:57 +0200
commit93c8b6e86aeafb2f1b7f6b4d39049276ebbcc91c (patch)
tree5265075e00cabcddfc9f1ce7df26b9272674ca5d /sources/know/concept/shors-algorithm
parente394d6c45bcc1e5650bcbeff5a3246316f6842f0 (diff)
Expand knowledge base
Diffstat (limited to 'sources/know/concept/shors-algorithm')
-rw-r--r--sources/know/concept/shors-algorithm/circuit.tex48
1 files changed, 48 insertions, 0 deletions
diff --git a/sources/know/concept/shors-algorithm/circuit.tex b/sources/know/concept/shors-algorithm/circuit.tex
new file mode 100644
index 0000000..ae3d5e7
--- /dev/null
+++ b/sources/know/concept/shors-algorithm/circuit.tex
@@ -0,0 +1,48 @@
+\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}_{q\!}$} af;
+
+ nobit sep;
+
+ qubit {$\ket{0}_1$} b1;
+ qubit {$\ket{0}_2$} b2;
+ nobit bdots;
+ qubit {$\ket{0}_{q\!}$} bf;
+
+ h a1;
+ h a2;
+ dots adots;
+ h af;
+ dots bdots;
+ box {$U_f(a, N)$} (a1, a2, adots, af, sep, b1, b2, bdots, bf);
+ measure b1;
+ measure b2;
+ dots bdots;
+ measure bf;
+ barrier a1, a2, adots, af;
+ box {$\mathrm{QFT}_q$} (a1, a2, adots, af);
+ align a1, a2, adots, af, b1, b2, bdots, bf;
+ measure a1;
+ measure a2;
+ dots adots;
+ measure af;
+ \end{yquant}
+\end{tikzpicture}
+
+\end{document}