gmardari-owr/bell-experiment-two-computers — explained in plain English
Analysis updated 2026-05-18
Run a simulated Bell test experiment locally to see a CHSH inequality calculation.
Study how missing data points are handled in a physics style measurement pipeline.
Use the included spreadsheet-friendly sample data to inspect results without running code.
Adapt the alice.py and bob.py scripts to experiment with different trial counts.
| gmardari-owr/bell-experiment-two-computers | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | Python | Python | Python |
| Last pushed | — | 2022-11-22 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 2/5 | 4/5 |
| Audience | researcher | general | developer |
Figures from each repo's GitHub metadata at analysis time.
bell-experiment-two-computers is a small Python project that simulates a physics experiment related to quantum entanglement, called a Bell test, using two separate computer programs instead of real quantum hardware. The project lets two independent scripts, named alice.py and bob.py, stand in for two separated measurement stations. They can run on different computers or on the same computer at different times, and their results are combined by a third script called combine.py, described as a moderator, which checks the data and fills in any missing results with random values, then calculates a statistical measure called the CHSH inequality. The authors explain that a proper test like this needs strict rules: the two stations must not communicate, the measurement choices must be random, every attempt must be counted even if a result is missing, and no data can be thrown away. The project claims to satisfy these rules and reports a strong violation of the CHSH inequality, meaning the results look more connected than ordinary classical physics would predict, even though the simulation uses no real quantum bits at all, only deterministic code. To use it, you need Python 3.14 or newer with no extra libraries. For a single computer test you run the three scripts one after another in the same folder. For the more faithful two computer version, you run alice.py and bob.py separately, ideally on different machines, then copy both output files into one folder before running combine.py. A sample dataset is included in a Data folder if you just want to look at numbers in a spreadsheet. The README also includes a lengthy theoretical explanation arguing that this kind of result does not require new physics, framing it instead as a known effect of how missing data gets replaced with random values. The code is released under the MIT license, and the authors ask that both original creators be credited if you reuse or build on it.
A Python simulation of a quantum-style Bell test physics experiment, run as two separate scripts standing in for two measurement stations, with no real quantum hardware.
Mainly Python. The stack also includes Python.
MIT license allows free use and sharing of the code for any purpose, with credit given to the original authors.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.