Simulating Bell inequalities with Qibo
Pith reviewed 2026-05-23 07:21 UTC · model grok-4.3
The pith
Qibo supplies code and three-tier lesson plans to simulate Bell inequality violations in quantum circuits.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The authors present three modules of increasing difficulty, each containing Qibo code that implements Bell inequality tests on quantum circuits. These tools allow students to observe numerical violations, explore the role of hidden variables, and examine how statistical sampling and device noise modify the results.
What carries the argument
Qibo quantum-circuit implementations of Bell tests, structured as three progressive classroom modules that incorporate both ideal evolution and noise models.
If this is right
- Students obtain executable examples that demonstrate explicit numerical violation of Bell inequalities.
- The modules let learners add noise channels and observe how real-device imperfections reduce the observed violation.
- Classroom time can be organized around concrete coding tasks rather than purely theoretical derivations.
- The same framework supports both software simulation and direct calls to quantum hardware.
Where Pith is reading between the lines
- The same modular structure could be reused for teaching other correlation-based quantum protocols such as quantum key distribution.
- Extending the modules to include error-mitigation techniques would make the gap between ideal and hardware results even more visible.
- An instructor could pair the Qibo notebooks with classical Monte-Carlo simulations to contrast the computational cost of reproducing the same statistics.
Load-bearing premise
The provided code and guides will actually help students understand entanglement and non-locality.
What would settle it
A controlled comparison in which students who complete the modules show no measurable gain in correctly identifying the incompatibility between quantum predictions and local hidden-variable theories compared with students taught only through lectures.
Figures
read the original abstract
We present educational material about Bell inequalities in the context of quantum computing. In particular, we provide software tools to simulate their violation, together with a guide for the classroom discussion. The material is organized in three modules of increasing difficulty, and the relative implementation has been written in Qibo, an open-source software suite to simulate quantum circuits with the ability to interface with quantum hardware. The topic of inequalities allows not only to introduce undergraduate or graduate students to crucial theoretical issues in quantum mechanics -- like entanglement, correlations, hidden variables, non-locality --, but also to practically put hands on tools to implement a real simulation, where statistical aspects and noise coming from current quantum chips also come into play.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript presents educational material on Bell inequalities in quantum mechanics, using the open-source Qibo framework to provide simulation tools for their violation. The content is structured into three modules of increasing difficulty, accompanied by a classroom discussion guide; the goal is to introduce undergraduate and graduate students to concepts such as entanglement, hidden variables, correlations, and non-locality while incorporating statistical effects and hardware noise.
Significance. If the supplied Qibo implementations are correct and the modules are classroom-tested, the work supplies a concrete, open-source pedagogical resource that combines theoretical exposition with executable quantum-circuit simulations. This directly addresses the scarcity of accessible, hardware-aware teaching materials on Bell tests and can be adopted or adapted by instructors without requiring them to develop code from scratch.
minor comments (3)
- [Abstract / §1] The abstract and introduction refer to 'three modules of increasing difficulty' without listing their titles or one-sentence objectives; adding this information (perhaps as a short enumerated list in §1) would allow readers to gauge scope immediately.
- The manuscript states that implementations 'have been written in Qibo' but does not indicate whether the source code is included as supplementary material, deposited in a public repository, or only described at a high level; an explicit statement with a DOI or URL is needed for reproducibility.
- Figure captions and any circuit diagrams should explicitly state the Qibo version, backend (e.g., qibojit or qibolab), and whether the plotted statistics include simulated noise or ideal counts, to avoid ambiguity when readers attempt to reproduce the results.
Simulated Author's Rebuttal
We thank the referee for the positive evaluation of our manuscript and the recommendation for minor revision. The report correctly identifies the educational value of the three modules and the classroom discussion guide as an open-source resource for teaching Bell inequalities, entanglement, and related concepts with Qibo simulations that incorporate statistical and noise effects.
Circularity Check
No significant circularity
full rationale
The paper presents educational software tools and classroom modules for simulating Bell inequality violations in Qibo. It contains no derivations, equations, predictions, or fitted parameters that could reduce to inputs by construction. The central claim is the provision of descriptive pedagogical material, which is self-contained and externally verifiable without reference to any internal chain.
Axiom & Free-Parameter Ledger
Reference graph
Works this paper leans on
-
[1]
URL https://qtedu.eu/material-and-tools/higher-education
Materials and Tools for Higher Education, Quantum Technology Education portal. URL https://qtedu.eu/material-and-tools/higher-education
-
[2]
M. Riedel, et al., Europe’s Quantum Flagship initiative, Quantum Science and Technology 4 (2) (2019) 020501.doi:10.1088/2058-9565/ab042d. URL https://dx.doi.org/10.1088/2058-9565/ab042d
-
[3]
M. Haghparast, et al., Innovative Approaches to Teaching Quantum Computer Program- ming and Quantum Software Engineering, in: 2024 International Conference on Quan- tum Computing and Engineering, 2024.arXiv:2501.01446, doi:10.1109/QCE60285.2024. 10287
-
[4]
Q. Sun, et al., From computing to quantum mechanics: accessible and hands-on quantum computing education for high school students, EPJ Quantum Technology 11 (1) (2024) 58. doi:10.1140/epjqt/s40507-024-00271-9. URL https://doi.org/10.1140/epjqt/s40507-024-00271-9
-
[5]
URL https://cern.ch/bell-in-qibo
Bell inequalities simulation code, GitHub. URL https://cern.ch/bell-in-qibo
-
[6]
S. Efthymiou, et al., Qibo: a framework for quantum simulation with hardware acceleration, Quantum Science and Technology 7 (1) (2021) 015018.doi:10.1088/2058-9565/ac39f5
-
[7]
A. Javadi-Abhari, et al., Quantum computing with Qiskit (2024).arXiv:2405.08810
work page internal anchor Pith review Pith/arXiv arXiv 2024
-
[8]
Developers, Cirq (May 2024).doi:10.5281/zenodo.11398048
C. Developers, Cirq (May 2024).doi:10.5281/zenodo.11398048
-
[9]
Y. Suzuki, et al., Qulacs: a fast and versatile quantum circuit simulator for research purpose, Quantum 5 (2021) 559.doi:10.22331/q-2021-10-06-559. 22
-
[10]
PennyLane: Automatic differentiation of hybrid quantum-classical computations
V. Bergholm, et al., Pennylane: Automatic differentiation of hybrid quantum-classical com- putations (2022). arXiv:1811.04968
work page internal anchor Pith review Pith/arXiv arXiv 2022
- [11]
-
[12]
G. Aad, et al., Observation of quantum entanglement with top quarks at the ATLAS de- tector, Nature 633 (8030) (2024) 542–547.doi:10.1038/s41586-024-07824-z
-
[13]
J. S. Bell, On the Einstein Podolsky Rosen paradox, Physics Physique Fizika 1 (1964) 195–200.doi:10.1103/PhysicsPhysiqueFizika.1.195
-
[14]
Can quantum-mechanical description of physical reality be considered complete
A. Einstein, B. Podolsky, N. Rosen, Can quantum-mechanical description of physical reality be considered complete?, Phys. Rev. 47 (1935) 777–780.doi:10.1103/PhysRev.47.777
-
[15]
Bohr, Can quantum-mechanical description of physical reality be considered complete?, Phys
N. Bohr, Can quantum-mechanical description of physical reality be considered complete?, Phys. Rev. 48 (1935) 700
work page 1935
-
[16]
Bohm, Quantum theory, Prentice-Hall, Englewood Cliffs (1951)
D. Bohm, Quantum theory, Prentice-Hall, Englewood Cliffs (1951)
work page 1951
-
[17]
J. F. Clauser, M. A. Horne, A. Shimony, R. A. Holt, Proposed experiment to test local hidden-variable theories, Phys. Rev. Lett. 23 (1969) 880–884.doi:10.1103/PhysRevLett. 23.880
-
[18]
E. P. Wigner, On hidden variables and quantum mechanical probabilities, Am. J. Phys. 38 (1970) 1005–1009
work page 1970
-
[19]
Sakurai, (modern quantum mechanics (1st ed.)), Menlo Park, Calif., Benjamin Cummings (1985)
J. Sakurai, (modern quantum mechanics (1st ed.)), Menlo Park, Calif., Benjamin Cummings (1985)
work page 1985
-
[20]
G. Fano, S. M. Blinder, Twenty-first century quantum mechanics: Hilbert space to quantum computers, Springer Ed. (2017)
work page 2017
-
[21]
S. J. Freedman, J. F. Clauser, Experimental test of local hidden-variable theories, Phys. Rev. Lett. 28 (1972) 938–941.doi:10.1103/PhysRevLett.28.938
-
[22]
J. F. Clauser, M. A. Horne, Experimental consequences of objective local theories, Phys. Rev. D 10 (1974) 526–535.doi:10.1103/PhysRevD.10.526
-
[23]
J. F. Clauser, A. Shimony, Bell’s theorem. experimental tests and implications, Reports on Progress in Physics 41 (12) (1978) 1881.doi:10.1088/0034-4885/41/12/002
-
[24]
J. S. Bell, Bertlmann’s Socks and the Nature of Reality, J. Phys. Colloq. 42 (1981) 41–62. doi:10.1051/jphyscol:1981202
-
[25]
N. D. Mermin, Extreme quantum entanglement in a superposition of macroscopically dis- tinct states, Phys. Rev. Lett. 65 (15) (1990) 1838.doi:10.1103/PhysRevLett.65.1838
-
[26]
D. Alsina, J. I. Latorre, Experimental test of Mermin inequalities on a five-qubit quantum computer, Phys. Rev. A 94 (2016) 012314.doi:10.1103/PhysRevA.94.012314
-
[27]
Alsina, et al., Operational approach to Bell inequalities: Application to qutrits, Phys
D. Alsina, et al., Operational approach to Bell inequalities: Application to qutrits, Phys. Rev. A 94 (2016) 032102.doi:10.1103/PhysRevA.94.032102
-
[28]
URL https://learning.quantum.ibm.com/tutorial/chsh-inequality 23
CHSH Inequality, Qiskit tutorial. URL https://learning.quantum.ibm.com/tutorial/chsh-inequality 23
-
[29]
URL https://qibo.science/qibo/stable/code-examples/tutorials/ bell-variational/README.html
Maximal violation of Bell inequalities variationally, Qibo tutorial. URL https://qibo.science/qibo/stable/code-examples/tutorials/ bell-variational/README.html
-
[30]
R. Lahoz Sanz, et al., Undergraduate setup for measuring the Bell inequalities and per- forming quantum state tomography, EPJ Quantum Technology 11 (1) (2024) 86. doi: 10.1140/epjqt/s40507-024-00298-y. URL https://doi.org/10.1140/epjqt/s40507-024-00298-y
-
[31]
doi:10.1140/epjqt/s40507-024-00287-1
G.Zuccarini, etal., Teachingquantuminformationsciencetosecondaryschoolstudentswith photon polarization and which-path encoding, EPJ Quantum Technology 11 (1) (2024) 74. doi:10.1140/epjqt/s40507-024-00287-1. URL https://doi.org/10.1140/epjqt/s40507-024-00287-1
-
[32]
D. Piparo, et al., SWAN: A service for interactive analysis in the cloud, Future Generation Computer Systems 78 (2018) 1071–1078.doi:https://doi.org/10.1016/j.future.2016. 11.035
-
[33]
J. F. Geurdes, Wigner’s variant of Bell’s inequality, Australian Journal of Physics 51 (1998) 835–842. URL https://api.semanticscholar.org/CorpusID:55835230
work page 1998
-
[34]
M. O. Scully, N. Erez, E. S. Fry, Do EPR-Bell correlations require a non-local interpreta- tion of quantum mechanics? I: Wigner approach, Physics Letters A 347 (1) (2005) 56–61, Einstein Special Issue. doi:https://doi.org/10.1016/j.physleta.2005.06.084
-
[35]
K. Hess, H. De Raedt, K. Michielsen, Analysis of Wigner’s Set Theoretical Proof for Bell- Type Inequalities, Journal of modern physics 08 (01) (2017) 57 – 67.doi:10.4236/jmp. 2017.81005
work page doi:10.4236/jmp 2017
-
[36]
K. Hess, A Critical Review of Works Pertinent to the Einstein-Bohr Debate and Bell’s Theorem, Symmetry 14 (1) (2022).doi:10.3390/sym14010163
- [37]
-
[38]
C. D. Bruzewicz, J. Chiaverini, R. McConnell, J. M. Sage, Trapped-ion quantum com- puting: Progress and challenges, Applied Physics Reviews 6 (2) (May 2019). doi: 10.1063/1.5088164
-
[39]
L. Henriet, L. Beguin, A. Signoles, T. Lahaye, A. Browaeys, G.-O. Reymond, C. Jur- czak, Quantum computing with neutral atoms, Quantum 4 (2020) 327. doi:10.22331/ q-2020-09-21-327
work page 2020
-
[40]
L. S. Madsen, et al., Quantum computational advantage with a programmable photonic processor, Nature 606 (7912) (2022) 75–81.doi:10.1038/s41586-022-04725-x
-
[41]
M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2000
work page 2000
- [42]
-
[43]
Efthymiou, et al., Qibolab: an open-source hybrid quantum operating system, Quantum 8 (2024) 1247
S. Efthymiou, et al., Qibolab: an open-source hybrid quantum operating system, Quantum 8 (2024) 1247. doi:10.22331/q-2024-02-12-1247. URL http://dx.doi.org/10.22331/q-2024-02-12-1247 24
-
[44]
A. Pasquale, et al., Qibocal: an open-source framework for calibration of self-hosted quan- tum devices (2024). arXiv:2410.00101. URL https://arxiv.org/abs/2410.00101
-
[45]
S. Efthymiou, M. Lazzarin, A. Pasquale, S. Carrazza, Quantum simulation with just-in-time compilation, Quantum 6 (2022) 814.doi:10.22331/q-2022-09-22-814. URL http://dx.doi.org/10.22331/q-2022-09-22-814
-
[46]
A. Pasquale, A. Papaluca, R. M. S. Farias, M. Robbiati, E. Pedicillo, S. Carrazza, Beyond full statevector simulation with Qibo (2024).arXiv:2408.00384. URL https://arxiv.org/abs/2408.00384
-
[47]
Goldstein et al., Bell’s theorem, Scholarpedia 6(10) (2011) 8378
S. Goldstein et al., Bell’s theorem, Scholarpedia 6(10) (2011) 8378
work page 2011
-
[48]
Wolfram MathWorld. Small Rhombicuboctahedron. URL https://mathworld.wolfram.com/SmallRhombicuboctahedron.html
-
[49]
J. Levy, C. Singh, Teaching quantum formalism and postulates to first-year undergraduates, Am. J. Phys. 93 (1) (2025) 46–51.arXiv:2412.02017, doi:10.1119/5.0209945. 25
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.