Advertisement
nm9505

The Qubit

Jun 12th, 2023 (edited)
1,608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 7.17 KB | Science | 0 0
  1. \documentclass{article}[pstricks,border=8pt,12pt] \usepackage[utf8]{inputenc}
  2. \usepackage{geometry} [a4paper,lmargin=1.5cm,rmargin=1.5cm,Botton=1.5cm,top=1.75cm] \usepackage{graphicx}
  3. \usepackage{wrapfig}
  4. \usepackage{color}
  5. \usepackage{amsmath}
  6. \usepackage[T1]{fontenc}
  7. \usepackage{amsfonts}
  8. \usepackage{amssymb}
  9. \usepackage{mathrsfs}
  10. \usepackage{physics}
  11. \usepackage{cancel}
  12. \usepackage[all]{xy}
  13. \usepackage{pstricks-add}
  14. \usepackage{pst-all}
  15. \usepackage{pst-solides3d}
  16. \usepackage{fancybox}
  17. \usepackage{tikz}
  18. \usepackage{tikz-3dplot}
  19. \usepackage{gnuplottex}
  20. \tikzset{flippedeventlabel/.append style={align=center}} \usetikzlibrary{matrix.skeleton} \usetikzlibrary[shapes,arrows,positioning,fit,backgrounds,intersections,shadows,calc,shadings]
  21. \usetikzlibrary{positioning}
  22. \usetikzlibrary{decorations.text} \usetikzlibrary{decorations.pathmorphing} \pgfdeclarelayer{background layer}
  23. \pgfdeclarelayer{foreground layer}
  24. \pgfsetlayers{background layer,main,foreground layer}
  25. %\usetikzlibrary{datavisualization.formats.functions} \usepackage{pgf-pie}
  26. \usepackage{color,colortbl}
  27. \usepackage{lscape}
  28. \usepackage{pgfplots}
  29. \pgfplotsset{compat=newest}
  30. \usetikzlibrary{datavisualization} \usetikzlibrary[shapes,arrows.meta,positioning,fit,backgrounds,intersections,shadows,calc,datavisualization.formats.functions] \usetikzlibrary{patterns} \usepackage[colorlinks=true,linkcolor=black,citecolor=black,filecolor=magenta,urlcolor=blue]{hyperref} %Paquete de estilo de referencias
  31. \urlstyle{same}  
  32. \date{\today}
  33. \newcounter{i}
  34. \newcounter{j}
  35. \renewcommand{\CancelColor}{\red}
  36. % Start the document
  37. \begin{document}
  38. \pagecolor{black}
  39. % Definición local de colores
  40. \colorlet{AnguloH}{green!50!black} \colorlet{AnguloV}{magenta} \colorlet{Cesferica}{red} \colorlet{Ccilindrica}{blue}
  41. %\begin{landscape}
  42. \begin{center}
  43. \href{ENLACE WEB}{\textcolor{white}{\underline{\Large{\LaTeX\  Code}}}}
  44. \tdplotsetmaincoords{75}{140} \begin{tikzpicture}[scale=4.8,tdplot_main_coords]
  45. \tikzset{callout/.style={ellipse callout, callout pointer arc=30,
  46. callout absolute pointer={#1}}}
  47.  
  48. \coordinate (O) at (0,0,0); \coordinate (x) at (1,0,0); \coordinate (y) at (0,1,0); \coordinate (z) at (0,0,1); \draw[thick, >=Stealth, ->] (O) -- (x) node[anchor = north]{x}; % x
  49. \draw[thick, >=Stealth, ->] (O) -- (y) node[anchor = north]{y}; % y
  50. \draw[thick, >=Stealth, ->] (O) -- (z) node[anchor = south]{z}; % z
  51. \coordinate (xz) at (.5,0,.48); \coordinate (yz) at (-0.3,1.5,.5);
  52. \coordinate (xy) at (.3,.5,-0.8);
  53. % text on the yz plane
  54. \draw[canvas is yz plane at x = 0, transform shape, ultra thick,draw = magenta, fill =black, opacity = 1] (yz) circle (1cm);
  55. \node[canvas is yz plane at x = 0, rounded corners,inner sep=2ex] at (0,1.8,1.2) {\Huge{\textcolor{white}{The Qubit}}};
  56. \node[callout={(0,1.5,1)}, fill=orange,rotate=85] at (0,1.1,.8) {Math Superposition};
  57. \node[canvas is yz plane at x = 0, rounded corners, left color=gray, right color=black,inner sep=2ex] at (0,2,0.9) {\textcolor{white}{\Large{\textbf{$\mid x\rangle = \alpha \mid 0\rangle +\beta \mid 1\rangle$}}}};
  58.  
  59. \node[canvas is yz plane at x = 0] at (0,1.75,0.7)
  60. {\textcolor{white}{\Large{$\alpha, \  \beta \  \in \  \mathbb{C}$}}};
  61.  
  62. \node[canvas is yz plane at x = 0, rounded corners, left color=black, right color=gray,inner sep=2ex] at (0,1.75,0.5) {\textcolor{white}{\Large{\textbf{$\alpha^2\ +\ \beta^2\ =\ 1$}}}};
  63. \node[callout={(0,2.14,0.6)}, fill=yellow,rotate=85] at (0,2.4,0.35) {Probabilistic Sense};
  64. \draw[<->,orange,ultra thick,canvas is yz plane at x = -1.5, align = center,scale=0.5]  (-0.5,-1) sin (-0.25,-0.5) cos (0,-1) sin (0.25,-1.5) cos (0.5,-1);
  65. %texto sobre el lienzo xz
  66. \draw[canvas is xz plane at y = 0,transform shape, ultra thick,draw = yellow, fill = blue, opacity = 0.8] (xz) circle (1cm);
  67. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,1.3){\textbf{\textcolor{white}{canvas zx}}};
  68. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,1.15){\Large{\textbf{\textcolor{white}{\LaTeX \  For MathTeXt}}}};
  69.  
  70. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,0.9){\Huge{\textbf{\textcolor{yellow}{Quantum Supremacy}}}};
  71. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,0.75){\textbf{\textcolor{white}{\Large{The amazing phenomenon about}}}};
  72. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,0.65){\textbf{\textcolor{white}{\Large{the absolutely small.}}}};
  73. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,0.5){\bf\textcolor{white}{$|0\rangle= \mqty(1 \\ 0)$ \ and \ $|1\rangle= \mqty(0 \\ 1)$\ so, the qubit state:}};
  74. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,0.3){\bf\textcolor{white}{$|x\rangle= \mqty(z_1 \\ z_2)$ \ $\in$ \ $\mathbb{C}^2$}};
  75. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,0.15){\bf\textcolor{white}{We note that ket-bracket is merely notation so,}};
  76. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,0.05){\bf\textcolor{white}{all properties of linear algebra it follows,}};
  77. \node[canvas is zx plane at y = 0, align = center,rotate=-90] at (0.5,0,-0.05){\bf\textcolor{white}{and for two or more qubits, tensor algebra}};
  78.  
  79.  
  80. \draw[draw=blue,ultra thick,canvas is xy plane at z = 0, transform shape,fill=blue, opacity =0.5] (xy) circle (1.05cm);
  81.  
  82. \path[canvas is xz plane at y = 0,decorate,decoration={text along path,text color=yellow,text={|\ | Quantum   Computing  Thorough  Tunnelling  Effect}}]
  83. (0.5,0.5) circle (1.05cm);
  84.  
  85. \setcounter{i}{1}
  86. \pgfmathsetmacro{\r}{0.2}
  87. \foreach \z in{-2.4,-2.2,...,-1}
  88. {
  89. \ifthenelse{\arabic{i}=1}{\tdplotdrawarc[blue,fill=blue,above]{(0,0,\z)}{0.3}{0}{360}{}{} }{ \tdplotdrawarc[blue,ultra thick,fill=blue,above]{(0,0,\z)}{\r+\arabic{i}*0.13}{0}{360}{fill}{} }
  90. \addtocounter{i}{1}
  91. }
  92. \setcounter{j}{1}
  93. \pgfmathsetmacro{\t}{0.15}
  94. \foreach \a in {-2.4,-2.2,...,-1.2}
  95. {
  96.  
  97. \foreach \b in {0,25,...,350}
  98. {
  99. \tdplotsinandcos{\costheta}{\sintheta}{\b}
  100. \ifthenelse{\arabic{j}=1}
  101. {\draw node[white,scale=0.8] at (0.15*\costheta, 0.15*\sintheta,\a){\tiny{$0 \ 1\ 0\ 1$}}}{\draw node[white] at (\arabic{j}*\t*\costheta-0.5,\arabic{j}*\t*\sintheta-0.6,\a){\tiny{$0\ 1 \ \sim \ \mid x \rangle \ \sim \  1\ 0$} }};
  102. }
  103. \addtocounter{j}{1}
  104. }
  105. \foreach \c in {0,5,...,355}
  106. {
  107. \tdplotsinandcos{\costheta}{\sintheta}{\c}
  108. \draw[->,green](0.2*\costheta,0.2*\sintheta,-2.4) -- (\costheta,\sintheta,-0.97);
  109. }
  110. \foreach \c in {0,6,...,360}
  111. {
  112. \tdplotsinandcos{\costheta}{\sintheta}{\c}
  113. \draw[->,green](0.2*\costheta,0.2*\sintheta,-2.4) -- (\costheta,\sintheta,-0.97);
  114. }
  115. \foreach \c in {0,4,...,360}
  116. {
  117. \tdplotsinandcos{\costheta}{\sintheta}{\c}
  118. \draw[->,yellow](0.2*\costheta,0.2*\sintheta,-2.4) -- (\costheta,\sintheta,-0.97);
  119. }
  120. \foreach \d in {0,4.3,...,356.9}
  121. {
  122. \tdplotsinandcos {\costheta}{\sintheta}{\d}
  123. \draw [->,yellow] {(0,0,-2.4) .. controls (0.62*\costheta,0.62*\sintheta,-0.5) .. (1.24*\costheta,1.24*\sintheta,-1)};
  124. }
  125. \foreach \d in {0,4.3,...,356.9}
  126. {
  127. \tdplotsinandcos {\costheta}{\sintheta}{\d}
  128. \draw [->,green] {(0,0,-2.4) .. controls (0.5*\costheta,0.5*\sintheta,-0.5) .. (\costheta,\sintheta,-1)};
  129. }
  130. \end{tikzpicture}
  131. \end{center}
  132. \end{document}
  133.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement