QuantumCore
← QuantumCore

Bloch sphere

Every pure qubit state can be written, up to a global phase, as ∣ψ⟩=cos⁡θ2∣0⟩+eiφsin⁡θ2∣1⟩\lvert\psi\rangle=\cos\tfrac\theta2\lvert0\rangle+e^{i\varphi}\sin\tfrac\theta2\lvert1\rangle with Bloch vector r⃗=(sin⁡θcos⁡φ, sin⁡θsin⁡φ, cos⁡θ)\vec r=(\sin\theta\cos\varphi,\ \sin\theta\sin\varphi,\ \cos\theta). Drag the sliders or the sphere, or apply gates to watch them rotate the state.

3D view unavailable (WebGL is not supported in this browser). The Bloch coordinates of the state are listed in the readout.
0.000 (0)
0.000 (0)
∣ψ⟩=cos⁡0.0002 ∣0⟩+ei 0.000sin⁡0.0002 ∣1⟩=1.000 ∣0⟩\lvert\psi\rangle = \cos\tfrac{0.000}{2}\,\lvert 0\rangle + e^{i\,0.000}\sin\tfrac{0.000}{2}\,\lvert 1\rangle = 1.000\,\lvert 0\rangle

Bloch vector r = (0.000, 0.000, 1.000), |r| = 1.000; P(0) = 1.000, P(1) = 0.000