From b99b4f64d389574872025caee6db358057a17cb2 Mon Sep 17 00:00:00 2001 From: Scinawa <2940017+Scinawa@users.noreply.github.com> Date: Sun, 24 Apr 2022 03:19:26 +0800 Subject: [PATCH] Add code for images for typesofdata, oracle models, multiplexer --- algpseudocode/multiplexer.tex | 31 ++++++++++++++++++++ algpseudocode/oracle-models.tex | 32 +++++++++++++++++++++ algpseudocode/typesofdata.tex | 50 +++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 algpseudocode/multiplexer.tex create mode 100644 algpseudocode/oracle-models.tex create mode 100644 algpseudocode/typesofdata.tex diff --git a/algpseudocode/multiplexer.tex b/algpseudocode/multiplexer.tex new file mode 100644 index 0000000..166a54b --- /dev/null +++ b/algpseudocode/multiplexer.tex @@ -0,0 +1,31 @@ +\documentclass{article} +\usepackage[utf8]{inputenc} + +\usepackage{multirow} +\usepackage{multicol} +\usepackage{array} +\usepackage{graphicx} + +\usepackage{tikz} +\usetikzlibrary{quantikz} + +\usepackage[landscape, paperwidth=15cm, paperheight=30cm, margin=0mm]{geometry} + +\title{\vspace{-5ex}} +\date{\vspace{-5ex}} + +\begin{document} + +\maketitle + + + +\begin{quantikz} +\lstick{$\ket{0}$} & \octrl{1} & \ctrl{1} & \ctrl{1} & \\ +\lstick{$\ket{0}$} & \octrl{1} & \octrl{1} & \ctrl{1} & \\ +\lstick{$\ket{0}$} & \targ{} & \targ{} & \targ{} & +\end{quantikz} + + + +\end{document} diff --git a/algpseudocode/oracle-models.tex b/algpseudocode/oracle-models.tex new file mode 100644 index 0000000..21ee9e8 --- /dev/null +++ b/algpseudocode/oracle-models.tex @@ -0,0 +1,32 @@ +\documentclass{article} +\usepackage[utf8]{inputenc} + +\usepackage{multirow} +\usepackage{multicol} +\usepackage{array} +\usepackage{graphicx} + + +\usepackage[landscape, paperwidth=15cm, paperheight=30cm, margin=0mm]{geometry} + +\title{\vspace{-5ex}} +\date{\vspace{-5ex}} + +\begin{document} + +\maketitle + + +\begin{table}[] +\centering +\begin{tabular}{ccclclcl} +\cline{2-7} +\multicolumn{1}{c|}{Oracle} & \multicolumn{3}{c|}{Numbers} & \multicolumn{3}{c|}{Quantum sampling access} & \\ \cline{2-7} +\multicolumn{1}{c|}{\multirow{2}{*}{Implementation}} & \multicolumn{1}{c|}{\multirow{2}{*}{QRAM}} & \multicolumn{2}{c|}{Circuits} & \multicolumn{1}{c|}{KP-trees} & \multicolumn{1}{c|}{Grover-Rudolph} & \multicolumn{1}{c|}{Other} & \\ \cline{3-6} +\multicolumn{1}{c|}{} & \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{Sparse access} & \multicolumn{1}{c|}{Functions} & \multicolumn{2}{c|}{Oracle for numbers} & \multicolumn{1}{c|}{} & \\ \cline{2-7} +\multicolumn{1}{l}{} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} & & \multicolumn{1}{l}{} & & \multicolumn{1}{l}{} & +\end{tabular} +\end{table} + + +\end{document} diff --git a/algpseudocode/typesofdata.tex b/algpseudocode/typesofdata.tex new file mode 100644 index 0000000..532d6cf --- /dev/null +++ b/algpseudocode/typesofdata.tex @@ -0,0 +1,50 @@ +\documentclass{article} +\usepackage[utf8]{inputenc} + +\usepackage{multirow} +\usepackage{multicol} +\usepackage{array} +\usepackage{graphicx} + + +\usepackage[landscape, paperwidth=15cm, paperheight=30cm, margin=0mm]{geometry} + +\title{\vspace{-5ex}} +\date{\vspace{-5ex}} + +\begin{document} + +\maketitle + + +\begin{table}[] +\centering +\scalebox{1.5}{ +\begin{tabular}{ccccc} + & & \multicolumn{2}{c}{Type of algorithm} & \\ + & & \multicolumn{1}{c|}{Classical} & Quantum & \\ \cline{3-4} +\multirow{2}{*}{\parbox[t]{2mm}{\multirow{3}{*}{\rotatebox[origin=c]{90}{Type of data}}}} & \multicolumn{1}{c|}{Classical} & \multicolumn{1}{c|}{\begin{tabular}[c]{@{}c@{}}CC\\ Classical ML\end{tabular}} & \multicolumn{1}{c|}{\begin{tabular}[c]{@{}c@{}}QC\\ Quantum ML\end{tabular}} & \\ \cline{2-4} + & \multicolumn{1}{c|}{Quantum} & \multicolumn{1}{c|}{\begin{tabular}[c]{@{}c@{}}CQ\\ Classical ML on \\ quantum experiments\end{tabular}} & \multicolumn{1}{c|}{\begin{tabular}[c]{@{}c@{}}QQ\\ Quantum-Quantum ML\end{tabular}} & \\ \cline{3-4} + & & & & +\end{tabular} +} +\end{table} + + + + +% \begin{center} +% \begin{tabular}{ m{5em} | m{4cm}| m{4cm} | } +% \hline +% oracle & numbers & quantum sampling access \\ +% \hline +% cell1 dummy text dummy text dummy text & cell5 & cell6 \\ +% \hline +% cell7 & cell8 & cell9 \\ +% \hline +% \end{tabular} +% \end{center} + + +\end{document} +