Fidelity

A measure of how close two quantum states are, similar to a distance metric.


Fidelity quantifies how similar two quantum states are. It’s one of the most important metrics in quantum information, used to assess gate quality, state preparation, and algorithm success.

Definition

For Pure States

This equals 1 if the states are identical (up to global phase), 0 if orthogonal.

For General States (Density Matrices)

Simplified when one state is pure:

Properties

PropertyDescription
Range
Symmetric
States are identical
States are orthogonal

Fidelity in Practice

Gate Fidelity

How well does an implemented gate match the ideal?

Typical values:

  • Single-qubit gates: 99.5-99.99%
  • Two-qubit gates: 99-99.9%

State Fidelity

How well was a target state prepared?

Process Fidelity

How well does a quantum process match the ideal, averaged over all inputs.

Average Gate Fidelity

Often reported as average over all input states:

where is the dimension (2 for single qubit, 4 for two qubits).

Fidelity vs Error Rate

Infidelity = is approximately the error rate for high-fidelity operations:

FidelityInfidelityInterpretation
99%1%1 in 100 operations fail
99.9%0.1%1 in 1,000 operations fail
99.99%0.01%1 in 10,000 operations fail

Relation to Other Metrics

  • Trace distance:
  • Diamond distance: For processes/channels

Why It Matters

Fidelity is used everywhere in quantum computing:

  • Benchmarking quantum hardware
  • Comparing algorithms
  • Error correction thresholds
  • Quantum communication protocols

See also: Quantum State, Quantum Gate, Quantum Error Correction