seesaw¶
- seesaw.OptCHSHgame(C, dim)¶
- \[\beta_{\operatorname{CHSH}}(S) = \frac{1}{4}\sum_{x,y\in\{0,1\}} (-1)^{C(a,b,x,y)} \cdot \bra{\psi}A_x \otimes B_y \ket{\psi}\]
- Parameters:¶
C (
numeric
) – The binary matrix of 4Ds of the given quantum strategy.dim (
numeric
) – The array storing dimensions of subsystems A and B.
- Returns:¶
The optimal input state to perform the CHSH game. numeric: The array to store the optimal measurement on system A numeric: The array to store the optimal measurement on system B.
- Return type:¶
numeric