Checkpoint: Model a Noisy Qubit
This checkpoint synthesises the density-matrix and noise-channel ideas from module 13. Rather than running a circuit, you will track the probability distribution analytically through a two-step noise process — the same computation a density-matrix simulator performs under the hood.
The bit-flip channel, revisited
The bit-flip channel with error probability maps a single-qubit density matrix to
With probability the qubit is untouched; with probability the Pauli- gate fires and flips . This is the quantum version of a binary symmetric channel with crossover probability .
Starting from the pure state :
The qubit is now in a classical mixture: with probability and with probability .
Applying the channel a second time
What happens when the same channel is applied again to the output ?
Because is already diagonal, we only need to track how its diagonal entries transform. With probability each entry stays put; with probability it is swapped with the other diagonal entry (the gate exchanges the two populations). Writing and for the populations after the first channel:
The qubit lands back in either because neither flip fired or because both flips fired — two independent rare events that restore the original state. Conversely
which is the probability that exactly one of the two flips fired.
Sanity-check with purity
The purity measures how mixed the state is. For a diagonal density matrix the purity is .
- After zero channels: (pure state ).
- After one channel with : .
- After two channels: , so .
Purity decreases monotonically: each application of the channel (with ) pushes the state closer to the maximally mixed state , whose purity is .
Generalisation: sequential channels
After applications of the bit-flip channel with parameter , the population of satisfies the recurrence
with . The closed form is
which can be verified by induction. As the population converges to , the maximally mixed state. This exponential relaxation toward equilibrium is a hallmark of Markovian quantum noise.
For , : . For : . Both match the direct calculation above.
Try it
Compute after two sequential bit-flip channels with , starting from . The grader checks the exact numerical answer.
Sign in on the full site to ask questions and join the discussion.