<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://qetlab.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MatsumotoFidelity</id>
	<title>MatsumotoFidelity - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://qetlab.com/wiki/index.php?action=history&amp;feed=atom&amp;title=MatsumotoFidelity"/>
	<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=MatsumotoFidelity&amp;action=history"/>
	<updated>2026-08-04T20:04:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://qetlab.com/wiki/index.php?title=MatsumotoFidelity&amp;diff=965&amp;oldid=prev</id>
		<title>Nathaniel: Created page with &quot;{{Function |name=MatsumotoFidelity |desc=Computes the Matsumoto fidelity of two density matrices |rel=Fidelity |cat=List of functions#Norms_and_distance_measures|Norms a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=MatsumotoFidelity&amp;diff=965&amp;oldid=prev"/>
		<updated>2020-06-23T14:42:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Function |name=MatsumotoFidelity |desc=Computes the Matsumoto fidelity of two density matrices |rel=&lt;a href=&quot;/Fidelity&quot; title=&quot;Fidelity&quot;&gt;Fidelity&lt;/a&gt; |cat=List of functions#Norms_and_distance_measures|Norms a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Function&lt;br /&gt;
|name=MatsumotoFidelity&lt;br /&gt;
|desc=Computes the Matsumoto fidelity of two density matrices&lt;br /&gt;
|rel=[[Fidelity]]&lt;br /&gt;
|cat=[[List of functions#Norms_and_distance_measures|Norms and distance measures]]&lt;br /&gt;
|upd=June 23, 2020&lt;br /&gt;
|cvx=yes (concave)}}&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;#039;&amp;#039;&amp;#039;MatsumotoFidelity&amp;#039;&amp;#039;&amp;#039;&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that computes the Matsumoto fidelity&amp;lt;ref&amp;gt;K. Matsumoto. &amp;lt;em&amp;gt;Reverse test and quantum analogue of classical fidelity and generalized&lt;br /&gt;
fidelity&amp;lt;/em&amp;gt;. E-print: [https://arxiv.org/abs/1006.0302 arXiv:1006.0302], 2010.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;S. S. Cree and J. Sikora. &amp;lt;em&amp;gt;A fidelity measure for quantum states based on the matrix geometric mean&amp;lt;/em&amp;gt;. E-print: [https://arxiv.org/abs/2006.06918 arXiv:2006.06918], 2020.&amp;lt;/ref&amp;gt; between two quantum states $\rho$ and $\sigma$, defined by&lt;br /&gt;
: &amp;lt;math&amp;gt;F(\rho,\sigma) := \mathrm{Tr}(\rho\#\sigma),&amp;lt;/math&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
: &amp;lt;math&amp;gt;\rho\#\sigma := \rho^{1/2}\Big(\rho^{-1/2}\sigma\rho^{-1/2}\Big)\rho^{1/2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
* &amp;lt;tt&amp;gt;FID = MatsumotoFidelity(RHO,SIGMA)&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Argument descriptions==&lt;br /&gt;
* &amp;lt;tt&amp;gt;RHO&amp;lt;/tt&amp;gt;: A density matrix.&lt;br /&gt;
* &amp;lt;tt&amp;gt;SIGMA&amp;lt;/tt&amp;gt;: A density matrix.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===Pure states===&lt;br /&gt;
If $\rho = |v\rangle\langle v|$ and $\sigma = |w\rangle\langle w|$ are both pure states then their Matsumoto fidelity simply equals 1 if they are parallel and zero otherwise:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; v = RandomStateVector(4);&lt;br /&gt;
&amp;gt;&amp;gt; w = RandomStateVector(4);&lt;br /&gt;
&amp;gt;&amp;gt; MatsumotoFidelity(v*v&amp;#039;,w*w&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
   1.7454e-05&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This highlights one slight limitation of this function: it is only accurate to 4 or so decimal places when both inputs are non-invertible (it is much more accurate if at least one input is invertible).&lt;br /&gt;
&lt;br /&gt;
{{SourceCode|name=MatsumotoFidelity}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nathaniel</name></author>
	</entry>
</feed>