<?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=L1NormCoherence</id>
	<title>L1NormCoherence - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://qetlab.com/wiki/index.php?action=history&amp;feed=atom&amp;title=L1NormCoherence"/>
	<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=L1NormCoherence&amp;action=history"/>
	<updated>2026-05-01T08:30:04Z</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=L1NormCoherence&amp;diff=871&amp;oldid=prev</id>
		<title>Nathaniel: /* Can be used within CVX */ typo</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=L1NormCoherence&amp;diff=871&amp;oldid=prev"/>
		<updated>2016-02-15T14:11:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Can be used within CVX: &lt;/span&gt; typo&lt;/span&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 14:11, 15 February 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-l55&quot; &gt;Line 55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&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;===Can be used within CVX===&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;===Can be used within CVX===&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;The ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence is a convex function and can be used in the same way as any other convex function within CVX. Thus you can minimize the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence or use the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence in constraints of CVX optimization problems. For example, the following code minimizes the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence over all density matrices that are within a trace distance of $1/2$ from the maximally coherent state $|v\rangle = (1,1,1,1,1)/sqrt{5}$:&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;The ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence is a convex function and can be used in the same way as any other convex function within CVX. Thus you can minimize the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence or use the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence in constraints of CVX optimization problems. For example, the following code minimizes the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence over all density matrices that are within a trace distance of $1/2$ from the maximally coherent state $|v\rangle = (1,1,1,1,1)/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/ins&gt;sqrt{5}$:&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;&amp;lt;syntaxhighlight&amp;gt;&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;syntaxhighlight&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;div&gt;&amp;gt;&amp;gt; d = 5;&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;gt;&amp;gt; d = 5;&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=L1NormCoherence&amp;diff=852&amp;oldid=prev</id>
		<title>Nathaniel: Fixed category</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=L1NormCoherence&amp;diff=852&amp;oldid=prev"/>
		<updated>2016-01-12T15:43:21Z</updated>

		<summary type="html">&lt;p&gt;Fixed category&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 15:43, 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-l3&quot; &gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&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;|desc=Computes the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence of a quantum state&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;|desc=Computes the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence of a quantum 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;|rel=[[RelEntCoherence]]&amp;lt;br /&amp;gt;[[RobustnessCoherence]]&amp;lt;br /&amp;gt;[[TraceDistanceCoherence]]&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;|rel=[[RelEntCoherence]]&amp;lt;br /&amp;gt;[[RobustnessCoherence]]&amp;lt;br /&amp;gt;[[TraceDistanceCoherence]]&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;|cat=[[List of functions#&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Norms&lt;/del&gt;|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Norms&lt;/del&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;|cat=[[List of functions#&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Coherence_and_incoherence&lt;/ins&gt;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Coherence and incoherence&lt;/ins&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;div&gt;|upd=January 12, 2016&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=January 12, 2016&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;|cvx=yes (convex)}}&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;|cvx=yes (convex)}}&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=L1NormCoherence&amp;diff=848&amp;oldid=prev</id>
		<title>Nathaniel: Created page with &quot;{{Function |name=L1NormCoherence |desc=Computes the ℓ&lt;sub&gt;1&lt;/sub&gt;-norm of coherence of a quantum state |rel=RelEntCoherence&lt;br /&gt;RobustnessCoherence&lt;br /&gt;TraceDist...&quot;</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=L1NormCoherence&amp;diff=848&amp;oldid=prev"/>
		<updated>2016-01-12T13:43:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Function |name=L1NormCoherence |desc=Computes the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence of a quantum state |rel=&lt;a href=&quot;/RelEntCoherence&quot; title=&quot;RelEntCoherence&quot;&gt;RelEntCoherence&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;TraceDist...&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=L1NormCoherence&lt;br /&gt;
|desc=Computes the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence of a quantum state&lt;br /&gt;
|rel=[[RelEntCoherence]]&amp;lt;br /&amp;gt;[[RobustnessCoherence]]&amp;lt;br /&amp;gt;[[TraceDistanceCoherence]]&lt;br /&gt;
|cat=[[List of functions#Norms|Norms]]&lt;br /&gt;
|upd=January 12, 2016&lt;br /&gt;
|cvx=yes (convex)}}&lt;br /&gt;
&amp;lt;tt&amp;gt;'''L1NormCoherence'''&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that computes the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence of a quantum state $\rho$, defined as follows:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;C_{\ell_1}(\rho) := \sum_{i \neq j} |\rho_{ij}|,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where $\rho_{ij}$ is the $(i,j)$-entry of $\rho$ in the standard basis.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
* &amp;lt;tt&amp;gt;L1C = L1NormCoherence(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 ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence computed.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===Pure states or mixed states===&lt;br /&gt;
If $|v\rangle$ is a pure state then its ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence is computed from the density matrix $|v\rangle\langle v|$:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; v = RandomStateVector(3)&lt;br /&gt;
&lt;br /&gt;
v =&lt;br /&gt;
&lt;br /&gt;
   0.6233 + 0.1633i&lt;br /&gt;
  -0.3038 - 0.0142i&lt;br /&gt;
   0.6830 + 0.1609i&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; L1NormCoherence(v)&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    1.7229&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; L1NormCoherence(v*v')&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    1.7229&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Maximally coherent states===&lt;br /&gt;
The largest possible value of the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence on $d$-dimensional states is $d-1$, 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; v = ones(3,1)/sqrt(3); % this is a maximally coherent state&lt;br /&gt;
&amp;gt;&amp;gt; L1NormCoherence(v)&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    2.0000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Can be used within CVX===&lt;br /&gt;
The ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence is a convex function and can be used in the same way as any other convex function within CVX. Thus you can minimize the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence or use the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence in constraints of CVX optimization problems. For example, the following code minimizes the ℓ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;-norm of coherence over all density matrices that are within a trace distance of $1/2$ from the maximally coherent state $|v\rangle = (1,1,1,1,1)/sqrt{5}$:&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; cvx_begin sdp quiet&lt;br /&gt;
   variable rho(5,5) hermitian;&lt;br /&gt;
&lt;br /&gt;
   minimize L1NormCoherence(rho)&lt;br /&gt;
&lt;br /&gt;
   subject to&lt;br /&gt;
       TraceNorm(rho - v*v') &amp;lt;= 0.5;&lt;br /&gt;
       % the next two constraints force rho to be a density matrix&lt;br /&gt;
       rho &amp;gt;= 0;&lt;br /&gt;
       trace(rho) == 1;&lt;br /&gt;
   cvx_end&lt;br /&gt;
   cvx_optval&lt;br /&gt;
&lt;br /&gt;
cvx_optval =&lt;br /&gt;
&lt;br /&gt;
    2.7500&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; rho&lt;br /&gt;
&lt;br /&gt;
rho =&lt;br /&gt;
&lt;br /&gt;
   0.2000    0.1375    0.1375    0.1375    0.1375&lt;br /&gt;
   0.1375    0.2000    0.1375    0.1375    0.1375&lt;br /&gt;
   0.1375    0.1375    0.2000    0.1375    0.1375&lt;br /&gt;
   0.1375    0.1375    0.1375    0.2000    0.1375&lt;br /&gt;
   0.1375    0.1375    0.1375    0.1375    0.2000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{SourceCode|name=L1NormCoherence}}&lt;/div&gt;</summary>
		<author><name>Nathaniel</name></author>
	</entry>
</feed>