A point in noise
QPSK sends one of four points per symbol: I and Q are each +1 or −1 volt. Each point carries two bits: the first gives the sign of I, the second the sign of Q. To send 00, it sends s = (1, 1).
On the way, random noise adds to I and to Q: r = s + n. This time n = (−0.16, 0.24) V, so the receiver gets r = (0.84, 1.24). The point has moved off its ideal spot.
What the noise is
Collect 400 noise values and stack them by size: most are small, a few are big, and they pile into a bell curve, the Gaussian. Its width is the standard deviation σ = 0.3 V. About 68 % lie within ±σ, 95 % within ±2σ.
This model has a name: additive white Gaussian noise, AWGN. Additive: it adds to the signal. White: equal power at every frequency, so each value is independent of the last. Gaussian: the bell curve. I and Q get separate values.
Clouds and SNR
Now send 200 random symbols. Each lands near its ideal point, pushed by its own noise. Together they form four round clouds. The spread of each cloud is σ = 0.3 V, the same in every direction.
Signal-to-noise ratio (SNR) compares powers. Each point has power 1² + 1² = 2 V². The noise has power 2σ² = 0.18 V². SNR = 2 / 0.18 = 11.1. In decibels: 10·log₁₀(11.1) = 10.5 dB.
Deciding
The receiver does not know n. It measures the distance from r to each of the four points and picks the nearest: 0.29 V to 00, 1.86 to 10, 2.90 to 11, 2.25 to 01. Nearest is 00, so it outputs bits 00.
Everything nearest to 00 fills a quadrant, bounded halfway between neighbours: I = 0 and Q = 0. So the rule is two signs. In Gaussian noise the nearest point is also the most likely one sent. Here 0 of 200 cross.
Double σ to 0.6 V: SNR falls to 2.78 (4.4 dB). The clouds spread and 19 of 200 points cross a line, close to the 9.3 % theory predicts. Symbol 6 sent 10 is read as 11: only one bit wrong.
In code
With numpy: rng.normal(0, 0.3, ...) draws the Gaussian noise, r = s + n adds it, and np.where keeps the sign of each axis, which is the nearest-point decision. Count the rows where d differs from s to get the errors.
The working
# step 1/10 · send QPSK (4-QAM), from the QAM lesson point bits I Q A 00 +1 V +1 V B 10 −1 V +1 V C 11 −1 V −1 V D 01 +1 V −1 V Gray labels: neighbours differ in one bit send 00 -> s = (1, 1)
The amplitude 1 V and the noise σ = 0.3 V and 0.6 V are chosen example values. The 200 symbols are one draw from a seeded random generator; the error rates quoted beside them are exact averages from the Gaussian Q-function. Every number in the figure is computed from this model. Nearest-point decisions are the best possible (fewest symbol errors) when every point is equally likely and the noise is Gaussian with the same σ on I and Q. With unequal odds or other noise, the best rule shifts.