<?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=CoherenceRank</id>
	<title>CoherenceRank - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://qetlab.com/wiki/index.php?action=history&amp;feed=atom&amp;title=CoherenceRank"/>
	<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=CoherenceRank&amp;action=history"/>
	<updated>2026-06-02T22:30:00Z</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=CoherenceRank&amp;diff=36796&amp;oldid=prev</id>
		<title>Benjamin Talbot: Change wording &quot;calculate&quot; to &quot;compute&quot;</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=CoherenceRank&amp;diff=36796&amp;oldid=prev"/>
		<updated>2024-08-25T21:13:17Z</updated>

		<summary type="html">&lt;p&gt;Change wording &amp;quot;calculate&amp;quot; to &amp;quot;compute&amp;quot;&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 21:13, 25 August 2024&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-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;{{Function&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;{{Function&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;div&gt;|name=CoherenceRank&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;|name=CoherenceRank&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;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;|desc=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Calculates &lt;/del&gt;the coherence rank of a pure state&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;|desc=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Computes &lt;/ins&gt;the coherence rank of a pure state&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;div&gt;|cat=[[List of functions#Coherence_and_incoherence|Coherence and incoherence]]&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;|cat=[[List of functions#Coherence_and_incoherence|Coherence and incoherence]]&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;div&gt;|upd=August 25, 2024&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;|upd=August 25, 2024&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;div&gt;|v=0.90}}&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;|v=0.90}}&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;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;tt&amp;gt;'''CoherenceRank'''&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;calculates &lt;/del&gt;the coherence rank of a pure state with respect to a given basis. The coherence rank of a pure state is defined as the number of non-zero entries it contains when it is expressed in the given basis&amp;lt;ref name=&amp;quot;JMPP22&amp;quot;&amp;gt;Ringbauer, Martin and Bromley, Thomas R. and Cianciaruso, Marco and Lami, Ludovico and Lau, W. Y. Sarah and Adesso, Gerardo and White, Andrew G. and Fedrizzi, Alessandro and Piani, Marco. Certification and Quantification of Multilevel Quantum Coherence. American Physical Society, 10.1103/PhysRevX.8.041007, 2018&amp;lt;/ref&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;tt&amp;gt;'''CoherenceRank'''&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;computes &lt;/ins&gt;the coherence rank of a pure state with respect to a given basis. The coherence rank of a pure state is defined as the number of non-zero entries it contains when it is expressed in the given basis&amp;lt;ref name=&amp;quot;JMPP22&amp;quot;&amp;gt;Ringbauer, Martin and Bromley, Thomas R. and Cianciaruso, Marco and Lami, Ludovico and Lau, W. Y. Sarah and Adesso, Gerardo and White, Andrew G. and Fedrizzi, Alessandro and Piani, Marco. Certification and Quantification of Multilevel Quantum Coherence. American Physical Society, 10.1103/PhysRevX.8.041007, 2018&amp;lt;/ref&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;==Syntax==&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;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Benjamin Talbot</name></author>
	</entry>
	<entry>
		<id>https://qetlab.com/wiki/index.php?title=CoherenceRank&amp;diff=36795&amp;oldid=prev</id>
		<title>Benjamin Talbot: Create new page CoherenceRank</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=CoherenceRank&amp;diff=36795&amp;oldid=prev"/>
		<updated>2024-08-25T21:11:35Z</updated>

		<summary type="html">&lt;p&gt;Create new page CoherenceRank&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=CoherenceRank&lt;br /&gt;
|desc=Calculates the coherence rank of a pure state&lt;br /&gt;
|cat=[[List of functions#Coherence_and_incoherence|Coherence and incoherence]]&lt;br /&gt;
|upd=August 25, 2024&lt;br /&gt;
|v=0.90}}&lt;br /&gt;
&amp;lt;tt&amp;gt;'''CoherenceRank'''&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that calculates the coherence rank of a pure state with respect to a given basis. The coherence rank of a pure state is defined as the number of non-zero entries it contains when it is expressed in the given basis&amp;lt;ref name=&amp;quot;JMPP22&amp;quot;&amp;gt;Ringbauer, Martin and Bromley, Thomas R. and Cianciaruso, Marco and Lami, Ludovico and Lau, W. Y. Sarah and Adesso, Gerardo and White, Andrew G. and Fedrizzi, Alessandro and Piani, Marco. Certification and Quantification of Multilevel Quantum Coherence. American Physical Society, 10.1103/PhysRevX.8.041007, 2018&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
* &amp;lt;tt&amp;gt;COHRANK = CoherenceRank(V)&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;COHRANK = CoherenceRank(V, BASIS)&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;COHRANK = CoherenceRank(V, BASIS, TOL)&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Argument descriptions==&lt;br /&gt;
===Input Arguments===&lt;br /&gt;
* &amp;lt;tt&amp;gt;V&amp;lt;/tt&amp;gt;: The vector to compute the coherence rank of.&lt;br /&gt;
* &amp;lt;tt&amp;gt;BASIS&amp;lt;/tt&amp;gt; (optional, default standard basis): The reference basis for the coherence rank. Assumed to be provided as a unitary matrix whose columns are the basis vectors.&lt;br /&gt;
* &amp;lt;tt&amp;gt;TOL&amp;lt;/tt&amp;gt; (optional, default 1e-10): The numerical tolerance used in the function.&lt;br /&gt;
&lt;br /&gt;
===Output Arguments===&lt;br /&gt;
* &amp;lt;tt&amp;gt;COHRANK&amp;lt;/tt&amp;gt;: The coherence rank of V with respect to BASIS.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
The following example shows that the vector&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
1 \\ 0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
has a coherence rank of 2 when measured with respect to the basis&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\left \{&lt;br /&gt;
\frac{1}{\sqrt{2}}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
1 \\ 1&lt;br /&gt;
\end{bmatrix},&lt;br /&gt;
\frac{1}{\sqrt{2}}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
1 \\ -1&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\right \}&lt;br /&gt;
&amp;lt;/math&amp;gt;.&lt;br /&gt;
This is because the vector&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
1 \\ 0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
becomes&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{1}{\sqrt{2}}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
1 \\ 1&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
when represented in the given basis, which has 2 non-zero entries.&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; v = [1; 0];&lt;br /&gt;
&amp;gt;&amp;gt; basis = 1/sqrt(2) * [1, 1; 1, -1];&lt;br /&gt;
&amp;gt;&amp;gt; CoherenceRank(v, basis)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
     2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{SourceCode|name=CoherenceRank}}&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Benjamin Talbot</name></author>
	</entry>
</feed>