/ quantum course Back to lab
PATHWAY PROGRESS0/27 passed

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.

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

q0|0⟩q1|0⟩q2|0⟩HXX

Initialize the register

Every qubit starts in zero.

BasisAmplitudeProbability
|000⟩1.000100.0%

TEST YOURSELF

Lesson quiz

Get all 2 questions right to pass. Retry as often as you like.

0/2 answered

1. What is the purity of the maximally mixed qubit I/2?
2. Does the lab's ideal state-vector run model hardware noise?

Sign in with email or a wallet to check your answers and keep your lesson progress in sync.

Your account

Sign in to pick up your progress on any device.

or

Wallet sign-in uses a free signature (EIP-4361) on whatever EVM network your wallet is on. No gas, no transaction.