Source code to derive graph properties of contextuality from linear programs
Prior to reading, this analysis assumes you are familiar with the following works:
-  Acin, A., Fritz, T., Leverrier, A., and Sainz, A. B. (2015). A combinatorial approach to nonlocality and contextuality. Communications in Mathematical Physics, 334(2):533–628.
-  Obeid, Abdul (2021) Modelling contextuality amidst causal influences by means of a computationally tractable combinatorial approach. PhD thesis, Queensland University of Technology.
This iPython Jupyter Notebook serves as an interactive and clarified method through which one can understand the process used to derive the novel graph properties of  which characterise contextuality. For this example, I'll be deriving the graph properties for a Bell-CHSH scenario.
Cite this collection
Creative Commons Attribution 4.0 (CC-BY)