A qubit's pure state |ψ⟩ = α|0⟩ + β|1⟩ maps one-to-one onto a point on the Bloch sphere. Each gate is a fixed 2×2 unitary matrix acting on the complex amplitudes (α, β):
H = 1/√2 [ 1 1 ] X = [ 0 1 ]
[ 1 -1 ] [ 1 0 ]
Y = [ 0 -i ] Z = [ 1 0 ]
[ i 0 ] [ 0 -1 ]
S = [ 1 0 ]
[ 0 i ]
Applying a gate multiplies the amplitude vector (α,β) by the matrix — geometrically each one is a fixed rotation of the Bloch sphere (X/Y/Z: 180° about their own axis, H: 180° about the (x+z) diagonal, S: 90° about z).
For two qubits, H on A then CNOT (control A, target B) turns the separable |00⟩ into the entangled Bell state (|00⟩+|11⟩)/√2. Neither qubit alone has a definite state anymore — both reduced Bloch vectors shrink to the sphere's center — but measuring A instantly forces B to the same outcome, however far apart they are.