# Fidelity of quantum states

In quantum information theory, fidelity is a measure of the "closeness" of two quantum states. It is not a metric on the space of density matrices, but it can be used to define the Bures metric on this space.

## Motivation

Given two random variables X, Y with values (1...n) and probabilities p = (p1...pn) and q = (q1...qn). The fidelity of X and Y is defined to be the quantity

${\displaystyle F(X,Y)=\sum _{i}{\sqrt {p_{i}q_{i}}}}$.

The fidelity deals with the marginal distribution of the random variables. It says nothing about the joint distribution of those variables. In other words, the fidelity F(X,Y) is the inner product of ${\displaystyle ({\sqrt {p_{1}}},\cdots ,{\sqrt {p_{n}}})}$ and ${\displaystyle ({\sqrt {q_{1}}},\cdots ,{\sqrt {q_{n}}})}$ viewed as vectors in Euclidean space. Notice that F(X,Y) = 1 if and only if p = q. In general, ${\displaystyle 0\leq F(X,Y)\leq 1}$. This measure is known as the Bhattacharyya coefficient.

Given a classical measure of the distinguishability of two probability distributions, one can motivate a measure of distinguishability of two quantum states as follows. If an experimenter is attempting to determine whether a quantum state is either of two possibilities ${\displaystyle \rho }$ or ${\displaystyle \sigma }$, the most general possible measurement they can make on the state is a POVM, which is described by a set of Hermitian positive semidefinite operators ${\displaystyle \{F_{i}\}}$. If the state given to the experimenter is ${\displaystyle \rho }$, they will witness outcome ${\displaystyle i}$ with probability ${\displaystyle p_{i}=\mathrm {Tr} [\rho F_{i}]}$, and likewise with probability ${\displaystyle q_{i}=\mathrm {Tr} [\sigma F_{i}]}$ for ${\displaystyle \sigma }$. Their ability to distinguish between the quantum states ${\displaystyle \rho }$ and ${\displaystyle \sigma }$ is then equivalent to their ability to distinguish between the classical probability distributions ${\displaystyle p}$ and ${\displaystyle q}$. Naturally, the experimenter will choose the best POVM he can find, so this motivates defining the quantum fidelity as the Bhattacharyya coefficient when extremized over all possible POVMs ${\displaystyle \{F_{i}\}}$:

${\displaystyle F(\rho ,\sigma )=\min _{\{F_{i}\}}F(X,Y)}$.
${\displaystyle =\min _{\{F_{i}\}}\sum _{i}{\sqrt {\mathrm {Tr} [\rho F_{i}]\mathrm {Tr} [\sigma F_{i}]}}}$.

It was shown by Fuchs and Caves that this manifestly symmetric definition is equivalent to the simple asymmetric formula given in the next section.[1]

## Definition

Given two density matrices ρ and σ, the fidelity is defined by

${\displaystyle F(\rho ,\sigma )=\operatorname {Tr} \left[{\sqrt {{\sqrt {\rho }}\sigma {\sqrt {\rho }}}}\right].}$

By M½ of a positive semidefinite matrix M, we mean its unique positive square root given by the spectral theorem. The Euclidean inner product from the classical definition is replaced by the Hilbert–Schmidt inner product. When the states are classical, i.e. when ρ and σ commute, the definition coincides with that for probability distributions.

An equivalent definition is given by

${\displaystyle F(\rho ,\sigma )=\lVert {\sqrt {\rho }}{\sqrt {\sigma }}\rVert _{\mathrm {tr} },}$

where the norm is the trace norm (sum of the singular values). This definition has the advantage that it clearly shows that the fidelity is symmetric in its two arguments.

For two qubit states ${\displaystyle \rho }$ and ${\displaystyle \sigma }$ it can be shown that the fidelity can be calculated as

${\displaystyle F(\rho ,\sigma )={\sqrt {\mathrm {tr} (\rho \sigma )+2{\sqrt {\det(\rho )\det(\sigma )}}}}.}$

Notice by definition F is non-negative, and F(ρ,ρ) = 1. In the following section it will be shown that it can be no larger than 1.

In the original 1994 paper of Jozsa the name 'fidelity' was used for the quantity ${\displaystyle F\;'=F^{2}}$ and this convention is often used in the literature. According to this convention 'fidelity' has a meaning of probability.

## Simple examples

### Pure states

Suppose that one of the states is pure: ${\displaystyle \rho =|\phi \rangle \langle \phi |}$. Then ${\displaystyle {\sqrt {\rho }}=\rho =|\phi \rangle \langle \phi |}$ and the fidelity is

${\displaystyle F(\rho ,\sigma )=\operatorname {Tr} \left[{\sqrt {|\phi \rangle \langle \phi |\sigma |\phi \rangle \langle \phi |}}\right]={\sqrt {\langle \phi |\sigma |\phi \rangle }}\operatorname {Tr} \left[{\sqrt {|\phi \rangle \langle \phi |}}\right]={\sqrt {\langle \phi |\sigma |\phi \rangle }}.}$

If the other state is also pure, ${\displaystyle \sigma =|\psi \rangle \langle \psi |}$, then the fidelity is

${\displaystyle F(\rho ,\sigma )={\sqrt {\langle \phi |\psi \rangle \langle \psi |\phi \rangle }}=|\langle \phi |\psi \rangle |.}$

This is sometimes called the overlap between two states. If, say, ${\displaystyle |\phi \rangle }$ is an eigenstate of an observable, and the system is prepared in ${\displaystyle |\psi \rangle }$, then F(ρ, σ)2 is the probability of the system being in state ${\displaystyle |\phi \rangle }$ after the measurement.

### Commuting states

Let ρ and σ be two density matrices that commute. Therefore they can be simultaneously diagonalized by unitary matrices, and we can write

${\displaystyle \rho =\sum _{i}p_{i}|i\rangle \langle i|}$ and ${\displaystyle \sigma =\sum _{i}q_{i}|i\rangle \langle i|}$

for some orthonormal basis ${\displaystyle \{|i\rangle \}}$. Direct calculation shows the fidelity is

${\displaystyle F(\rho ,\sigma )=\sum _{i}{\sqrt {p_{i}q_{i}}}.}$

This shows that, heuristically, fidelity of quantum states is a genuine extension of the notion from probability theory.

## Some properties

### Unitary invariance

Direct calculation shows that the fidelity is preserved by unitary evolution, i.e.

${\displaystyle \;F(\rho ,\sigma )=F(U\rho \;U^{*},U\sigma U^{*})}$

for any unitary operator U.

### Uhlmann's theorem

We saw that for two pure states, their fidelity coincides with the overlap. Uhlmann's theorem generalizes this statement to mixed states, in terms of their purifications:

Theorem Let ρ and σ be density matrices acting on Cn. Let ρ½ be the unique positive square root of ρ and

${\displaystyle |\psi _{\rho }\rangle =\sum _{i=1}^{n}(\rho ^{\frac {1}{2}}|e_{i}\rangle )\otimes |e_{i}\rangle \in \mathbb {C} ^{n}\otimes \mathbb {C} ^{n}}$

be a purification of ρ (therefore ${\displaystyle \textstyle \{|e_{i}\rangle \}}$ is an orthonormal basis), then the following equality holds:

${\displaystyle F(\rho ,\sigma )=\max _{|\psi _{\sigma }\rangle }|\langle \psi _{\rho }|\psi _{\sigma }\rangle |}$

where ${\displaystyle |\psi _{\sigma }\rangle }$ is a purification of σ. Therefore, in general, the fidelity is the maximum overlap between purifications.

Proof: A simple proof can be sketched as follows. Let ${\displaystyle \textstyle |\Omega \rangle }$ denote the vector

${\displaystyle |\Omega \rangle =\sum _{i=1}^{n}|e_{i}\rangle \otimes |e_{i}\rangle }$

and σ½ be the unique positive square root of σ. We see that, due to the unitary freedom in square root factorizations and choosing orthonormal bases, an arbitrary purification of σ is of the form

${\displaystyle |\psi _{\sigma }\rangle =(\sigma ^{\frac {1}{2}}V_{1}\otimes V_{2})|\Omega \rangle }$

where Vi's are unitary operators. Now we directly calculate

${\displaystyle |\langle \psi _{\rho }|\psi _{\sigma }\rangle |=|\langle \Omega |(\rho ^{\frac {1}{2}}\otimes I)(\sigma ^{\frac {1}{2}}V_{1}\otimes V_{2})|\Omega \rangle |=|\operatorname {Tr} (\rho ^{\frac {1}{2}}\sigma ^{\frac {1}{2}}V_{1}V_{2}^{T})|.}$

But in general, for any square matrix A and unitary U, it is true that |Tr(AU)| ≤ Tr ((A*A)½). Furthermore, equality is achieved if U* is the unitary operator in the polar decomposition of A. From this follows directly Uhlmann's theorem.

#### Consequences

Some immediate consequences of Uhlmann's theorem are

• Fidelity is symmetric in its arguments, i.e. F (ρ,σ) = F (σ,ρ). Notice this is not obvious from the definition.
• F (ρ,σ) lies in [0,1], by the Cauchy–Schwarz inequality.
• F (ρ,σ) = 1 if and only if ρ = σ, since Ψρ = Ψσ implies ρ = σ.

So we can see that fidelity behaves almost like a metric. This can be formalised and made useful by defining

${\displaystyle \cos \theta _{\rho \sigma }=F(\rho ,\sigma )\,}$

As the angle between the states ${\displaystyle \rho }$ and ${\displaystyle \sigma }$. It follows from the above properties that ${\displaystyle \theta _{\rho \sigma }}$ is non-negative, symmetric in its inputs, and is equal to zero if and only if ${\displaystyle \rho =\sigma }$. Furthermore, it can be proved that it obeys the triangle inequality,[2] so this angle is a metric on the state space: the Fubini–Study metric.[3]

### Relationship to trace distance

We can define the trace distance between two matrices A and B in terms of the trace norm by

${\displaystyle D(A,B)={\frac {1}{2}}\|A-B\|_{\rm {tr}}\,.}$

When A and B are both density operators, this is a quantum generalization of the statistical distance. This is relevant because the trace distance provides upper and lower bounds on the fidelity as quantified by the Fuchs–van de Graaf inequalities,[4]

${\displaystyle 1-F(\rho ,\sigma )\leq D(\rho ,\sigma )\leq {\sqrt {1-F(\rho ,\sigma )^{2}}}\,.}$

Often the trace distance is easier to calculate or bound than the fidelity, so these relationships are quite useful. In the case that at least one of the states is a pure state Ψ, the lower bound can be tightened.

${\displaystyle 1-F(\psi ,\rho )^{2}\leq D(\psi ,\rho )\,.}$

## References

1. ^ C. A. Fuchs, C. M. Caves: "Ensemble-Dependent Bounds for Accessible Information in Quantum Mechanics", Physical Review Letters 73, 3047(1994)
2. ^ M. Nielsen, I. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2000, 409–416
3. ^ K. Życzkowski, I. Bengtsson, Geometry of Quantum States, Cambridge University Press, 2008, 131
4. ^ C. A. Fuchs and J. van de Graaf, "Cryptographic Distinguishability Measures for Quantum Mechanical States", IEEE Trans. Inf. Theory 45, 1216 (1999). arXiv:quant-ph/9712042