Fidelity of Noisy States
After every noisy channel transforms a quantum state, there is a natural question: how close is the resulting degraded state to the ideal, noiseless state we wanted? The answer is given by the fidelity.
Fidelity between a pure state and a density matrix
When the target is a specific pure state and the actual (possibly noisy) state is described by a density matrix , the fidelity is defined as
This is a number between 0 and 1. When (the ideal pure state with no noise) we get . When is orthogonal to we get .
Fidelity after a phase-flip channel
The phase-flip channel with error probability transforms a density matrix as
Starting from the pure state , whose density matrix is
the channel produces
The diagonal entries (populations) are untouched; only the off-diagonal coherences are damped by the factor . At we recover the pure state; at the off-diagonal entries vanish and , the maximally mixed state.
Computing
We evaluate . Writing and :
\begin{bmatrix} 1 & 1 \end{bmatrix} \begin{pmatrix} 1 & 1-2p \\ 1-2p & 1 \end{pmatrix} \begin{bmatrix} 1 \\ 1 \end{bmatrix} = \frac{1}{4}\bigl[\,1 + (1-2p) + (1-2p) + 1\,\bigr] = 1 - p.$$ The result is elegant: **the fidelity of $|{+}\rangle$ after a phase-flip channel with error probability $p$ equals $1 - p$** (verified analytically from the Kraus-operator representation in Nielsen and Chuang, §9.2). For $p = 0.3$ this gives $F = 0.7$. ### Intuition Every time the $Z$ error fires (with probability $p$), the qubit ends up in the orthogonal state $|{-}\rangle\langle{-}|$, which has zero overlap with $|{+}\rangle$. Each such event erases a fraction $p$ of the fidelity. Only the $(1-p)$ fraction of trials in which no error occurs contributes to the fidelity, giving $F = 1 - p$ exactly. ## Fidelity as a quality metric Hardware engineers use fidelity to benchmark quantum gates and state-preparation routines. A single-qubit gate fidelity above 0.999 is considered high quality on modern superconducting processors. The complementary quantity, **infidelity** $1 - F$, quantifies the total probability weight lost to noise, and scales with the error rate $p$ of the dominant channel. ## Try it A qubit is prepared in $|{+}\rangle$ and then subjected to a phase-flip channel with $p = 0.3$. Compute and return the fidelity $F = \langle{+}|\rho_p|{+}\rangle$ of the resulting noisy state to the ideal target $|{+}\rangle$. <RunnableExample />Sign in on the full site to ask questions and join the discussion.