From 71b9e1aa3050dd492761973ad4be73c6d65e7eb1 Mon Sep 17 00:00:00 2001 From: Prefetch Date: Sat, 10 Apr 2021 19:58:09 +0200 Subject: Expand knowledge base --- sources/know/concept/quantum-gate/gates.tex | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 sources/know/concept/quantum-gate/gates.tex (limited to 'sources/know') 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} -- cgit v1.2.3