# What is the relation between non-contextuality and Bell's hidden variable model?

While reading about contextuality in quantum mechanics, I stumbled upon the following statement (in Peres (2002), top of p. 190): in a two-dimensional Hilbert space, it is possible to construct hidden variable models (HVMs) that reproduce all the results of quantum theory. I'm trying to understand better what is meant by this.

Peres, in support to the above statement, redirects the reader to p. 159, where "Bell's model of hidden variables" is described. This works as follows:

$$\newcommand{\bs}{\boldsymbol{#1}}\newcommand{\ket}{|#1\rangle}$$We want to describe the possible results of measuring a two-dimensional state $$\psi\equiv\ket\psi$$. We note that any observable $$A$$ can be written as $$A=\bs n_A\cdot\bs\sigma$$ with $$\bs n_A\in\mathbb R^3$$ and $$\sigma_i$$ the three Pauli matrices. The possible outcomes corresponding to such observables, in QM, would be $$\pm n_A$$, where $$n_A\equiv |\bs n_A|$$. Let us also define $$C\equiv \psi^\dagger A\psi/n_A$$. We can then predict the experimental outcomes of measuring $$A$$, by leveraging an auxiliary hidden variable $$\lambda$$, as follows:

• If $$-1<\lambda < -C$$, then the outcome is $$-n_A$$;
• If $$-C< \lambda < 1$$, then the outcome is $$+n_A$$.

We recover the predictions of QM when $$\lambda$$ is distributed uniformly in $$[-1,1]$$.

As Peres points out (in p.190), this model correctly predicts the results of measuring any given observable $$A$$. He then goes on (in p.190) to describe Mermin's argument for the non-contextuality of QM, which relies on finding a set of two-qubit observables which cannot all be assigned a definite numerical value. He remarks that Mermin's argument requires the use of a four-dimensional Hilbert space, whereas we know that in the two-dimensional case we can build a HVM to reproduce all results of quantum mechanics, as per the argument above. This is where I get confused: isn't this comparing apples and oranges?

As I understand it, Mermin's argument is about comparing measurement results obtained in different bases. But we don't do anything of the sort when discussing Bell's HVM. In fact, can't we extend Bell's argument to arbitrary dimensions? For any given observable $$A$$ with $$n$$ distinct eigenvalues $$\lambda_j$$, use a uniformly distributed hidden variable $$\lambda\in[-\|A\|,\|A\|]$$, and say that the experimental outcome is the $$j$$-th whenever $$\lambda\in[\lambda_j,\lambda_{j+1}]$$. How is this then consistent with Mermin's argument about the non-contextuality in four dimensions?

I'm pretty sure I'm missing the point of contextuality here, and what Mermin's argument is supposed to tell us, so I'll appreciate any clarification on the matter.

can't we extend Bell's argument to arbitrary dimensions?

Yes, Bell's argument can be extended to contrive a hidden variables model for a Hilbert space of arbitrarily many dimensions. Contriving a contextual hidden variables model is easy!

... but it's also uninteresting. We can always contrive a theory that reproduces all experimental results perfectly, simply by taking every known result to be one of the theory's axioms. Contextual HV models aren't quite that ridiculous, but they're still in the "uninteresting" category.

In a Hilbert space with four dimensions, we can have a non-trivial observable $$A$$ (not proportional to the identity) that commutes with both $$B$$ and $$C$$ even though $$B$$ and $$C$$ don't commute with each other. In Mermin's words (https://arxiv.org/abs/1802.10119):

This tacit assumption that a hidden-variables theory has to assign to an observable $$A$$ the same value whether $$A$$ is measured as part of the mutually commuting set $$A$$, $$B$$, $$C$$, . . . or a second mutually commuting set $$A,L,M,...$$ even when some of the $$L,M,...$$ fail to commute with some of the $$B, C, . . .$$, is called "non-contextuality" by the philosophers.

We can extend Bell's argument to contrive a hidden variables model in a four-dimensional Hilbert space, but not one that respects this constraint. Non-contextual hidden variables models cannot reproduce quantum theory's predictions, and that's interesting.

• thank you. So to be clear, you agree that Bell's argument is simply not comparable with Mermin's, or more generally with contextuality arguments? Bell's argument tells us that fixing a measurement basis, the output probability is always (somewhat trivially) reproducible via LHVs -- but this has nothing to do with (and cannot explain) the correlations between the outcomes in different measurement bases. Maybe it's me but I find the way this was presented in the book a bit misleading: the existence of sets of "weirdly commuting" operators has no relation with LHV models à la Bell
– glS
Apr 19 '20 at 13:37
• @glS If by "Bell's argument" we mean how he constructed a HV model for the two-dimensional Hilbert space (and its generalization to higher dimensions), then yes: that HV model produced by that argument (in higher dimensions) doesn't respect the non-contextuality constraint that Mermin is highlighting. Apr 19 '20 at 15:59
• @glS Not sure that's the same thing as calling an HV model local, though. There are various nuances of constraints that one can impose on an HV model. Bell's original inequality assumed a LHV, if I remember right, but it's been a while since I plowed through all those nuances, and that's probably beyond the scope of the present question, which doesn't ask about Bell's original inequality. Apr 19 '20 at 16:00
• @glS Charles Francis' answer says: "Contextuality means that the hidden variable determines just a particular measurement or class of measurements." I think that statement is expressing the same thing I tried to express in a different way: a contextual HV is only concerned with each observable on its own, not with how observables are related to each other. That's why contriving a contextual HV is easy, and why the existence of contextual HVs does not compete with quantum theory at all. They have almost no predictive power. Apr 19 '20 at 16:04
• yes I agree with this. This "contextual HV argument" really doesn't tell us much
– glS
Apr 19 '20 at 16:21

I am not sure you are missing the point. We can produce a Hidden variables model to reproduce the results of quantum mechanics for a two dimensional Hilbert space, but the Kochen-Specker theorem shows that this cannot be done for a Hilbert space of dimension more than 2 (von Neumann considered infinite dimensional Hilbert space). Gleason's theorem can also be interpreted as meaning that the only probability measure on a Hilbert space of dimension at least 3 is that given by quantum mechanics, thereby excluding hidden variables).

I regard contextuality as a red herring in these arguments. It is also a red herring to consider Hilbert space of dimension 2, since that does not describe quantum mechanics. Whenever contextuality is introduced, it seems to be to confuse the issue by changing the subject (the current Wikipedia article on Gleason's theorem is a case in point; compare with the statement of Gleason's theorem which was quoted in this SE answer)

Contextuality means that the hidden variable determines just a particular measurement or class of measurements. It does not satisfy classical determinism, which means the determination of all possible measurement results, not just the result of the measurement performed. It is not sufficient for contextuality to say that the hidden variable contains parts that determine either position or momentum and that since only one of these measurements can be performed the other exists but is not used; conjugacy between position and momentum states that when one measurement is performed the hidden variable for the other measurement cannot exist.

It makes no difference that we can in practice perform only one measurement, because quantum logic describes not only the measurement performed but also what would happen in measurements which are not performed. Contextuality would require that different hidden variables pop in and out of existence whenever an experimenter changes his mind about which measurement he is to perform. This would imply different underlying physics depending on what a physicist will choose to do.

In short, whenever I see arguments about contextuality, I find physicists clinging to determinism and seeking a loophole which does not exist.

• I don't really have a good understanding of Kochen-Specker and Gleason's arguments (which is actually why I'm reading through these topics in the first place), so can't comment about that. If I understand what you are saying, you agree that Bell's LHV argument has nothing to do with contextuality, which is instead about the correlations between the results in different measurement bases, yes?
– glS
Apr 19 '20 at 13:42
• Yes, I would agree with that. Apr 19 '20 at 13:59
• that makes sense. Thanks a lot, this helped clarify a few things.
– glS
Apr 19 '20 at 14:06
• @CharlesFrancis "Contextuality would require that different hidden variables pop in and out of existence whenever an experimenter changes his mind about which measurement he is to perform." Well said (+1)! Apr 19 '20 at 16:19