{{short description|Term in quantum mechanics}} In quantum mechanics, notably in quantum information theory, '''fidelity''' quantifies the "closeness" between two density matrices. It expresses the probability that one state will pass a test to identify as the other. It is not a metric on the space of density matrices, but it can be used to define the Bures metric on this space.

== Definition == The fidelity between two quantum states ''<math>\rho</math>'' and ''<math>\sigma</math>'', expressed as density matrices, is commonly defined as:<ref name="JozsaJMO1994">R. Jozsa, ''Fidelity for Mixed Quantum States'', J. Mod. Opt. '''41''', 2315--2323 (1994). DOI: http://doi.org/10.1080/09500349414552171</ref><ref name="Nielsen Chuang">{{cite book |last1=Nielsen |first1=Michael A. |url=http://www.michaelnielsen.org/qcqi/ |title=Quantum Computation and Quantum Information |last2=Chuang |first2=Isaac L. |publisher=Cambridge University Press |year=2000 |isbn=978-0521635035 |doi=10.1017/CBO9780511976667}}</ref> :<math>F(\rho, \sigma) = \left(\operatorname{tr} \sqrt{\sqrt{\rho} \sigma \sqrt{\rho}}\right)^2.</math>

The square roots in this expression are well-defined because both <math>\rho</math> and <math>\sqrt\rho\sigma\sqrt\rho</math> are positive semidefinite matrices, and the square root of a positive semidefinite matrix is defined via the spectral theorem. The Euclidean inner product from the classical definition is replaced by the Hilbert–Schmidt inner product.

As will be discussed in the following sections, this expression can be simplified in various cases of interest. In particular, for pure states, <math>\rho=|\psi_\rho\rangle\!\langle\psi_\rho|</math> and <math>\sigma=|\psi_\sigma\rangle\!\langle\psi_\sigma|</math>, it equals:<math display="block">F(\rho, \sigma)=|\langle\psi_\rho|\psi_\sigma\rangle|^2.</math>This tells us that the fidelity between pure states has a straightforward interpretation in terms of probability of finding the state <math>|\psi_\rho\rangle</math> when measuring <math>|\psi_\sigma\rangle</math> in a basis containing <math>|\psi_\rho\rangle</math>.

Some authors use an alternative definition <math>F':=\sqrt{F}</math> and call this quantity fidelity.<ref name="Nielsen Chuang" /> The definition of <math>F</math> however is more common.<ref>{{cite book |last=Bengtsson |first=Ingemar |title=Geometry of Quantum States: An Introduction to Quantum Entanglement |title-link=Geometry of Quantum States |publisher=Cambridge University Press |year=2017 |isbn=978-1-107-02625-4 |location=Cambridge, United Kingdom New York, NY}}</ref><ref>{{cite book |last1=Walls |first1=D. F. |title=Quantum Optics |last2=Milburn |first2=G. J. |publisher=Springer |year=2008 |isbn=978-3-540-28573-1 |location=Berlin}}</ref><ref>{{cite book |last=Jaeger |first=Gregg |title=Quantum Information: An Overview |publisher=Springer |year=2007 |isbn=978-0-387-35725-6 |location=New York London}}</ref> To avoid confusion, <math>F'</math> could be called "square root fidelity". In any case it is advisable to clarify the adopted definition whenever the fidelity is employed.

== Motivation from classical counterpart ==

Given two random variables <math>X,Y</math> with values <math>(1, ..., n)</math> (categorical random variables) and probabilities <math>p = (p_1,p_2,\ldots,p_n)</math> and <math>q = (q_1,q_2,\ldots,q_n)</math>, the fidelity of <math>X</math> and <math>Y</math> is defined to be the quantity

:<math>F(X,Y) = \left(\sum _i \sqrt{p_i q_i}\right)^2</math>.

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 <math>F(X,Y)</math> is the square of the inner product of <math>(\sqrt{p_1}, \ldots ,\sqrt{p_n})</math> and <math>(\sqrt{q_1}, \ldots ,\sqrt{q_n})</math> viewed as vectors in Euclidean space. Notice that <math>F(X,Y) = 1</math> if and only if <math>p = q</math>. In general, <math>0 \leq F(X,Y) \leq 1</math>. The measure <math>\sum _i \sqrt{p_i q_i}</math> 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 <math>\rho</math> or <math>\sigma</math>, 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 <math>\{F_i\} </math>. When measuring a state <math>\rho</math> with this POVM, <math>i</math>-th outcome is found with probability <math>p_i = \operatorname{tr}( \rho F_i )</math>, and likewise with probability <math>q_i = \operatorname{tr}( \sigma F_i )</math> for <math>\sigma</math>. The ability to distinguish between <math>\rho</math> and <math>\sigma</math> is then equivalent to their ability to distinguish between the classical probability distributions <math>p</math> and <math>q</math>. A natural question is then to ask what is the POVM the makes the two distributions as distinguishable as possible, which in this context means to minimize the Bhattacharyya coefficient over the possible choices of POVM. Formally, we are thus led to define the fidelity between quantum states as:

:<math>F(\rho,\sigma) = \min_{\{F_i\}} F(X,Y) = \min_{\{F_i\}} \left(\sum _i \sqrt{\operatorname{tr}( \rho F_i ) \operatorname{tr}( \sigma F_i )}\right)^{2}.</math>

It was shown by Fuchs and Caves<ref>C. A. Fuchs, C. M. Caves: [http://prl.aps.org/abstract/PRL/v73/i23/p3047_1 "Ensemble-Dependent Bounds for Accessible Information in Quantum Mechanics"], ''Physical Review Letters'' 73, 3047(1994)</ref> that the minimization in this expression can be computed explicitly, with solution the projective POVM corresponding to measuring in the eigenbasis of <math>\sigma^{-1/2}|\sqrt\sigma\sqrt\rho|\sigma^{-1/2}</math>, and results in the common explicit expression for the fidelity as<math display="block">F(\rho, \sigma) = \left(\operatorname{tr} \sqrt{\sqrt{\rho} \sigma \sqrt{\rho}}\right)^2.</math>

== Equivalent expressions ==

=== Equivalent expression via trace norm === An equivalent expression for the fidelity between arbitrary states via the trace norm is:

:<math>F(\rho, \sigma)= \lVert \sqrt{\rho} \sqrt{\sigma} \rVert_\operatorname{tr}^2 = \left(\operatorname{tr}|\sqrt\rho\sqrt\sigma|\right)^2,</math>

where the absolute value of an operator is here defined as <math>|A|\equiv \sqrt{A^\dagger A}</math>.

=== Equivalent expression via characteristic polynomials === Since the trace of a matrix is equal to the sum of its eigenvalues :<math>F(\rho, \sigma)= \sum_j\sqrt{\lambda_j},</math> where the <math>\lambda_j</math> are the eigenvalues of <math>\sqrt{\rho} \sigma \sqrt{\rho}</math>, which is positive semidefinite by construction and so the square roots of the eigenvalues are well defined. Because the characteristic polynomial of a product of two matrices is independent of the order, the spectrum of a matrix product is invariant under cyclic permutation, and so these eigenvalues can instead be calculated from <math>\rho\sigma</math>.<ref>{{cite journal |last1=Audenaert |first1=Koenraad M.R. |last2=Datta |first2=Nilanjana |title=alpha-z-relative Renyi entropies |journal=Journal of Mathematical Physics |date=2015 |volume=56 |page=022202, Equation (4) with α=z=1/2 |doi=10.1063/1.4906367|arxiv=1310.7178 }}</ref><ref>{{cite journal |last1=Baldwin |first1=Andrew J. |last2=Jones |first2=Jonathan A. |title=Efficiently computing the Uhlmann fidelity for density matrices |journal=Physical Review A |date=2023 |volume=107 |issue=1 |article-number=012427 |doi=10.1103/PhysRevA.107.012427|arxiv=2211.02623 |bibcode=2023PhRvA.107a2427B }}</ref> Reversing the trace property leads to :<math>F(\rho, \sigma)= \left(\operatorname{tr}\sqrt{\rho\sigma}\right)^2</math>.

=== Expressions for pure states === If (at least) one of the two states is pure, for example <math>\rho=|\psi_\rho\rangle\!\langle\psi_\rho|</math>, the fidelity simplifies to<math display="block">F(\rho,\sigma)=\operatorname{tr}(\sigma\rho)=\langle \psi_\rho|\sigma|\psi_\rho\rangle.</math>This follows observing that if <math>\rho</math> is pure then <math>\sqrt\rho=\rho</math>, and thus<math display="block"> F(\rho, \sigma) = \left(\operatorname{tr} \sqrt{ | \psi_\rho \rangle \langle \psi_\rho | \sigma | \psi_\rho \rangle \langle \psi_\rho |} \right)^2 = \langle \psi_\rho | \sigma | \psi_\rho \rangle \left(\operatorname{tr} \sqrt{ | \psi_\rho \rangle \langle \psi_\rho |} \right)^2 = \langle \psi_\rho | \sigma | \psi_\rho \rangle. </math>

If both states are pure, <math>\rho=|\psi_\rho\rangle\!\langle\psi_\rho|</math> and <math>\sigma=|\psi_\sigma\rangle\!\langle\psi_\sigma|</math>, then we get the even simpler expression:<math display="block">F(\rho, \sigma)=|\langle\psi_\rho|\psi_\sigma\rangle|^2.</math>

== Properties ==

Some of the important properties of the quantum state fidelity are:

* '''Symmetry'''. <math>F(\rho,\sigma)=F(\sigma,\rho)</math>. * '''Bounded values'''. For any <math>\rho</math> and <math>\sigma</math>, <math>0\le F(\rho,\sigma) \le 1</math>, and <math>F(\rho,\rho)=1</math>. * '''Consistency with fidelity between probability distributions'''. If <math>\rho</math> and <math>\sigma</math> commute, the definition simplifies to <math display="block">F(\rho,\sigma) = \left[\operatorname{tr}\sqrt{\rho\sigma}\right]^2 = \left(\sum_k \sqrt{p_k q_k} \right)^2 = F(\boldsymbol p, \boldsymbol q),</math>where <math>p_k, q_k</math> are the eigenvalues of <math>\rho,\sigma</math>, respectively. To see this, remember that if <math>[\rho,\sigma]=0</math> then they can be diagonalized in the same basis: <math display="block"> \rho = \sum_i p_i | i \rangle \langle i | \text{ and } \sigma = \sum_i q_i | i \rangle \langle i |,</math>so that <math> \operatorname{tr}\sqrt{\rho\sigma} = \operatorname{tr}\left(\sum_k \sqrt{p_k q_k} |k\rangle\!\langle k|\right) = \sum_k \sqrt{p_k q_k}.</math> * '''Explicit expression for qubits'''. If <math>\rho</math> and <math>\sigma</math> are both qubit states, the fidelity can be computed as <ref name="JozsaJMO1994"></ref> <ref name="HubnerPLA1992">M. Hübner, ''Explicit Computation of the Bures Distance for Density Matrices'', Phys. Lett. A '''163''', 239--242 (1992). DOI: https://doi.org/10.1016/0375-9601%2892%2991004-B</ref>

:<math>F(\rho, \sigma) = \operatorname{tr}(\rho\sigma)+2\sqrt{\det(\rho)\det(\sigma)}.</math>

Qubit state means that <math>\rho</math> and <math>\sigma</math> are represented by two-dimensional matrices. This result follows noticing that <math>M=\sqrt{\rho}\sigma\sqrt{\rho}</math> is a positive semidefinite operator, hence <math>\operatorname{tr}\sqrt{M}=\sqrt{\lambda_1}+\sqrt{\lambda_2}</math>, where <math>\lambda_1</math> and <math>\lambda_2</math> are the (nonnegative) eigenvalues of <math>M</math>. If <math>\rho</math> (or <math>\sigma</math>) is pure, this result is simplified further to <math>F(\rho,\sigma) = \operatorname{tr}(\rho\sigma)</math> since <math>\mathrm{Det}(\rho) = 0</math> for pure states.

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

:<math>\; F(\rho, \sigma) = F(U \rho \; U^*, U \sigma U^*) </math>

for any unitary operator <math>U</math>.

=== Relationship with the fidelity between the corresponding probability distributions === Let <math>\{E_k\}_k</math> be an arbitrary positive operator-valued measure (POVM); that is, a set of positive semidefinite operators <math>E_k</math> satisfying <math>\sum_k E_k=I</math>. Then, for any pair of states <math>\rho</math> and <math>\sigma</math>, we have <math display="block"> \sqrt{F(\rho,\sigma)} \le \sum_k \sqrt{\operatorname{tr}(E_k\rho)}\sqrt{\operatorname{tr}(E_k\sigma)} \equiv \sum_k \sqrt{p_k q_k}, </math> where in the last step we denoted with <math>p_k \equiv \operatorname{tr}(E_k \rho)</math> and <math>q_k \equiv \operatorname{tr}(E_k \sigma)</math> the probability distributions obtained by measuring <math>\rho,\ \sigma</math> with the POVM <math>\{E_k\}_k</math>.

This shows that the square root of the fidelity between two quantum states is upper bounded by the Bhattacharyya coefficient between the corresponding probability distributions in any possible POVM. Indeed, it is more generally true that <math display="block">F(\rho,\sigma)=\min_{\{E_k\}} F(\boldsymbol p,\boldsymbol q),</math> where <math>F(\boldsymbol p, \boldsymbol q)\equiv\left(\sum_k\sqrt{p_k q_k}\right)^2</math>, and the minimum is taken over all possible POVMs. More specifically, one can prove that the minimum is achieved by the projective POVM corresponding to measuring in the eigenbasis of the operator <math>\sigma^{-1/2}|\sqrt\sigma\sqrt\rho|\sigma^{-1/2}</math>.<ref>{{Cite book |last=Watrous |first=John |author-link1=John Watrous (computer scientist)|url=http://dx.doi.org/10.1017/9781316848142 |title=The Theory of Quantum Information |date=2018-04-26 |publisher=Cambridge University Press |doi=10.1017/9781316848142 |isbn=978-1-316-84814-2}}</ref>

==== Proof of inequality ==== As was previously shown, the square root of the fidelity can be written as <math>\sqrt{F(\rho,\sigma)}=\operatorname{tr}|\sqrt\rho\sqrt\sigma|,</math>which is equivalent to the existence of a unitary operator <math>U</math> such that

<math display="block">\sqrt{F(\rho,\sigma)}=\operatorname{tr}(\sqrt\rho\sqrt\sigma U).</math>Remembering that <math>\sum_k E_k=I</math> holds true for any POVM, we can then write<math display="block">\sqrt{F(\rho,\sigma)}=\operatorname{tr}(\sqrt\rho\sqrt\sigma U)= \sum_k\operatorname{tr}(\sqrt\rho E_k \sqrt\sigma U)=\sum_k\operatorname{tr}(\sqrt\rho \sqrt{E_k} \sqrt{E_k}\sqrt\sigma U) \le \sum_k\sqrt{\operatorname{tr}(E_k\rho)\operatorname{tr}(E_k \sigma)},</math>where in the last step we used Cauchy-Schwarz inequality as in <math>|\operatorname{tr}(A^\dagger B)|^2\le\operatorname{tr}(A^\dagger A)\operatorname{tr}(B^\dagger B)</math>.

=== Behavior under quantum operations === The fidelity between two states can be shown to never decrease when a non-selective quantum operation <math>\mathcal E</math> is applied to the states:<ref>{{Cite arXiv|last=Nielsen|first=M. A. |author-link=Michael Nielsen|date=1996-06-13|title=The entanglement fidelity and quantum error correction|eprint=quant-ph/9606012 }}</ref><math display="block">F(\mathcal E(\rho),\mathcal E(\sigma)) \ge F(\rho,\sigma),</math> for any trace-preserving completely positive map <math>\mathcal E</math>.

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

:<math> D(A,B) = \frac{1}{2}\| A-B\|_{\rm tr} \, . </math>

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'',<ref>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</ref>

:<math> 1-\sqrt{F(\rho,\sigma)} \le D(\rho,\sigma) \le\sqrt{1-F(\rho,\sigma)} \, . </math>

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.

:<math> 1-F(\psi,\rho) \le D(\psi,\rho) \, . </math>

== Uhlmann's theorem == We saw that for two pure states, their fidelity coincides with the overlap. Uhlmann's theorem, named after {{ill|Armin Uhlmann|de}} who published it in 1976,<ref name="Uhlmann1976">{{cite journal |last1=Uhlmann |first1=A. |year=1976 |title=The "transition probability" in the state space of a ∗-algebra |url=http://www.physik.uni-leipzig.de/~uhlmann/PDF/Uh76a.pdf |journal=Reports on Mathematical Physics |volume=9 |issue=2 |pages=273–279 |bibcode=1976RpMP....9..273U |doi=10.1016/0034-4877(76)90060-4 |issn=0034-4877}}</ref> generalizes this statement to mixed states, in terms of their purifications:

'''Theorem''' Let ρ and σ be density matrices acting on '''C'''<sup>n</sup>. Let ρ<sup>{{frac|1|2}}</sup> be the unique positive square root of ρ and

<math display="block"> | \psi _{\rho} \rangle = \sum_{i=1}^n (\rho^{{1}/{2}} | e_i \rangle) \otimes | e_i \rangle \in \mathbb{C}^n \otimes \mathbb{C}^n </math>

be a purification of ρ (therefore <math>\textstyle \{|e_i\rangle\}</math> is an orthonormal basis), then the following equality holds:

:<math>F(\rho, \sigma) = \max_{|\psi_{\sigma} \rangle} | \langle \psi _{\rho}| \psi _{\sigma} \rangle |^2</math>

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

=== Sketch of proof === A simple proof can be sketched as follows. Let <math>\textstyle |\Omega\rangle</math> denote the vector

:<math>| \Omega \rangle= \sum_{i=1}^n | e_i \rangle \otimes | e_i \rangle </math>

and σ<sup>{{frac|1|2}}</sup> 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

:<math>| \psi_{\sigma} \rangle = ( \sigma^{{1}/{2}} V_1 \otimes V_2 ) | \Omega \rangle </math>

where ''V''<sub>i</sub>'s are unitary operators. Now we directly calculate

:<math> | \langle \psi _{\rho}| \psi _{\sigma} \rangle |^2 = | \langle \Omega | ( \rho^{{1}/{2}} \otimes I) ( \sigma^{{1}/{2}} V_1 \otimes V_2 ) | \Omega \rangle |^2 = | \operatorname{tr} ( \rho^{{1}/{2}} \sigma^{{1}/{2}} V_1 V_2^T )|^2. </math>

But in general, for any square matrix ''A'' and unitary ''U'', it is true that |tr(''AU'')| ≤ tr((''A''<sup>*</sup>''A'')<sup>{{frac|1|2}}</sup>). Furthermore, equality is achieved if ''U''<sup>*</sup> is the unitary operator in the polar decomposition of ''A''. From this follows directly Uhlmann's theorem.

=== Proof with explicit decompositions === We will here provide an alternative, explicit way to prove Uhlmann's theorem.

Let <math>|\psi_\rho\rangle</math> and <math>|\psi_\sigma\rangle</math> be purifications of <math>\rho</math> and <math>\sigma</math>, respectively. To start, let us show that <math>|\langle\psi_\rho|\psi_\sigma\rangle|\le\operatorname{tr}|\sqrt\rho\sqrt\sigma|</math>.

The general form of the purifications of the states is:<math display="block">\begin{align} |\psi_\rho\rangle &=\sum_k\sqrt{\lambda_k}|\lambda_k\rangle\otimes|u_k\rangle, \\ |\psi_\sigma\rangle &=\sum_k\sqrt{\mu_k}|\mu_k\rangle\otimes|v_k\rangle, \end{align}</math>were <math>|\lambda_k\rangle, |\mu_k\rangle</math> are the eigenvectors of <math>\rho,\ \sigma</math>, and <math>\{u_k\}_k, \{v_k\}_k</math> are arbitrary orthonormal bases. The overlap between the purifications is<math display="block">\langle\psi_\rho|\psi_\sigma\rangle = \sum_{jk}\sqrt{\lambda_j\mu_k} \langle\lambda_j|\mu_k\rangle\,\langle u_j|v_k\rangle = \operatorname{tr}\left(\sqrt\rho\sqrt\sigma U\right),</math>where the unitary matrix <math>U</math> is defined as<math display="block">U=\left(\sum_k |\mu_k\rangle\!\langle u_k| \right)\,\left(\sum_j |v_j\rangle\!\langle \lambda_j|\right).</math>The conclusion is now reached via using the inequality <math>|\operatorname{tr}(AU)|\le \operatorname{tr}(\sqrt{A^\dagger A})\equiv\operatorname{tr}|A|</math>: <math display="block">|\langle\psi_\rho|\psi_\sigma\rangle|= |\operatorname{tr}(\sqrt\rho\sqrt\sigma U)| \le \operatorname{tr}|\sqrt\rho\sqrt\sigma|.</math>Note that this inequality is the triangle inequality applied to the singular values of the matrix. Indeed, for a generic matrix <math>A\equiv \sum_j s_j(A)|a_j\rangle\!\langle b_j|</math>and unitary <math>U=\sum_j |b_j\rangle\!\langle w_j|</math>, we have<math display="block">\begin{align} |\operatorname{tr}(AU)| &= \left|\operatorname{tr}\left(\sum_j s_j(A)|a_j\rangle\!\langle b_j| \,\,\sum_k |b_k\rangle\!\langle w_k| \right)\right| \\ &= \left|\sum_j s_j(A)\langle w_j|a_j\rangle\right|\\ &\le \sum_j s_j(A) \,|\langle w_j|a_j\rangle| \\ &\le \sum_j s_j(A) \\ &= \operatorname{tr}|A|, \end{align}</math>where <math>s_j(A)\ge 0</math> are the (always real and non-negative) singular values of <math>A</math>, as in the singular value decomposition. The inequality is saturated and becomes an equality when <math>\langle w_j|a_j\rangle=1</math>, that is, when <math>U=\sum_k |b_k\rangle\!\langle a_k|,</math> and thus <math>AU=\sqrt{AA^\dagger}\equiv |A|</math>. The above shows that <math>|\langle\psi_\rho|\psi_\sigma\rangle|= \operatorname{tr}|\sqrt\rho\sqrt\sigma|</math> when the purifications <math>|\psi_\rho\rangle</math> and <math>|\psi_\sigma\rangle</math> are such that <math>\sqrt\rho\sqrt\sigma U=|\sqrt\rho\sqrt\sigma|</math>. Because this choice is possible regardless of the states, we can finally conclude that<math display="block">\operatorname{tr}|\sqrt\rho\sqrt\sigma|=\max|\langle\psi_\rho|\psi_\sigma\rangle|.</math>

=== Consequences === Some immediate consequences of Uhlmann's theorem are * Fidelity is symmetric in its arguments, i.e. ''F'' (ρ,σ) = ''F'' (σ,ρ). Note that this is not obvious from the original definition. * ''F'' (ρ,σ) lies in [0,1], by the Cauchy–Schwarz inequality. * ''F'' (ρ,σ) = 1 if and only if ρ = σ, since Ψ<sub>ρ</sub> = Ψ<sub>σ</sub> implies ρ = σ.

So we can see that fidelity behaves almost like a metric. This can be formalized and made useful by defining :<math> \cos^2 \theta_{\rho\sigma} = F(\rho,\sigma) \,</math>

As the angle between the states <math>\rho</math> and <math>\sigma</math>. It follows from the above properties that <math>\theta_{\rho\sigma}</math> is non-negative, symmetric in its inputs, and is equal to zero if and only if <math>\rho = \sigma</math>. Furthermore, it can be proved that it obeys the triangle inequality,<ref name="Nielsen Chuang" /> so this angle is a metric on the state space: the Fubini–Study metric.<ref>K. Życzkowski, I. Bengtsson, ''Geometry of Quantum States'', Cambridge University Press, 2008, 131</ref>

=== Definition based on an optimization over convex decompositions === Apart from defining the fidelity based on an optimization over purifications, it is also possible to define it as an optimization over convex decompositions as :<math> F(\rho,\sigma)=\left(\max_{\{p_k,\Psi_k,\Phi_k\}}\sum_k p_k |\langle \Psi_k\vert \Phi_k\rangle |\right)^2,</math> where <math>\rho</math> and <math>\sigma</math> are decomposed as :<math> \rho=\sum_k p_k |\Psi_k\rangle\langle\Psi_k|,\quad\quad \sigma=\sum_k p_k |\Phi_k\rangle\langle\Phi_k|. </math> Due to this, the root of the quantum fidelity can be given as its own convex roof :<math> \sqrt{F}(\rho,\sigma)=\max_{\{p_k,\Psi_k,\Phi_k\}}\sum_k p_k \sqrt{F}(\vert\Psi_k\rangle,\vert\Phi_k\rangle),</math> where <math>\rho</math> and <math>\sigma</math> are decomposed as above.<ref name="WassersteinFidelity">{{Cite arXiv |author=Géza Tóth and József Pitrik |title=Quantum Wasserstein distance and its relation to several types of fidelities |year=2025 |class=quant-ph |eprint=2506.14523}} </ref>

== Other quantities related to the fidelity ==

The superfidelity is defined as <ref name="super">{{cite journal |last1=Miszczak |first1=J.A. |last2=Puchala |first2=Z. |last3=Horodecki |first3=P. |last4=Uhlmann |first4=A. |last5=Zyczkowski |first5=K. |title=Sub- and super-fidelity as bounds for quantum fidelity |journal=Quantum Information and Computation |date=January 2009 |volume=9 |issue=1&2 |pages=103–130 |doi=10.26421/QIC9.1-2-7}}</ref> :<math> F_{\rm super}(\rho,\sigma)={\rm Tr}(\rho\sigma)+\sqrt{[1-{\rm Tr}(\rho^2)][1-{\rm Tr}(\sigma^2)]}. </math> We know that the fidelity is bounded from above as <ref name="super"></ref> :<math> F(\rho,\sigma) \le F_{\rm super}(\rho,\sigma). </math> For dimension <math>d=2</math>, i.e., for qubits, there is an equality <ref name="super"></ref><ref name="HubnerPLA1992"></ref> :<math> F(\rho,\sigma) = F_{\rm super}(\rho,\sigma). </math>

The SWAP-fidelity is defined as <ref name="SWAPF">{{cite journal |last1=Friedland |first1=Shmuel |last2=Eckstein |first2=Michał |last3=Cole |first3=Sam |last4=Życzkowski |first4=Karol |title=Quantum Monge-Kantorovich Problem and Transport Distance between Density Matrices |journal=Physical Review Letters |date=7 September 2022 |volume=129 |issue=11 |article-number=110402 |doi=10.1103/PhysRevLett.129.110402 |pmid=36154415 |arxiv=2102.07787 |bibcode=2022PhRvL.129k0402F }}</ref><ref>{{cite journal |last1=Cole |first1=Sam |last2=Eckstein |first2=Michał |last3=Friedland |first3=Shmuel |last4=Życzkowski |first4=Karol |title=On Quantum Optimal Transport |journal=Mathematical Physics, Analysis and Geometry |date=June 2023 |volume=26 |issue=2 |article-number=14 |doi=10.1007/s11040-023-09456-7 |arxiv=2105.06922 |bibcode=2023MPAG...26...14C }}</ref><ref>{{cite journal |last1=Bistroń |first1=R |last2=Eckstein |first2=M |last3=Życzkowski |first3=K |title=Monotonicity of a quantum 2-Wasserstein distance |journal=Journal of Physics A: Mathematical and Theoretical |date=3 March 2023 |volume=56 |issue=9 |pages=095301 |doi=10.1088/1751-8121/acb9c8 |arxiv=2204.07405 |bibcode=2023JPhA...56i5301B }}</ref> :<math> F_S(\rho,\sigma)=\max_{\rho_{12\in \mathcal D}} {\rm Tr}(\rho_{12} S), </math> such that the marginals of <math>\rho_{12}</math> are <math>\rho</math> and <math>\sigma.</math> Here <math>S</math> is the SWAP operator defined as :<math> S|\Psi\rangle\otimes|\Phi\rangle=|\Phi\rangle\otimes|\Psi\rangle. </math> Moreover, <math>\mathcal D</math> is the set of bipartite quantum states.

It is known that SWAP-fidelity is bounded from below and above <ref name="SWAPF"></ref> :<math> F(\rho,\sigma)\le F_{S}(\rho,\sigma) \le \sqrt{F}(\rho,\sigma). </math>

It is possible to carry out the optimization over separable states, rather than over general quantum states and define <ref name="WassersteinFidelity"></ref> :<math> F_{S,{\rm sep}}(\rho,\sigma)=\max_{\rho_{12\in {\rm Sep}}} {\rm Tr}(\rho_{12} S), </math> such that the marginals of <math>\rho_{12}</math> are <math>\rho</math> and <math>\sigma.</math> Moreover, <math>{\rm Sep}</math> is the set of bipartite separable quantum states. It can also be rewritten as <ref name="WassersteinFidelity"></ref> :<math> F_{S,{\rm sep}}(\rho,\sigma)=\max_{\{p_k,\Phi_k,\Psi_k\}}\sum_k p_k | \langle\Phi_k\vert \Psi_k\rangle |^2. </math> It is bounded from below and above as <ref name="WassersteinFidelity"></ref> :<math> F(\rho,\sigma)\le F_{S,{\rm sep}}(\rho,\sigma)\le F_{S}(\rho,\sigma). </math> It is also bounded from above as <ref name="WassersteinFidelity"></ref> :<math> F_{S,{\rm sep}}(\rho,\sigma)\le F_{\rm super}(\rho,\sigma). </math> For the qubit case, it equals the fidelity <ref name="WassersteinFidelity"></ref> :<math> F_{S,{\rm sep}}(\rho,\sigma)= F(\rho,\sigma). </math> For the qubit case, we can also write that <ref name="SpinChain">{{cite arXiv |last = Tóth |first = Géza |last2 = József |first2 = Pitrik |title = General method for obtaining the energy minimum of spin Hamiltonians for separable states |eprint = 2605.03022 |class = quant-ph }}</ref> :<math> \max_{\rho_{12}\in\mathrm{Sep}} \sum_{l=x,y,z}\langle j_l \otimes j_l\rangle_{\rho_{12}}=\frac 1 2 F(\rho,\sigma)-\frac 1 4, </math> such that the marginals of <math>\rho_{12}</math> are <math>\rho</math> and <math>\sigma.</math> Here <math>j_l=\sigma_l/2,</math> where <math>\sigma_l</math> are the Pauli spin matrices. This can also be used to obtain the energy minimum for separable states for a ferromagnetic Heisenberg spin chain with a formula containing the quantum Fidelity.<ref name="SpinChain"></ref>

== References ==

<references/>

* Quantiki: [https://quantiki.org/wiki/fidelity Fidelity]

{{DEFAULTSORT:Fidelity Of Quantum States}} Category:Quantum information science