pith. sign in

arxiv: 2501.01434 · v2 · pith:BHZ2DCFInew · submitted 2024-12-18 · ⚛️ physics.ed-ph · quant-ph

Simulating Bell inequalities with Qibo

Pith reviewed 2026-05-23 07:21 UTC · model grok-4.3

classification ⚛️ physics.ed-ph quant-ph
keywords Bell inequalitiesquantum computingQiboentanglementnon-localityeducational materialquantum simulationclassroom modules
0
0 comments X

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.

The paper supplies ready-to-run Qibo implementations and classroom guides that let students simulate the violation of Bell inequalities. The material is split into three modules that move from ideal cases to realistic noise, giving direct experience with entanglement, correlations, and the failure of local hidden-variable models. A reader would care because the approach turns abstract quantum foundations into executable code that also exposes statistical and hardware effects present on current devices.

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

These are editorial extensions of the paper, not claims the author makes directly.

  • 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

Figures reproduced from arXiv: 2501.01434 by Giuseppe Lo Presti, Isabella Masina, Matteo Robbiati, Michele Grossi.

Figure 1
Figure 1. Figure 1: Experimental setup to study the Bell-Wigner inequality. The system in the final state is assumed to be made of two spin-1/2 particles flying apart, say along the y direction, with null relative orbital angular momentum. The latter requirement is important as, due to angular momentum conservation, this implies that the particles still are in a total spin singlet state. Observers A (Alice) and B (Bob) measur… view at source ↗
Figure 2
Figure 2. Figure 2: Three directions for the experimental setup studying the Bell-Wigner inequality. Following Wigner [18], let us assume that some local hidden (LH) variable allows us to classify entangled pairs into various populations, according to the outcomes that A and B would find choosing to measure the spin along aˆ, ˆb or cˆ. In any given event, the pair must be a member of one of the eight populations shown in tabl… view at source ↗
Figure 3
Figure 3. Figure 3: QW QM is shown as a function of θac. Left: for selected values of ϕ and taking θab = π/2. Right: for selected values of θab and taking ϕ = 0. The maximal violation configuration (ϕ = 0, θac = π/4, θab = π/2) is the one that, as already mentioned, allows for a remarkable representation in terms of solids, as discussed in app. A. The violation of the Bell-Wigner inequality (5) due to quantum non-locality sho… view at source ↗
Figure 4
Figure 4. Figure 4: Qibo simulation for the Bell-Wigner inequality (5). The [PITH_FULL_IMAGE:figures/full_fig_p011_4.png] view at source ↗
Figure 5
Figure 5. Figure 5: QB QM is shown as a function of θac = θ. Left: for selected values of ϕ and taking θab = π/2. Right: for selected values of θab and taking ϕ = 0. It has to be stressed that the Bell inequality assumes perfect anti-correlation, as discussed in app. C: if one particle is measured along a given axis with spin-up, the other must be spin￾down. This is crucial because local hidden variable theories predict deter… view at source ↗
Figure 6
Figure 6. Figure 6: Qibo simulation for the Bell 1964 inequality (12). The [PITH_FULL_IMAGE:figures/full_fig_p013_6.png] view at source ↗
Figure 7
Figure 7. Figure 7: QS QM, that is the left-hand side of CHSH inequality (20) according to quantum mechanics, is shown as a function of θac. Left: taking ϕ = 0 and selected values of θab = θcd. Right: taking θab = θcd = π/2 and selected values of ϕ. 14 [PITH_FULL_IMAGE:figures/full_fig_p014_7.png] view at source ↗
Figure 8
Figure 8. Figure 8: Qibo simulation of the CHSH inequality. The [PITH_FULL_IMAGE:figures/full_fig_p015_8.png] view at source ↗
Figure 9
Figure 9. Figure 9: Polar plot of the Qibo simulation for the CHSH inequality, for selected values of [PITH_FULL_IMAGE:figures/full_fig_p016_9.png] view at source ↗
Figure 10
Figure 10. Figure 10: Some of the possible sources of noise of a quantum device. [PITH_FULL_IMAGE:figures/full_fig_p017_10.png] view at source ↗
Figure 11
Figure 11. Figure 11: Visualization of the pair of particles belonging to population 3, flying apart and being measured by A and B, along one of the coplanar directions aˆ, ˆb and cˆ, with the predetermined result written on the faces orthogonal to the corresponding direction. This visually helps to show how the LH variables have been introduced. The initial particles are assumed not to be all equal to each other when entangle… view at source ↗
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.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

0 major / 3 minor

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)
  1. [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.
  2. 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.
  3. 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

0 responses · 0 unresolved

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

0 steps flagged

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

0 free parameters · 0 axioms · 0 invented entities

No free parameters, axioms, or invented entities because the paper introduces no new scientific claims or derivations.

pith-pipeline@v0.9.0 · 5642 in / 795 out tokens · 38028 ms · 2026-05-23T07:21:21.294623+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Reference graph

Works this paper leans on

49 extracted references · 49 canonical work pages · 2 internal anchors

  1. [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. [2]

    Riedel, et al., Europe’s Quantum Flagship initiative, Quantum Science and Technology 4 (2) (2019) 020501.doi:10.1088/2058-9565/ab042d

    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. [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. [4]

    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

    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. [5]

    URL https://cern.ch/bell-in-qibo

    Bell inequalities simulation code, GitHub. URL https://cern.ch/bell-in-qibo

  6. [6]

    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

    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. [7]

    Quantum computing with Qiskit

    A. Javadi-Abhari, et al., Quantum computing with Qiskit (2024).arXiv:2405.08810

  8. [8]

    Developers, Cirq (May 2024).doi:10.5281/zenodo.11398048

    C. Developers, Cirq (May 2024).doi:10.5281/zenodo.11398048

  9. [9]

    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

    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. [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

  11. [11]

    Grossi, G

    M. Grossi, G. Pelliccioli, A. Vicini, From angular coefficients to quantum observables: a phenomenological appraisal in di-boson systems (2024).arXiv:2409.16731. URL https://arxiv.org/abs/2409.16731

  12. [12]

    Aadet al.[ATLAS], Nature633(2024) no.8030, 542-547 doi:10.1038/s41586-024-07824-z [arXiv:2311.07288 [hep-ex]]

    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. [13]

    J. S. Bell, On the Einstein Podolsky Rosen paradox, Physics Physique Fizika 1 (1964) 195–200.doi:10.1103/PhysicsPhysiqueFizika.1.195

  14. [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. [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

  16. [16]

    Bohm, Quantum theory, Prentice-Hall, Englewood Cliffs (1951)

    D. Bohm, Quantum theory, Prentice-Hall, Englewood Cliffs (1951)

  17. [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. [18]

    E. P. Wigner, On hidden variables and quantum mechanical probabilities, Am. J. Phys. 38 (1970) 1005–1009

  19. [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)

  20. [20]

    G. Fano, S. M. Blinder, Twenty-first century quantum mechanics: Hilbert space to quantum computers, Springer Ed. (2017)

  21. [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. [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. [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. [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. [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. [26]

    Alsina, J

    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. [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. [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. [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. [30]

    Lahoz Sanz, et al., Undergraduate setup for measuring the Bell inequalities and per- forming quantum state tomography, EPJ Quantum Technology 11 (1) (2024) 86

    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. [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. [32]

    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

    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. [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

  34. [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. [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

  36. [36]

    Hess, A Critical Review of Works Pertinent to the Einstein-Bohr Debate and Bell’s Theorem, Symmetry 14 (1) (2022).doi:10.3390/sym14010163

    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. [37]

    Y. Y. Gao, M. A. Rol, S. Touzard, C. Wang, A practical guide for building superconducting quantum devices (2021).arXiv:2106.06173

  38. [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. [39]

    Henriet, L

    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

  40. [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. [41]

    M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2000

  42. [42]

    N. D. Mermin, Quantum Ccomputer Science, Cambridge University Press, 2007. URL http://www.worldcat.org/isbn/9780521876582

  43. [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. [44]

    Pasquale, et al., Qibocal: an open-source framework for calibration of self-hosted quan- tum devices (2024)

    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. [45]

    Efthymiou, M

    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. [46]

    Pasquale, A

    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. [47]

    Goldstein et al., Bell’s theorem, Scholarpedia 6(10) (2011) 8378

    S. Goldstein et al., Bell’s theorem, Scholarpedia 6(10) (2011) 8378

  48. [48]

    Small Rhombicuboctahedron

    Wolfram MathWorld. Small Rhombicuboctahedron. URL https://mathworld.wolfram.com/SmallRhombicuboctahedron.html

  49. [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