GLOBAL KNOWLEDGE ARK

Physics · Article

Contextuality and quantum nonclassicality

A two-qubit square and a five-setting qutrit experiment ask whether the answers to compatible measurements can come from one table of pre-existing values. Work from the apparatus to the inequalities, compute what quantum theory predicts, and decide what a set of counts can actually establish.

Previous article: EPR arguments and Bell inequalities

Back to Physics

After reading, you can

  • Identify the same sharp observable in two distinct contexts and state the assumptions that allow a single value to represent both appearances.
  • Derive the Peres–Mermin parity contradiction and its six-term inequality, including the negative sign from the Pauli products.
  • Construct the five projectors of a qutrit pentagon and evaluate its classical bound, quantum score and visibility threshold.
  • Separate noise in a preparation from errors in three independently recorded outcomes, and calculate the consequences for each witness.
  • Use counts, marginal comparisons, repeatability and calibration evidence to frame a conditional experimental conclusion about contextuality.
01

When is a question the same question?

A technician labels one switch A. In one arrangement she measures A alongside B, and in another alongside C. She records the whole set of outcomes on each trial. The question of contextuality begins before examining a single correlation. What warrants using the same label A in both arrangements? If the switch operates differently in the two procedures, two different results can have an ordinary apparatus explanation. If A implements the same sharp observable in both, a model that assigns A one pre-existing answer must use that answer in both places.

A context here is a set of measurements that admit a joint measurement. For ideal sharp observables on a finite-dimensional system, commuting operators have a common spectral resolution. Measuring in that resolution yields one outcome for each observable in the context. B and C need not commute with each other. The arrangement can support an (A,B) experiment and an (A,C) experiment even when it cannot implement one joint sharp measurement of A, B and C. A context describes a procedure and its compatible questions. It has no implication that a later human choice changes an already stored result.

Write λ for a hypothetical specification of a system on a run. The sharp value-assignment hypothesis gives each observable A a value vλ(A) in its spectrum. The value is independent of which compatible measurements accompany it. There is also a functional-consistency assumption. If commuting A and B have product C in their joint spectral resolution, an outcome (a,b) entails c=ab. A candidate table must obey vλ(C)=vλ(A)vλ(B) for that context. It would be a mistake to impose this rule on arbitrary noncommuting operators. Their product need not even be an observable with real outcomes.

An ensemble can have an ordinary distribution of λ. The same distribution must describe the preparations sent to each context for the averaging argument below. Randomly choosing the context after preparation, interleaving trials and checking for drift can help justify this condition. It is easy to reproduce isolated histograms by choosing one table for the first arrangement and an unrelated table for the second. The experiment asks whether the pairwise and triple data can all be restrictions of a single table distribution.

Two tests in this lesson use different systems and different assumptions about the state. The first is an algebraic contradiction for two qubits. The second uses five exclusive pairs in a three-level system and a particular preparation. The preceding Bell experiment used measurement choices at distant stations and a locality hypothesis. Here the questions can all be implemented in one laboratory. A context-independent account and a locally causal account both constrain the consistency of data, but their physical justifications and experimental controls differ.

02

Nine observables and one unavoidable minus sign

Let X, Y and Z be the Pauli observables, with outcomes ±1, and I the identity. Write XY as a two-letter label for X⊗Y whenever it occupies a square cell. Write X·Y for multiplication on one qubit. The first letter of a cell acts on the first qubit and the second letter on the second. With this convention the first row is (XI, IX, XX), the second is (IY, YI, YY), and the third is (XY, YX, ZZ). A row or column is one measurement context. All the products and scores below are dimensionless.

Starting with the first row, XI and IX can be measured together and their product is XX. The product of all three operators is the four-dimensional identity I₄. A joint outcome (−1,+1,−1), for example, has product +1 as required. The signs of the individual answers depend on the state. The product of the three answers does not. The second row and the first two columns have the same positive product by multiplication of operators on different tensor factors.

The last row and last column repay a calculation. On one qubit X·Y=iZ and Y·X=−iZ. In the last row, (X⊗Y)(Y⊗X)=(iZ)⊗(−iZ)=+Z⊗Z. Multiplication by the third cell therefore yields +I₄. In the last column, (X⊗X)(Y⊗Y)=(iZ)⊗(iZ)=−Z⊗Z, so the complete triple gives −I₄. Reversing either two-qubit multiplication reverses both single-qubit signs and gives the same result. The two-qubit observables in each triple commute even though the two factors on a single qubit can anticommute.

Entangled measurements can be needed to read these commuting observables jointly. Measuring X on both individual qubits in one setting measures XX, but generally destroys the information needed for a subsequent joint YY measurement. A conceptual implementation of the final column can use their common Bell basis. In the state (|00⟩+|11⟩)/√2, the three final-column outcomes are (+1,−1,+1) with product −1. A different Bell outcome changes some individual signs while retaining the same product. The cell label specifies an observable, not permission to use an arbitrary destructive sequence to measure it.

For any density operator ρ on the two qubits, a triple product T equal to ±I₄ has expectation Tr(ρT)=±Tr(ρ)=±1. Because the product recorded in an ideal joint measurement takes only ±1, a mean of precisely +1 or −1 means the target sign occurs with probability one. This argument covers product states, entangled states and the completely mixed state I₄/4. Calling this square state-independent refers to those fixed product predictions for these calibrated measurements. It does not imply that preparation and readout can be left unspecified in an experiment.

The last column distinguishes the quantum products from an all-positive table

The last column distinguishes the quantum products from an all-positive tableRaw triple product. R1–R3 are rows and C1–C3 are columns. Every ideal triple product is +1 except C3, where (XX)(YY)(ZZ) = −I₄ gives −1. A table assigning +1 to all nine cells misses C3. Flipping ZZ repairs C3 and makes R3 fail. Each ideal product identity holds for every two-qubit input, although individual outcomes can depend on the state.−1−0.500.51Raw triple productR1R1. Ideal quantum triple product = +1.R1. Product in the all-positive table = +1.R2R2. Ideal quantum triple product = +1.R2. Product in the all-positive table = +1.R3R3. Ideal quantum triple product = +1.R3. Product in the all-positive table = +1.C1C1. Ideal quantum triple product = +1.C1. Product in the all-positive table = +1.C2C2. Ideal quantum triple product = +1.C2. Product in the all-positive table = +1.C3C3. Ideal quantum triple product = −1.C3. Product in the all-positive table = +1.
  • Ideal quantum triple product
  • Product in the all-positive table
R1–R3 are rows and C1–C3 are columns. Every ideal triple product is +1 except C3, where (XX)(YY)(ZZ) = −I₄ gives −1. A table assigning +1 to all nine cells misses C3. Flipping ZZ repairs C3 and makes R3 fail. Each ideal product identity holds for every two-qubit input, although individual outcomes can depend on the state.
Exact values shown in the plot
Raw triple product
CategoryQuantity or frameExact valuePreparation
R1Ideal quantum triple product+1square r1
R1Product in the all-positive table+1square r1
R2Ideal quantum triple product+1square r2
R2Product in the all-positive table+1square r2
R3Ideal quantum triple product+1square r3
R3Product in the all-positive table+1square r3
C1Ideal quantum triple product+1square c1
C1Product in the all-positive table+1square c1
C2Ideal quantum triple product+1square c2
C2Product in the all-positive table+1square c2
C3Ideal quantum triple product−1square c3
C3Product in the all-positive table+1square c3
03

Turn a parity contradiction into a measurable score

Try to fill the square with nine signs, one per cell. Multiply the signs in each of the three rows and each of the three columns. If you multiply those six products together, each cell appears exactly twice, so the combined product must be +1. Quantum mechanics asks for signs (+,+,+,+,+,−) in row-then-column order, whose combined product is −1. A single sharp table must fail an odd number of these six demands. This contradiction uses reuse of a cell across contexts, not a claim that all six contexts can be measured on one specimen.

Let R₁,R₂,R₃ and C₁,C₂,C₃ denote the measured triple products. Form the score S=⟨R₁⟩+⟨R₂⟩+⟨R₃⟩+⟨C₁⟩+⟨C₂⟩−⟨C₃⟩. Thus each term contributes +1 on a run when its relevant target is met and −1 when it fails. For a table that misses m targets the score computed from that table is 6−2m. The parity constraint allows m=1,3,5, so that S is respectively 4,0,−4. The all-positive table attains 4. A mixture of tables cannot do better because averaging is linear. Ideal quantum data give 6 by satisfying every target in its own context.

There are 2⁹=512 possible sign tables. Counting them is an independent way to check the parity reasoning. One can freely choose the four cells in the upper-left two-by-two block. Once six row/column products consistent with global parity are specified, the other five cells follow by solving the first two row products, the first two column products and the third row. The remaining column then has the required parity. Therefore each admissible six-product pattern occurs for sixteen tables. There are six single-failure patterns, twenty three-failure patterns and six five-failure patterns, giving counts 96, 320 and 96.

An empirical S uses a separate conditional mean for each context. In symbols, if kⱼ of nⱼ measured triples match their target, its signed contribution is 2kⱼ/nⱼ−1. Sum the six contributions with the targets already absorbed, including the negative final-column target. Subtracting the final-column contribution a second time would reverse the conclusion. Unequal sampling rates are harmless for this formula if every nⱼ is positive and the sampled preparations and retention rules support the comparison. Pooling raw matches across unbalanced settings generally estimates a different score.

Recorded means fluctuate. Even a noncontextual model that obeys the bound in expectation can produce a point estimate above 4 in a finite run. A numerical excess needs a statistical analysis appropriate to how contexts were chosen, how many outcomes were collected and whether trials can be treated as independent. A device that remembers previous contexts, or sample rejection depending on the context, can invalidate a simple independent-binomial analysis. Record those design choices before interpreting the size of a violation.

The 512 common tables populate three scores and none reaches six

The 512 common tables populate three scores and none reaches sixNumber of sign tables. A table that misses m targets scores 6 − 2m. The allowed odd counts of failures, five, three and one, give scores −4, 0 and +4. The number of tables at each score is 96, 320 and 96. The zero-height marker at +6 is an exact count of zero. Any mixture of these common tables has expectation at most 4.050100150200250300Number of sign tables−4−4. Number of nine-sign tables = 96.00. Number of nine-sign tables = 320.+4+4. Number of nine-sign tables = 96.+6+6. Number of nine-sign tables = 0.
  • Number of nine-sign tables
A table that misses m targets scores 6 − 2m. The allowed odd counts of failures, five, three and one, give scores −4, 0 and +4. The number of tables at each score is 96, 320 and 96. The zero-height marker at +6 is an exact count of zero. Any mixture of these common tables has expectation at most 4.
Exact values shown in the plot
Number of sign tables
CategoryQuantity or frameExact valuePreparation
−4Number of nine-sign tables96assignment score minus 4
0Number of nine-sign tables320assignment score 0
+4Number of nine-sign tables96assignment score 4
+6Number of nine-sign tables0assignment score 6
04

A pentagon in a three-dimensional state space

Consider five yes–no measurements P₀ through P₄ on a qutrit. Each Pⱼ is a rank-one projector |uⱼ⟩⟨uⱼ|. Neighbouring rays are orthogonal, with the index returning from 4 to 0. Orthogonality gives PⱼPⱼ₊₁=0. A joint sharp measurement of a neighbouring pair can return (1,0), (0,1) or (0,0). In three dimensions the last possibility corresponds to the one remaining orthogonal direction. It is essential here. The assumption is at most one ‘yes’ for two neighbours, not exactly one.

Draw the five measurement labels at the vertices of an ordinary pentagon and join adjacent exclusive pairs. A deterministic sharp table may assign a one to any set of non-neighbouring vertices. Three ones cannot fit around a five-cycle with at least one zero between each successive pair of ones. Two can fit, for example at indices 0 and 2. A mixture therefore satisfies K=ΣⱼPr(Pⱼ=1)≤2, assuming the marginal for Pⱼ means the same measurement in either neighbouring context. This graph records which answers may coexist. It is not a drawing of the physical orientation of the rays.

An explicit realization uses real vectors within a complex three-dimensional Hilbert space. Choose a dimensionless parameter h. Give every uⱼ a vertical component √h and a horizontal component of length √(1−h). Take their horizontal angles to be φⱼ=4πj/5. In coordinates uⱼ=(√(1−h)cosφⱼ, √(1−h)sinφⱼ, √h). Every vector has unit norm. Two consecutive vectors have inner product (1−h)cos(4π/5)+h. Setting it to zero gives h=−cos(4π/5)/(1−cos(4π/5))=1/√5. Labelling the rays in increments of 144° produces the required exclusivities, including the closing pair 4 and 0. Increments of 72° at this positive height would not.

Prepare |z⟩=(0,0,1). The Born probability for a yes at any vertex is |⟨uⱼ|z⟩|²=h=1/√5. The sum of the five marginal probabilities is √5, approximately 2.2361. In one particular adjacent pair, each single-yes outcome has probability h and neither has probability 1−2h, about 0.1056. Both-yes still has probability zero. Nothing ever clicks in two mutually exclusive ports in one run. The inconsistency with a global table emerges only when the five pair experiments must share their overlapping measurements.

The qutrit construction uses projectors and a chosen input state. The maximally mixed qutrit has Tr[(I₃/3)Pⱼ]=1/3 for each rank-one Pⱼ and gives K=5/3. It does not violate the bound. More generally the sum of probabilities is Tr(ρΣⱼPⱼ). The symmetry about the vertical axis cancels the off-diagonal entries of ΣⱼPⱼ. Its vertical eigenvalue is 5h and the two transverse eigenvalues are each 5(1−h)/2. This both verifies the chosen state’s value and shows it is the largest value for these particular projectors. It is a different claim from the state-independent square.

The neighbouring ray tests are exclusive and the vertical state gives equal marginals

The neighbouring ray tests are exclusive and the vertical state gives equal marginalsYes probability. With input |u₀⟩ the P₀ test is certain and its neighbours P₁ and P₄ have zero yes probability. P₂ and P₃ have nonzero overlap with u₀. With input |z⟩ each marginal is 1/√5. One compatible neighbouring pair is measured per trial. The five shared marginals can be added across contexts, giving √5 for the vertical state.00.250.50.751Yes probabilityP0P0. Input on ray u₀ = 1.P0. Input along z = 1/√5 ≈ 0.447213595.P1P1. Input on ray u₀ = 0 exactly.P1. Input along z = 1/√5 ≈ 0.447213595.P2P2. Input on ray u₀ = (3 − √5)/2 ≈ 0.381966011.P2. Input along z = 1/√5 ≈ 0.447213595.P3P3. Input on ray u₀ = (3 − √5)/2 ≈ 0.381966011.P3. Input along z = 1/√5 ≈ 0.447213595.P4P4. Input on ray u₀ = 0 exactly.P4. Input along z = 1/√5 ≈ 0.447213595.
  • Input on ray u₀
  • Input along z
With input |u₀⟩ the P₀ test is certain and its neighbours P₁ and P₄ have zero yes probability. P₂ and P₃ have nonzero overlap with u₀. With input |z⟩ each marginal is 1/√5. One compatible neighbouring pair is measured per trial. The five shared marginals can be added across contexts, giving √5 for the vertical state.
Exact values shown in the plot
Yes probability
CategoryQuantity or frameExact valuePreparation
P0Input on ray u₀1qutrit ray 0
P0Input along z1/√5 ≈ 0.447213595qutrit ray 0
P1Input on ray u₀0 exactlyqutrit ray 1
P1Input along z1/√5 ≈ 0.447213595qutrit ray 1
P2Input on ray u₀(3 − √5)/2 ≈ 0.381966011qutrit ray 2
P2Input along z1/√5 ≈ 0.447213595qutrit ray 2
P3Input on ray u₀(3 − √5)/2 ≈ 0.381966011qutrit ray 3
P3Input along z1/√5 ≈ 0.447213595qutrit ray 3
P4Input on ray u₀0 exactlyqutrit ray 4
P4Input along z1/√5 ≈ 0.447213595qutrit ray 4

An exclusive pair allows both answers to be no

An exclusive pair allows both answers to be noJoint probability. The first bit is the answer to P₄ and the second to P₀. Orthogonality forbids 11 for either preparation. For the vertical input 10 and 01 each occur with probability 1/√5, leaving 1 − 2/√5 for 00. For I₃/3 each of the three allowed outcomes has probability 1/3.00.250.50.751Joint probability1010. Vertical qutrit = 1/√5 ≈ 0.447213595.10. Maximally mixed qutrit = 1/3.0101. Vertical qutrit = 1/√5 ≈ 0.447213595.01. Maximally mixed qutrit = 1/3.0000. Vertical qutrit = 1 − 2/√5 ≈ 0.105572809.00. Maximally mixed qutrit = 1/3.1111. Vertical qutrit = 0.11. Maximally mixed qutrit = 0.
  • Vertical qutrit
  • Maximally mixed qutrit
The first bit is the answer to P₄ and the second to P₀. Orthogonality forbids 11 for either preparation. For the vertical input 10 and 01 each occur with probability 1/√5, leaving 1 − 2/√5 for 00. For I₃/3 each of the three allowed outcomes has probability 1/3.
Exact values shown in the plot
Joint probability
CategoryQuantity or frameExact valuePreparation
10Vertical qutrit1/√5 ≈ 0.447213595wraparound 10
10Maximally mixed qutrit1/3wraparound 10
01Vertical qutrit1/√5 ≈ 0.447213595wraparound 01
01Maximally mixed qutrit1/3wraparound 01
00Vertical qutrit1 − 2/√5 ≈ 0.105572809wraparound 00
00Maximally mixed qutrit1/3wraparound 00
11Vertical qutrit0wraparound 11
11Maximally mixed qutrit0wraparound 11
05

Noise in a preparation and noise in a record

Mix the vertical qutrit state with white preparation noise. For 0≤v≤1 set ρᵥ=v|z⟩⟨z|+(1−v)I₃/3. A device could implement this mixture by preparing the intended state in a fraction v of runs and an equally weighted orthonormal basis in the remaining runs, keeping settings independent. Linearity gives K(v)=v√5+(1−v)5/3. The slope is positive. Solving K(v)>2 yields v>1/(3√5−5), approximately 0.585410. Exactly at this visibility the result lies on the bound. This conclusion assumes the same five sharp projectors across the mixture.

Consider a different type of error in the square. Suppose all three actual signs of an ideal context are independently recorded, and after the measurement each output is reversed independently with the same probability ε. An error sign is −1 with probability ε and +1 otherwise, so its mean is 1−2ε. The recorded triple is the ideal triple multiplied by three error signs. Under the stated independence its target-signed mean becomes (1−2ε)³. Across six contexts S=6(1−2ε)³. With ε=0.05 this gives 4.374. With ε=0.10 it gives 3.072. These are predictions for this specified readout model. They do not calibrate an actual instrument.

Notice the effect of changing the acquisition procedure. If a controller records two signs and calculates the third as target times their product, every reported triple satisfies the target by construction. A value of 6 would then follow even if the controller’s two recorded signs were fair coins. A proper analysis must say which channels are physically measured, which values come from a joint basis label, and what evidence connects each marginal to its claimed observable. Reading one calibrated joint-basis outcome can implement a valid joint measurement. Such a measurement and a software-imposed sign have different calibration obligations.

Independent readout flips are also quite different from applying preparation noise to the two-qubit square. With the ideal sharp measurements fixed, changing any valid two-qubit density matrix leaves each target-signed mean at one. A state-independent prediction can therefore survive arbitrary mixing of the ideal input yet be sensitive to readout, order effects or disturbance. Likewise the qutrit visibility threshold is specific to white mixing and this chosen witness. Anisotropic noise may increase some marginals and decrease others; a single visibility may then be an inadequate description.

White mixing moves the qutrit witness through its bound

White mixing moves the qutrit witness through its boundPentagon excess K − 2. The plotted quantity is K − 2, so a positive value exceeds the common-table ceiling. Here v* = 1/(3√5 − 5) ≈ 0.585410 and the excess is exactly zero there. At v = 1/2 the excess is about −0.04863 and at v = 3/5 it is about +0.00831. The selected weights are displayed as equally spaced categories.−0.3−0.2−0.100.10.2Pentagon excess K − 200. Excess over the sharp-table ceiling = −1/3.1/31/3. Excess over the sharp-table ceiling = K − 2 ≈ −0.143532896.1/21/2. Excess over the sharp-table ceiling = K − 2 ≈ −0.0486326779.v*v*. Excess over the sharp-table ceiling = 0 exactly.3/53/5. Excess over the sharp-table ceiling = K − 2 ≈ 0.00830745317.3/43/4. Excess over the sharp-table ceiling = K − 2 ≈ 0.0937176498.11. Excess over the sharp-table ceiling = K − 2 ≈ 0.236067977.
  • Excess over the sharp-table ceiling
The plotted quantity is K − 2, so a positive value exceeds the common-table ceiling. Here v* = 1/(3√5 − 5) ≈ 0.585410 and the excess is exactly zero there. At v = 1/2 the excess is about −0.04863 and at v = 3/5 it is about +0.00831. The selected weights are displayed as equally spaced categories.
Exact values shown in the plot
Pentagon excess K − 2
CategoryQuantity or frameExact valuePreparation
0Excess over the sharp-table ceiling−1/3qutrit mixture 1
1/3Excess over the sharp-table ceilingK − 2 ≈ −0.143532896qutrit mixture 2
1/2Excess over the sharp-table ceilingK − 2 ≈ −0.0486326779qutrit mixture 3
v*Excess over the sharp-table ceiling0 exactlyqutrit mixture 4
3/5Excess over the sharp-table ceilingK − 2 ≈ 0.00830745317qutrit mixture 5
3/4Excess over the sharp-table ceilingK − 2 ≈ 0.0937176498qutrit mixture 6
1Excess over the sharp-table ceilingK − 2 ≈ 0.236067977qutrit mixture 7

Three independent record errors attenuate the square score faster than one

Three independent record errors attenuate the square score faster than oneTarget-signed score S. The circles give 6(1 − 2ε)³ and the squares 6(1 − 2ε). For ε = 1/20 the scores are 4.374 and 5.4. The three-channel prediction equals 4 at ε* = (1 − ∛(2/3))/2 ≈ 0.063210. The one-channel prediction equals 4 at ε = 1/6. These selected error probabilities are displayed as categories.0123456Target-signed score S00. Three independently flipped records = 6.0. One record exposed to flips = 6.1/1001/100. Three independently flipped records = 352947/62500.1/100. One record exposed to flips = 147/25.1/201/20. Three independently flipped records = 2187/500.1/20. One record exposed to flips = 27/5.ε*ε*. Three independently flipped records = 4 exactly.ε*. One record exposed to flips = 6 ∛(2/3) ≈ 5.24148279.1/101/10. Three independently flipped records = 384/125.1/10. One record exposed to flips = 24/5.1/61/6. Three independently flipped records = 16/9.1/6. One record exposed to flips = 4.1/21/2. Three independently flipped records = 0.1/2. One record exposed to flips = 0.
  • Three independently flipped records
  • One record exposed to flips
The circles give 6(1 − 2ε)³ and the squares 6(1 − 2ε). For ε = 1/20 the scores are 4.374 and 5.4. The three-channel prediction equals 4 at ε* = (1 − ∛(2/3))/2 ≈ 0.063210. The one-channel prediction equals 4 at ε = 1/6. These selected error probabilities are displayed as categories.
Exact values shown in the plot
Target-signed score S
CategoryQuantity or frameExact valuePreparation
0Three independently flipped records6square readout 1
0One record exposed to flips6square readout 1
1/100Three independently flipped records352947/62500square readout 2
1/100One record exposed to flips147/25square readout 2
1/20Three independently flipped records2187/500square readout 3
1/20One record exposed to flips27/5square readout 3
ε*Three independently flipped records4 exactlysquare readout 4
ε*One record exposed to flips6 ∛(2/3) ≈ 5.24148279square readout 4
1/10Three independently flipped records384/125square readout 5
1/10One record exposed to flips24/5square readout 5
1/6Three independently flipped records16/9square readout 6
1/6One record exposed to flips4square readout 6
1/2Three independently flipped records0square readout 7
1/2One record exposed to flips0square readout 7
06

What the laboratory has to establish

Suppose the square is implemented by a sequence of measurements on trapped ions. A run has an input state, a chosen compatible triple, a specified order of operations and an outcome record. Commonly reused operations should be checked with the other context in which each cell occurs. Compare their marginal distributions on several preparations sensitive to likely misalignment, and compare orderings where feasible. A second immediate measurement of a sharp observable can test repeatability. Interposed measurements in an A–B–A sequence can test whether the B procedure disturbs a previously recorded A. Tests of this kind address how to interpret a measured score.

A simple counterexample explains why these controls matter. A classical device reads the context label and outputs two random signs, choosing a third to ensure the target. Every single sign can have a perfectly balanced histogram in both appearances, and yet all six target products can be reproduced. Equal frequencies of ‘+’ for one preparation alone do not certify identical underlying measurement procedures. That device exemplifies what the global-table hypothesis excludes. An empirical argument for the hypothesis’s premises has to connect specific implementations across contexts, rather than infer compatibility from S alone.

Operationally equivalent procedures give the same outcome probabilities for all preparations and tests relevant to the operational theory. In a model using λ, measurement noncontextuality means that equivalent measurement events receive the same response probability conditional on λ. This is a statement about equality of conditional responses. Determinism for ideal sharp events is an additional premise in the simple table arguments. One cannot infer a predetermined outcome for every unsharp measurement from equality of responses alone. A coin with the same bias in two operationally equivalent boxes gives a counterexample to that logical step.

Achieving exact equality of every calibration statistic is not a practicable finite-data demand. In an actual test one can report finite uncertainty on comparisons, model imperfections explicitly, or use a noncontextuality inequality derived with the measured operational equivalences and noise assumptions. Merely subtracting an arbitrary allowance from 4 or symmetrizing problematic measurements without a model supplies no justified bound. Independently collecting calibration and witness data helps identify which inference is being made with each. Report context selection, analysis windows and missing events along with the observed means.

Contextuality here is a limit on a particular explanation of the outcome statistics. It does not select one interpretation of quantum mechanics, establish faster-than-light communication, or assert that a measuring person's awareness causes a change. The square neither needs spatial separation nor prepares a special entangled state. If the preparations and implementations meet the stated assumptions, the observed correlations test whether one context-independent assignment can underlie the measurements. The observed conditional probabilities remain well defined for each context.

The negative raw column mean contributes positively to the observed witness

The negative raw column mean contributes positively to the observed witnessMean sign product. The circles show the six raw product means and the squares show their target-signed contributions. The C3 sample has 95 negative outcomes out of 100, giving a raw mean of −0.90 and a signed contribution of +0.90. Adding the squares gives an estimate of 5.30. Interpreting its excess of 1.30 over the sharp-table bound requires the sampling and calibration records.−1−0.500.51Mean sign productR1R1. Raw triple mean = 9/10.R1. Contribution after applying the target sign = 9/10.R2R2. Raw triple mean = 22/25.R2. Contribution after applying the target sign = 22/25.R3R3. Raw triple mean = 23/25.R3. Contribution after applying the target sign = 23/25.C1C1. Raw triple mean = 21/25.C1. Contribution after applying the target sign = 21/25.C2C2. Raw triple mean = 43/50.C2. Contribution after applying the target sign = 43/50.C3C3. Raw triple mean = −9/10.C3. Contribution after applying the target sign = 9/10.
  • Raw triple mean
  • Contribution after applying the target sign
The circles show the six raw product means and the squares show their target-signed contributions. The C3 sample has 95 negative outcomes out of 100, giving a raw mean of −0.90 and a signed contribution of +0.90. Adding the squares gives an estimate of 5.30. Interpreting its excess of 1.30 over the sharp-table bound requires the sampling and calibration records.
Exact values shown in the plot
Mean sign product
CategoryQuantity or frameExact valuePreparation
R1Raw triple mean9/10count r1
R1Contribution after applying the target sign9/10count r1
R2Raw triple mean22/25count r2
R2Contribution after applying the target sign22/25count r2
R3Raw triple mean23/25count r3
R3Contribution after applying the target sign23/25count r3
C1Raw triple mean21/25count c1
C1Contribution after applying the target sign21/25count c1
C2Raw triple mean43/50count c2
C2Contribution after applying the target sign43/50count c2
C3Raw triple mean−9/10count c3
C3Contribution after applying the target sign9/10count c3

A Bell-state calibration distinguishes two devices with the same triple product

A Bell-state calibration distinguishes two devices with the same triple productProbability of +1. The Φ+ input fixes the three final-column signs at +1, −1, +1. A box that chooses two fair signs and calculates c = −ab also produces a negative triple every time, while each of its marginal plus probabilities is 1/2. A known input can reveal this particular difference. Establishing equivalence across contexts requires calibration over the relevant preparations and procedures.00.250.50.751Probability of +1XXXX. Calibrated Φ+ joint measurement = 1.XX. Fair context-aware reporter = 1/2.YYYY. Calibrated Φ+ joint measurement = 0.YY. Fair context-aware reporter = 1/2.ZZZZ. Calibrated Φ+ joint measurement = 1.ZZ. Fair context-aware reporter = 1/2.
  • Calibrated Φ+ joint measurement
  • Fair context-aware reporter
The Φ+ input fixes the three final-column signs at +1, −1, +1. A box that chooses two fair signs and calculates c = −ab also produces a negative triple every time, while each of its marginal plus probabilities is 1/2. A known input can reveal this particular difference. Establishing equivalence across contexts requires calibration over the relevant preparations and procedures.
Exact values shown in the plot
Probability of +1
CategoryQuantity or frameExact valuePreparation
XXCalibrated Φ+ joint measurement1calibrate xx
XXFair context-aware reporter1/2calibrate xx
YYCalibrated Φ+ joint measurement0calibrate yy
YYFair context-aware reporter1/2calibrate yy
ZZCalibrated Φ+ joint measurement1calibrate zz
ZZFair context-aware reporter1/2calibrate zz
07

Scope, dimension and connections

The dimension matters. For the simplest sharp, rank-one projector version of the Kochen–Specker question, a two-dimensional system has orthogonal pairs, and one can pick one ray from each antipodal pair on the Bloch sphere to take value one. The complementary ray takes zero. This illustrates why ordinary sharp qubit projective measurements alone do not supply this dimension-three-or-greater contradiction. The square acts on a four-dimensional two-qubit space. The pentagon acts on a three-dimensional space. General operational contextuality questions involving preparations or unsharp measurements need their own assumptions and can also be asked of qubit experiments.

A useful distinction concerns a joint probability distribution. In any one compatible context quantum mechanics supplies an ordinary non-negative distribution over the outcomes in that context. The table bound asks whether there is also one joint distribution for all named measurements whose marginals reproduce every context. In the deterministic table language a joint distribution is just a probability distribution over complete assignments. Mixing assignments cannot fix a violation of their linear bound. The distinction concerns consistency across overlaps. It does not undermine probability theory within an actual measurement.

An observed absence of a violation is similarly limited. A maximally mixed input suppresses this pentagon witness even for a device that implements the projectors perfectly. A square sampled with a noisy readout may give S below 4 even if the underlying ideal observables would have supplied all six target signs. Failing a particular witness does not construct an underlying noncontextual model for all measurements. It means that this test, at this precision and under its assumptions, has not ruled one out.

The same discipline carries into later quantum information lessons. When an experiment reports a nonclassical resource it must specify the allowed operations, the classical model being tested and what a violation buys in that particular task. A contextuality witness by itself gives neither a computational speedup nor an entanglement measure. What carries over directly is the method of identifying shared procedures, deriving a constraint on an entire class of models and comparing it with a carefully specified experiment.

Exact preparations and results

Square context R1 with cells XI, IX, XX

Make a single joint sharp measurement of the three commuting Pauli observables in this row or column. Each letter acts on one of the two qubits. The all-positive value table is a separate classical assignment.

Inputs
Context and cells
R1: XI, IX, XX
Input for the ideal product identity
Any normalized two-qubit state
Classical table used for comparison
All nine cell values are +1.
Results
Product operator
+I₄
Ideal probability of the target sign
1
Raw product of the all-positive table
+1
Target match of that table
Yes
Raw table product if only the ZZ cell is flipped
+1
Target match after flipping only ZZ
Yes
Square context R2 with cells IY, YI, YY

Make a single joint sharp measurement of the three commuting Pauli observables in this row or column. Each letter acts on one of the two qubits. The all-positive value table is a separate classical assignment.

Inputs
Context and cells
R2: IY, YI, YY
Input for the ideal product identity
Any normalized two-qubit state
Classical table used for comparison
All nine cell values are +1.
Results
Product operator
+I₄
Ideal probability of the target sign
1
Raw product of the all-positive table
+1
Target match of that table
Yes
Raw table product if only the ZZ cell is flipped
+1
Target match after flipping only ZZ
Yes
Square context R3 with cells XY, YX, ZZ

Make a single joint sharp measurement of the three commuting Pauli observables in this row or column. Each letter acts on one of the two qubits. The all-positive value table is a separate classical assignment.

Inputs
Context and cells
R3: XY, YX, ZZ
Input for the ideal product identity
Any normalized two-qubit state
Classical table used for comparison
All nine cell values are +1.
Results
Product operator
+I₄
Ideal probability of the target sign
1
Raw product of the all-positive table
+1
Target match of that table
Yes
Raw table product if only the ZZ cell is flipped
−1
Target match after flipping only ZZ
No
Square context C1 with cells XI, IY, XY

Make a single joint sharp measurement of the three commuting Pauli observables in this row or column. Each letter acts on one of the two qubits. The all-positive value table is a separate classical assignment.

Inputs
Context and cells
C1: XI, IY, XY
Input for the ideal product identity
Any normalized two-qubit state
Classical table used for comparison
All nine cell values are +1.
Results
Product operator
+I₄
Ideal probability of the target sign
1
Raw product of the all-positive table
+1
Target match of that table
Yes
Raw table product if only the ZZ cell is flipped
+1
Target match after flipping only ZZ
Yes
Square context C2 with cells IX, YI, YX

Make a single joint sharp measurement of the three commuting Pauli observables in this row or column. Each letter acts on one of the two qubits. The all-positive value table is a separate classical assignment.

Inputs
Context and cells
C2: IX, YI, YX
Input for the ideal product identity
Any normalized two-qubit state
Classical table used for comparison
All nine cell values are +1.
Results
Product operator
+I₄
Ideal probability of the target sign
1
Raw product of the all-positive table
+1
Target match of that table
Yes
Raw table product if only the ZZ cell is flipped
+1
Target match after flipping only ZZ
Yes
Square context C3 with cells XX, YY, ZZ

Make a single joint sharp measurement of the three commuting Pauli observables in this row or column. Each letter acts on one of the two qubits. The all-positive value table is a separate classical assignment.

Inputs
Context and cells
C3: XX, YY, ZZ
Input for the ideal product identity
Any normalized two-qubit state
Classical table used for comparison
All nine cell values are +1.
Results
Product operator
−I₄
Ideal probability of the target sign
1
Raw product of the all-positive table
+1
Target match of that table
No
Raw table product if only the ZZ cell is flipped
−1
Target match after flipping only ZZ
Yes
Count assignments with a target-signed score of −4

Enumerate one sign per cell and reuse it in both its row and its column. Every cell appears twice across the six products, so their product is +1 while the product of the six targets is −1.

Inputs
Assigned cells
9
Total possible tables
2⁹ = 512
Score S
−4
Results
Required number of missed targets (6 − S)/2
5
Tables at this score
96
Parity accounting
6 permitted failure patterns, each realized by 16 tables.
Count assignments with a target-signed score of 0

Enumerate one sign per cell and reuse it in both its row and its column. Every cell appears twice across the six products, so their product is +1 while the product of the six targets is −1.

Inputs
Assigned cells
9
Total possible tables
2⁹ = 512
Score S
0
Results
Required number of missed targets (6 − S)/2
3
Tables at this score
320
Parity accounting
20 permitted failure patterns, each realized by 16 tables.
Count assignments with a target-signed score of +4

Enumerate one sign per cell and reuse it in both its row and its column. Every cell appears twice across the six products, so their product is +1 while the product of the six targets is −1.

Inputs
Assigned cells
9
Total possible tables
2⁹ = 512
Score S
+4
Results
Required number of missed targets (6 − S)/2
1
Tables at this score
96
Parity accounting
6 permitted failure patterns, each realized by 16 tables.
Count assignments with a target-signed score of +6

Enumerate one sign per cell and reuse it in both its row and its column. Every cell appears twice across the six products, so their product is +1 while the product of the six targets is −1.

Inputs
Assigned cells
9
Total possible tables
2⁹ = 512
Score S
+6
Results
Required number of missed targets (6 − S)/2
0
Tables at this score
0
Parity accounting
Zero failures has the wrong parity. No common sign table meets all six ideal targets.
Projector P0 on two qutrit inputs

On each fresh preparation measure Pⱼ in one of its compatible neighbouring pairs. The plotted quantities are one-projector yes probabilities, obtained separately over the five settings.

Inputs
Tested ray
u0
Horizontal azimuth modulo 360°
0°
Vertical component
√h, with h = 1/√5
Neighbours in the exclusivity cycle
P4 and P1
Results
Yes probability with input |u₀⟩
1
Yes probability with input |z⟩
1/√5 ≈ 0.447213595
Sum for the five vertical-input marginals
√5 ≈ 2.23606798
Projector P1 on two qutrit inputs

On each fresh preparation measure Pⱼ in one of its compatible neighbouring pairs. The plotted quantities are one-projector yes probabilities, obtained separately over the five settings.

Inputs
Tested ray
u1
Horizontal azimuth modulo 360°
144°
Vertical component
√h, with h = 1/√5
Neighbours in the exclusivity cycle
P0 and P2
Results
Yes probability with input |u₀⟩
0 exactly
Yes probability with input |z⟩
1/√5 ≈ 0.447213595
Sum for the five vertical-input marginals
√5 ≈ 2.23606798
Projector P2 on two qutrit inputs

On each fresh preparation measure Pⱼ in one of its compatible neighbouring pairs. The plotted quantities are one-projector yes probabilities, obtained separately over the five settings.

Inputs
Tested ray
u2
Horizontal azimuth modulo 360°
288°
Vertical component
√h, with h = 1/√5
Neighbours in the exclusivity cycle
P1 and P3
Results
Yes probability with input |u₀⟩
(3 − √5)/2 ≈ 0.381966011
Yes probability with input |z⟩
1/√5 ≈ 0.447213595
Sum for the five vertical-input marginals
√5 ≈ 2.23606798
Projector P3 on two qutrit inputs

On each fresh preparation measure Pⱼ in one of its compatible neighbouring pairs. The plotted quantities are one-projector yes probabilities, obtained separately over the five settings.

Inputs
Tested ray
u3
Horizontal azimuth modulo 360°
72°
Vertical component
√h, with h = 1/√5
Neighbours in the exclusivity cycle
P2 and P4
Results
Yes probability with input |u₀⟩
(3 − √5)/2 ≈ 0.381966011
Yes probability with input |z⟩
1/√5 ≈ 0.447213595
Sum for the five vertical-input marginals
√5 ≈ 2.23606798
Projector P4 on two qutrit inputs

On each fresh preparation measure Pⱼ in one of its compatible neighbouring pairs. The plotted quantities are one-projector yes probabilities, obtained separately over the five settings.

Inputs
Tested ray
u4
Horizontal azimuth modulo 360°
216°
Vertical component
√h, with h = 1/√5
Neighbours in the exclusivity cycle
P3 and P0
Results
Yes probability with input |u₀⟩
0 exactly
Yes probability with input |z⟩
1/√5 ≈ 0.447213595
Sum for the five vertical-input marginals
√5 ≈ 2.23606798
Pair outcome (1, 0) for (P₄, P₀)

Jointly measure these orthogonal neighbouring rank-one projectors in dimension three. The two bits are ordered P₄ first and P₀ second.

Inputs
Joint effect
P₄
Rank of this effect
1
Results
Probability on |z⟩
1/√5 ≈ 0.447213595
Probability on I₃/3
1/3
P₀ marginal
Sum the 01 and 11 cells. It is 1/√5 on |z⟩ and 1/3 on I₃/3.
Pair outcome (0, 1) for (P₄, P₀)

Jointly measure these orthogonal neighbouring rank-one projectors in dimension three. The two bits are ordered P₄ first and P₀ second.

Inputs
Joint effect
P₀
Rank of this effect
1
Results
Probability on |z⟩
1/√5 ≈ 0.447213595
Probability on I₃/3
1/3
P₀ marginal
Sum the 01 and 11 cells. It is 1/√5 on |z⟩ and 1/3 on I₃/3.
Pair outcome (0, 0) for (P₄, P₀)

Jointly measure these orthogonal neighbouring rank-one projectors in dimension three. The two bits are ordered P₄ first and P₀ second.

Inputs
Joint effect
I₃ − P₄ − P₀
Rank of this effect
1
Results
Probability on |z⟩
1 − 2/√5 ≈ 0.105572809
Probability on I₃/3
1/3
P₀ marginal
Sum the 01 and 11 cells. It is 1/√5 on |z⟩ and 1/3 on I₃/3.
Pair outcome (1, 1) for (P₄, P₀)

Jointly measure these orthogonal neighbouring rank-one projectors in dimension three. The two bits are ordered P₄ first and P₀ second.

Inputs
Joint effect
Zero operator
Rank of this effect
0
Results
Probability on |z⟩
0
Probability on I₃/3
0
P₀ marginal
Sum the 01 and 11 cells. It is 1/√5 on |z⟩ and 1/3 on I₃/3.
Pentagon witness at white-mixture visibility 0

Hold the five sharp projectors fixed. Weight the vertical pure state by v and the fully mixed three-level state by 1−v. The observable K sums one compatible-pair marginal for each vertex.

Inputs
Vertical-state weight v
0
One preassigned sharp table
At most two non-neighbouring yes values.
Results
Each yes probability
1/3
Sum K
5/3
Plotted K − 2
−1/3
Prediction relative to the bound
Below
Pentagon witness at white-mixture visibility 1/3

Hold the five sharp projectors fixed. Weight the vertical pure state by v and the fully mixed three-level state by 1−v. The observable K sums one compatible-pair marginal for each vertex.

Inputs
Vertical-state weight v
1/3
One preassigned sharp table
At most two non-neighbouring yes values.
Results
Each yes probability
K/5 ≈ 0.371293421
Sum K
5/3 + v(√5 − 5/3) ≈ 1.8564671
Plotted K − 2
K − 2 ≈ −0.143532896
Prediction relative to the bound
Below
Pentagon witness at white-mixture visibility 1/2

Hold the five sharp projectors fixed. Weight the vertical pure state by v and the fully mixed three-level state by 1−v. The observable K sums one compatible-pair marginal for each vertex.

Inputs
Vertical-state weight v
1/2
One preassigned sharp table
At most two non-neighbouring yes values.
Results
Each yes probability
K/5 ≈ 0.390273464
Sum K
5/3 + v(√5 − 5/3) ≈ 1.95136732
Plotted K − 2
K − 2 ≈ −0.0486326779
Prediction relative to the bound
Below
Pentagon witness at white-mixture visibility 1/(3√5 − 5)

Hold the five sharp projectors fixed. Weight the vertical pure state by v and the fully mixed three-level state by 1−v. The observable K sums one compatible-pair marginal for each vertex.

Inputs
Vertical-state weight v
1/(3√5 − 5)
One preassigned sharp table
At most two non-neighbouring yes values.
Results
Each yes probability
2/5 exactly
Sum K
2 exactly
Plotted K − 2
0 exactly
Prediction relative to the bound
Exactly on the bound
Pentagon witness at white-mixture visibility 3/5

Hold the five sharp projectors fixed. Weight the vertical pure state by v and the fully mixed three-level state by 1−v. The observable K sums one compatible-pair marginal for each vertex.

Inputs
Vertical-state weight v
3/5
One preassigned sharp table
At most two non-neighbouring yes values.
Results
Each yes probability
K/5 ≈ 0.401661491
Sum K
5/3 + v(√5 − 5/3) ≈ 2.00830745
Plotted K − 2
K − 2 ≈ 0.00830745317
Prediction relative to the bound
Above
Pentagon witness at white-mixture visibility 3/4

Hold the five sharp projectors fixed. Weight the vertical pure state by v and the fully mixed three-level state by 1−v. The observable K sums one compatible-pair marginal for each vertex.

Inputs
Vertical-state weight v
3/4
One preassigned sharp table
At most two non-neighbouring yes values.
Results
Each yes probability
K/5 ≈ 0.41874353
Sum K
5/3 + v(√5 − 5/3) ≈ 2.09371765
Plotted K − 2
K − 2 ≈ 0.0937176498
Prediction relative to the bound
Above
Pentagon witness at white-mixture visibility 1

Hold the five sharp projectors fixed. Weight the vertical pure state by v and the fully mixed three-level state by 1−v. The observable K sums one compatible-pair marginal for each vertex.

Inputs
Vertical-state weight v
1
One preassigned sharp table
At most two non-neighbouring yes values.
Results
Each yes probability
K/5 ≈ 0.447213595
Sum K
√5 ≈ 2.23606798
Plotted K − 2
K − 2 ≈ 0.236067977
Prediction relative to the bound
Above
Square readout with flip probability 0

Start with ideal joint Pauli triples. In the three-channel model reverse each reported sign independently with probability ε. In the one-channel comparison the other two recorded signs are perfect.

Inputs
Flip probability ε
0
Sharp common-table comparison point
S = 4
Results
Probability the triple still matches, three independent channels
1
Square score, three independent channels
6
Square score, one exposed channel
6
Third bit inferred from the target and the first two
This different procedure would impose the target in every report.
Square readout with flip probability 1/100

Start with ideal joint Pauli triples. In the three-channel model reverse each reported sign independently with probability ε. In the one-channel comparison the other two recorded signs are perfect.

Inputs
Flip probability ε
1/100
Sharp common-table comparison point
S = 4
Results
Probability the triple still matches, three independent channels
242649/250000
Square score, three independent channels
352947/62500
Square score, one exposed channel
147/25
Third bit inferred from the target and the first two
This different procedure would impose the target in every report.
Square readout with flip probability 1/20

Start with ideal joint Pauli triples. In the three-channel model reverse each reported sign independently with probability ε. In the one-channel comparison the other two recorded signs are perfect.

Inputs
Flip probability ε
1/20
Sharp common-table comparison point
S = 4
Results
Probability the triple still matches, three independent channels
1729/2000
Square score, three independent channels
2187/500
Square score, one exposed channel
27/5
Third bit inferred from the target and the first two
This different procedure would impose the target in every report.
Square readout with flip probability ε*

Start with ideal joint Pauli triples. In the three-channel model reverse each reported sign independently with probability ε. In the one-channel comparison the other two recorded signs are perfect.

Inputs
Flip probability ε
(1 − ∛(2/3))/2
Sharp common-table comparison point
S = 4
Results
Probability the triple still matches, three independent channels
5/6 exactly
Square score, three independent channels
4 exactly
Square score, one exposed channel
6 ∛(2/3) ≈ 5.24148279
Third bit inferred from the target and the first two
This different procedure would impose the target in every report.
Square readout with flip probability 1/10

Start with ideal joint Pauli triples. In the three-channel model reverse each reported sign independently with probability ε. In the one-channel comparison the other two recorded signs are perfect.

Inputs
Flip probability ε
1/10
Sharp common-table comparison point
S = 4
Results
Probability the triple still matches, three independent channels
189/250
Square score, three independent channels
384/125
Square score, one exposed channel
24/5
Third bit inferred from the target and the first two
This different procedure would impose the target in every report.
Square readout with flip probability 1/6

Start with ideal joint Pauli triples. In the three-channel model reverse each reported sign independently with probability ε. In the one-channel comparison the other two recorded signs are perfect.

Inputs
Flip probability ε
1/6
Sharp common-table comparison point
S = 4
Results
Probability the triple still matches, three independent channels
35/54
Square score, three independent channels
16/9
Square score, one exposed channel
4
Third bit inferred from the target and the first two
This different procedure would impose the target in every report.
Square readout with flip probability 1/2

Start with ideal joint Pauli triples. In the three-channel model reverse each reported sign independently with probability ε. In the one-channel comparison the other two recorded signs are perfect.

Inputs
Flip probability ε
1/2
Sharp common-table comparison point
S = 4
Results
Probability the triple still matches, three independent channels
1/2
Square score, three independent channels
0
Square score, one exposed channel
0
Third bit inferred from the target and the first two
This different procedure would impose the target in every report.
Counted triple signs in R1

Count target matches on 100 defined trials of this context. Multiply the measured raw product mean by the context’s target once when forming the six-term witness.

Inputs
Target raw sign
+1
Trials
100
Matching products
95
Other products
5
Results
Raw products with sign +1
95
Raw products with sign −1
5
Raw mean
9/10
Target-signed contribution 2k/n − 1
9/10
Counted triple signs in R2

Count target matches on 100 defined trials of this context. Multiply the measured raw product mean by the context’s target once when forming the six-term witness.

Inputs
Target raw sign
+1
Trials
100
Matching products
94
Other products
6
Results
Raw products with sign +1
94
Raw products with sign −1
6
Raw mean
22/25
Target-signed contribution 2k/n − 1
22/25
Counted triple signs in R3

Count target matches on 100 defined trials of this context. Multiply the measured raw product mean by the context’s target once when forming the six-term witness.

Inputs
Target raw sign
+1
Trials
100
Matching products
96
Other products
4
Results
Raw products with sign +1
96
Raw products with sign −1
4
Raw mean
23/25
Target-signed contribution 2k/n − 1
23/25
Counted triple signs in C1

Count target matches on 100 defined trials of this context. Multiply the measured raw product mean by the context’s target once when forming the six-term witness.

Inputs
Target raw sign
+1
Trials
100
Matching products
92
Other products
8
Results
Raw products with sign +1
92
Raw products with sign −1
8
Raw mean
21/25
Target-signed contribution 2k/n − 1
21/25
Counted triple signs in C2

Count target matches on 100 defined trials of this context. Multiply the measured raw product mean by the context’s target once when forming the six-term witness.

Inputs
Target raw sign
+1
Trials
100
Matching products
93
Other products
7
Results
Raw products with sign +1
93
Raw products with sign −1
7
Raw mean
43/50
Target-signed contribution 2k/n − 1
43/50
Counted triple signs in C3

Count target matches on 100 defined trials of this context. Multiply the measured raw product mean by the context’s target once when forming the six-term witness.

Inputs
Target raw sign
−1
Trials
100
Matching products
95
Other products
5
Results
Raw products with sign +1
5
Raw products with sign −1
95
Raw mean
−9/10
Target-signed contribution 2k/n − 1
9/10
Check the XX marginal in the final column

Prepare Φ+ = (|00⟩ + |11⟩)/√2 and read the compatible XX, YY and ZZ in their common Bell basis. Compare a device that ignores the state, generates two fair signs and calculates its final report from the target −1.

Inputs
Cell examined
XX
Reporter rule for third output
c = −ab, with independent fair a and b
Results
Φ+ eigenvalue for this cell
+1
Plus probability with calibrated joint readout
1
Plus probability for the fair reporter
1/2
Raw triple product in both procedures
−1 on every trial
Check the YY marginal in the final column

Prepare Φ+ = (|00⟩ + |11⟩)/√2 and read the compatible XX, YY and ZZ in their common Bell basis. Compare a device that ignores the state, generates two fair signs and calculates its final report from the target −1.

Inputs
Cell examined
YY
Reporter rule for third output
c = −ab, with independent fair a and b
Results
Φ+ eigenvalue for this cell
−1
Plus probability with calibrated joint readout
0
Plus probability for the fair reporter
1/2
Raw triple product in both procedures
−1 on every trial
Check the ZZ marginal in the final column

Prepare Φ+ = (|00⟩ + |11⟩)/√2 and read the compatible XX, YY and ZZ in their common Bell basis. Compare a device that ignores the state, generates two fair signs and calculates its final report from the target −1.

Inputs
Cell examined
ZZ
Reporter rule for third output
c = −ab, with independent fair a and b
Results
Φ+ eigenvalue for this cell
+1
Plus probability with calibrated joint readout
1
Plus probability for the fair reporter
1/2
Raw triple product in both procedures
−1 on every trial
Limits on the inputs
Shared sharp measurements
Treat repeated labels as the same operation only with evidence about their implementation in both contexts. The simple bounds assume sharp values and functional consistency in compatible measurements.
Preparation and readout
Qutrit white mixing varies the input state. The square flip model changes reported output signs after an ideal joint readout. Record which physical channels are actually measured.
Inference from data
Collect each context on the intended preparation, document trial retention and assess statistical uncertainty. One balanced marginal or a large witness score cannot on its own establish compatibility.

Worked examples

Follow both imaginary phases

Why does the last column give a negative product even though each entry is Hermitian and all three commute?

  1. Multiply the first two entries on their specified tensor factors. (X⊗X)(Y⊗Y)=(X·Y)⊗(X·Y)=(iZ)⊗(iZ)=−Z⊗Z. The two factors of i multiply to −1.
  2. Use the reverse order to check compatibility. (Y⊗Y)(X⊗X)=(−iZ)⊗(−iZ)=−Z⊗Z, so the first two observables commute. The remaining one is their product times −1 and commutes with both.
  3. Multiply by the last-column third entry, ZZ. Because (Z⊗Z)²=I₄, the column product is −I₄. In the last row the second single-qubit multiplication has the opposite order, producing i times −i and giving the positive row product.

The last column’s sign comes from the two single-qubit multiplication phases. Its joint outcomes must multiply to −1 for every two-qubit state.

Try to repair an almost successful table

Fill every square cell with +1. How many conditions are met? Can changing the lower-right cell alone repair the contradiction?

  1. Initially the three row products and all three column products are +1. They meet five targets and miss the negative target in the final column. The six signed contributions sum to 4.
  2. Turn the lower-right cell, ZZ, to −1. The final-column product is now −1 and meets its target. The third-row product is now −1 and misses its positive target. Every other product is unchanged.
  3. Any one cell flip changes exactly two context products. More generally the product of all six table products is always +1. An odd number of target disagreements is unavoidable, whatever pattern of flips is tried.

Changing ZZ moves the failed test from a column to a row and leaves the score at 4. A distribution of repaired and unrepaired tables is still bounded by 4.

Predict every outcome of one qutrit pair

A source prepares |z⟩ and measures the joint context (P₄,P₀) of the pentagon. What are the four outcome probabilities, and why do they sum to one?

  1. The wraparound azimuthal difference is equivalent to ±4π/5 modulo 2π. The neighbouring ray overlap is h+(1−h)cos(4π/5)=0. Hence P₄P₀=0, and the (1,1) probability is zero.
  2. Each ray has vertical amplitude √h, so the probability of (1,0) is h and that of (0,1) is h. Here h=1/√5≈0.447214.
  3. The orthogonal remainder is I₃−P₄−P₀, a rank-one projector. Its probability is 1−2/√5≈0.105573. Summing h+h+(1−2h)+0 gives one. Repeat the calculation in the next pair and the marginal for P₀ is again h.

The two single-yes probabilities are each 1/√5. Neither occurs with probability 1−2/√5 and both-yes never occurs. A positive result for the overall witness is consistent with exact exclusivity in every pair.

How much white mixing can the pentagon tolerate?

Two qutrit preparations have visibility 1/2 and 3/5. Which one exceeds the deterministic sharp-pentagon bound if all projectors are ideal?

  1. The pure vertical input contributes √5; the completely mixed input contributes 5/3. For either mixture compute K=5/3+v(√5−5/3).
  2. At v=1/2, K≈1.951367. At v=3/5, K≈2.008307. Only the latter exceeds 2. In each case the per-vertex probability equals K/5.
  3. Set K=2 before rounding. The solution v=1/(3√5−5)≈0.585410 lies between the two settings. A small excess such as 0.008307 would need substantial precision in an experiment. The calculation supplies an ideal expectation, not a confidence statement.

The 3/5 mixture crosses the ideal bound. A single positive per-vertex probability is insufficient to decide this question; its sum over all five shared measurements enters the test.

Distinguish one faulty report from three

Each of the three independently recorded signs in a square context is reversed with probability 0.05. How often does the reported triple still match, and what is S?

  1. The product sign changes for an odd number of flips. With ε=0.05 this probability is 3ε(1−ε)²+ε³=0.1355. It stays correct for zero or two flips, with probability 0.8645.
  2. Subtract failure probability from success probability. The target-signed mean is 0.8645−0.1355=0.729. This also equals (1−2ε)³=0.9³.
  3. Add the six equal target-signed means to obtain S=4.374. If only one independent output channel were exposed to flips and the others were perfect, the corresponding six-term prediction would instead be 6(1−2ε)=5.4. A common flip shared by all three channels coincidentally gives that same one-factor dependence because (−1)³=−1.

The triple is correct with probability 0.8645, giving S=4.374. The product of the three individual error means requires independent errors.

Convert six count records into a witness

In row-then-column order, the target sign was recorded 95, 94, 96, 92, 93 and 95 times in 100 trials each. Compute the estimated score and identify one thing the table cannot establish.

  1. Use the appropriate target for each context. For the last column, 95 is the number of negative raw triple products. Its raw mean is −0.90 and its target-signed contribution is +0.90.
  2. Convert each count k to 2k/100−1. The six signed contributions are 0.90, 0.88, 0.92, 0.84, 0.86 and 0.90. Their sum is 5.30. Because the settings have equal numbers of trials, the same answer happens to follow from 6[2(565/600)−1].
  3. The ideal sharp-table ceiling is 4. The estimated excess is 1.30. The counts give no information about whether the same labelled operation was implemented in both contexts, how outcomes were rejected, or whether trial ordering introduced dependence. Those are distinct inferences from the six arithmetic means.

The observed score is 5.30. Deciding the strength of evidence against a specified noncontextual model also requires an appropriate sampling analysis and evidence about the measurement procedures.

A perfect score from a context-aware box

A test box is handed three cell names and a target sign t. It picks independent fair signs a and b, reports a and b for the first two cells, and reports c=tab for the third. Which simple checks does it pass?

  1. Because a²=b²=1, the reported product abc=t in every context. The six-term witness is therefore 6. The marginal distributions of a and b are fair by construction.
  2. For fixed t the product of two independent fair signs is fair. Thus c is also fair. The labelled single-cell marginals can agree across both appearances even though the output rule explicitly uses the context. Marginal equality on this preparation cannot reject the box.
  3. A physical apparatus needs an independent reason to associate each reported marginal with the intended sharp observable. One can compare context implementations on distinct well-characterized preparations, test repeatability and intervening disturbance, and audit how a joint outcome was decoded. The evidence required depends on the experimental model.

The box passes the parity test and the single-preparation marginal comparison. It is an explicit context-dependent response mechanism, so these two observations alone do not establish that a classical apparatus implemented calibrated quantum observables.

Try it yourself

  1. Why is vλ(X·Y)=vλ(X)vλ(Y) on one qubit outside the sharp product rule used in this lesson?

    Show the answer and reasoning

    X and Y do not commute, and X·Y=iZ is not Hermitian.

    The table rule follows from products of eigenvalues in a common joint spectral measurement. For a noncommuting pair that premise fails. The last-column calculation uses tensor products that commute as two-qubit operators.

  2. For |00⟩−|11⟩, normalized by √2, determine the outcomes of XX, YY and ZZ in a joint eigenbasis measurement.

    Show the answer and reasoning

    They are (−1,+1,+1), giving product −1.

    XX exchanges |00⟩ and |11⟩ and hence changes the relative-minus state’s overall sign. ZZ preserves both components. YY=−(XX)(ZZ) on their common eigenbasis, so its eigenvalue is +1.

  3. A last-column record contains 17 positive triples and 83 negative triples. What is its contribution to the signed square score?

    Show the answer and reasoning

    +0.66.

    The raw average is (17−83)/100=−0.66. The last-column target is negative, so its signed contribution is the negative of that raw mean.

  4. Can a deterministic table miss exactly two of the six square targets? Explain without enumerating cells.

    Show the answer and reasoning

    No. The number of mismatches must be odd.

    The product of table context-products is +1, while the product of target signs is −1. Their quotient is −1. Every mismatch contributes one factor of −1, so two misses cannot give the required parity.

  5. How many admissible pentagon patterns have exactly two ones? What if exactly one is required in every adjacent pair?

    Show the answer and reasoning

    There are five two-one patterns. The stronger exactly-one-per-edge rule permits no pattern on an odd cycle.

    Of the ten unordered pairs of vertices, five are neighbouring and five are non-neighbouring. Alternating ones and zeros around an odd cycle cannot close. The qutrit device allows both measurements in a pair to return zero.

  6. At positive h=1/√5 suppose the ray azimuth rises by 72° on each step. Does the intended neighbouring exclusivity hold?

    Show the answer and reasoning

    No. The neighbouring inner product is positive.

    It is h+(1−h)cos72°, which has two positive terms. The 144° step gives a negative cosine that cancels h. The label graph and the azimuth order in a coordinate drawing play different roles.

  7. With the ideal pentagon, what score is obtained for a normalized state in the horizontal two-dimensional subspace?

    Show the answer and reasoning

    5(1−1/√5)/2, approximately 1.38197.

    The sum of projectors has equal eigenvalues on the two horizontal components and no coupling to the vertical component by fivefold symmetry. The trace is five, and the vertical eigenvalue is √5, leaving (5−√5)/2 in each horizontal direction.

  8. What square score is predicted by I₄/4 with ideal joint measurements? What pentagon score is predicted by I₃/3?

    Show the answer and reasoning

    The square gives 6. The pentagon gives 5/3.

    Each square product is proportional to I₄, so the state distribution drops out. Each pentagon projector has rank one and trace one, so a maximally mixed qutrit gives probability 1/3 for each yes.

  9. For identical independent reporting errors with 0≤ε≤1/2, when does the square prediction drop to 4?

    Show the answer and reasoning

    At ε=[1−(2/3)^(1/3)]/2, approximately 0.063210.

    Set 6(1−2ε)³=4 and take the positive real cube root on this interval. Below the crossing the predicted score exceeds 4. The calculation assumes all three error signs are independent.

  10. Only ten trials were taken in one context, and hundreds in the others. How should the standard square score weight this small setting?

    Show the answer and reasoning

    Compute its conditional mean and give that mean the same coefficient as the other five.

    The definition adds six context expectations with fixed signs. The smaller setting typically gives greater sampling uncertainty. Its raw counts should not be pooled as if the witness weighted settings in proportion to sample size.

  11. In an A–B–A sequence the first and last A frequently disagree, but in A–A they nearly always agree. What can the comparison tell you?

    Show the answer and reasoning

    The intervening B procedure or its additional time and operations may be disturbing the A record.

    A time-matched control and an audit of state preparation and readout can help locate the cause. Ideal compatibility would support agreement for an appropriate repeatable sharp implementation. The discrepancy complicates a pre-existing-table interpretation of the witness.

  12. Two unsharp measurement events are operationally equivalent. Does measurement noncontextuality alone require each to return a definite 0 or 1 at every λ?

    Show the answer and reasoning

    It requires the same conditional response probability for the two events, which can lie between zero and one.

    An equality constraint on response functions does not fix their value to an extremum. Additional premises can yield outcome determinism for ideal sharp events. Applying a sharp table inequality to arbitrary unsharp data requires a separate justification.

What to carry forward

  • Assign one sign to each square cell and multiply its three signs within each context. Such a table scores at most 4. No table satisfies all six ideal product identities, whereas the commuting Pauli triples give 6 for every two-qubit state.
  • Exclusive neighbours on a five-cycle allow at most two preassigned yes values. In the qutrit experiment each of the five shared marginal probabilities is measured in a compatible neighbouring pair. Their sum is √5 for the vertical state.
  • Preparation mixing and measurement-record noise change different quantities. Their thresholds only apply to the physical error models used to derive them.
  • Counts estimate a witness. Calibration, repeatability, context choice, retention rules and sampling uncertainty determine how far a result tests a particular noncontextual explanation.

References

Sources for the concepts and teaching approaches in this article.

  1. The Problem of Hidden Variables in Quantum MechanicsSimon Kochen, E. P. SpeckerResearch paperdoi.orgRead source
  2. Simple unified form for the major no-hidden-variables theoremsN. David MerminResearch paperdoi.orgRead source
  3. A simple test for hidden variables in spin-1 systemAlexander A. Klyachko, M. Ali Can, Sinem Binicioğlu, Alexander S. ShumovskyResearch paperarxiv.orgRead source
  4. Contextuality for preparations, transformations, and unsharp measurementsR. W. SpekkensResearch paperarxiv.orgRead source
  5. State-independent experimental test of quantum contextualityG. Kirchmair, F. Zähringer, R. Gerritsma, M. Kleinmann, O. Gühne, A. Cabello, R. Blatt, C. F. RoosResearch paperarxiv.orgRead source

Sources and conventions

  • The Problem of Hidden Variables in Quantum Mechanics. Simon Kochen, E. P. Specker, Journal of Mathematics and Mechanics.

    Motivate context-independent assignments constrained by functional relations for projectors.

    Sections 17, 59–87, value assignments and consistency across compatible measurements.

  • Simple unified form for the major no-hidden-variables theorems. N. David Mermin, Physical Review Letters.

    Show how quantum products of compatible Pauli observables rule out a common deterministic assignment.

    Sections 65, 3373–3376 (1990), two-spin commuting observables and parity contradiction.

  • A simple test for hidden variables in spin-1 system. Alexander A. Klyachko, M. Ali Can, Sinem Binicioğlu, Alexander S. Shumovsky, arXiv.

    Use a three-dimensional state and pairwise exclusive neighbouring projectors to construct a pentagon witness.

    Sections Five cyclically compatible observables and a state-dependent noncontextuality inequality.

  • Contextuality for preparations, transformations, and unsharp measurements. R. W. Spekkens, Physical Review A.

    Distinguish outcome determinism for sharp measurements from a general operational noncontextuality hypothesis.

    Sections Operational equivalence and noncontextual ontological representations for broad classes of procedures.

  • State-independent experimental test of quantum contextuality. G. Kirchmair, F. Zähringer, R. Gerritsma, M. Kleinmann, O. Gühne, A. Cabello, R. Blatt, C. F. Roos, Nature.

    Show how repeatable, compatible readout and consistent operational implementation enter a laboratory contextuality test.

    Sections Trapped-ion sequential tests with different input states and compatibility considerations.