⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.
A single qubit's pure state |ψ⟩ = cos(θ/2)|0⟩ + eiφsin(θ/2)|1⟩ corresponds to exactly one point on the Bloch sphere. This simulation represents the state as two literal complex amplitudes and applies every gate — X, Y, Z, Hadamard, S, T, or a fully general axis-angle rotation you choose — as a real 2×2 complex matrix multiplication, then re-derives the Bloch vector and measurement probabilities from the result. A "Measure once" button performs an actual weighted-random projective measurement that collapses the state, while "Run N trials" repeatedly samples the current probabilities to show the outcome frequency converge toward P(|0⟩) = cos²(θ/2) and P(|1⟩) = sin²(θ/2).