Nonlocal games are a mathematical framework that abstractly models a
physical system. This game is played between two players, Alice and Bob, who
are not allowed to communicate with each other once the game has started and
who play cooperative against an adversary referred to as the referee.
The nonlocal game framework was originally introduced in [1].
A tutorial is available in the documentation. For more info, see
Nonlocal games.
Compute a lower bound on the quantum value of a nonlocal game [3].
Calculates a lower bound on the maximum value that the specified
nonlocal game can take on in quantum mechanical settings where Alice and
Bob each have access to dim-dimensional quantum system.
This function works by starting with a randomly-generated POVM for Bob,
and then optimizing Alice’s POVM and the shared entangled state. Then
Alice’s POVM and the entangled state are fixed, and Bob’s POVM is
optimized. And so on, back and forth between Alice and Bob until
convergence is reached.
Note that the algorithm is not guaranteed to obtain the optimal local
bound and can get stuck in local minimum values. The alleviate this, the
iter parameter allows one to run the algorithm some pre-specified
number of times and keep the highest value obtained.
The algorithm is based on the alternating projections algorithm as it
can be applied to Bell inequalities as shown in [3].
The alternating projection algorithm has also been referred to as the
“see-saw” algorithm as it goes back and forth between the following two
semidefinite programs:
Compute an upper bound on the commuting measurement value of the nonlocal game.
This function calculates an upper bound on the commuting measurement value by
using k-levels of the NPA hierarchy [4]. The NPA hierarchy is a uniform
family of semidefinite programs that converges to the commuting measurement value of
any nonlocal game.
You can determine the level of the hierarchy by a positive integer or a string
of a form like ‘1+ab+aab’, which indicates that an intermediate level of the hierarchy
should be used, where this example uses all products of one measurement, all products of
one Alice and one Bob measurement, and all products of two Alice and one Bob measurements.
References
Parameters:
k (int | str) – The level of the NPA hierarchy to use (default=1).
Returns:
The upper bound on the commuting strategy value of a nonlocal game.