\ket{-}

\ket{+}

\ket{0}

\ket{1}

A = Intersect(xAxis, zAxis)
a = Sphere(A, 1)
theta_{qubit} = 1.3788101090755203 rad (slider from 0° to 180°, step 0.017453292519943295)
alpha_{qubit}: cos(theta_{qubit} / 2)
phi_{qubit} = 0.5235987755982988 rad (slider from 0° to 360°, step 0.017453292519943295)
beta_{qubit_real}: (sin(theta_{qubit}) * cos(phi_{qubit}))
beta_{qubit_imaginary}: (sin(theta_{qubit}) * sin(phi_{qubit}))
phi_{qubit_tan}: atan2(beta_{qubit_imaginary}, beta_{qubit_real})
phi_{1} = If(phi_{qubit_tan} < 0, phi_{qubit_tan} + (2 * pi), phi_{qubit_tan})
qubit_x: (sin(theta_{qubit}) * cos(phi_{qubit}))
qubit_y: (sin(theta_{qubit}) * sin(phi_{qubit}))
qubit_z: cos(theta_{qubit})
Qubit = Vector((0, 0, 0), (qubit_x, qubit_y, qubit_z))
Einheitskreis_{x} = CurveCartesian(0, cos(v), sin(v), v, (-pi), pi)
Einheitskreis_{y} = CurveCartesian(cos(u), 0, sin(u), u, (-pi), pi)
Einheitskreis_{xy} = CurveCartesian(cos(u), sin(u), 0, u, (-pi), pi)
phi_{grad}: (phi_{1} / pi * 180)
phi_{pi}: phi_{1} / pi
Qubit_{Marker} = Vector((0, 0, 0), (0, 0, -1))
text1: "\ket{\Psi}=" + (LaTeX[alpha_{qubit}]) + "\cdot\ket{0}+(" + (LaTeX[beta_{qubit_real}]) + " + (" + (LaTeX[beta_{qubit_imaginary}]) + "j))\cdot\ket{1}"