<?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=ParallelRepetition</id>
	<title>ParallelRepetition - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://qetlab.com/wiki/index.php?action=history&amp;feed=atom&amp;title=ParallelRepetition"/>
	<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=ParallelRepetition&amp;action=history"/>
	<updated>2026-06-05T04:22:54Z</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=ParallelRepetition&amp;diff=35663&amp;oldid=prev</id>
		<title>Araujoms: created page to document new</title>
		<link rel="alternate" type="text/html" href="https://qetlab.com/wiki/index.php?title=ParallelRepetition&amp;diff=35663&amp;oldid=prev"/>
		<updated>2022-11-11T12:39:14Z</updated>

		<summary type="html">&lt;p&gt;created page to document new&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=ParallelRepetition&lt;br /&gt;
|desc=Computes coefficients of parallel repetition of a nonlocal game&lt;br /&gt;
|rel=[[BCSGameValue]]&amp;lt;br /&amp;gt;[[BellInequalityMax]]&amp;lt;br /&amp;gt;[[NPAHierarchy]]&amp;lt;br /&amp;gt;[[XORGameValue]]&lt;br /&gt;
|req=[http://cvxr.com/cvx/ CVX]&lt;br /&gt;
|cat=[[List of functions#Nonlocality_and_Bell_inequalities|Nonlocality and Bell inequalities]]&lt;br /&gt;
|upd=March 6, 2015&lt;br /&gt;
|cvx=no}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;'''ParallelRepetition'''&amp;lt;/tt&amp;gt; is a [[List of functions|function]] that generates the coefficients of the parallel repetition of a nonlocal game, a concept widely used in computer science.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
* &amp;lt;tt&amp;gt;NGVAL = NonlocalGameValue(G,REPT)&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Argument descriptions==&lt;br /&gt;
* &amp;lt;tt&amp;gt;G&amp;lt;/tt&amp;gt;: A 4-D array whose $(a,b,x,y)$-entry gives the coefficient needed to compute the probability of winning the nonlocal game. It is defined as &amp;lt;math&amp;gt;G(a,b,x,y) = \mu(x,y)V(a,b,x,y)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;\mu(x,y)&amp;lt;/math&amp;gt; is the probability that the referee asks Alice question $x$ and Bob question $y$, and V(a,b,x,y) is the probability Alice and Bob win the game if they reply with answers $(a,b)$ to questions $(x,y)$.&lt;br /&gt;
* &amp;lt;tt&amp;gt;REPT&amp;lt;/tt&amp;gt;: A positive integer indicating the number of parallel copies of the nonlocal game.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===The CHSH game===&lt;br /&gt;
A well-known result is that the parallel repetition of the CHSH game has local bound higher then the product of the local bounds&amp;lt;ref&amp;gt;J. Barrett, D. Collins, L. Hardy, A. Kent and S. Popescu. ‘Quantum nonlocality, Bell inequalities, and the memory loophole’. Physical Review A 66 042111 (2002). [http://arxiv.org/abs/quant-ph/0205016 arXiv:quant-ph/0205016]&amp;lt;/ref&amp;gt;. We can do 2 parallel repetitions:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; G = chshd(2);                &lt;br /&gt;
&amp;gt;&amp;gt; G2 = ParallelRepetition(G,2);&lt;br /&gt;
&amp;gt;&amp;gt; desc = size(G2);&lt;br /&gt;
&amp;gt;&amp;gt; BellInequalityMax(G2,desc,'fp','classical')&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    0.6250&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
We see that the local bound is 10/16, which is larger than &amp;lt;math&amp;gt;(3/4)^2&amp;lt;/math&amp;gt;. We can also do 3 parallel repetitions:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; G = chshd(2);                &lt;br /&gt;
&amp;gt;&amp;gt; G3 = ParallelRepetition(G,3);&lt;br /&gt;
&amp;gt;&amp;gt; desc = size(G3);&lt;br /&gt;
&amp;gt;&amp;gt; BellInequalityMax(G3,desc,'fp','classical')&lt;br /&gt;
Starting parallel pool (parpool) using the 'local' profile ...&lt;br /&gt;
connected to 2 workers.&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    0.4844&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
We see that the local bound is 31/64, which is larger than &amp;lt;math&amp;gt;(3/4)^3&amp;lt;/math&amp;gt;. The code cannot handle 4 or more parallel repetitions.&lt;br /&gt;
&lt;br /&gt;
===The Fortnow-Feige-Lovász game===&lt;br /&gt;
The Fortnow-Feige-Lovász (FFL) game&amp;lt;ref&amp;gt;U. Feige, L. Lovász, In Proceedings of the 24th ACM STOC, pages 733-744, 1992.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;L. Fortnow, PhD thesis, Massachusetts Institute of Technology, Technical Report MIT/LCS/TR-447, May 1989.&amp;lt;/ref&amp;gt; is well-known example of a non-local game for which perfect parallel repetition does not hold (i.e., quantum players playing two copies of the game in parallel can do better than they can by playing the games in succession).&lt;br /&gt;
&lt;br /&gt;
The game has binary inputs and outputs, and is defined by the rule that the referee asks Alice and Bob the question pair $(x,y) = (0,0)$, $(0,1)$, or $(1,0)$ with probability $1/3$ each, and Alice and Bob win if and only if their answers satisfy $x \vee a \neq y \vee b$, where $\vee$ denotes the bitwise OR operation.&lt;br /&gt;
&lt;br /&gt;
It is known that both the classical value and quantum value of this game equal $2/3$, which we can verify as follows:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; G = ffl();                   &lt;br /&gt;
&amp;gt;&amp;gt; desc = size(G);&lt;br /&gt;
&amp;gt;&amp;gt; BellInequalityMax(G,desc,'fp','classical') &lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    0.6667&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt; BellInequalityMax(G,desc,'fp','quantum',2)       &lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    0.6667&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The FFL game is interesting because the classical value of two parallel repetitions is still $2/3$:&amp;lt;ref&amp;gt;R. Cleve, W. Slofstra, F. Unger, and S. Upadhyay. Perfect parallel repetition theorem for quantum XOR proof systems. ''Computational Complexity'', 17:282&amp;amp;ndash;299, 2008. E-print: [http://arxiv.org/abs/quant-ph/0608146 arXiv:quant-ph/0608146]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; G = ffl();                   &lt;br /&gt;
&amp;gt;&amp;gt; G2 = ParallelRepetition(G,2);&lt;br /&gt;
&amp;gt;&amp;gt; desc = size(G2);&lt;br /&gt;
&amp;gt;&amp;gt; BellInequalityMax(G2,desc,'fp','classical')         &lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    0.6667&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
We can also compute the classical value of three parallel repetitions, which decreases to $14/27$:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt; G = ffl();                   &lt;br /&gt;
&amp;gt;&amp;gt; G3 = ParallelRepetition(G,3);&lt;br /&gt;
&amp;gt;&amp;gt; desc = size(G3);&lt;br /&gt;
&amp;gt;&amp;gt; BellInequalityMax(G3,desc,'fp','classical')&lt;br /&gt;
&lt;br /&gt;
ans =&lt;br /&gt;
&lt;br /&gt;
    0.5185&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{SourceCode|name=ParallelRepetition}}&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
* The algorithm for computing the classical value is parallelized, which leads to much faster performance on computers with multiple CPUs. Nevertheless, the complexity is still superexponential in &amp;lt;tt&amp;gt;REPT&amp;lt;/tt&amp;gt;, making 4 or more parallel repetitions intractable.&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Araujoms</name></author>
	</entry>
</feed>