PreprintCC BY 4.0arXiv
ConteXtuAlity: an open source Python package for contextuality
Abstract
We present an open source Python package, ConteXtuAlity, for computing various quantities related to contextuality. This package features an interface to the sheaf-theoretic framework for contextuality, providing an implementation of measurement scenarios and empirical models as well as linear programs to compute the contextual fraction and the signalling fraction. In this work, we demonstrate the package's features and give examples of its use. We also provide benchmarks, demonstrating how performances scale with the size of measurement scenarios. The package is designed for both experienced theorists and newcomers to the field of contextuality alike, with an emphasis on flexibility and extensibility.
Related
- axionbloch: an Open-Source Python Package for Simulating Axion-Induced Spin Dynamics
- QwaveMPS: An efficient open-source Python package for simulating non-Markovian waveguide-QED using matrix product states
- The Python simulations of chemistry framework: 10 years of an open-source quantum chemistry project
- SmoQyElPhQMC.jl: An open-source Julia package for efficient and scalable quantum Monte Carlo simulations of electron-phonon coupled models
- Omni-iEEG Planner: an open-source Python platform integrating multimodal neuroimaging and intracranial EEG data for epilepsy surgery research
BibTeX
@misc{vallee2026contextuality,
title = {{ConteXtuAlity: an open source Python package for contextuality}},
author = {Kim Vallée},
howpublished = {arXiv},
year = {2026},
month = sep,
doi = {10.48550/arxiv.2609.17294},
eprint = {2609.17294},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2609.17294},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - ConteXtuAlity: an open source Python package for contextuality
AU - Kim Vallée
PY - 2026
DA - 2026/09/15
PB - arXiv
DO - 10.48550/arxiv.2609.17294
UR - https://arxiv.org/abs/2609.17294
AB - We present an open source Python package, ConteXtuAlity, for computing various quantities related to contextuality. This package features an interface to the sheaf-theoretic framework for contextuality, providing an implementation of measurement scenarios and empirical models as well as linear programs to compute the contextual fraction and the signalling fraction. In this work, we demonstrate the package's features and give examples of its use. We also provide benchmarks, demonstrating how performances scale with the size of measurement scenarios. The package is designed for both experienced theorists and newcomers to the field of contextuality alike, with an emphasis on flexibility and extensibility.
ER -