|
| 1 | +\documentclass{article} |
| 2 | +\usepackage{quantikz} |
| 3 | +\begin{document} |
| 4 | +\begin{center} |
| 5 | +\begin{quantikz} |
| 6 | + \lstick{$\ket{0}$} & \gate{H} & \ctrl{1} & \qw & \rstick[2]{$\ket{\Phi^+} = \frac{1}{\sqrt{2}}(\ket{00} + \ket{11})$} \\ |
| 7 | + \lstick{$\ket{0}$} & \qw & \targ{} & \qw & |
| 8 | +\end{quantikz} |
| 9 | +\end{center} |
| 10 | + |
| 11 | + |
| 12 | +\begin{tikzpicture}[>=latex] |
| 13 | + % Draw axes |
| 14 | + \draw[->] (-3.5,0) -- (3.5,0) node[right] {$x$}; |
| 15 | + \draw[->] (0,0) -- (0,5) node[above] {$E$}; |
| 16 | + % Draw potential curve V(x) = 1/2 x^2 (parabola) |
| 17 | + \draw[thick] (0,0) parabola (3,4.5); |
| 18 | + \draw[thick] (0,0) parabola (-3,4.5); |
| 19 | + % Draw quantized energy levels E_n = n+0.5 |
| 20 | + \draw[dashed] (-3,0.5) -- (3,0.5) node[right] {$n=0$}; |
| 21 | + \draw[dashed] (-3,1.5) -- (3,1.5) node[right] {$n=1$}; |
| 22 | + \draw[dashed] (-3,2.5) -- (3,2.5) node[right] {$n=2$}; |
| 23 | + \draw[dashed] (-3,3.5) -- (3,3.5) node[right] {$n=3$}; |
| 24 | + \draw[dashed] (-3,4.5) -- (3,4.5) node[right] {$n=4$}; |
| 25 | +\end{tikzpicture} |
| 26 | + |
| 27 | + |
| 28 | +\begin{tikzpicture}[>=latex, line cap=round, line join=round] |
| 29 | + % Axes |
| 30 | + \draw[->] (-3.7,0) -- (3.7,0) node[right] {$x$}; |
| 31 | + \draw[->] (0,0) -- (0,5.2) node[above] {$E$}; |
| 32 | + |
| 33 | + % Harmonic oscillator potential V(x) = (1/2) x^2 (in units where ħω=1) |
| 34 | + \draw[thick] (0,0) parabola (3,4.5); |
| 35 | + \draw[thick] (0,0) parabola (-3,4.5); |
| 36 | + \node[anchor=west] at (0.2,4.9) {$V(x)=\tfrac12 m\omega^2 x^2$}; |
| 37 | + |
| 38 | + % Energy levels En = n + 1/2 (units ħω) |
| 39 | + \foreach \n/\E in {0/0.5,1/1.5,2/2.5,3/3.5,4/4.5}{ |
| 40 | + \draw[dashed] (-3,\E) -- (3,\E); |
| 41 | + \node[anchor=west] at (3.1,\E) {$n=\n$}; |
| 42 | + } |
| 43 | +% --- Two particles in the lowest level n=0 --- |
| 44 | + % Place two circles on the n=0 line |
| 45 | + \filldraw[fill=white, thick] (-0.6,0.5) circle (0.12); |
| 46 | + \filldraw[fill=white, thick] ( 0.6,0.5) circle (0.12); |
| 47 | + |
| 48 | + % Spin arrows: up on left, down on right |
| 49 | + \draw[->, thick] (-0.6,0.53) -- (-0.6,0.85); % spin up |
| 50 | + \draw[->, thick] ( 0.6,0.85) -- ( 0.6,0.53); % spin down |
| 51 | + |
| 52 | + % Optional labels |
| 53 | + \node[anchor=south] at (-0.6,0.88) {$\\uparrow$}; |
| 54 | + \node[anchor=north] at ( 0.6,0.50) {$\\downarrow$}; |
| 55 | + |
| 56 | + % Highlight the n=0 level a bit |
| 57 | + \draw[very thick] (-3,0.5) -- (3,0.5); |
| 58 | + |
| 59 | +\end{tikzpicture} |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +\begin{tikzpicture}[>=latex, line cap=round, line join=round, scale=1.0] |
| 64 | + |
| 65 | + % ---- Axes (optional) ---- |
| 66 | + %\draw[->] (-7,0) -- (7,0) node[right] {$x$}; |
| 67 | + %\draw[->] (0,0) -- (0,6) node[above] {$E$}; |
| 68 | + |
| 69 | + % Parameters |
| 70 | + \def\xL{-3.5} % left well center |
| 71 | + \def\xR{ 3.5} % right well center |
| 72 | + \def\a{1.2} % horizontal scale of each parabola |
| 73 | + \def\Emax{4.5} % top energy level drawn |
| 74 | + \def\yBridge{5.2} % height of smooth connecting curve on top |
| 75 | + \def\R{0.13} % particle radius |
| 76 | + |
| 77 | + % ---- Left harmonic well: V_L(x) = 0.5 * ((x-xL)/a)^2 ---- |
| 78 | + \draw[thick, domain=\xL-3:\xL+3, samples=120] |
| 79 | + plot (\x, {0.5*((\x-\xL)/\a)^2}); |
| 80 | + |
| 81 | + % ---- Right harmonic well: V_R(x) = 0.5 * ((x-xR)/a)^2 ---- |
| 82 | + \draw[thick, domain=\xR-3:\xR+3, samples=120] |
| 83 | + plot (\x, {0.5*((\x-\xR)/\a)^2}); |
| 84 | + |
| 85 | + % ---- Smooth curve joining the two wells on top ---- |
| 86 | + % A smooth arch/bridge drawn as a Bézier curve: |
| 87 | + \draw[thick] |
| 88 | + (\xL+2.6, {0.5*((2.6)/\a)^2}) |
| 89 | + .. controls (-1.5, \yBridge) and (1.5, \yBridge) .. |
| 90 | + (\xR-2.6, {0.5*((-2.6)/\a)^2}); |
| 91 | + |
| 92 | + % ---- Energy levels in each well ---- |
| 93 | + % (units where ħω=1): E_n = n + 1/2 for n=0..4 |
| 94 | + \foreach \n/\E in {0/0.5,1/1.5,2/2.5,3/3.5,4/4.5}{ |
| 95 | + % Left levels (short segments inside left well) |
| 96 | + \draw[dashed] (\xL-2.2,\E) -- (\xL+2.2,\E); |
| 97 | + % Right levels (short segments inside right well) |
| 98 | + \draw[dashed] (\xR-2.2,\E) -- (\xR+2.2,\E); |
| 99 | + } |
| 100 | + |
| 101 | + % Optionally emphasize the n=0 lines |
| 102 | + \draw[very thick] (\xL-2.2,0.5) -- (\xL+2.2,0.5); |
| 103 | + \draw[very thick] (\xR-2.2,0.5) -- (\xR+2.2,0.5); |
| 104 | + |
| 105 | + % ---- One particle (circle) in lowest level in each well ---- |
| 106 | + \filldraw[fill=white, thick] (\xL,0.5) circle (\R); |
| 107 | + \filldraw[fill=white, thick] (\xR,0.5) circle (\R); |
| 108 | + |
| 109 | + % Optional labels |
| 110 | + %\node[anchor=south] at (\xL,0.5) { }; |
| 111 | + %\node[anchor=south] at (\xR,0.5) { }; |
| 112 | + |
| 113 | +\end{tikzpicture} |
| 114 | + |
| 115 | +\end{document} |
0 commit comments