Site Tools


meta:scratch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
meta:scratch [August 13, 2026 at 18:50] Ivan Janevskimeta:scratch [August 13, 2026 at 18:54] (current) Ivan Janevski
Line 1: Line 1:
-\documentclass[tikz,border=5pt]{standalone+\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=roundline join=round, >=Triangle] 
-    scale=2.6+  \clip(-2.19,-2.49rectangle (2.66,2.58); 
-    x={(-0.707cm,-0.707cm)}, +  \draw [shift={(0,0)}, lightgray, fill, fill opacity=0.1] (0,0-- (56.7:0.4arc (56.7:90.:0.4) -- cycle; 
-    y={(1cm,0cm)}, +  \draw [shift={(0,0)}, lightgray, fill, fill opacity=0.1] (0,0-- (-135.7:0.4arc (-135.7:-33.2:0.4) -- cycle; 
-    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 (0.01,0.9node[anchor=north west] {$\theta$}
- +  \draw (-1.01,-0.72node[anchor=north west] {$\mathbf {\hat{x}}$}; 
-    % Sphere outline +  \draw (2.07,0.3node[anchor=north west] {$\mathbf {\hat{y}}$}
-    \draw[thick] (0,0) circle (1); +  \draw (-0.5,2.6node[anchor=north west] {$\mathbf {\hat{z}=|0\rangle}$}
- +  \draw (-0.4,-2) node[anchor=north west] {$-\mathbf {\hat{z}=|1\rangle}$}; 
-    % Equator +  \draw (0.4,1.65node[anchor=north west] {$|\psi\rangle$}; 
-    \draw[dashed,smooth,samples=100,domain=180:360,variable=\t] +  \scriptsize 
-        plot ({cos(\t)},{sin(\t)},{0}); +  \draw [fill] (0,0) circle (1.5pt); 
-    \draw[smooth,samples=100,domain=0:180,variable=\t] +  \draw [fill] (0.7,1.1circle (0.5pt);
-        plot ({cos(\t)},{sin(\t)},{0}); +
- +
-    % Axes +
-    \draw[->] (0,0,0) -- (1.25,0,0node[below left] {$x$}+
-    \draw[->] (0,0,0) -- (0,1.25,0) node[right] {$y$}+
-    \draw[->] (0,0,0) -- (0,0,1.25node[above] {$z,\ \lvert 0\rangle$}+
-    \draw[->] (0,0,0) -- (0,0,-1.25node[below] {$\lvert 1\rangle$}+
- +
-    % State vector +
-    \draw[very thick,->] (0,0,0) -- (\px,\py,\pz); +
-    \fill (\px,\py,\pz) circle (0.8pt); +
-    \node at (\px,\py,\pz+0.12) {$\lvert\psi\rangle$}; +
- +
-    % Projection onto xy-plane +
-    \draw[dashed] (\px,\py,\pz-- (\px,\py,0)+
-    \draw[dashed] (0,0,0-- (\px,\py,0)+
- +
-    % Phi arc +
-    \draw[->,smooth,samples=100,domain=0:\ph,variable=\t] +
-        plot ({0.28*cos(\t)},{0.28*sin(\t)},{0})+
-    \node at ({0.36*cos(\ph/2)},{0.36*sin(\ph/2)},{0}) {$\phi$}; +
- +
-    % Theta arc +
-    \draw[->,smooth,samples=100,domain=0:\th,variable=\t] +
-        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