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}[1]{\boldsymbol{#1}}\newcommand{\ket}[1]{|#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.