<?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=RelEntCoherence</id>
	<title>RelEntCoherence - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://qetlab.com/wiki/index.php?action=history&amp;feed=atom&amp;title=RelEntCoherence"/>
	<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=RelEntCoherence&amp;action=history"/>
	<updated>2026-05-01T07:48:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://qetlab.com/wiki/index.php?title=RelEntCoherence&amp;diff=855&amp;oldid=prev</id>
		<title>Nathaniel at 18:05, 12 January 2016</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=RelEntCoherence&amp;diff=855&amp;oldid=prev"/>
		<updated>2016-01-12T18:05:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:05, 12 January 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;tt&amp;gt;'''RelEntCoherence'''&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that computes the relative entropy of coherence of a quantum state $\rho$, defined as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;tt&amp;gt;'''RelEntCoherence'''&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that computes the relative entropy of coherence of a quantum state $\rho$, defined as follows:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &amp;lt;math&amp;gt;C_{r}(\rho) := -\mathrm{Tr}(\rho(\log_2(\rho) - \log_2(\rho_{\text{diag}}))),&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &amp;lt;math&amp;gt;C_{r}(\rho) := -\mathrm{Tr}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\big&lt;/ins&gt;(\rho(\log_2(\rho) - \log_2(\rho_{\text{diag}}))&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\big&lt;/ins&gt;),&amp;lt;/math&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where $\rho_{\text{diag}}$ is the matrix that has the same diagonal as $\rho$ but is zero elsewhere.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where $\rho_{\text{diag}}$ is the matrix that has the same diagonal as $\rho$ but is zero elsewhere.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nathaniel</name></author>
	</entry>
	<entry>
		<id>https://qetlab.com/wiki/index.php?title=RelEntCoherence&amp;diff=854&amp;oldid=prev</id>
		<title>Nathaniel: Created page with &quot;{{Function |name=RelEntCoherence |desc=Computes the relative entropy of coherence of a quantum state |rel=L1NormCoherence&lt;br /&gt;RobustnessCoherence&lt;br /&gt;TraceDistance...&quot;</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=RelEntCoherence&amp;diff=854&amp;oldid=prev"/>
		<updated>2016-01-12T18:04:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Function |name=RelEntCoherence |desc=Computes the relative entropy of coherence of a quantum state |rel=&lt;a href=&quot;/L1NormCoherence&quot; title=&quot;L1NormCoherence&quot;&gt;L1NormCoherence&lt;/a&gt;&amp;lt;br /&amp;gt;&lt;a href=&quot;/RobustnessCoherence&quot; title=&quot;RobustnessCoherence&quot;&gt;RobustnessCoherence&lt;/a&gt;&amp;lt;br /&amp;gt;TraceDistance...&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=RelEntCoherence&lt;br /&gt;
|desc=Computes the relative entropy of coherence of a quantum state&lt;br /&gt;
|rel=[[L1NormCoherence]]&amp;lt;br /&amp;gt;[[RobustnessCoherence]]&amp;lt;br /&amp;gt;[[TraceDistanceCoherence]]&lt;br /&gt;
|cat=[[List of functions#Coherence_and_incoherence|Coherence and incoherence]]&lt;br /&gt;
|upd=January 12, 2016&lt;br /&gt;
|cvx=no}}&lt;br /&gt;
&amp;lt;tt&amp;gt;'''RelEntCoherence'''&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that computes the relative entropy of coherence of a quantum state $\rho$, defined as follows:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;C_{r}(\rho) := -\mathrm{Tr}(\rho(\log_2(\rho) - \log_2(\rho_{\text{diag}}))),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where $\rho_{\text{diag}}$ is the matrix that has the same diagonal as $\rho$ but is zero elsewhere.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
* &amp;lt;tt&amp;gt;REC = RelEntCoherence(RHO)&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 state (either pure or mixed) to have its relative entropy of coherence computed.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===Maximally coherent states===&lt;br /&gt;
The largest possible value of the relative entropy of coherence on $d$-dimensional states is $\log_2(d)$, and is attained exactly by the &amp;quot;maximally coherent states&amp;quot;: pure states whose entries all have the same absolute value.&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; d = 5;&lt;br /&gt;
&amp;gt;&amp;gt; v = ones(d,1)/sqrt(d); % this is a maximally coherent state&lt;br /&gt;
&amp;gt;&amp;gt; RelEntCoherence(v)&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    2.3219&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; log(5)/log(2)&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    2.3219&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{SourceCode|name=RelEntCoherence}}&lt;/div&gt;</summary>
		<author><name>Nathaniel</name></author>
	</entry>
</feed>