<?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=RandomSuperoperator</id>
	<title>RandomSuperoperator - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://qetlab.com/wiki/index.php?action=history&amp;feed=atom&amp;title=RandomSuperoperator"/>
	<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=RandomSuperoperator&amp;action=history"/>
	<updated>2026-04-16T16:26:37Z</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=RandomSuperoperator&amp;diff=836&amp;oldid=prev</id>
		<title>Nathaniel at 19:53, 6 January 2016</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=RandomSuperoperator&amp;diff=836&amp;oldid=prev"/>
		<updated>2016-01-06T19:53:48Z</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 19:53, 6 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-l2&quot; &gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&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=RandomSuperoperator&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=RandomSuperoperator&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;|desc=Generates a random superoperator (completely positive map)&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=Generates a random superoperator (completely positive map)&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;|rel=[[RandomDensityMatrix]]&amp;lt;br /&amp;gt;[[RandomStateVector]]&amp;lt;br /&amp;gt;[[RandomUnitary]]&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;|rel=[[RandomDensityMatrix&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&amp;lt;br /&amp;gt;[[RandomPOVM&lt;/ins&gt;]]&amp;lt;br /&amp;gt;[[RandomStateVector]]&amp;lt;br /&amp;gt;[[RandomUnitary]]&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#Random_things|Random things]]&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#Random_things|Random things]]&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=September 30, 2014&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=September 30, 2014&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=RandomSuperoperator&amp;diff=473&amp;oldid=prev</id>
		<title>Nathaniel at 19:03, 30 September 2014</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=RandomSuperoperator&amp;diff=473&amp;oldid=prev"/>
		<updated>2014-09-30T19:03:15Z</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 19:03, 30 September 2014&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=RandomSuperoperator&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=RandomSuperoperator&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=Generates a random superoperator&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=Generates a random superoperator &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(completely positive map)&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;|rel=[[RandomDensityMatrix]]&amp;lt;br /&amp;gt;[[RandomStateVector]]&amp;lt;br /&amp;gt;[[RandomUnitary]]&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=[[RandomDensityMatrix]]&amp;lt;br /&amp;gt;[[RandomStateVector]]&amp;lt;br /&amp;gt;[[RandomUnitary]]&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#Random_things|Random things]]&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#Random_things|Random things]]&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=RandomSuperoperator&amp;diff=471&amp;oldid=prev</id>
		<title>Nathaniel: Created page with &quot;{{Function |name=RandomSuperoperator |desc=Generates a random superoperator |rel=RandomDensityMatrix&lt;br /&gt;RandomStateVector&lt;br /&gt;RandomUnitary |cat=List of funct...&quot;</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=RandomSuperoperator&amp;diff=471&amp;oldid=prev"/>
		<updated>2014-09-30T19:02:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Function |name=RandomSuperoperator |desc=Generates a random superoperator |rel=&lt;a href=&quot;/RandomDensityMatrix&quot; title=&quot;RandomDensityMatrix&quot;&gt;RandomDensityMatrix&lt;/a&gt;&amp;lt;br /&amp;gt;&lt;a href=&quot;/RandomStateVector&quot; title=&quot;RandomStateVector&quot;&gt;RandomStateVector&lt;/a&gt;&amp;lt;br /&amp;gt;&lt;a href=&quot;/RandomUnitary&quot; title=&quot;RandomUnitary&quot;&gt;RandomUnitary&lt;/a&gt; |cat=List of funct...&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=RandomSuperoperator&lt;br /&gt;
|desc=Generates a random superoperator&lt;br /&gt;
|rel=[[RandomDensityMatrix]]&amp;lt;br /&amp;gt;[[RandomStateVector]]&amp;lt;br /&amp;gt;[[RandomUnitary]]&lt;br /&gt;
|cat=[[List of functions#Random_things|Random things]]&lt;br /&gt;
|upd=September 30, 2014&lt;br /&gt;
|v=0.50}}&lt;br /&gt;
&amp;lt;tt&amp;gt;'''RandomSuperoperator'''&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that generates a random completely positive map satisfying some user-specified properties (such as being trace-preserving, being unital, and/or having a specified number of Kraus operators).&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
* &amp;lt;tt&amp;gt;PHI = RandomSuperoperator(DIM)&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;PHI = RandomSuperoperator(DIM,TP)&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;PHI = RandomSuperoperator(DIM,TP,UN)&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;PHI = RandomSuperoperator(DIM,TP,UN,RE)&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;PHI = RandomSuperoperator(DIM,TP,UN,RE,KR)&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Argument descriptions==&lt;br /&gt;
* &amp;lt;tt&amp;gt;DIM&amp;lt;/tt&amp;gt;: Either a scalar, indicating that &amp;lt;tt&amp;gt;PHI&amp;lt;/tt&amp;gt; should act on &amp;lt;tt&amp;gt;DIM&amp;lt;/tt&amp;gt;-by-&amp;lt;tt&amp;gt;DIM&amp;lt;/tt&amp;gt; matrices, or a 1-by-2 vector, indicating that &amp;lt;tt&amp;gt;PHI&amp;lt;/tt&amp;gt; should take &amp;lt;tt&amp;gt;DIM(1)&amp;lt;/tt&amp;gt;-by-&amp;lt;tt&amp;gt;DIM(1)&amp;lt;/tt&amp;gt; matrices as input and return &amp;lt;tt&amp;gt;DIM(2)&amp;lt;/tt&amp;gt;-by-&amp;lt;tt&amp;gt;DIM(2)&amp;lt;/tt&amp;gt; matrices as output.&lt;br /&gt;
* &amp;lt;tt&amp;gt;TP&amp;lt;/tt&amp;gt; (optional, default 1): A flag (either 1 or 0) indicating that &amp;lt;tt&amp;gt;PHI&amp;lt;/tt&amp;gt; should or should not be trace-preserving.&lt;br /&gt;
* &amp;lt;tt&amp;gt;UN&amp;lt;/tt&amp;gt; (optional, default 0): A flag (either 1 or 0) indicating that &amp;lt;tt&amp;gt;PHI&amp;lt;/tt&amp;gt; should or should not be unital (i.e., satisfy $\Phi(I) = I$).&lt;br /&gt;
* &amp;lt;tt&amp;gt;RE&amp;lt;/tt&amp;gt; (optional, default 0): A flag (either 1 or 0) indicating that the Choi matrix of &amp;lt;tt&amp;gt;PHI&amp;lt;/tt&amp;gt; (equivalently, its Kraus operators) should only have real entries (&amp;lt;tt&amp;gt;RE = 1&amp;lt;/tt&amp;gt;) or that it is allowed to have complex entries (&amp;lt;tt&amp;gt;RE = 0&amp;lt;/tt&amp;gt;).&lt;br /&gt;
* &amp;lt;tt&amp;gt;KR&amp;lt;/tt&amp;gt; (optional, default &amp;lt;tt&amp;gt;prod(DIM)&amp;lt;/tt&amp;gt;): The maximal number of Kraus operators of the superoperator to be produced. With probability 1, it will have exactly &amp;lt;tt&amp;gt;KR&amp;lt;/tt&amp;gt; Kraus operators (if &amp;lt;tt&amp;gt;KR &amp;amp;le; prod(DIM)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===Random qubit channel===&lt;br /&gt;
The following code generates a random qubit channel and verifies that it is indeed a qubit channel:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; Phi = RandomSuperoperator(2);&lt;br /&gt;
&amp;gt;&amp;gt; ApplyMap(eye(2),DualMap(Phi)) % the dual map is unital if and only if Phi is trace-preserving&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
   1.0000 - 0.0000i  -0.0000 - 0.0000i&lt;br /&gt;
  -0.0000 + 0.0000i   1.0000 - 0.0000i&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; IsCP(Phi) % verify that Phi is completely positive&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
     1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Random unital channel with specified number of Kraus operators===&lt;br /&gt;
You can request completely positive maps with any combination of the optional arguments as constraints. For example, the following code requests a random unital quantum channel that sends 3-by-3 matrices to 4-by-4 matrices and has 5 Kraus operators. Note that a warning is produced because, strictly speaking, no such map exists (it's impossible for a map to be both trace-preserving and unital unless the input and output dimensions are the same). Instead, the map is that is produced is trace-preserving and sends the identity matrix to a scalar multiple of the identity matrix.&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; Phi = RandomSuperoperator([3,4],1,1,0,5);&lt;br /&gt;
Warning: There does not exist a unital, trace-preserving map in the case when the input and output&lt;br /&gt;
dimensions are unequal. The identity matrix will map to a *multiple* of the identity matrix. &lt;br /&gt;
&amp;gt; In RandomSuperoperator at 45 &lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; ApplyMap(eye(3),Phi) % verify that Phi is (up to scaling) unital&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
   0.7500 + 0.0000i  -0.0000 - 0.0000i  -0.0000 - 0.0000i  -0.0000 - 0.0000i&lt;br /&gt;
  -0.0000 + 0.0000i   0.7500 + 0.0000i   0.0000 + 0.0000i  -0.0000 - 0.0000i&lt;br /&gt;
  -0.0000 + 0.0000i   0.0000 - 0.0000i   0.7500 + 0.0000i  -0.0000 + 0.0000i&lt;br /&gt;
  -0.0000 + 0.0000i  -0.0000 + 0.0000i  -0.0000 - 0.0000i   0.7500 + 0.0000i&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; ApplyMap(eye(4),DualMap(Phi,[3,4])) % verify that Phi is trace-preserving&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
   1.0000 - 0.0000i   0.0000 + 0.0000i   0.0000 + 0.0000i&lt;br /&gt;
   0.0000 - 0.0000i   1.0000 - 0.0000i   0.0000 + 0.0000i&lt;br /&gt;
   0.0000 - 0.0000i   0.0000 - 0.0000i   1.0000 - 0.0000i&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; IsCP(Phi) % verify that Phi is completely positive&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
     1&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; KrausOperators(Phi,[3,4]) % verify that Phi has 5 Kraus operators&lt;br /&gt;
&lt;br /&gt;
ans = &lt;br /&gt;
&lt;br /&gt;
    [4x3 double]&lt;br /&gt;
    [4x3 double]&lt;br /&gt;
    [4x3 double]&lt;br /&gt;
    [4x3 double]&lt;br /&gt;
    [4x3 double]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
The superoperator is not generated with regard to any well-known or well-studied distribution, but it can output any superoperator satisfying the specified constraints (unital, trace-preserving, number of Kraus operators), and it derives from uniform spherical measure in a fairly straightforward way.&lt;br /&gt;
&lt;br /&gt;
{{SourceCode|name=RandomSuperoperator}}&lt;/div&gt;</summary>
		<author><name>Nathaniel</name></author>
	</entry>
</feed>