Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Quantum state fidelity

Fidelity measures similarity between quantum states; this encyclopedia uses the squared convention F(rho,sigma)=[Tr sqrt(sqrt(rho) sigma sqrt(rho))] squared.

Also called Uhlmann fidelity

Edition released Coverage: Overview · Technical · Research
On this page

Definition and convention

This record uses squared fidelity F(rho,sigma)=[Tr sqrt(sqrt(rho) sigma sqrt(rho))]^2. It lies between zero and one and equals one exactly when the states are equal. Some sources call its square root fidelity. Every numerical comparison must state the convention; otherwise square-root differences can be mistaken for scientific disagreement.

For a pure target |psi>, the formula simplifies to F(|psi>,rho)=<psi|rho|psi>. For two pure states it is |<psi|phi>|^2. Fidelity expresses state similarity, not a universal probability that every future computation succeeds.

Fully solved examples

Let rho=diag(0.9,0.1) and target |0>. The fidelity is 0.9. The state's purity is 0.9^2+0.1^2=0.82, demonstrating that fidelity and purity are different quantities. A pure but wrong state |1> has purity one and fidelity zero with |0>.

For commuting rho=diag(0.8,0.2) and sigma=diag(0.5,0.5), F=(sqrt(0.4)+sqrt(0.1))^2=0.9. Their trace distance is 0.3. The inequalities 1-sqrt(F)<=D_tr<=sqrt(1-F) give approximately 0.051317<=0.3<=0.316228, consistent with the exact result.

For |0> and |+>, F=1/2 and D_tr=1/sqrt(2), saturating the upper bound. Equal fidelity values for different mixed-state pairs need not produce equal trace distances or equal performance in every task.

Physical processing

Applying the same channel to both states cannot decrease fidelity: it can erase their differences. A reset channel maps both to |0> and makes their output fidelity one. This does not mean the reset preserves their information. The direction of monotonicity is opposite to that of a distinguishability distance because fidelity measures similarity.

Limits in experimental reporting

A reported fidelity needs a target, state or process definition, estimator, uncertainty, and assumptions about preparation and measurement. State fidelity, average gate fidelity, entanglement fidelity, and process fidelity are related but distinct. Quoting one number without its task can exaggerate device capability.

Fidelity is nonlinear in the density matrix. Finite-data estimators can be biased, and numerical physicality constraints affect inferred values. A many-qubit fidelity claim may rely on restricted measurement families or model assumptions; it should not be treated as full tomography unless that is what was performed.

A closed qubit formula from two eigenvalues

Use the squared fidelity convention F(ρ,σ) = [Tr√(√ρσ√ρ)]². For qubits, let A = √ρσ√ρ have nonnegative eigenvalues μ₁ and μ₂. Then (√μ₁+√μ₂)² = μ₁+μ₂+2√(μ₁μ₂). The sum is Tr(ρσ), and the product is detρ detσ. Thus F = Tr(ρσ)+2√(detρ detσ), including rank-deficient states by continuity.

For Bloch vectors r and s, Tr(ρσ) = (1+r·s)/2 and detρ = (1−|r|²)/4. Substitution yields F = [1+r·s+√((1−|r|²)(1−|s|²))]/2. The square-root term disappears when either state is pure, recovering the ordinary overlap expectation. For two mixed states, omitting it generally underestimates fidelity.

Choose r = (0.6,0,0.2) and s = (−0.2,0.4,0). Their dot product is −0.12 and their squared lengths are 0.4 and 0.2. The fidelity is therefore 0.44+√0.48/2, approximately 0.786410. Their trace distance is √21/10, approximately 0.458258. The inequalities 1−√F ≤ D ≤ √(1−F) give approximately 0.113202 ≤ D ≤ 0.462158 and are consistent with the directly calculated distance.

Purification overlap requires optimization

Fidelity can be characterized as the largest squared overlap of purifications of the two states, with freedom to choose an appropriate unitary on a purifying system. The optimization is essential. A single arbitrary pair of purifications can have an overlap far below the fidelity of the reduced states.

For example, take ρ = σ = I₂/2. Their fidelity is one. Choose Φ+ as one purification and Φ− as another. These purifications are orthogonal, so their overlap is zero. Applying Z on the purifying qubit of the second state turns Φ− into Φ+, and their overlap becomes one. The reduced system state has not changed during this adjustment.

This example separates information in the system from a particular representation of its environment. Purifications may differ by inaccessible environment labels or phases while representing identical local density operators. Fidelity compares the local states after optimizing that representational freedom. It does not assert that the actual full states of two physical environments are indistinguishable.

Product structure gives multiplicativity, with an independence assumption

For product states, fidelity multiplies: F(ρ₁⊗ρ₂,σ₁⊗σ₂) = F(ρ₁,σ₁)F(ρ₂,σ₂). The positive square root of a tensor product is the tensor product of the positive square roots, and the trace of a tensor product is the product of traces. Applying these identities inside the definition proves the relation directly.

Thus one hundred independent pairs of states, each with fidelity 0.99, have joint fidelity 0.99¹⁰⁰, approximately 0.366032. A high per-system fidelity need not remain high for the entire large register. This calculation requires actual product structure on both sides. It cannot be used when errors or state preparations are correlated merely because a reported marginal fidelity is the same for every component.

Indeed, all single-qubit marginals of Φ+ and Φ− are identical and have fidelity one, while their global fidelity is zero. No product rule applies because the global states are entangled. Marginal quality measures and joint-state quality measures answer different questions about available correlations.

Averaging fidelities does not reproduce fidelity of averaged states

Suppose two preparation labels occur equally often. In the first description, the system is |0⟩ for label zero and |1⟩ for label one. In a second description the assignments are reversed. Corresponding labeled pure states have fidelity zero on every branch, so the average branch fidelity is zero. If the labels are discarded, both system states become I₂/2 and their fidelity becomes one.

The labels therefore change what is being compared. Keeping them gives two orthogonal classical-quantum states with disjoint label-state pairings, whereas discarding them removes all distinguishing information. This is also an explicit instance of fidelity increasing under a channel, since forgetting a classical register is a partial trace. It warns against averaging conditional quality scores and treating the result as the fidelity of an unconditional output, or making the reverse substitution. The correct comparison is determined by which records remain accessible in the stated task.

Fidelity is a similarity measure rather than itself a distance

The squared fidelity increases as states become less distinguishable and equals one for identical density operators. A distance should instead vanish for identical states. Two standard constructions are the Bures distance √(2−2√F) and the Bures angle arccos√F. Their use of √F is tied to the squared convention adopted here; replacing it by F changes the quantity.

For two pure states with overlap magnitude cos θ, where zero ≤ θ ≤ π/2, these expressions become √(2−2cos θ) and θ. The pure-state trace distance is sin θ. The three numbers describe related but distinct geometries. Even in this simple case, fidelity itself should not be inserted into a distance-based triangle inequality as though it had the same meaning.

Under a deterministic channel, fidelity cannot decrease. This says that processing can make two candidate inputs more similar; it does not say that the process preserves either input. A channel that resets both inputs to one fixed state raises their mutual fidelity to one while potentially destroying all information that distinguished them. For a selected outcome, the normalized conditional fidelity can behave differently, and the branch probabilities must be specified separately.

Two orthogonal Bell purifications can have identical reduced states, and a Z on the purifying qubit can align those purifications. For n independent copies with single-copy squared fidelity 0.99, the squared fidelity is 0.99ⁿ. That similarity measure does not certify task-level accuracy.

Sources

  • John Watrous · · Textbook material · cs.uwaterloo.ca
    Verification scope

    The Theory of Quantum Information, Chapter 3: Similarity and distance among states and channels
    John Watrous · · Textbook material · cs.uwaterloo.ca

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

    The Theory of Quantum Information: Chapter 3, Similarity and distance among states and channels
    John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.ca

    Selected text checked ·

    Full-text PDF available; binary discrimination and weighted-difference trace norm formulation inspected. No claim that every distance discussed in the extensions has a direct experimental implementation.

    Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.

  • John Preskill · · Lecture or course notes · preskill.caltech.edu
    Verification scope

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.

  • Zhihao Ma, Fu-Lin Zhang, Jing-Ling Chen · · Research paper · Preprint recorded · arXiv · DOI 10.1016/j.physleta.2009.07.042
    Verification scope

    Selected text checked ·

    Full-text squared-fidelity definition, Bures angle, Bures distance and sine-distance formulas in introduction; arXiv version history and publisher publication metadata inspected. No claims about the paper's separate proposed metric are imported.

    Only stated metadata and selected passages inspected; no exhaustive literature review or external scientific approval. Original numerical examples and explanatory prose are not copied.