06 / Real-world computing · LESSON 14 / 27 · 18 MIN
Density matrices, noise and fidelity.
Keep ideal state vectors apart from the behaviour of noisy hardware.
ρ = Σⱼ pⱼ |ψⱼ⟩⟨ψⱼ| Tr(ρ) = 1
Representing uncertainty
A density matrix covers pure states and classical mixtures alike. A pure state has Tr(ρ²)=1, whereas the maximally mixed one-qubit state I/2 has purity 1/2. A coherent |+⟩ is not equivalent to a 50/50 mixture of |0⟩ and |1⟩.
Different errors, different channels
Dephasing wipes out the off-diagonal coherence, amplitude damping tends to relax |1⟩ toward |0⟩, and readout error corrupts the bits that get reported. The circuit timeline in this lab is ideal state-vector physics and does not simulate these hardware channels.
Judge without overclaiming
For a pure target |ψ⟩ the fidelity is ⟨ψ|ρ|ψ⟩. Agreement in the ideal case does not certify a physical device; real experiments call for shot statistics, calibration, noise models and reported uncertainty.
LIVE EXPERIMENT / 1 OF 5
Initialize the register
Every qubit starts in zero.
TEST YOURSELF
Lesson quiz
Get all 2 questions right to pass. Retry as often as you like.
0/2 answered
Sign in with email or a wallet to check your answers and keep your lesson progress in sync.