Skip to main content
QUICK REVIEW

[Paper Review] A linear program for testing nonclassicality and an open-source implementation

John H. Selby, Elie Wolfe|arXiv (Cornell University)|Apr 25, 2022
Philosophy and History of ScienceArts and Humanities6 citations
TL;DR

This paper presents a linear program to test whether a prepare-measure quantum experiment violates generalized noncontextuality—i.e., whether its statistics can be explained by a classical (noncontextual) model. The method inputs arbitrary quantum states and effects, determines if a classical model exists, and if not, computes the minimal noise required to make the statistics classically explainable, with an open-source Mathematica implementation provided for practical use.

ABSTRACT

A well motivated method for demonstrating that an experiment resists any classical explanation is to show that its statistics violate generalized noncontextuality. We here formulate this problem as a linear program and provide an open-source implementation of it which tests whether or not any given prepare-measure experiment is classically-explainable in this sense. The input to the program is simply an arbitrary set of quantum states and an arbitrary set of quantum effects; the program then determines if the Born rule statistics generated by all pairs of these can be explained by a classical (noncontextual) model. If a classical model exists, it provides an explicit model. If it does not, then it computes the minimal amount of noise that must be added such that a model does exist, and then provides this model. We generalize all these results to arbitrary generalized probabilistic theories (and accessible fragments thereof) as well; indeed, our linear program is a test of simplex-embeddability.

Motivation & Objective

  • To provide a rigorous, operational method for testing whether a given prepare-measure experiment in quantum theory (or generalized probabilistic theories) admits a classical, noncontextual explanation.
  • To develop a practical algorithm that determines whether Born rule statistics from a finite set of quantum states and effects can be reproduced by a noncontextual ontological model.
  • To compute the minimal amount of noise required to render a nonclassical experiment classically explainable, quantifying its nonclassicality.
  • To generalize the framework beyond quantum theory to arbitrary generalized probabilistic theories (GPTs), testing simplex-embeddability of accessible GPT fragments.
  • To deliver a complete, open-source implementation in Mathematica that enables researchers to test nonclassicality in their own experimental or theoretical scenarios.

Proposed method

  • Formulates the problem of nonclassicality testing as a linear program by encoding the conditions for simplex-embeddability of an accessible GPT fragment.
  • Uses the Gell-Mann matrix representation to map Hermitian operators (states and effects) into real vectors, enabling standard linear algebra techniques.
  • Employs the double description method (via the cdd binary) to compute facet inequalities of the state and effect cones in the accessible GPT fragment.
  • Applies a depolarization map using the maximally mixed state (or a central state if unavailable) to define a noise model for quantifying robustness of nonclassicality.
  • Constructs an explicit noncontextual ontological model via matrices μ (epistemic states) and ξ (response functions) when a simplex embedding exists.
  • Returns a simplex embedding of the minimally depolarized GPT fragment when no classical model exists, ensuring the result is physically meaningful and computationally accessible.

Experimental results

Research questions

  • RQ1Can a given set of quantum states and effects generate statistics that are explainable by a noncontextual ontological model?
  • RQ2What is the minimal amount of noise required to make a nonclassical prepare-measure scenario classically explainable?
  • RQ3How can the concept of generalized noncontextuality be tested efficiently in arbitrary generalized probabilistic theories (GPTs)?
  • RQ4What is the minimal number of ontic states required to classically explain any GPT fragment, and can this be bounded?
  • RQ5Can a systematic, open-source computational tool be developed to test nonclassicality in quantum foundations and quantum information experiments?

Key findings

  • The linear program correctly determines whether a given prepare-measure experiment is classically explainable via a noncontextual model, with the result being zero robustness (r = 0) if and only if such a model exists.
  • When no classical model exists, the program computes the minimal noise level (r > 0) required to make the statistics classically explainable, providing a quantitative measure of nonclassicality.
  • The method proves that any accessible GPT fragment admitting a simplex embedding requires at most d² ontic states, where d is the GPT dimension, establishing a tight upper bound.
  • The open-source Mathematica implementation correctly processes both quantum and general GPT inputs, converting them into accessible GPT fragments via inclusion and projection matrices.
  • The code outputs an explicit noncontextual ontological model (via μ and ξ matrices) when possible, or a simplex embedding of the minimally depolarized fragment when nonclassicality is detected.
  • The algorithm is robust to input format: it automatically computes the maximally mixed state and unit effect when not provided, ensuring consistent behavior across different input types.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.