test1
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| test1 [August 24, 2026 at 14:56] – Ivan Janevski | test1 [August 24, 2026 at 14:58] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| \begin{document} | \begin{document} | ||
| - | \begin{blochsphere}[radius=1.5cm, | + | \begin{blochsphere}[ |
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | ] | ||
| \drawBallGrid[style={opacity=0.25}]{30}{30} | \drawBallGrid[style={opacity=0.25}]{30}{30} | ||
| Line 15: | Line 20: | ||
| \node[right] at (xaxis) {$x$}; | \node[right] at (xaxis) {$x$}; | ||
| \node[left] at (yaxis) {$y$}; | \node[left] at (yaxis) {$y$}; | ||
| - | \node[above] at (zaxis) {$z$}; | + | |
| - | % State: theta = 50 deg, phi = 40 deg | ||
| \drawStatePolar[statecolor=red, | \drawStatePolar[statecolor=red, | ||
| \node[right] at (state) {$|\psi\rangle$}; | \node[right] at (state) {$|\psi\rangle$}; | ||
| Line 23: | Line 27: | ||
| \labelLatLon{north}{90}{0} | \labelLatLon{north}{90}{0} | ||
| \labelLatLon{south}{-90}{0} | \labelLatLon{south}{-90}{0} | ||
| + | |||
| \node[above] at (north) {$|0\rangle$}; | \node[above] at (north) {$|0\rangle$}; | ||
| \node[below] at (south) {$|1\rangle$}; | \node[below] at (south) {$|1\rangle$}; | ||
| - | |||
| - | % theta: polar angle from +z toward the state | ||
| - | \setLongitudinalDrawingPlane{40} | ||
| - | \draw[-> | ||
| - | \node at (65:0.49) {$\theta$}; | ||
| - | |||
| - | % phi: azimuth in the equatorial plane | ||
| - | \setLatitudinalDrawingPlane{0} | ||
| - | \draw[-> | ||
| - | \node at (20:0.62) {$\phi$}; | ||
| \end{blochsphere} | \end{blochsphere} | ||
| \end{document} | \end{document} | ||
test1.1787583381.md.gz · Last modified: by Ivan Janevski
