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{tikz-3dplot}+\usepackage{mathtools}
 \usetikzlibrary{arrows.meta} \usetikzlibrary{arrows.meta}
 \begin{document} \begin{document}
-\tdplotsetmaincoords{70}{110} +\begin{tikzpicture}[line cap=roundline join=round, >=Triangle
-\begin{tikzpicture}[tdplot_main_coords,scale=2.5,>=Stealth+  \clip(-2.19,-2.49) rectangle (2.66,2.58); 
-    % Sphere +  \draw [shift={(0,0)}, lightgray, fill, fill opacity=0.1] (0,0) -- (56.7:0.4arc (56.7:90.:0.4) -- cycle
-    \draw[tdplot_screen_coords] (0,0) circle (1); +  \draw [shift={(0,0)}, lightgray, fill, fill opacity=0.1] (0,0) -- (-135.7:0.4) arc (-135.7:-33.2:0.4) -- cycle; 
- +  \draw(0,0) circle (2cm); 
-    % Equator +  \draw [rotate around={0.:(0.,0.)},dash pattern=on 3pt off 3pt] (0,0) ellipse (2cm and 0.9cm); 
-    \tdplotdrawarc[dashed]{(0,0,0)}{1}{0}{180}{}{} +  \draw (0,0)-- (0.70,1.07); 
-    \tdplotdrawarc{(0,0,0)}{1}{180}{360}{}{} +  \draw [->] (0,0) -- (0,2); 
- +  \draw [->] (0,0) -- (-0.81,-0.79); 
-    % Axes +  \draw [->] (0,0) -- (2,0); 
-    \draw[->] (0,0,0) -- (1.3,0,0node[anchor=north east] {$x$}+  \draw [dotted] (0.7,1)-- (0.7,-0.46); 
-    \draw[->] (0,0,0) -- (0,1.3,0) node[anchor=north west] {$y$}+  \draw [dotted] (0,0)-- (0.7,-0.46); 
-    \draw[->] (0,0,0) -- (0,0,1.3node[above] {$\lvert0\rangle$}+  \draw (-0.08,-0.3) node[anchor=north west] {$\varphi$}; 
-    \draw[->] (0,0,0) -- (0,0,-1.3) node[below] {$\lvert1\rangle$}; +  \draw (0.01,0.9) node[anchor=north west] {$\theta$}; 
- +  \draw (-1.01,-0.72) node[anchor=north west] {$\mathbf {\hat{x}}$}; 
-    % State +  \draw (2.07,0.3) node[anchor=north west] {$\mathbf {\hat{y}}$}; 
-    \def\theta{55+  \draw (-0.5,2.6node[anchor=north west{$\mathbf {\hat{z}=|0\rangle}$}
-    \def\phi{40} +  \draw (-0.4,-2node[anchor=north west] {$-\mathbf {\hat{z}=|1\rangle}$}; 
-    \tdplotsetcoord{P}{1}{\theta}{\phi+  \draw (0.4,1.65) node[anchor=north west{$|\psi\rangle$}; 
-    \draw[very thick,->(0,0,0) -- (P); +  \scriptsize 
-    \node[above rightat (P) {$\lvert\psi\rangle$}; +  \draw [fill] (0,0) circle (1.5pt); 
-    \fill (P) circle (0.8pt)+  \draw [fill] (0.7,1.1) circle (0.5pt);
- +
-    % Projection +
-    \draw[dashed(P) -- (Pxy)+
-    \draw[dashed] (0,0,0) -- (Pxy)+
- +
-    % Theta +
-    \tdplotsetthetaplanecoords{\phi+
-    \tdplotdrawarc[tdplot_rotated_coords,->]{(0,0,0)}{0.32}{0}{\theta} +
-        {anchor=south west}{$\theta$}; +
- +
-    % Phi +
-    \tdplotdrawarc[->]{(0,0,0)}{0.46}{0}{\phi} +
-        {anchor=north}{$\phi$};+
 \end{tikzpicture} \end{tikzpicture}
 \end{document} \end{document}
 +
meta/scratch.1786647040.md.gz · Last modified: by Ivan Janevski