diff options
author | Prefetch | 2021-04-10 19:58:09 +0200 |
---|---|---|
committer | Prefetch | 2021-04-10 19:58:09 +0200 |
commit | 71b9e1aa3050dd492761973ad4be73c6d65e7eb1 (patch) | |
tree | ccbced70256143984e39440e3e3e882093e68229 /sources/know/concept/quantum-gate/gates.tex | |
parent | 45af77f068aaa57c052cd861412d53beecbe5e3b (diff) |
Expand knowledge base
Diffstat (limited to 'sources/know/concept/quantum-gate/gates.tex')
-rw-r--r-- | sources/know/concept/quantum-gate/gates.tex | 44 |
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} |