ArticlePDF Available

All the noncontextuality inequalities for arbitrary prepare-and-measure experiments with respect to any fixed set of operational equivalences

Authors:

Abstract

Within the framework of generalized noncontextuality, we introduce a general technique for systematically deriving noncontextuality inequalities for any experiment involving finitely many preparations and finitely many measurements, each of which has a finite number of outcomes. Given any fixed sets of operational equivalences among the preparations and among the measurements as input, the algorithm returns a set of noncontextuality inequalities whose satisfaction is necessary and sufficient for a set of operational data to admit of a noncontextual model. Additionally, we show that the space of noncontextual data tables always defines a polytope. Finally, we provide a computationally efficient means for testing whether any set of numerical data admits of a noncontextual model, with respect to any fixed operational equivalences. Together, these techniques provide complete methods for characterizing arbitrary noncontextuality scenarios, both in theory and in practice.
arXiv:1710.08434v1 [quant-ph] 23 Oct 2017
All the noncontextuality inequalities for arbitrary prepare-and-measure experiments
with respect to any fixed sets of operational equivalences
David Schmid, Robert W. Spekkens, and Elie Wolfe
Perimeter Institute for Theoretical Physics, 31 Caroline Street North, Waterloo, Ontario Canada N2L 2Y5
Within the framework of generalized noncontextuality, we introduce a general technique for
systematically deriving noncontextuality inequalities for any experiment involving finitely many
preparations and finitely many measurements, each of which has a finite number of outcomes. Given
any fixed sets of operational equivalences among the preparations and among the measurements as
input, the algorithm returns a set of noncontextuality inequalities whose satisfaction is necessary
and sufficient for a set of operational data to admit of a noncontextual model. Additionally,
we show that the space of noncontextual data tables always defines a polytope. Finally, we
provide a computationally efficient means for testing whether any set of numerical data admits of a
noncontextual model, with respect to any fixed operational equivalences. Together, these techniques
provide complete methods for characterizing arbitrary noncontextuality scenarios, both in theory
and in practice.
I. INTRODUCTION
Proofs of the failure of noncontextuality place strong
constraints on our understanding of nature. For example,
the argument by Kochen and Specker [1] showed that
quantum theory cannot be explained by an ontological
model in which every projective measurement has its
outcome determined by hidden variables, independently
of what other measurements it is implemented jointly
with (that is, independently of context).
A generalized notion of noncontextuality was defined
in Ref. [2]. Heuristically, it asserts that an ontological
model of some operational theory is noncontextual if
and only if laboratory operations which cannot be
operationally distinguished are represented identically
in the model. It was shown that the operational
predictions of quantum theory are inconsistent with the
existence of such a model. Furthermore, this generalized
notion of noncontextuality (which we henceforth refer
to simply as noncontextuality”) applies to arbitrary
operational theories—not just quantum theory—so one
can ask whether any given set of data describing possible
statistics for a prepare-and-measure experiment admits
of a noncontextual model. We will refer to such sets
of data as data tables, since one can organize the data
into a table giving the probability for each pairing of a
preparation with a measurement outcome.
For any prepare-and-measure experiment, this article
presents a systematic method for characterizing all
the data tables consistent with the principle of
noncontextuality, given any fixed set of operational
equivalences among the preparations and any fixed set of
operational equivalences among the measurements. The
inputs to our algorithm are these two sets of operational
equivalences, and the output is a set of inequalities on
the elements of the data table. The satisfaction of
these inequalities is necessary and sufficient for the data
dschmid@perimeterinstitute.ca
table to admit of a noncontextual model with respect
to the specified operational equivalences. Our method
shows that the space of noncontextual data tables for
any prepare-and-measure scenario defines a polytope,
which we term the generalized-noncontextual polytope, in
analogy with the local polytope of a Bell scenario [3].
In addition, this article provides a systematic and
efficient method for deciding if any given data table,
specified numerically, admits of a noncontextual model,
given any fixed set of operational equivalences.
Foundationally, the failure of noncontextuality plays a
key role as a notion of nonclassicality which has broad
applicability, and which subsumes other notions such
as the negativity of quasi-probability representations [4],
the generation of anomalous weak values [5], and
violations of local causality [2]. As such, our method
for deriving inequalities allows one to quantitatively
identify the boundary between the classical and
the nonclassical in arbitrary prepare-and-measure
scenarios. Furthermore, it allows one to directly
generate noise-robust noncontextuality inequalities from
arbitrary proofs of the failure of noncontextuality in
quantum theory [6], thereby allowing one to find
necessary and sufficient conditions for noncontextuality
in scenarios where only necessary conditions were
previously known [711].
Practically, quantifying the boundary between classical
and nonclassical is important for identifying tasks which
admit of a quantum advantage. For example, the failure
of noncontextuality has been shown to be a resource in
various tasks, providing advantages for cryptography [7,
12,13] and computation [1416]. If a given protocol
for quantum cryptography/communication or a given
quantum circuit can be cast into the form of a
prepare-and-measure experiment, then one can apply
our methods to determine whether the given protocol
or circuit admits of a noncontextual model. By
this sort of study, one might identify new quantum
information-processing tasks for which contextuality is
a resource. Our methods should also prove useful
2
for the benchmarking of real quantum devices, just
as Bell inequality violations allow one to certify
randomness [17] and achieve key distribution [18,19] in
a device-independent fashion.
Because the generalized notion of noncontextuality of
Ref. [2] presumes neither the correctness of quantum
theory nor that the preparations and measurements
are noiseless, the noncontextuality inequalities derived
from it can be applied directly to real experimental
data. One such inequality has been violated with high
confidence in a recent experiment, demonstrating that
nature does not admit of a noncontextual model [8].
To date, such experiments have targeted preparations
and measurements that are believed (based on quantum
intuitions) to yield a violation of one particular
noncontextuality inequality. This article provides a
more general and more powerful approach: given a
numerically-specified data table, we provide an efficient
algorithm to determine whether any noncontextuality
inequality is violated by it ,and if one is, to determine
that inequality and its degree of violation.
Our method for finding the generalized-noncontextual
polytope is comprised of two distinct computational
tasks. The first task is to catalog all extremal solutions
which satisfy some initial set of linear constraints; i.e., it
is an instance of the vertex enumeration problem. That
catalog allows us to formulate a condition for membership
in the generalized-noncontextual polytope in terms of
an existential quantifier. The second task, then, is
quantifier elimination, and requires eliminating variables
for a system of linear inequalities. As elaborated herein,
a variety of standard algorithms are readily available for
efficiently solving both of these tasks. Moreover, vertex
enumeration and quantifier elimination algorithms are
already widely used in quantum foundations1.
II. OPERATIONAL AND ONTOLOGICAL
PRELIMINARIES
An operational theory specifies a set of laboratory
procedures, such as preparations and measurements,
as well as a prescription for finding the probability
distribution p(m|M, P) over outcomes mof any given
measurement Mwhen implemented following any given
preparation P.
1Familiar applications of vertex enumeration and quantifier
elimination—albeit not always referred to by these
names—include deriving standard Bell inequalities [2023],
deriving entropic inequalities for generalized correlation
scenarios [2426], and many others [10,2731]. For instance,
Bell inequalities are defined as the convex hull of all local
strategies; i.e. they precisely characterize the region in
probability-space spanned by deterministic strategies [3]. This
relates to vertex enumeration, because the convex hull problem
(finding inequalities given extreme points) is equivalent to vertex
enumeration (finding extreme points given inequalities) from an
algorithmic perspective (see for example Ref. [28, App. A]).
Two preparations P1and P2are termed operationally
equivalent if they generate the same statistics for all
possible measurements:
M:p(m|M, P1) = p(m|M , P2).(1)
We denote this operational equivalence relation by
P1P2.
Similarly, two measurement procedures M1and M2are
termed operationally equivalent if they generate the same
probability distribution over their outcomes (denoted m1
and m2) for all possible preparations:
P:p(m1|M1, P ) = p(m2|M2, P ).(2)
We denote this operational equivalence relation by
M1M2.
We will refer to the event of a measurement Myielding
an outcome mas a measurement effect, denoted [m|M].
If one samples the choice of laboratory procedure Oi
from some probability distribution piand then forgets the
value of i, we introduce the shorthand notation PipiOi
for the effective procedure so defined. The procedures
here could be preparations or measurement effects.
An ontological model attempts to explain the
probabilities p(m|M, P ) in an operational theory via a
set Λ of ontic states. An ontic state λΛ specifies
all the physical properties of the system, and causally
mediates correlations between the preparation and the
measurement. For every laboratory preparation P, the
model specifies a probability distribution µP(λ), where
λ:µP(λ)0,(3)
ZΛ
µP(λ) = 1.(4)
Whenever preparation Pis implemented, the ontic state
λis sampled from an associated probability distribution
µP(λ). Every measurement Mgenerates an outcome m
as a probabilistic function of the ontic state according to
some fixed response function ξm|M(λ), where
λ, m :ξm|M(λ)0,(5)
λ:X
m
ξm|M(λ) = 1.(6)
For the ontological model to reproduce an operational
theory’s empirical predictions, one requires that
m, M, P :p(m|M, P ) = ZΛ
ξm|M(λ)µP(λ)dλ. (7)
Finally, note that an effective laboratory procedure
PipiOiis represented in an ontological model by
the corresponding convex mixture of the ontological
representations of the individual operations Oi(see
Eq. (7) of [4] and the surrounding discussion).
An ontological model which respects the principle of
preparation noncontextuality [2] is one in which two
3
operationally equivalent preparations are represented by
the same distribution over ontic states; that is,
P1P2implies that (8)
λ:µP1(λ) = µP2(λ).
An ontological model which respects the principle
of measurement noncontextuality [2] is one in which
two operationally equivalent measurement effects are
represented by the same response function; that is,
[m1|M1][m2|M2] implies that (9)
λ:ξm1|M1(λ) = ξm2|M2(λ).
In this paper, the term noncontextuality refers
to universal noncontextuality [2], which posits
noncontextuality for all procedures, including
preparations and measurements.
III. PROBLEM SETUP
The scenario we are considering has a set
{P1, P2, ..., Pg}of gpreparations, a set {M1, M2, ..., Ml}
of lmeasurements, a set of doutcomes {1,2, ..., d}for
each measurement, a set of operational equivalences
among the preparations, denoted OEP, and a set of
operational equivalences among the measurements,
denoted OEM. There are no restrictions on any of
these sets, beyond the fact that they must be finite,
as they are in any real experiment2. Furthermore, we
have not presumed that one knows anything about
the preparations and measurements, beyond the fact
that they can be performed repeatedly so as to gather
statistics. Without loss of generality, we treat each
measurement as having exactly doutcomes for some
sufficiently large value of d(since any measurement with
d< d outcomes can be redefined to have doutcomes,
ddof which never occur).
The input to our algorithm is a specification of the
operational equivalences OEPand OEM, and the desired
output is a set of inequalities such that a data table
{p(m|Mi, Pj)}i,j,m admits a universally noncontextual
model if and only if all the inequalities are satisfied.
Although it is not obvious from the definition of universal
2In any real experiment with continuous variable systems, one
must coarse-grain the outcomes to a finite set to obtain nonzero
probabilities of any given event. There is also a nuance
concerning experiments with a finite number of preparations,
measurements and outcomes: the full set of operational
equivalences among these might be infinite, but one can always
find a finite generating set of operational equivalences whose
implications for noncontextual data tables are equivalent to
the implications of the full infinite set. A first example
of this procedure can be found in Ref. [32], and a general
method for finding generating sets of operational equivalences
is forthcoming.
noncontextuality, we will find that the final inequalities
will be linear in the probabilities.
Generically, each of the operational equivalences
s OEPis of the form
X
j
αs
PjPjX
j
βs
PjPj(10)
for some sets of convex weights {αs
Pj}jand {βs
Pj}j
(a set of convex weights is a list of nonnegative real
numbers which sum to one). Hence, the principle
of preparation noncontextuality, Eq. (8), implies that
the same functional relationships must hold among the
ontological representations of the preparations; in other
words,
λ:X
j
αs
PjµPj(λ) = X
j
βs
PjµPj(λ).(11)
Similarly, each of the operational equivalences r OEM
is of the form
X
i,m
αr
m|Mi[m|Mi]X
i,m
βr
m|Mi[m|Mi] (12)
for some sets of convex weights {αr
m|Mi}i,m and
{βr
m|Mi}i,m. Hence, the principle of measurement
noncontextuality, Eq. (9), implies that the same
functional relationships must hold among the ontological
representations of the effects; in other words,
λ:X
i,m
αr
m|Miξm|Mi(λ) = X
i,m
βr
m|Miξm|Mi(λ).(13)
The question of whether a data table admits
a universally noncontextual model, then, may be
compactly summarized as follows:
Formulation F1 of the existence of a universally
noncontextual model: A universally noncontextual
model for a data table {p(m|Mi, Pj)}i,j,m exists (with
respect to the sets of operational equivalences OEPand
OEM) if and only if
Λ,∃{µPj(λ)}j,λ,{ξm|Mi(λ)}i,m,λ such that:
λ, i, m :ξm|Mi(λ)0,(F1a)
λ, i :X
m
ξm|Mi(λ) = 1,(F1b)
λ, r :X
i,m
(αr
m|Miβr
m|Mi)ξm|Mi(λ) = 0,(F1c)
λ, j :µPj(λ)0,(F1d)
j:Zλ
µPj(λ) = 1,(F1e)
λ, s :X
j
(αs
Pjβs
Pj)µPj(λ) = 0,(F1f)
i, j, m :ZΛ
ξm|Mi(λ)µPj(λ) =p(m|Mi, Pj).(F1g)
Eqs. (F1a) to (F1g) represent, respectively: positivity
of the response functions (Eq. (3)); normalization of
4
the response functions (Eq. (4)), the consequences of
noncontextuality implied by the operational equivalences
in OEM(Eq. (13)); positivity of the distributions
associated with the preparations (Eq. (5)); normalization
of the distributions associated with the preparations
(Eq. (6)); the consequences of noncontextuality implied
by the operational equivalences in OEP(Eq. (11)); and
the expression for the probabilities in the data table in
terms of the ontological model (Eq. (7)).
There are two key obstacles to deriving constraints
directly on {p(m|Mi, Pj)}i,j,m from the implicit
constraints imposed by Eqs. (F1a)-(F1g). First,
the ontic state space Λ is unknown and possibly of
unbounded cardinality, so that it is not obvious a
priori whether there is an algorithm to solve the
problem. Second, even if the number of ontic states
were known to be finite, so that the problem could in
principle be solved by quantifier elimination methods,
the probabilities in Eq. (F1g) are nonlinear in the
unknown parameters {ξm|Mi(λ)}i,m,λ and {µPj(λ)}j,λ
appearing in the quantifiers; hence, the problem would
be one of nonlinear quantifier elimination, which is
computationally difficult. We overcome both of these
problems by leveraging the convex structure of the
space of response functions: we find the finite set of
convexly-extremal noncontextual assignments to the
measurements, identify the set of ontic states with it, and
then parametrize the distributions corresponding to the
preparations in terms of their probability assignments to
these ontic states. Thus, the unknown parameters form
a finite set, and furthermore the operational probabilities
are linear in these parameters.
Finally, we perform linear quantifier elimination to
obtain constraints on the operational probabilities alone.
IV. CHARACTERIZING THE
GENERALIZED-NONCONTEXTUAL POLYTOPE
A. Enumerating the convexly-extremal
noncontextual measurement assignments
No matter what the form or size of the ontic state
space Λ, a measurement noncontextual assignment of
probabilities to all doutcomes of all lmeasurements, for
a particular ontic state λ, is an (ld)-component vector
ξ(λ)ξ1|M1(λ),..., ξd|M1(λ), ξ1|M2(λ),..., ξd|Ml(λ)
subject to the constraints of Eqs. (F1a)-(F1c). We
call such an (ld)-component vector a noncontextual
measurement assignment. The set of all such assignments
defines a polytope:
Characterization P1 of the noncontextual
measurement-assignment polytope: The
(ld)-component vector ξ(λ)lies inside the noncontextual
measurement-assignment polytope if and only if
i, m :ξm|Mi(λ)0,(P1a)
i:X
m
ξm|Mi(λ) = 1 ,(P1b)
r:X
i,m
(αr
m|Miβr
m|Mi)ξm|Mi(λ) = 0 .(P1c)
In what follows, it is critical to characterize
this polytope by its vertices rather than its facets.
The vertices are the convexly-extremal noncontextual
measurement assignments. (Note that if there are no
operational equivalences among the measurements, then
these extremal assignments are deterministic, that is, all
of the elements of the vector have value 0 or 1.) In
general, to find the vertices of a polytope that is given in
terms of its facet inequalities, one must solve the vertex
enumeration problem [3337]. Many excellent software
packages are freely available for vertex enumeration3.
We introduce the notation κas a discrete variable
ranging over the vertices, and we indicate the
(explicit) noncontextual measurement assignment
of vertex κby the (ld)-component vector
˜
ξ(κ)˜
ξ1|M1(κ),..., ˜
ξd|M1(κ),˜
ξ1|M2(κ),..., ˜
ξd|Ml(κ)
.
Now, since any point in a polytope can be
written as a convex mixture of the vertices, the
noncontextual measurement-assignment polytope can be
defined alternatively but equivalently as the convex hull
of its vertices:
Characterization P2 of the noncontextual
measurement-assignment polytope: The
(ld)-component vector ξ(λ)lies inside the noncontextual
measurement-assignment polytope if and only if there
exist some convex weights {w(κ|λ)}ksuch that:
i, m :ξm|Mi(λ) = X
κ
w(κ|λ)˜
ξm|Mi(κ),(P2a)
where κranges over the vertices found by performing
vertex enumeration on the linear constraints of
characterization P1.
Below, we presuppose that one has indeed characterized
the noncontextual measurement-assignment polytope by
finding its vertices explicitly.
3Dedicated software for performing vertex enumeration includes
traf from PORTA,skeleton64f from skeleton, and lcdd gmp from
cddlib, the latter notably being readily available on Linux and
MacOS. An especially versatile computational geometry suite for
Linux is polymake.
5
B. Constructing a noncontextual model with
known ontic states and linearly constrained
parameters
Suppose one has a universally noncontextual model of
the experiment in the sense of formulation F1, where the
ontic state space need not be of finite cardinality. The
results of the previous subsection imply that it is always
possible to infer from this model another universally
noncontextual model wherein the ontic state space is of
finite cardinality, as follows.
By substituting Eq. (P2a) into Eq. (7) for some i, j ,
each operational probability can be written in terms of a
finite sum:
p(m|Mi, Pj) = ZΛ
ξm|Mi(λ)µPj(λ) (14a)
=ZΛX
κ
˜
ξm|Mi(κ)w(κ|λ)µPj(λ) (14b)
=X
κ
˜
ξm|Mi(κ)ZΛ
w(κ|λ)µPj(λ)(14c)
=X
κ
˜
ξm|Mi(κ)νPj(κ),(14d)
where we have defined
νPj(κ)ZΛ
w(κ|λ)µPj(λ)dλ. (14e)
Because νPj(κ) for a given vertex κis a convex
combination of the values of µPj(λ), we can infer
that each νPj(κ) is a valid probability distribution,
and furthermore that the set {νPj(κ)}respects
noncontextuality with respect to the operational
equivalences in OEP.
Thus, if any noncontextual ontological model exists,
then there must also exist a noncontextual model with
an ontic state space of finite cardinality. The latter
model is constructed by identifying one ontic state with
each extremal noncontextual measurement assignment,
and then imagining every preparation as a probability
distribution over those ontic states, as done in Eq. (14e).
In other words,
Formulation F2 of the existence of a
universally noncontextual model: For a data
table {p(m|Mi, Pj)}i,j,m, an ontological model that is
universally noncontextual with respect to the operational
equivalences in OEPand OEMexists if and only if
∃{νPj(κ)}j,κ such that:
κ, j :νPj(κ)0,(F2a)
j:X
κ
νPj(κ) = 1 ,(F2b)
κ, s :X
j
(αs
Pjβs
Pj)νPj(κ) = 0 ,(F2c)
i, j, m :X
κ
˜
ξm|Mi(κ)νPj(κ) = p(m|Mi, Pj),(F2d)
where κranges over the discrete set of vertices of the
polytope defined by Eqs. (P1)or (P2).
In this formulation, each operational probability
p(m|Mi, Pj) is given as a linear function of a finite
set of unknown parameters. This is because the
only unknown parameters on the right-hand side of
Eq. (F2d) are {νPj(κ)}κ, while the {˜
ξm|Mi(κ)}κare
specified numerically—they are the solution of the vertex
enumeration problem described in the previous section.
Achieving linearity in all the constraints is a critical
intermediate step towards finding a final quantifier-free
formulation, as we do in the next section, and is critical
for the numerical methods we introduce in Section V.
C. The inequalities formulation of the
generalized-noncontextual polytope
To obtain constraints that refer only to operational
probabilities, we eliminate the unobserved {νPj(κ)}j,κ
from the system of equations (F2), obtaining a system
of linear inequalities over the {p(m|Mi, Pj)}i,j,m alone.
The linearity of the final inequalities follows from the
linearity of the inequalities and equalities in Eqs. (F2).
This establishes that the space of noncontextual data
tables defines a polytope.
The standard method for solving this problem of
linear quantifier elimination is the Chernikov-refined
Fourier-Motzkin algorithm [3842], which is implemented
in a variety of software packages4.
4Dedicated software for eliminating variables from a set of
linear inequalities via the Fourier-Motzkin algorithm includes
fmel from PORTA,fme from qskeleton, and fourier from
lrs. From a geometric perspective, each variable in a linear
system is an axis of some high-dimensional coordinate system;
consequently, eliminating a variable is equivalent to projecting
the polytope onto a hyperplane orthogonal to that particular
axis. As such, polytope projection is the titular topic of most
of the relevant literature on linear quantifier elimination [3842].
Furthermore, polytope projection and vertex enumeration are
intimately related: One can define the vertex enumeration
6
Denoting the quantifier-free list of linear facet
inequalities of the generalized-noncontextual polytope
by {h1, h2, ..., hn} H (for ‘halfspaces’) and letting
the coefficients of a specific facet inequality hbe given
by γh
i,j,m while γh
0indicates the constant term in that
inequality, we find that:
Formulation F3 of the existence of a
universally noncontextual model: For a data
table {p(m|Mi, Pj)}i,j,m, an ontological model that is
universally noncontextual with respect to the operational
equivalences in OEPand OEMexists if and only if
h H :X
i,j,m
γh
i,j,mp(m|Mi, Pj) + γh
00,(F3a)
where His the set of ninequalities resulting from
eliminating all free parameters {νPj(κ)}j,κ in the
formulation of Eq. (F2).
V. DOES A GIVEN NUMERICAL DATA TABLE
ADMIT OF A NONCONTEXTUAL MODEL?
To date, experimental tests of generalized
noncontextuality [7,8] have targeted the specific
preparations, measurements, and operational
equivalences of some particular quantum no-go
theorem [710,43]. By abstracting away the
quantum-specific elements of the proof and describing
the experiment in entirely operational terms, one can
identify operational features of a set of preparations
and measurements, such that any theory exhibiting
those features fails to admit of a noncontextual
ontological model. To test these operational features,
previous experiments have used post-processed data
to enforce specific operational equivalences appearing
in the quantum no-go argument. (See the “secondary
procedures” technique described in Ref. [8].)
We here introduce a much more general analysis
technique, in which one need not target any
specific preparations, measurements, and operational
equivalences. Rather, arbitrary numerical data tables
can be directly analyzed. With respect to whatever
operational equivalences happen to be manifest in the
data5, one can use the methods we present below to
problem as a task of linear quantifier elimination, and therefore
any polytope projection algorithm can be used to perform
vertex enumeration, albeit less efficiently than specialized
algorithms [3337]. Conversely, a brute-force technique for
polytope pro jection is to first enumerate the polytope’s vertices,
manually discard the to-be-eliminated coordinates from each
each vertex, and then reconvert back to inequalities using a
convex hull algorithm. This roundabout method of performing
polytope projection is generally suboptimal, but can be used in
practice.
5A detailed analysis of how these operational equivalences can be
computed from data is forthcoming in a separate article.
efficiently test whether the numerical data table admits
of a noncontextual model or not. Because answering
this yes-no question does not require deriving the full set
of noncontextuality inequalities for the scenario under
study, it is computationally very efficient6. Furthermore,
analyzing data in this manner always allows for larger
inequality violations, since the post-processing required
in the secondary procedures technique of Ref. [8] always
introduces additional noise.
To test whether a numerically specified data table
{p(m|Mi, Pj)}i,j,m admits of a noncontextual model, we
leverage the formulation in Eq. (F2). All the equality
constraints of Eqs. (F2b), (F2c), and (F2d) can be
encoded in a single matrix equality constraint,
M·x=b,(15)
where Mcontains the parameters αs
Pjβs
Pjand the
quantities {˜
ξm|Mi(κ)}i,m,κ,xcontains the unknown
parameters {νPj(κ)}j,κ, and bcontains the probabilities
{p(m|Mi, Pj)}i,j,m, as well as zeroes and ones
corresponding to the right-hand sides of Eqs. (F2b) and
(F2c). Eq. (F2a) becomes simply x0. Hence,
for a numerically specified {p(m|Mi, Pj)}i,j,m , the
formulation of Eq. (F2) defines a linear program (LP)7.
The primal LP is the search for a solution to a linear
system of equations, namely:
xsuch that
M·x=b,
and x0.
(16)
Because no objective function to maximize or minimize is
specified in the LP defined by Eq. (16), this means the LP
is just checking for the existence of an xwhich satisfies
the constraints and hence guarantees the existence of a
noncontextual model, via Eq. (F2).
Whenever the primal LP is infeasible that is, no
solution can be found one can obtain a certificate of
primal infeasibility, also known as the Farkas dual [47,
48]. The certificate of primal infeasibility is obtained by
6An analagous pair of problems with widely differing
computational difficulties has long been appreciated it the
study of Bell nonlocality. Obtaining al l the Bell inequalities
which characterize some nonlocality scenario can be quite
difficult, but ascertaining if a particular correlation admits
a local model or not can be resolved with the application of
a single linear program [44,45]. The same (efficient) linear
program can be used to return a single Bell inequality which
certifies the nonlocality of the given correlation [46].
7Linear programming is used across many fields; specialized LP
software packages include Mosek,Gurobi, and CPLEX .
7
solving the complementary8linear system
min
y
y·bsuch that
1y·M0.
(17)
Farkas’ lemma states that either the primal LP is feasible,
or else the certificate yresulting from Eq. (17) satisfies
the strict inequality y·b<0.
Farkas’s lemma is easily proven: Plainly, if there exists
such a y(i.e, not only y·M0but also y·b<0),
then there cannot exist an xwhich satisfies the primal
LP of Eq. (16); since the inequalities
x0,(18a)
and y·M0,(18b)
and y·b=y·M·x<0,(18c)
can not all be satisfied simultaneously.
Of relevance to this work is that we may interpret the
certificate yresulting from Eq. (17) as a noncontextuality
inequality, since Farkas’ lemma ensures that y·b0
for every bfor which the primal LP is feasible. The
extent to which y·bis negative is identically the amount
by which the corresponding noncontextuality inequality
is violated by the (contextual) {p(m|Mi, Pj)}i,j,m.
When interpreting certificates of primal infeasibility as
noncontextuality inequalities, one deduces the constant
term from those elements of bwhich do not depend on
{p(m|Mi, Pj)}i,j,m. In practice, therefore, the constant
term is the sum of those elements in ywhich correspond
to the normalization conditions of Eq. (F2b).
This technique allows an experimenter to optimally
certify the contextuality of a numerical data table
{p(m|Mi, Pj)}i,j,m without first performing the
computationally expensive task of finding all the
noncontextuality inequalities, i.e., without doing any
work to transform formulation F2 into formulation F3.
Instead, by seeking a certificate of primal infeasibility
a single query to a linear program one obtains the
noncontextuality inequality which best witnesses the
contextuality of the data table.
VI. APPLICATIONS
A. Generalized-noncontextual polytope in the
simplest nontrivial case
As argued in Ref. [32], the simplest possible scenario in
which the principle of noncontextuality implies nontrivial
8The complementary LP defined in Eq. (17) is meant to explain
how infeasibility certificates are generated in practice. Note,
however, that the Farkas dual of an LP is not the same as the
LP’s dual formulation, although the concepts are related. See
Refs. [47,48], as well as Ref. [30, Theorem 1 and supplementary
materials]).
constraints on operational probabilities involves four
preparations and two binary-outcome measurements9.
We imagine for simplicity that the preparations satisfy
the operational equivalence
1
2P1+1
2P21
2P3+1
2P4(19)
and that there are no operational equivalences among the
measurements.
We denote the operational probability p(0|Mi, Pj)
by pij. (By normalization, probability p(1|Mi, Pj) is
then 1 pij .) Vertex enumeration finds 4 vertices
for the noncontextual measurement-assignment polytope,
corresponding to the four deterministic assignments
(ξ0|M1(λ), ξ0|M2(λ)) {(0,0),(0,1),(1,0),(1,1)}. Each of
the 4 preparations defines a probability distribution over
these 4 ontic states, so there are 16 free parameters to
be eliminated. Linear quantifier elimination finds the
polytope of data tables consistent with the principle
of noncontextuality and the operational equivalence of
Eq. (19) to be:
i, j : 0 pij 1,(20a)
p12 +p22 p23 p14 1,(20b)
p12 +p22 p13 p24 1,(20c)
p22 +p13 p12 p24 1,(20d)
p12 +p23 p22 p14 1,(20e)
p22 +p14 p12 p23 1,(20f)
p23 +p14 p21 p22 1,(20g)
p12 +p24 p22 p13 1,(20h)
p13 +p24 p12 p22 1.(20i)
Note that the two probabilities which do not appear in
Eqs. (20b)-(20i), p11 and p21, are fixed by the operational
equivalence relation, Eq. (19):
p11 =p13 +p14 p12 ,(21a)
p21 =p23 +p24 p22 .(21b)
Ineqs. (20) and Eqs. (21) tightly define the
generalized-noncontextual polytope for this scenario.
Furthermore, all of Ineqs. (20) are equivalent under
relabeling. That is, any one of the inequalities can
generate all 8 by applying relabelings which respect the
operational equivalences: M1M2,P1P2, and
(P1, P2)(P3, P4). Similarly, each of Eqs. (21) is
equivalent to the other under the same relabelings.
As an illustration of how a noncontextuality inequality
can be derived from a numerically specified (contextual)
9Ref. [32] also assumes that these two measurements are
tomographically complete, but we do not make this assumption
here. See Refs. [8,32] for details on the issue of tomographic
completeness.
8
data table, consider the following example
p11 = 1, p12 = 0, p13 = 1, p14 = 0,
p21 = 1, p22 = 0, p23 = 0, p24 = 1,(22)
which respects the operational equivalence relation of
Eq. (19), but maximally violates Ineq. (20i), since it
has p13 +p24 p12 p22 = 2 6≤ 1. Indeed, when we
construct the primal linear program per Eq. (16), we
find it to be infeasible, and we find that the certificate of
infeasibility returned by our numerical solver corresponds
to Ineq. (20i).
1. Relevance to parity-oblivious multiplexing
In the communication task of “parity-oblivious
multiplexing”, an agent Alice wishes to communicate
two bits to an agent Bob, in such a way that Bob can
extract information about either of the two bits but
cannot extract any information about their parity [7].
This task involves four preparations (associated to the
four possibilities for the values of the two bits) and two
measurements (corresponding to which bit Bob wishes
to learn about), and the parity-obliviousness condition
implies an operational equivalence relation among the
preparations, namely, that of Eq. (19). Consequently,
this task fits precisely the operational scenario considered
in this section.
In Ref. [7], it was shown that contextuality provides an
advantage for the task of parity-oblivious multiplexing:
the maximum probability of succeeding at this task in a
noncontextual model is 3
/4, so that any higher probability
of success requires contextuality. In a quantum world, for
instance, one can succeed with probability 1
4(2 + 2)
0.85.
If one identifies our preparations P1,P2,P3, and
P4with Ref. [7]’s preparations P00 ,P11,P01 , and P10 ,
respectively, then the inequality in Ref. [7] is our facet
Ineq. (20i). This is the same inequality which witnesses
the failure of noncontextuality for the data table defined
in Eq. (22), which is to be expected, as this particular
data table describes a set of probabilities which achieve
the maximum logically possible probability of success at
parity-oblivious multiplexing.
Additionally, one could apply our algorithm to
generalized types of parity-oblivious multiplexing. For
instance, Ref. [7] derived a bound on the probability of
success in a noncontextual model of n-bit parity-oblivious
multiplexing, in which Alice wishes to communicate n
bits to Bob under the constraint that Bob can learn no
information about the parity between any two of the bits.
These bounds are tight, and can be saturated by a na¨ıve
classical strategy. However, one could further use our
techniques to learn whether or not they constitute facet
inequalities of the generalized-noncontextual polytope,
as well as to find the full generalized-noncontextual
polytope.
For the still more general case where the different
n-bit strings which Alice wishes to send do not have
equal a priori probabilities, our method can also find the
generalized-noncontextual polytope, from which one can
immediately infer the maximum success probability for
the task.
B. Generalized-noncontextual polytopes for
scenarios relevant to state discrimination
One way in which one can generalize the simplest
operational scenario described above is to increase
the number of binary-outcome measurements from two
to three while still not assuming any operational
equivalences among them, so that the only operational
equivalence relation remains the one between the
preparations (Eq. (19)). This operational scenario can
also be related to an information-theoretic task, namely,
the task of minimum error state discrimination, as noted
by two of the present authors in Ref. [49].
In the quantum version of this task, an agent wishes
to guess which of two pure quantum states a system was
prepared in given a single sample of the system, where the
identity of the two quantum states is known. Quantum
theory prescribes a particular trade-off relation between
the probability of success and the non-orthogonality of
the two quantum states, and Ref. [49] showed that
this trade-off contradicts the principle of generalized
noncontextuality. The ideal quantum realization of
minimum error state discrimination fits the operational
scenario described above: the two pure quantum
states define two of the preparation procedures, while
their orthogonal complements in the 2d subspace that
they span define the other two. The fact that the
equal mixture of any two orthogonal pure states in a
2d subspace is independent of the basis implies the
operational equivalence of Eq. (19). Finally, the degree
of nonorthogonality has an operational interpretation
as the probability of one state passing a test for
the other (termed the confusability). Therefore, the
measurements of each of the two bases, together with
the discriminating measurement, provide the three
binary-outcome measurements in the scenario.
The facet noncontextuality inequalities for this
operational scenario are given in Appendix D of
Ref. [49]10, and these are seen to imply a nontrivial upper
bound on the probability of successful discrimination
for a given confusability. Hence, contextuality provides
an advantage for minimum error state discrimination.
The quantum probability of successful discrimination
for a given confusability is higher than that allowed
10 Actually, the polytope given therein is the intersection of
the generalized-noncontextual polytope with two additional
inequalities, which are implied by making sensible labeling
choices.
9
in a noncontextual model, and hence partakes in this
contextual advantage.
Using our technique, one can also immediately derive
the generalized-noncontextual polytope for more general
minimum error state discrimination scenarios, such as
those in which the quantum states (preparations) being
discriminated are sampled with unequal probabilities,
or in which there are more than two quantum states
(preparations).
Because state discrimination in various
forms is a primitive for many other quantum
information-processing tasks, such analyses should
be valuable for identifying the circumstances in which
contextuality constitutes a resource.
C. Generalized-noncontextual polytopes for a
scenario involving both preparation and
measurement noncontextuality
So far, our examples have involved operational
equivalences only among preparations. In this section, we
revisit the scenario considered in the recent experimental
test of noncontextuality in Ref. [8], which involves
operational equivalences among the preparations and
also among the measurements. Specifically, we imagine
a set of six preparations and three binary-outcome
measurements, where the preparations satisfy the
operational equivalences
1
2P1+1
2P21
2P3+1
2P41
2P5+1
2P6,(23)
and the measurement effects satisfy the operational
equivalence
1
3[0|M1] + 1
3[0|M2] + 1
3[0|M3]
1
3[1|M1] + 1
3[1|M2] + 1
3[1|M3].
(24)
(See Ref. [8] for a discussion of the significance of these
operational equivalences.)
We denote the operational probability p(0|Mi, Pj) by
pij and p(1|Mi, Pj) by pij . Vertex enumeration finds 6
vertices for the noncontextual measurement-assignment
polytope, corresponding to the four indeterministic
assignments defined by (ξ0|M1(λ), ξ0|M2(λ), ξ0|M3(λ))
{(0,1
2,1),(1
2,0,1),(1,0,1
2),(1,1
2,0),(0,1,1
2),(1
2,1,0)}. Each
of the 6 preparations defines a probability distribution
over these 6 ontic states, so there are 36 free parameters
to be eliminated. Linear quantifier elimination finds the
polytope of data tables consistent with the principle of
noncontextuality and with the operational equivalences
of Eq. (23) and Eq. (24). We find that this polytope has
1596 facet inequalities.
Plainly, 1596 inequalities is far too many to list
explicitly. However, by considering the physical
symmetries of this scenario, we can significantly simplify
our description of these facets. Since the scenario
is invariant under various relabelings of measurements
[Eqs. (25a-25b)], outcomes [Eq. (25c)], and preparations
[Eqs. (25d-25f)]—i.e. those relabelings which respect
the operational equivalences—we know a priori that
the generalized-noncontextual polytope will possess
significant internal symmetry. The symmetry group
which leaves our polytope invariant is generated by the
six relabelings
M1M2(25a)
M1M3(25b)
([0|M1],[0|M2],[0|M3]) ([1|M1],[1|M2],1|M3]) (25c)
P1P2(25d)
(P1, P2)(P3, P4) (25e)
(P1, P2)(P5, P6).(25f)
We use parentheses to indicate a coherent relabelling:
e.g., the outcomes of three measurements can be flipped
per Eq. (25c), but only if all three measurements have
their outcomes relabeled simultaneously. This is in
contrast to an exchange like P1P2per Eq. (25d),
which can be performed in isolation. The total order
of this symmetry group is 576.
Under this group, we find that the 1596 facet
inequalities admit classification into seven symmetry
classes. We therefore explicitly list a single representative
inequality from each class:
Inequality Terms Upper
Bound
Orbit
Size
p11 1 35
p11 +p23 +p35 2.5 48
p11 +p22 +p35 2.572
p11 p14 2p15 2p22 +2 p23 +2 p35 3 576
2p11 p22 +2 p23 3144
p11 p15 +p22 +p23 +2 p35 4 576
p11 p15 +2 p22 +2 p35 4144
(26)
The number of inequalities in each symmetry class
is given by the “Orbit Size” in Ineqs. (26). The
generalized-noncontextual polytope for this scenario is
defined by the 1596 facet inequalities, as well as by
equalities which hold for any data table (contextual
or noncontextual) admitting the operational equivalence
relations per Eqs. (23) and (24). These equalities fall into
three distinct symmetry classes, represented by
p11 +p14 =p12 +p15 (27a)
p11 +p21 +p31 = 3/2 (27b)
p11 +p11 = 1.(27c)
The first two equalities are enforced by the operational
equivalence relations, Eqs. (23) and (24), respectively,
while the third equality is guaranteed by normalization
of measurements, Eq. (6).
To test if a given data table lies inside this
generalized-noncontextual polytope, one could
reconstruct all 1596 inequalities from the seven given
10
in Ineqs. (26), but it is likely much easier to instead
artificially generate equivalent-up-to-symmetries data
tables from one’s actual data table, and then to test each
of those against the seven canonical inequalities11. One
only needs to consider at most 576 data table variants
(per the group order), although in practice there will be
fewer variants to consider if the data table one wishes to
investigate possesses any internal symmetry of its own.
Noting that12
p11 +p23 +p35 =p12 +p24 +p36 ,(28)
the single inequality derived (and experimentally
violated) in Ref. [8, Eq. (6)] is recognized as a facet
of the generalized-noncontextual polytope, namely it is
precisely the second inequality in Ineqs. (26):
2 (p11 +p23 +p35)5.(29)
One can also derive Ineq. (29) directly (and efficiently!)
by using the linear program presented in Section V.
Namely, it is the inequality corresponding to the
certificate of infeasibility returned by our numerical
solver, when we construct the primal linear program
using Eq. (16) together with the ideal (contextual)
quantum data table.
VII. CONCLUSIONS
For arbitrary prepare-and-measure experiments, we
have presented a method for finding necessary and
sufficient conditions for a data table to admit of a
noncontextual model, subject to any fixed sets of
operational equivalences among preparations and among
measurements. We have also presented an efficient
method for determining whether a numerical data table
is noncontextual, in this same setting.
We have provided worked examples of each of
these methods, in the process deriving necessary
and sufficient conditions for operational scenarios
in which only necessary conditions were previously
known. Equivalently, we have derived the full
generalized-noncontextual polytopes for scenarios in
which only a single facet inequality was previously known.
The operational scenario studied in Section VI A is of
relevance to parity-oblivious multiplexing [7], while the
operational scenario studied in Section VI C originates in
a recent experimental test of contextuality [8].
A precursor to the current work can be found in [27]. A
distinct method, introduced in Ref. [43], also allows one
to derive all of the facet inequalities for many operational
scenarios. However, the method therein is not fully
general, as it applies only to scenarios in which one
special equivalence class of preparations is singled out
(see Section III. B. of Ref. [43] for details). It would be
interesting to compare the two approaches, e.g., in terms
of computational efficiency, and to modify the approach
in Ref. [43] to make it as general as the approach
described in this article.
ACKNOWLEDGMENTS
D.S. thanks Ravi Kunjwal for useful discussions. This
research was supported by a Discovery grant of the
Natural Sciences and Engineering Research Council
of Canada and by Perimeter Institute for Theoretical
Physics. Research at Perimeter Institute is supported by
the Government of Canada through the Department of
Innovation, Science and Economic Development Canada
and by the Province of Ontario through the Ministry of
Research, Innovation and Science.
———————————————————————–
[1] S. Kochen and E. Specker, “The problem of hidden
variables in quantum mechanics,” J. Math. & Mech. 17,
59 (1967), also available from the Indiana Univ. Math. J.
[2] R. W. Spekkens, “Contextuality for preparations,
transformations, and unsharp measurements,” Phys. Rev.
A71, 052108 (2005).
[3] N. Brunner, D. Cavalcanti, S. Pironio, V. Scarani, and
S. Wehner, “Bell nonlocality,” Rev. Mod. Phys. 86, 419
(2014).
[4] R. W. Spekkens, “Negativity and Contextuality are
11 The first inequality in Ineqs. (26) is inviolable, even by contextual
data tables, so technically one only needs to test against the
remaining six inequalities.
12 Eq. (28) is a nontrivial but readily verifiable consequence of the
inviolable equalities in Eqs. (27).
Equivalent Notions of Nonclassicality,” Phys. Rev. Lett.
101, 020401 (2008).
[5] M. F. Pusey, “Anomalous Weak Values Are Proofs of
Contextuality,” Phys. Rev. Lett. 113, 200401 (2014).
[6] N. D. Mermin, “Hidden variables and the two theorems
of John Bell,” Rev. Mod. Phys. 65, 803 (1993).
[7] R. W. Spekkens, D. H. Buzacott, A. J. Keehn, B. Toner,
and G. J. Pryde, “Preparation contextuality powers
parity-oblivious multiplexing,” Phys. Rev. Lett. 102,
010401 (2009).
[8] M. D. Mazurek, M. F. Pusey, R. Kunjwal, K. J.
Resch, and R. W. Spekkens, “An experimental test of
noncontextuality without unphysical idealizations,” Nat.
Comm. 7(2016).
[9] R. Kunjwal and R. W. Spekkens, “From statistical
proofs of the Kochen-Specker theorem to noise-robust
noncontextuality inequalities,” arXiv:1708.04793 (2017).
[10] R. Kunjwal and R. W. Spekkens, “From the
11
Kochen-Specker Theorem to Noncontextuality
Inequalities without Assuming Determinism,” Phys.
Rev. Lett. 115, 110403 (2015).
[11] R. Kunjwal, “Beyond the Cabello-Severini-Winter
framework: making sense of contextuality without
sharpness of measurements,” ArXiv e-prints (2017),
arXiv:1709.01098 [quant-ph].
[12] A. Chailloux, I. Kerenidis, S. Kundu, and J. Sikora,
“Optimal bounds for parity-oblivious random access
codes,” New J. Phys. 18, 045003 (2016).
[13] A. Ambainis, M. Banik, A. Chaturvedi, D. Kravchenko,
and A. Rai, “Parity Oblivious d-Level Random Access
Codes and Class of Noncontextuality Inequalities,”
arXiv:1607.05490 (2016).
[14] M. Howard, J. Wallman, V. Veitch, and J. Emerson,
“Contextuality supplies the ‘magic’ for quantum
computation,” Nature 510, 351 (2014).
[15] R. Raussendorf, “Contextuality in measurement-based
quantum computation,” Phys. Rev. A 88, 022322 (2013).
[16] M. J. Hoban, E. T. Campbell, K. Loukopoulos, and D. E.
Browne, “Non-adaptive measurement-based quantum
computation and multi-party Bell inequalities,” New J.
Phys. 13, 023014 (2011).
[17] A. Ac´ın and L. Masanes, “Certified randomness in
quantum physics,” Nature 540, 213 (2016).
[18] J. Barrett, L. Hardy, and A. Kent, “No Signaling and
Quantum Key Distribution,” Phys. Rev. Lett. 95, 010503
(2005).
[19] A. Ac´ın, N. Gisin, and L. Masanes, “From bell’s theorem
to secure quantum key distribution,” Phys. Rev. Lett. 97,
120405 (2006).
[20] D. Collins and N. Gisin, “A relevant two qubit bell
inequality inequivalent to the chsh inequality,” J. Phys.
A37, 1775 (2004).
[21] N. Brunner and N. Gisin, “Partial list of bipartite Bell
inequalities with four binary settings,” Phys. Lett. A 372,
3162 (2008).
[22] J.-D. Bancal, N. Gisin, and S. Pironio, “Looking for
symmetric Bell inequalities,” J. Phys. A 43, 385303
(2010).
[23] C. Budroni and A. Cabello, “Bell inequalities from
variable-elimination methods,” J Phys. A 45, 385304
(2012).
[24] T. Fritz and R. Chaves, “Entropic inequalities and
marginal problems,” IEEE Trans. Info. Theo. 59, 803
(2013).
[25] R. Chaves, L. Luft, and D. Gross, “Causal
structures from entropic information: geometry and
novel scenarios,” New J. Phys. 16, 043001 (2014).
[26] R. Chaves, C. Majenz, and D. Gross,
“Information–theoretic implications of quantum causal
structures,” Nat. Comm. 6, 5766 (2015).
[27] Krishna, Anirudh, Experimentally Testable
Noncontextuality Inequalities Via Fourier-Motzkin
Elimination,Master’s thesis (2015).
[28] A. Krishna, R. W. Spekkens, and E. Wolfe,
“Deriving robust noncontextuality inequalities from
algebraic proofs of the Kochen-Specker theorem: the
Peres-Mermin square,” arXiv:1704.01153 (2017).
[29] E. Wolfe, R. W. Spekkens, and T. Fritz, “The inflation
technique for causal inference with latent variables,”
arXiv:1609.00672 (2016).
[30] S. Abramsky, R. S. Barbosa, and S. Mansfield,
“Contextual Fraction as a Measure of Contextuality,”
Phys. Rev. Lett. 119, 050504 (2017).
[31] S. Pironio, J.-D. Bancal, and V. Scarani, “Extremal
correlations of the tripartite no-signaling polytope,” J.
Phys. A 44, 065303 (2011).
[32] M. F. Pusey, “The robust noncontextuality inequalities
in the simplest scenario,” arXiv:1506.04178 (2015).
[33] D. Avis, “A revised implementation of the reverse
search vertex enumeration algorithm,” in Polytopes
Combinatorics and Computation, DMV Seminar, Vol. 29
(Birkh¨auser Basel, 2000) pp. 177–198.
[34] D. Bremner, M. Dutour Sikiric, and A. Sch¨urmann,
“Polyhedral representation conversion up to symmetries,”
in Polyhedral computation, CRM Proc. Lecture
Notes, Vol. 48 (Amer. Math. Soc., 2009) pp. 45–71,
arXiv:math/0702239.
[35] N. Y. Zolotykh, “New modification of the double
description method for constructing the skeleton of a
polyhedral cone,” Comp. Math. and Math. Phys. 52, 146
(2012).
[36] D. Avis, D. Bremner, and R. Seidel, “How good are
convex hull algorithms?” Comp. Geom. 7, 265 (1997).
[37] S. orwald and G. Reinelt, “PANDA: a software for
polyhedral transformations,” Euro. J. Comp. Optim. , 1
(2015).
[38] G. B. Dantzig and B. C. Eaves, “Fourier-Motzkin
elimination and its dual,” J. Combin. Th. A 14, 288
(1973).
[39] E. Balas, “Projection with a minimal system of
inequalities,” Comp. Optimiz. Applic. 10, 189 (1998).
[40] C. Jones, E. C. Kerrigan, and J. Maciejowski, Equality
Set Projection: A new algorithm for the projection
of polytopes in halfspace representation, Tech. Rep.
(Cambridge University Engineering Dept, 2004).
[41] D. V. Shapot and A. M. Lukatskii, “Solution building
for arbitrary system of linear inequalities in an explicit
form,” Am. J. Comp. Math. 02, 1 (2012).
[42] S. I. Bastrakov and N. Y. Zolotykh, “Fast method
for verifying Chernikov rules in Fourier-Motzkin
elimination,” Comp. Mat. & Math. Phys. 55, 160 (2015).
[43] A. Krishna, R. W. Spekkens, and E. Wolfe,
“Deriving robust noncontextuality inequalities from
algebraic proofs of the Kochen-Specker theorem: the
Peres-Mermin square,” arXiv:1704.01153 (2017).
[44] M. Zukowski, D. Kaszlikowski, A. Baturo, and
J.-A. Larsson, “Strengthening the Bell Theorem:
conditions to falsify local realism in an experiment,”
arXiv:quant-ph/9910058 (1999).
[45] R. M. Basoalto and I. C. Percival, “A general computer
program for the bell detection loophole,” Physics Letters
A280, 1 (2001).
[46] M. B. Elliott, “A linear program for testing local realism,”
arXiv:0905.2950 (2009).
[47] E. D. Andersen, “Certificates of Primal or Dual
Infeasibility in Linear Programming,” Comp. Optim.
Applic. 20, 171 (2001).
[48] D. G. Luenberger and Y. Ye, “Duality and
complementarity,” in Linear and Nonlinear
Programming (Springer International Publishing,
Cham, 2016) pp. 83–114.
[49] D. Schmid and R. W. Spekkens, “Contextual advantage
for state discrimination,” arXiv:1706.04588 (2017).
... A relative noncontextual ontological model can be thought of as a generalized noncontextual ontological model in the original sense [14], but with an explicit parametrization of the indistinguishability relations that one imposes at the ontological level. In that sense, formally speaking, a relative noncontextual ontological model is similar to the generalized noncontextual ontological model of Ref. [25]. ...
... The key difference is that while Ref. [25] assumed a fixed set of operational equivalences as an input, without necessarily specifying how these should be obtained in practice, we parametrize this set of operational equivalences by a choice of reference procedures, which is quite natural and convenient for our purposes. Indeed, the reference procedures will later be related to the procedures that one considers as probing the system. ...
... IV, we investigate possible approaches with respect to fixing the reference of indistinguishability that one uses in relative noncontextuality. This is motivated by the fact that generalized noncontextuality in its standard form appears to be concerned with a fixed set of operational equivalences [14,16,25]. We first discuss the notion of in-principle indistinguishability [16,26,27] in Sec. ...
Article
Full-text available
Generalized noncontextuality is a well-studied notion of classicality that is applicable to a single system, as opposed to Bell locality. It relies on representing operationally indistinguishable procedures identically in an ontological model. However, operational indistinguishability depends on the set of operations that one may use to distinguish two procedures: we refer to this set as the reference of indistinguishability. Thus, whether or not a given experiment is noncontextual depends on the choice of reference. The choices of references appearing in the literature are seldom discussed, but typically relate to an implicit notion of a system underlying the experiment. This shift in perspective then begs the question: how should one define the extent of the system underlying an experiment? This question depends in part on one's beliefs in the universe being fundamentally continuous or fundamentally composite. To draw a coherent picture of the possible approaches one may use, we start by formulating a notion of noncontextuality for prepare-and-measure scenarios with respect to an explicit reference of indistinguishability. We investigate how verdicts of noncontextuality depend on this choice of reference, and in the process we introduce the concept of the noncontextuality graph of a prepare-and-measure scenario. We then discuss several proposals that one may appeal to in order to fix the reference to a specific choice, and we relate these proposals to different conceptions of what a system really is. With this discussion, we advocate that whether or not an experiment is noncontextual is not as absolute as often perceived. Published by the American Physical Society 2024
... The notion of classicality at play in Bell's theorem is the assumption of local causality: any nonsignalling theory that violates the assumption of local causality is said to exhibit nonclassicality by the lights of Bell's theorem. More recently, much work [12][13][14][15][16][17] has been devoted to obtaining constraints on operational statistics that follow from a generalized notion of noncontextuality proposed by Spekkens [18]. This notion of classicality [18] has its roots in the Kochen-Specker (KS) theorem [19], a no-go theorem that rules out the possibility that a deterministic underlying ontological model [20] could reproduce the operational statistics of (projective) quantum measurements in a manner that satisfies the assumption of KS-noncontextuality. KSnoncontextuality is the notion of classicality at play in the Kochen-Specker theorem. ...
... These are the assumptions of noncontextualitytermed universal noncontextuality -that form the basis of our approach to noise-robust noncontextuality inequalities [12][13][14][15][16][17]45]. Note that the traditional notion of KS-noncontextuality entails, besides measurement noncontextuality above, the assumption of outcome-determinism, i.e., for any measurement event [m|M ], ξ(m|M, λ) ∈ {0, 1} for all λ ∈ Λ. ...
... Any operational theory would typically allow many possible Γ to be realized by its measurement events as well as many possible probabilistic models to be realized on any Γ representing its measurement events. Note that when we say that a particular Γ is "realizable" or "allowed" by an operational theory, we mean that there exist measurement events in the operational theory that satisfy the operational equivalences required by Γ. 17 Further, given such a Γ, the realizability of a probabilistic model on it by the operational theory means that there exists a source event in the operational theory that assigns probabilities to the measurement events in Γ according to the probabilistic model. It will be useful for our discussion to define what it means for an operational theory, say T, to satisfy structural or statistical Specker's principle. ...
Preprint
Full-text available
We develop a hypergraph-theoretic framework for Spekkens contextuality applied to Kochen-Specker (KS) type scenarios that goes beyond the Cabello-Severini-Winter (CSW) framework. To do this, we add new hypergraph-theoretic ingredients to the CSW framework. We then obtain noise-robust noncontextuality inequalities in this generalized framework by applying the assumption of (Spekkens) noncontextuality to both preparations and measurements. The resulting framework goes beyond the CSW framework, both conceptually and technically. On the conceptual level: 1) we relax the assumption of outcome determinism inherent to the Kochen-Specker theorem but retain measurement noncontextuality, besides introducing preparation noncontextuality, 2) we do not require the exclusivity principle as a fundamental constraint on measurement events, and 3) as a result, we do not need to presume that measurement events of interest are "sharp", where the notion of sharpness implies the exclusivity principle. On the technical level: 1) we introduce a source events hypergraph and define a new operational quantity Corr{\rm Corr} appearing in our inequalities, 2) we define a new hypergraph invariant -- the weighted max-predictability -- that is necessary for our analysis and appears in our inequalities, and 3) our noise-robust noncontextuality inequalities quantify tradeoff relations between three operational quantities -- Corr{\rm Corr}, R, and p0p_0 -- only one of which (namely, R) corresponds to the Bell-Kochen-Specker functionals appearing in the CSW framework; when Corr=1{\rm Corr}=1, the inequalities formally reduce to CSW type bounds on R. Along the way, we also consider in detail the scope of our framework vis-\`a-vis the CSW framework, particularly the role of Specker's principle in the CSW framework and its absence in ours.
... Prepare-and-measure experiments provide simple situations in which the differences between classical and nonclassical probabilistic theories can be explored. One such difference is related to the generalized notion of noncontextuality, a condition imposed on ontological models that asserts that operationally indistinguishable laboratory operations should be represented identically in the model [1][2][3][4] . Inconsistencies between observed data and the existence of such a model can be understood as a signature of nonclassicality. ...
... Nonetheless, a proper treatment for the generalized framework of prepareand-measure experiments considered in Refs. [1][2][3][4] as a resource is still missing. Here, using the novel generalized-noncontextual polytope, an efficient linear programming 34 characterization for the contextual set of prepared-and-measured statistics presented in Ref. 2 , we present a mathematically well structured resource-theoretic approach for generalized contextuality based on a phys-ically motivated set of free operations with an explicit parametrization. ...
... [1][2][3][4] as a resource is still missing. Here, using the novel generalized-noncontextual polytope, an efficient linear programming 34 characterization for the contextual set of prepared-and-measured statistics presented in Ref. 2 , we present a mathematically well structured resource-theoretic approach for generalized contextuality based on a phys-ically motivated set of free operations with an explicit parametrization. We then adapt known resource quantifiers for contextuality and nonlocality 20,[23][24][25][26][27][28][29][30][31][32][33]35 to obtain natural monotones for generalized contextuality in arbitrary prepare-and-measure experiments. ...
Preprint
Contextuality has been identified as a potential resource responsible for the quantum advantage in several tasks. It is then necessary to develop a resource-theoretic framework for contextuality, both in its standard and generalized forms. Here we provide a formal resource-theoretic approach for generalized contextuality based on a physically motivated set of free operations with an explicit parametrisation. Then, using an efficient linear programming characterization for the contextual set of prepared-and-measured statistics, we adapt known resource quantifiers for contextuality and nonlocality to obtain natural monotones for generalized contextuality in arbitrary prepare-and-measure experiments.
... There are also some proofs wherein one of a set of transformation procedures is implemented between the preparation and the measurement stages of the experiment, a form that is termed a prepare-transform-measure scenario and which is depicted in Fig. 1(a) [1,3,12,30,39,58]. 2 This work is concerned with deriving noise-robust noncontextuality inequalities for this last type, namely, prepare-transform-measure scenarios. We follow an approach like that of Ref. [59], which gave an algorithm for determining the full set of noncontextuality inequalities for a prepare-measure scenario relative to a fixed set of linear operational identities among the states and a fixed set of linear operational identities among the effects. The present manuscript aims to extend these ideas to prepare-transform-measure scenarios, by providing an algorithm for deriving noncontextuality inequalities in any such scenario, relative to any fixed set of linear operational identities. ...
... Another contribution of this work is to provide systematic techniques for deriving all possible operational identities that have a linear form. This is an important supplement to the algorithm in this work and also to prior works (most notably Ref. [59]). In Appendix A, we show how one can identify a finite set of linear operational identities among states which imply all linear operational identities among the states-that is, a generating set of such identities. ...
... Combining these arguments with the algorithm in this paper-or with that in Ref. [59]-implies that one need not specify any specific operational identities among states or among effects or among transformations. Rather, one can now merely stipulate the set of states, effects, and transformations in one's scenario, and then use the technique described in Appendix A to find a generating set of linear operational identities that hold among the elements of each set, and use these as the input to the program. ...
Preprint
Full-text available
We provide the first systematic technique for deriving witnesses of contextuality in prepare-transform-measure scenarios. More specifically, we show how linear quantifier elimination can be used to compute a polytope of correlations consistent with generalized noncontextuality in such scenarios. This polytope is specified as a set of noncontextuality inequalities that are necessary and sufficient conditions for observed data in the scenario to admit of a classical explanation relative to any linear operational identities, if one ignores some constraints from diagram preservation. While including these latter constraints generally leads to tighter inequalities, it seems that nonlinear quantifier elimination would be required to systematically include them. We also provide a linear program which can certify the nonclassicality of a set of numerical data arising in a prepare-transform-measure experiment. We apply our results to get a robust noncontextuality inequality for transformations that can be violated within the stabilizer subtheory. Finally, we give a simple algorithm for computing all the linear operational identities holding among a given set of states, of transformations, or of measurements.
... Given a contextuality scenario, finding a set of empirical criteria fulfilled by any noncontextual theory is a demanding task of both foundational and operational importance. As pointed out by Schmid et al. [4], in a contextuality scenario, the set of empirical statistics possessing noncontextual explanations forms a convex polytope. Consequently, the inequalities representing the facets of that polytope combine to provide the necessary and sufficient criteria for empirically witnessing noncontextuality. ...
... Consequently, the inequalities representing the facets of that polytope combine to provide the necessary and sufficient criteria for empirically witnessing noncontextuality. Schmid et al. [4] also formulate a computational technique to retrieve all the facet inequalities applicable to arbitrary contextuality scenarios. However, the method for determining the facets of the noncontextual polytope is computationally expensive. ...
... We propose a novel and efficient method for retrieving noncontextuality inequalities in any contextuality scenario, needing only a single ontic state to characterize the polytope for preparations. This approach, unlike conventional methods [4], maintains a constant polytope dimension regardless of the number of measurements and their outcomes. This allows us to obtain a polytope that includes the noncontextual polytope more quickly. ...
Preprint
Finding a set of empirical criteria fulfilled by any theory that satisfies the generalized notion of noncontextuality is a challenging task of both operational and foundational importance. The conventional approach of deriving facet inequalities from the relevant noncontextual polytope is computationally demanding. Specifically, the noncontextual polytope is a product of two polytopes, one for preparations and the other for measurements, and the dimension of the former typically increases polynomially with the number of measurements. This work presents an alternative methodology for constructing a polytope that encompasses the actual noncontextual polytope while ensuring that the dimension of the polytope associated with the preparations remains constant regardless of the number of measurements and their outcome size. In particular, the facet inequalities of this polytope serve as necessary conditions for noncontextuality. To demonstrate the efficacy of our methodology, we apply it to nine distinct contextuality scenarios involving four to nine preparations and two to three measurements to obtain the respective sets of facet inequalities. Additionally, we retrieve the maximum quantum violations of these inequalities. Our investigation uncovers many novel non-trivial noncontextuality inequalities and reveals intriguing aspects and applications of quantum contextual correlations.
... 2 A full description of this algorithm can be found in Ref. [21]. ...
Preprint
Finding quantitative aspects of quantum phenomena which cannot be explained by any classical model has foundational importance for understanding the boundary between classical and quantum theory. It also has practical significance for identifying information processing tasks for which those phenomena provide a quantum advantage. Using the framework of generalized noncontextuality as our notion of classicality, we find one such nonclassical feature within the phenomenology of quantum minimum error state discrimination. Namely, we identify quantitative limits on the success probability for minimum error state discrimination in any experiment described by a noncontextual ontological model. These constraints constitute noncontextuality inequalities that are violated by quantum theory, and this violation implies a quantum advantage for state discrimination relative to noncontextual models. Furthermore, our noncontextuality inequalities are robust to noise and are operationally formulated, so that any experimental violation of the inequalities is a witness of contextuality, independently of the validity of quantum theory. Along the way, we introduce new methods for analyzing noncontextuality scenarios, and demonstrate a tight connection between our minimum error state discrimination scenario and a Bell scenario.
... Quantum theory, viewed as an operational theory, is contextual. This can be shown from no-go theorems [21,61], or in a quantifiable manner via the violation of generalized noncontextuality inequalities [62][63][64]. ...
Preprint
Full-text available
In classical thermodynamics, heat must spontaneously flow from hot to cold systems. In quantum thermodynamics, the same law applies when considering multipartite product thermal states evolving unitarily. If initial correlations are present, anomalous heat flow can happen, temporarily making cold thermal states colder and hot thermal states hotter. Such effect can happen due to entanglement, but also because of classical randomness, hence lacking a direct connection with nonclassicality. In this work, we introduce scenarios where anomalous heat flow \emph{does} have a direct link to nonclassicality, defined to be the failure of noncontextual models to explain experimental data. We start by extending known noncontextuality inequalities to a setup where sequential transformations are considered. We then show a class of quantum prepare-transform-measure protocols, characterized by time intervals (0,τc)(0,\tau_c) for a given critical time τc\tau_c, where anomalous heat flow happens only if a noncontextuality inequality is violated. We also analyze a recent experiment from Micadei et. al. [Nat. Commun. 10, 2456 (2019)] and find the critical time τc\tau_c based on their experimental parameters. We conclude by investigating heat flow in the evolution of two qutrit systems, showing that our findings are not an artifact of using two-qubit systems.
Article
Operational contextuality forms a rapidly developing subfield of quantum information theory. However, the characterization of the quantum mechanical entities that fuel the phenomenon has remained unknown with many partial results existing. Here, we present a resolution to this problem by connecting operational contextuality one-to-one with the no-broadcasting theorem. The connection works both on the level of full quantum theory and subtheories thereof. We demonstrate the connection in various relevant cases, showing especially that for quantum states the possibility of demonstrating contextuality is exactly characterized by non-commutativity, and for measurements this is done by a norm-1 property closely related to repeatability. Moreover, we show how techniques from broadcasting can be used to simplify known foundational results in contextuality.
Preprint
In this paper, we study random instances of the classical marginal problem. We encode the problem in a graph, where the vertices have assigned fixed binary probability distributions, and edges have assigned random bivariate distributions having the incident vertex distributions as marginals. We provide estimates on the probability that a joint distribution on the graph exists, having the bivariate edge distributions as marginals. Our study is motivated by Fine's theorem in quantum mechanics. We study in great detail the graphs corresponding to CHSH and Bell-Wigner scenarios providing rations of volumes between the local and non-signaling polytopes.
Article
Full-text available
The Kochen-Specker theorem rules out models of quantum theory wherein sharp measurements are assigned outcomes deterministically and independently of context. This notion of noncontextuality is not applicable to experimental measurements because these are never free of noise and thus never truly sharp. For unsharp measurements, therefore, one must drop the requirement that an outcome is assigned deterministically in the model and merely require that the distribution over outcomes that is assigned in the model is context-independent. By demanding context-independence in the representation of preparations as well, one obtains a generalized principle of noncontextuality that also supports a quantum no-go theorem. Several recent works have shown how to derive inequalities on experimental data which, if violated, demonstrate the impossibility of finding a generalized-noncontextual model of this data. That is, these inequalities do not presume quantum theory and, in particular, they make sense without requiring a notion of "sharpness" of measurements in any operational theory describing the experiment. We here describe a technique for deriving such inequalities starting from arbitrary proofs of the Kochen-Specker theorem. It extends significantly previous techniques, which worked only for logical proofs (based on uncolourable orthogonality graphs), to the case of statistical proofs (where the graphs are colourable, but the colourings cannot explain the quantum statistics). The derived inequalities are robust to noise.
Article
Full-text available
Finding quantitative aspects of quantum phenomena which cannot be explained by any classical model has foundational importance for understanding the boundary between classical and quantum theory. It also has practical significance for identifying information processing tasks for which those phenomena provide a quantum advantage. Using the framework of generalized noncontextuality as our notion of classicality, we find one such nonclassical feature within the phenomenology of quantum minimum error state discrimination. Namely, we identify quantitative limits on the success probability for minimum error state discrimination in any experiment described by a noncontextual ontological model. These constraints constitute noncontextuality inequalities that are violated by quantum theory, and this violation implies a quantum advantage for state discrimination relative to noncontextual models. Furthermore, our noncontextuality inequalities are robust to noise and are operationally formulated, so that any experimental violation of the inequalities is a witness of contextuality, independently of the validity of quantum theory. Along the way, we introduce new methods for analyzing noncontextuality scenarios, and demonstrate a tight connection between our minimum error state discrimination scenario and a Bell scenario.
Article
Full-text available
We consider the contextual fraction as a quantitative measure of contextuality of empirical models, i.e. tables of probabilities of measurement outcomes in an experimental scenario. It provides a general way to compare the degree of contextuality across measurement scenarios; it bears a precise relationship to violations of Bell inequalities; its value, and a witnessing inequality, can be computed using linear programming; it is monotone with respect to the "free" operations of a resource theory for contextuality; and it measures quantifiable advantages in informatic tasks, such as games and a form of measurement based quantum computing.
Article
Full-text available
When a measurement is compatible with each of two other measurements that are incompatible with one another, these define distinct contexts for the given measurement. The Kochen-Specker theorem rules out models of quantum theory that satisfy a particular assumption of context-independence: that sharp measurements are assigned outcomes both deterministically and independently of their context. This notion of noncontextuality is not suited to a direct experimental test because realistic measurements always have some degree of unsharpness due to noise. However, a generalized notion of noncontextuality has been proposed that is applicable to any experimental procedure, including unsharp measurements, but also preparations as well, and for which a quantum no-go result still holds. According to this notion, the model need only specify a probability distribution over the outcomes of a measurement in a context-independent way, rather than specifying a particular outcome. It also implies novel constraints of context-independence for the representation of preparations. In this article, we describe a general technique for translating proofs of the Kochen-Specker theorem into inequality constraints on realistic experimental statistics, the violation of which witnesses the impossibility of a noncontextual model. We focus on algebraic state-independent proofs, using the Peres-Mermin square as our illustrative example. Our technique yields the necessary and sufficient conditions for a particular set of correlations (between the preparations and the measurements) to admit a noncontextual model. The inequalities thus derived are demonstrably robust to noise. We specify how experimental data must be processed in order to achieve a test of these inequalities. We also provide a criticism of prior proposals for experimental tests of noncontextuality based on the Peres-Mermin square.
Article
Full-text available
Random access coding is an information task that has been extensively studied and found many applications in quantum information. In this scenario, Alice receives an n-bit string x, and wishes to encode x into a quantum state ρx, such that Bob, when receiving the state ρx, can choose any bit i ∈ [n] and recover the input bit xi with high probability. Here we study two variants: parity-oblivious random access codes (RACs), where we impose the cryptographic property that Bob cannot infer any information about the parity of any subset of bits of the input apart from the single bits xi; and even-parity-oblivious RACs, where Bob cannot infer any information about the parity of any even-size subset of bits of the input. In this paper, we provide the optimal bounds for parity-oblivious quantum RACs and show that they are asymptotically better than the optimal classical ones. Our results provide a large non-contextuality inequality violation and resolve the main open problem in a work of Spekkens et al (2009 Phys. Rev. Lett. 102 010401). Second, we provide the optimal bounds for even-parity-oblivious RACs by proving their equivalence to a non-local game and by providing tight bounds for the success probability of the non-local game via semidefinite programming. In the case of even-parity-oblivious RACs, the cryptographic property holds also in the device independent model. © 2016 IOP Publishing Ltd and Deutsche Physikalische Gesellschaft.
Article
Full-text available
The problem of causal inference is to determine if a given probability distribution on observed variables is compatible with some causal structure. The difficult case is when the structure includes latent variables. We here introduce the inflation technique for tackling this problem. An inflation of a causal structure is a new causal structure that can contain multiple copies of each of the original variables, but where the ancestry of each copy mirrors that of the original. For every distribution compatible with the original causal structure we identify a corresponding family of distributions, over certain subsets of inflation variables, which is compatible with the inflation structure. It follows that compatibility constraints at the inflation level can be translated to compatibility constraints at the level of the original causal structure; even if the former are weak, such as observable statistical independences implied by disjoint causal ancestry, the translated constraints can be strong. In particular, we can derive inequalities whose violation by a distribution witnesses that distribution's incompatibility with the causal structure (of which Bell inequalities and Pearl's instrumental inequality are prominent examples). We describe an algorithm for deriving all of the inequalities for the original causal structure that follow from ancestral independences in the inflation. Applied to an inflation of the Triangle scenario with binary variables, it yields inequalities that are stronger in at least some aspects than those obtainable by existing methods. We also describe an algorithm that derives a weaker set of inequalities but is much more efficient. Finally, we discuss which inflations
Book
This new edition covers the central concepts of practical optimization techniques, with an emphasis on methods that are both state-of-the-art and popular. Again a connection between the purely analytical character of an optimization problem and the behavior of algorithms used to solve the problem. As in the earlier editions, the material in this fourth edition is organized into three separate parts. Part I is a self-contained introduction to linear programming covering numerical algorithms and many of its important special applications. Part II, which is independent of Part I, covers the theory of unconstrained optimization, including both derivations of the appropriate optimality conditions and an introduction to basic algorithms. Part III extends the concepts developed in the second part to constrained optimization problems. It is possible to go directly into Parts II and III omitting Part I, and, in fact, the book has been used in this way in many universities. From the reviews of the Third Edition “….this very well-written book is a classic textbook in Optimization. It should be present in the bookcase of each student, researcher, and specialist from the host of disciplines from which practical optimization applications are drawn.” (Jean-Jacques Strodiot, Zentralblatt MATH, Vol.1207, 2011).
Article
A new theory-independent noncontextuality inequality is presented [R. Kunjwal and R. W. Spekkens, Phys. Rev. Lett. 115, 110403 (2015)PRLTAO0031-900710.1103/PhysRevLett.115.110403] based on a Kochen-Specker (KS) set without imposing the assumption of determinism. By proposing noncontextuality inequalities, we show that such result can be generalized from a KS set to the noncontextuality inequalities not only for a state-independent scenario but also for a state-dependent scenario. The YO-13 ray and n cycle ray are considered as examples.
Article
The concept of randomness plays an important part in many disciplines. On the one hand, the question of whether random processes exist is fundamental for our understanding of nature. On the other, randomness is a resource for cryptography, algorithms and simulations. Standard methods for generating randomness rely on assumptions about the devices that are often not valid in practice. However, quantum technologies enable new methods for generating certified randomness, based on the violation of Bell inequalities. These methods are referred to as device-independent because they do not rely on any modelling of the devices. Here we review efforts to design device-independent randomness generators and the associated challenges.