Numerical implementation of the SDP relaxations introduced in the pre-print Hyejung H. Jee, et al, Characterising quantum correlations of fixed dimension (2020), available at this link.
This notebook showcasts the first levels of the SDP hierarchy. In particular, we give an explicit program for
- CHSH game, levels (1,1), (2,1), (2,2), and (3,1)
- I3322, level (3,3) with only PPT conditions.
- A random game with 3 answers and 2 questions for each player, where the sdp(2,1)+NPA1 gives a better value than NPA1
The code is written in Python (using cvxpy), and the solver we used is Mosek.