From 966048bd3594eac4d3398992c8ad3143e290303b Mon Sep 17 00:00:00 2001 From: Prefetch Date: Thu, 8 Apr 2021 16:49:46 +0200 Subject: Expand knowledge base, add /sources/ --- sources/know/concept/bloch-sphere/bloch.svg | 561 +++++++++++++++++++++ .../concept/deutsch-jozsa-algorithm/circuit.tex | 53 ++ 2 files changed, 614 insertions(+) create mode 100644 sources/know/concept/bloch-sphere/bloch.svg create mode 100644 sources/know/concept/deutsch-jozsa-algorithm/circuit.tex (limited to 'sources') diff --git a/sources/know/concept/bloch-sphere/bloch.svg b/sources/know/concept/bloch-sphere/bloch.svg new file mode 100644 index 0000000..be67f6f --- /dev/null +++ b/sources/know/concept/bloch-sphere/bloch.svg @@ -0,0 +1,561 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sources/know/concept/deutsch-jozsa-algorithm/circuit.tex b/sources/know/concept/deutsch-jozsa-algorithm/circuit.tex new file mode 100644 index 0000000..ad0dff3 --- /dev/null +++ b/sources/know/concept/deutsch-jozsa-algorithm/circuit.tex @@ -0,0 +1,53 @@ +\documentclass[11pt]{article} +\usepackage[utf8]{inputenc} +\usepackage{amsmath} +\usepackage{amsfonts} +\usepackage{physics} +\usepackage{yquant} + + +\begin{document} + +\section{Spacer} + +\begin{tikzpicture} + \begin{yquant}[operator/separation=5mm] + qubit {$\ket{0}$} a; + qubit {$\ket{1}$} b; + + h a; + h b; + box {$U_f$} (a, b); + h a; + measure a; + \end{yquant} +\end{tikzpicture} + +\section{Spacer} + +\yquantdefinebox{dots}[inner sep=0pt]{$\dots$} +\begin{tikzpicture} + \begin{yquant}[operator/separation=5mm] + qubit {$\ket{0}$} a[2]; + nobit ellipsis; + qubit {$\ket{0}$} z; + qubit {$\ket{1}$} b; + + h a[0]; + h a[1]; + dots ellipsis; + h z; + h b; + box {$U_f$} (a[0, 1], ellipsis, z, b); + h a[0]; + h a[1]; + dots ellipsis; + h z; + measure a[0]; + measure a[1]; + dots ellipsis; + measure z; + \end{yquant} +\end{tikzpicture} + +\end{document} -- cgit v1.2.3