Say you are given two quantum states and
, and you are asked the following questions:
How similar are they? Can you distinguish them?
In practice, this situation arises in many scenarios. For instance if you have an imperfect experiment (due to noise) that produces a quantum state , and you wish to find out how close it is to the state
that you originally wanted to create.
While there are many ways to quantify the distinguishability (i.e., the degree of similarity) between two quantum states, we will focus here on one quantity of particular interest in Quantum Information theory: the Quantum Fidelity (or the so-called Uhlmann-Jozsa Fidelity). The Fidelity is defined as
(1)
where is the 1-norm.
A brief History
Let us first try to understand why the Fidelity is defined the way it is.
The history of the Quantum Fidelity can be traced back to the late 70’s and early 80’s to the works of Uhlmann [1] and Alberti [2], who were studying generalizations of the quantum mechanical transition probability between two states. In later years the Fidelity was studied by Richard Jozsa (who coined the term “Fidelity“) [3] and then by Benjamin Schumacher [4] in the context of quantum communications.
As an initial problem to understand the meaning of the Quantum Fidelity let us consider the case when and
are pure states:
and
. (2)
From our Intro to Quantum Mechanics course we know that the transition probability between and
is simply given by the modulus of their overlap:
. As pointed out by R. Jozsa, this quantity is indeed a natural candidate for the Fidelity since it corresponds to the closeness of states in the natural geometry of Hilbert space [3].
In fact, we can define the Fidelity between pure states as:
, (3)
where if the states are orthogonal (i.e., perfectly distinguishable) and
if
.
This definition can readily be generalized to the case when one of the states is pure , but the other is mixed:
. (4)
Eq. (4) is simply the average of (3) over any ensemble of pure states represented by a density matrix
Thus far you might start to notice a pattern in Eqs (3) and (4), as they can both be written as
. (5)
Can we generalize this equation to the case when both states are mixed?
Well… it turns out that we can’t do it. As explained in Ref. [5], Eq. (5) leads to some problems: Consider a bidimensional Hilbert space (i.e., the space of a qubit), and let us denote as the identity operator on this space. Then (5) would imply that
,
.
That is, any pure state has the same Fidelity with the maximally mixed state as the maximally mixed state has with itself (?). Even if the last sentence might sound like a tongue twister you can see why this result is unsatisfactory.
In order to avoid problems like this one Richard Jozsa postulated a series of axioms that any notion of Fidelity should satisfy.
Jozsa’s axioms
- Normalization :
and
if and only if
.
- Symmetry:
.
- Fidelity for pure states: If
is pure then
.
- Invariance over unitary transformations
:
.
- Convexity: For any three quantum states
,
and
and given
and
such that
, then
.
- Multiplicativity:
.
Purification and Fidelity:
Thus far we know how to compute the Fidelity when one (or both) of the states are pure. But we still need to define a quantity that works well for mixed states and that fulfills all of Jozsa’s axioms. It turns out that we can still use our knowledge of the pure-state Fidelity to the case of mixed states by means of the purification.
If ye CAN’T solve a problem, tr’n map it to something you CAN solve.
Consider the alternate definition (derived from Ulhmann’s Theorem):
(6)
where and
are purifications of
and
in an extended space
(i.e., they are pure states!). Note that given the spectral decomposition of the states:
,
, (7)
we can always write their purifications in terms of the Schmidt decomposition
(8)
Here, and
form orthonormal sets on
.
Let me now sketch the proof of Eq. (6) (you can find the detailed proof in Refs. [6] and [7]):
The overlap between and
can be expressed as
(9)
where . Then, by means of the inequality
, we get:
. (10)
Maximizing over all purifications we get an equality in (10).
The mixed state Fidelity between and
is derived from the Fidelity between the purification
and
.
From the previous derivation we see that the square roots appearing in the Fidelity arise from the fact that in the Schmidt decomposition of the purifications of and
, the Schmidt coefficients are given by the square roots of the eigenvalues of the states.
What is it good for?
Ok. Now that we have understood the motivation behind the Fidelity we can ask ourselves:
What is this quantity good for?
In turns out that thanks to all it’s nice properties (see Jozsa’s Axioms), the Fidelity has become one of the most widely used quantities to quantify the degree of similarity between quantum states.
For instance, in Quantum Cryptography the Fidelity is used as a verification tool, e.g., one may be interested in the fidelity between an imperfect state and fixed target state [8]. In Quantum Information Theory there are several inequalities relating the Fidelity to other quantum state distinguishability measures [9]. Moreover, there are many Fidelity-bases distance measures which can be used to define metrics on the space of density matrices [10] .
Finally, as someone who works in Condensed Matter I must remark that it has also been shown that the Fidelity can capture the geometric distance between thermal states of condensed matter systems nearing phase transitions and can provide information about the zero temperature phase diagram [11-13].
You win some and you lose some. How do we actually compute the the Fidelity?
Now that we know all the nice properties of the Quantum Fidelity we have to address it’s biggest problem:
How do we actually compute it?
When I first saw the formula of the Fidelity (Eq. (1)) I immediately started to feel uncomfortable from the fact that it involves non-integer powers of and
. If we know the matrix representation of the density matrices we might be able to calculate their square root by diagonalizing them (which would take order of
steps for
dimensional matrices). However, such procedure could scale exponentially due to the exponentially large dimension of the density matrix.
And what would happen if we are just handed the density matrices in a quantum form? Then we would have to additionally perform full state tomography, rendering the task even harder!
By this point you might argue that we could use a quantum computer to try to avoid the exponential scaling of the matrix representation. Maybe there’s a Quantum Algorithm for exactly computing the fidelity? It turns out it is straightforward to show that there is no exact quantum algorithm for computing the Fidelity directly from the probability of a measurement outcome on a finite number of copies of and
(check my post here for a simple no-go theorem).
Well, what about Eq. (6)? Whelp… Ulhmann’s theorem will not solve our problem. First, we might not have access to the purifying system of and
, and even if we have access to a purifying system for each one we would still need to carry over the maximization over all possible purifications! And this is a hard problem on itself!

What’s all the fuzz about Fidelity then?
However, not all is lost. There are several ways to solve the computability problem of the Fidelity:
- Bounding it via other know (and hopefully computable) quantities [10].
- Defining alternative Fidelity measure that might not satisfy all of Jozsa’s Axioms [5].
- Estimating the Fidelity with bounds that get tighter as we put more work into them.
As we will see in my next post, we have recently developed an Algorithm called Variational Quantum Fidelity Estimation [14] which uses novel lower and upper bounds for the Fidelity based on what we called: the “truncated fidelity”, which is evaluated for a state obtained by projecting
onto its
-largest eigenvalues. Our bounds can be refined, i.e., they tighten monotonically with
and can be computed with a Hybrid Quantum-Classical Algorithm.
Bibliography:
Quantum Fidelity, or, how to compare quantum states by Marco Vinicio Sebastian Cerezo de la Roca is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Based on a work at https://entangledphysics.com/2019/06/24/quantum-fidelity-or-how-to-compare-quantum-states/.