meta:scratch
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| meta:scratch [August 13, 2026 at 18:50] – Ivan Janevski | meta:scratch [August 13, 2026 at 18:54] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | \documentclass[tikz, | + | \documentclass{standalone} |
| - | \usepackage{amsmath} | + | |
| \usepackage{tikz} | \usepackage{tikz} | ||
| + | \usepackage{mathtools} | ||
| \usetikzlibrary{arrows.meta} | \usetikzlibrary{arrows.meta} | ||
| \begin{document} | \begin{document} | ||
| - | \begin{tikzpicture}[ | + | \begin{tikzpicture}[line cap=round, line join=round, > |
| - | scale=2.6, | + | \clip(-2.19,-2.49) rectangle |
| - | x={(-0.707cm,-0.707cm)}, | + | \draw [shift={(0,0)}, lightgray, fill, fill opacity=0.1] (0,0) -- (56.7:0.4) arc (56.7: |
| - | y={(1cm,0cm)}, | + | \draw [shift={(0,0)}, lightgray, fill, fill opacity=0.1] |
| - | z={(0cm,1cm)}, | + | \draw(0,0) circle (2cm); |
| - | >=Stealth | + | \draw [rotate around={0.:(0.,0.)},dash pattern=on 3pt off 3pt] (0,0) ellipse (2cm and 0.9cm); |
| - | ] | + | \draw (0,0)-- (0.70,1.07); |
| - | % Parameters | + | \draw [->] (0,0) -- (0,2); |
| - | \def\th{55} | + | \draw [->] (0,0) -- (-0.81,-0.79); |
| - | \def\ph{35} | + | \draw [->] (0,0) -- (2,0); |
| - | \pgfmathsetmacro{\px}{sin(\th)*cos(\ph)} | + | \draw [dotted] (0.7,1)-- (0.7,-0.46); |
| - | \pgfmathsetmacro{\py}{sin(\th)*sin(\ph)} | + | \draw [dotted] (0,0)-- (0.7,-0.46); |
| - | \pgfmathsetmacro{\pz}{cos(\th)} | + | \draw (-0.08,-0.3) node[anchor=north west] {$\varphi$}; |
| - | \pgfmathsetmacro{\thmid}{0.55*\th} | + | |
| - | + | \draw (-1.01,-0.72) node[anchor=north west] {$\mathbf {\hat{x}}$}; | |
| - | % Sphere outline | + | \draw (2.07,0.3) node[anchor=north west] {$\mathbf {\hat{y}}$}; |
| - | | + | \draw (-0.5,2.6) node[anchor=north west] {$\mathbf {\hat{z}=|0\rangle}$}; |
| - | + | \draw (-0.4,-2) node[anchor=north west] {$-\mathbf | |
| - | % Equator | + | \draw (0.4,1.65) node[anchor=north west] {$|\psi\rangle$}; |
| - | | + | |
| - | plot ({cos(\t)},{sin(\t)},{0}); | + | \draw [fill] (0,0) circle |
| - | \draw[smooth,samples=100, | + | \draw [fill] |
| - | plot ({cos(\t)},{sin(\t)},{0}); | + | |
| - | + | ||
| - | % Axes | + | |
| - | | + | |
| - | \draw[-> | + | |
| - | \draw[-> | + | |
| - | \draw[->] (0,0,0) -- (0,0,-1.25) node[below] {$\lvert 1\rangle$}; | + | |
| - | + | ||
| - | % State vector | + | |
| - | | + | |
| - | \fill (\px,\py,\pz) circle | + | |
| - | \node at (\px,\py,\pz+0.12) {$\lvert\psi\rangle$}; | + | |
| - | + | ||
| - | % Projection onto xy-plane | + | |
| - | | + | |
| - | \draw[dashed] | + | |
| - | + | ||
| - | % Phi arc | + | |
| - | | + | |
| - | plot ({0.28*cos(\t)},{0.28*sin(\t)},{0}); | + | |
| - | \node at ({0.36*cos(\ph/ | + | |
| - | + | ||
| - | % Theta arc | + | |
| - | | + | |
| - | plot ({0.38*sin(\t)*cos(\ph)},{0.38*sin(\t)*sin(\ph)},{0.38*cos(\t)}); | + | |
| - | \node at ({0.48*sin(\thmid)*cos(\ph)},{0.48*sin(\thmid)*sin(\ph)},{0.48*cos(\thmid)}) {$\theta$}; | + | |
| \end{tikzpicture} | \end{tikzpicture} | ||
| \end{document} | \end{document} | ||
| + | |||
meta/scratch.1786647024.md.gz · Last modified: by Ivan Janevski
