Extended nonlocal games are a superset of nonlocal games in which the
players share a tripartite state with the referee. In such games, the
winning conditions for Alice and Bob may depend on outcomes of measurements
made by the referee, on its part of the shared quantum state, in addition
to Alice and Bob’s answers to the questions sent by the referee.
Extended nonlocal games were initially defined in [1] and more
information on these games can be found in [2].
An example demonstration is available as a tutorial in the
documentation. Go to Extended nonlocal games.
Initialize game dimensions from the prediction matrix.
This private method checks whether the game dimensions have already been initialized by
inspecting the ‘_dims_initialized_by_get_game_dims’ flag. If not, it extracts the dimensions
from the shape of ‘self.pred_mat’ and assigns the following instance attributes:
referee_dim: The first dimension of self.pred_mat.
num_alice_out: The third element of self.pred_mat.shape.
num_bob_out: The fourth element.
num_alice_in: The fifth element.
num_bob_in: The sixth element.
After extracting these values, the flag ‘_dims_initialized_by_get_game_dims’ is set to True
to prevent re-initialization on subsequent calls.
Calculate the unentangled value of an extended nonlocal game.
The unentangled value of an extended nonlocal game is the supremum
value for Alice and Bob’s winning probability in the game over all
unentangled strategies. Due to convexity and compactness, it is possible
to calculate the unentangled extended nonlocal game by:
Calculate the non-signaling value of an extended nonlocal game.
The non-signaling value of an extended nonlocal game is the supremum
value of the winning probability of the game taken over all
non-signaling strategies for Alice and Bob.
A non-signaling strategy for an extended nonlocal game consists of a
function
for all \(x \in \Sigma_A\) and \(y \in \Sigma_B\) where
\(\{\rho_b^y : y \in \Sigma_A, \ b \in \Gamma_B\}\) and
\(\{\sigma_a^x : x \in \Sigma_A, \ a \in \Gamma_B\}\) are
collections of operators satisfying
Compute an upper bound on the commuting measurement value of an extended nonlocal game.
This function calculates an upper bound on the commuting measurement value by
using k-levels of the NPA hierarchy [3]. The NPA hierarchy is a uniform
family of semidefinite programs that converges to the commuting measurement value of
any extended 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 an extended nonlocal game.