summaryrefslogtreecommitdiff
path: root/sources/know/concept
diff options
context:
space:
mode:
Diffstat (limited to 'sources/know/concept')
-rw-r--r--sources/know/concept/quantum-gate/gates.tex44
1 files changed, 44 insertions, 0 deletions
diff --git a/sources/know/concept/quantum-gate/gates.tex b/sources/know/concept/quantum-gate/gates.tex
new file mode 100644
index 0000000..43763c0
--- /dev/null
+++ b/sources/know/concept/quantum-gate/gates.tex
@@ -0,0 +1,44 @@
+\documentclass[11pt]{article}
+\usepackage[utf8]{inputenc}
+\usepackage{amsmath}
+\usepackage{amsfonts}
+\usepackage{physics}
+\usepackage{yquant}
+
+
+\begin{document}
+
+\section{SWAP}
+
+\begin{tikzpicture}
+ \begin{yquant}[operator/separation=5mm]
+ qubit {$\ket{\psi_1}$} a;
+ qubit {$\ket{\psi_2}$} b;
+
+ swap (a, b);
+ \end{yquant}
+\end{tikzpicture}
+
+\section{CNOT}
+
+\begin{tikzpicture}
+ \begin{yquant}[operator/separation=5mm]
+ qubit {$\ket{\psi_1}$} a;
+ qubit {$\ket{\psi_2}$} b;
+
+ cnot b | a;
+ \end{yquant}
+\end{tikzpicture}
+
+\section{CU}
+
+\begin{tikzpicture}
+ \begin{yquant}[operator/separation=5mm]
+ qubit {$\ket{\psi_1}$} a;
+ qubit {$\ket{\psi_2}$} b;
+
+ box {$U$} b | a;
+ \end{yquant}
+\end{tikzpicture}
+
+\end{document}