Skip to content

apozas/symmetric-causal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOI

Christian William, Patrick Remy, Jean-Daniel Bancal, Yu Cai, Nicolas Brunner, and Alejandro Pozas-Kerstjens

This is a repository containing the computational appendix of the article "Symmetric observations without symmetric causal explanations. Christian William, Patrick Remy, Jean-Daniel Bancal, Yu Cai, Nicolas Brunner, and Alejandro Pozas-Kerstjens. Phys. Rev. A 113, 032219 (2026) (arXiv:2502.14950)." It provides the codes for obtaining the results depicted in Figure 4 and Appendix C in the manuscript.

The code is written in Python.

Python libraries required:

  • inflation (and its requirements) for setting up and solving the inflation problems
  • matplotlib for plots
  • mosek for solving the linear programs
  • numpy for math operations
  • scipy for sparse matrix operations
  • sympy for symbolic operations

Files:

  • inflation11_range.py: Code for producing the orange region in Figure 4 in the manuscript. For each value of , it computes what is the highest value of for which the corresponding distribution is identified to be incompatible with symmetric realizations in the triangle scenario via the 11th level of the hierarchy defined in the manuscript.

  • inflation15_single.py: Code for producing the orange region in Figure 4 in the manuscript. For given values of and , it determines whether the corresponding distribution is incompatible with symmetric realizations in the triangle scenario via the 15th level of the hierarchy defined in the manuscript. Upon finding an incompatible distribution, it saves the corresponding certificate of infeasibility.

  • nsi.py: Code for producing the blue region in Figure 4 in the manuscript. It reproduces the boundary of Fig. 2 in Nat. Commun. 11, 2378 (2020) (arXiv:1906.06495) using the inflation library.

  • plot_results.py: Code to generate Figure 4 in the manuscript.

  • utils.py: Helper functions to define the constraints of the linear programs and to process everything as sparse arrays.

  • results: Folder where the results of the calculations are stored. In particular, it contains the certificate of infeasibility of Appendix C in machine-readable form. It is given as a matrix, where each row represents a monomial, and the columns represent, correspondingly, the prefactor, the power of , and the power of . Example code for reading it can be found in L30-L33 in plot_results.py.

If you would like to cite this work, please use the following format:

C. William, P. Remy, J.-D. Bancal, Y. Cai, N. Brunner, and A. Pozas-Kerstjens, Symmetric observations without symmetric causal explanations, Phys. Rev. A 113, 032219 (2026), arXiv:2502.14950

@article{william2025symmetric,
  title = {Symmetric observations without symmetric causal explanations},
  author = {William, Christian and Remy, Patrick and Bancal, Jean-Daniel and Cai, Yu and Brunner, Nicolas and Pozas-Kerstjens, Alejandro},
  journal = {Phys. Rev. A},
  volume = {113},
  issue = {3},
  pages = {032219},
  numpages = {10},
  year = {2026},
  month = {Mar},
  publisher = {American Physical Society},
  doi = {10.1103/y4tn-cx43},
  url = {https://link.aps.org/doi/10.1103/y4tn-cx43},
  archivePrefix = {arXiv},
  eprint = {2502.14950}
}

About

Computational appendix for Phys. Rev. A 113, 032219 (2026) [arXiv:2502.14950]

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages