{
  "source": {
    "name": "OpenContext",
    "title": "OpenContext: Open problems in generalized contextuality",
    "url": "https://open-context.jan-bulling.com",
    "guidelines": "https://open-context.jan-bulling.com/guidelines",
    "license": "CC BY 4.0, unless the entry says otherwise"
  },
  "problem": {
    "number": 3,
    "title": "Sample complexity",
    "slug": "sample-complexity",
    "url": "https://open-context.jan-bulling.com/problems/sample-complexity",
    "permalink": "https://open-context.jan-bulling.com/contribution/3",
    "status": "open",
    "statusSince": "2026-10-03",
    "posedBy": [
      "Yujie Zhang"
    ],
    "posed": "2026-10-03",
    "published": true,
    "listed": "2026-10-03",
    "updated": "2026-10-03",
    "version": 1,
    "versionPermalink": "https://open-context.jan-bulling.com/contribution/3v1",
    "agenda": [
      {
        "id": "applications",
        "numeral": "III",
        "title": "Useful applications",
        "summary": "Make the failure of classicality, as captured by generalized noncontextuality, a certified and quantified resource, witnessed in experiments and tied to the advantages that quantum devices offer."
      }
    ],
    "tags": [
      "Self-consistent tomography",
      "Entanglement certification",
      "Sample complexity",
      "Experimental tests"
    ],
    "statement": "Consider a bipartite state $\\rho^{AB}$ with known local dimension $d$, measured by uncharacterized local devices, so that the statistics are\n$$\np(ab|xy) = \\operatorname{Tr}\\!\\left[(M^A_{a|x}\\otimes M^B_{b|y})\\,\\rho^{AB}\\right].\n$$\nLet $\\mathcal{NC}$ be the polytope of statistics admitting a local ontological model whose response functions preserve the operational identities among each party's measurement effects, and let $E_{\\mathrm{tr}}(\\rho):=\\min_{\\sigma\\in\\mathrm{Sep}}\\frac12\\|\\rho-\\sigma\\|_1$, where $\\mathrm{Sep}$ is the set of separable states. Assume independent, identically prepared target copies, stationary and memoryless devices, the tomographic completeness needed to infer the local identities, and measurement families rich enough to certify every state with $E_{\\mathrm{tr}}(\\rho^{AB})\\geq\\gamma$ in the exact-data limit.\n\nWhat is the minimum total number of target copies required for a protocol returning either $\\mathsf{certify}$ or $\\mathsf{inconclusive}$ to satisfy\n$$\n\\begin{aligned}\n\\Pr(\\mathsf{certify})&\\leq\\delta &&\\text{if } p\\in\\mathcal{NC},\\\\\n\\Pr(\\mathsf{certify})&\\geq1-\\delta &&\\text{if } E_{\\mathrm{tr}}(\\rho^{AB})\\geq\\gamma,\n\\end{aligned}\n$$\nwhen the operational identities defining $\\mathcal{NC}$ must be inferred from the same finite experimental data? How does this number scale with $d$, $\\gamma$, $\\delta$, and the number of distinct local effects, counting all copies used to infer the identities?",
    "body": "## Background\n\nCompared to the Bell and Kochen–Specker literature, experimental investigations of generalized contextuality remain relatively limited, with only a handful of experiments reported \\cite{mazurek2016, mazurek2021, giordani2023, spekkens2009, zhan2017, zhang2019, zhang2026, gama2026, rossi2026}. Generalized contextuality tests can address loopholes arising in Kochen–Specker tests \\cite{pusey2019, schmid2025, selby2023, gitton2024}, and can be made robust \\cite{pusey2018, fonseca2025, selby2024, khoshbin2024, rossi2023}. Yet, despite our increasing ability to control high-dimensional systems, much of the development around testing generalized contextuality remains concerned with low-dimensional examples, and it is not entirely clear how these tests scale.\n\nA first difficulty is establishing the operational equivalences that enter the definition of generalized noncontextuality. Some form of tomography is required for this purpose \\cite{pusey2019, schmid2025}. If one wishes to remain agnostic about the underlying theory, in the instrumentalist sense of operational probabilistic theories, this can be done within the framework of generalized probabilistic theories (GPTs) through theory-agnostic tomography, demonstrated experimentally for a photon's polarization degree of freedom \\cite{mazurek2021} and for a three-level photonic system \\cite{grabowecky2022}, or through other standard self-consistent tomography \\cite{nielsen2021} within the framework of quantum theory.\n\nA second difficulty concerns how to assess the output of self-consistent tomography. Even with tomographically complete, exact statistics, state and effect representations are determined only up to compatible gauge transformations. A reconstruction-based sample-complexity analysis therefore needs an accuracy criterion that accounts for this freedom, for example by minimizing a distance over gauges, which may introduce a computationally demanding optimization. An alternative is to benchmark tomography together with the subsequent noncontextuality test through a gauge-independent certification task.\n\nSelf-consistent entanglement certification provides one such task \\cite{zhang2026, zhang2026a}. Every separable state produces statistics in the polytope $\\mathcal{NC}$ of the statement, so $p\\notin\\mathcal{NC}$ certifies entanglement, and both the operational identities and this verdict are independent of the tomographic gauge. Compared with standard tomography using calibrated measurements, an additional difficulty is that finite data introduce uncertainty not only in the probabilities but also in the estimate of $\\mathcal{NC}$ itself, through the inferred operational identities; the certification test must account for both sources of uncertainty.\n\nWhen the exact identities are supplied independently, suitable local projective measurement families give an optimal target-copy cost of $\\Theta_d(\\gamma^{-2}\\log(1/\\delta))$ at fixed $d$ \\cite{zhang2026a}. The additional cost of inferring those identities, while accounting for their statistical uncertainty, is what the problem asks for.\n\n## Relevance\n\nStrengthening the connection between generalized contextuality and experimentation is a major goal, since any application ultimately rests on it, and experiments remain few compared to the Bell and Kochen–Specker literature. Generalized contextuality tests can address the loopholes of Kochen–Specker tests and can be made robust to noise, but they have mostly been developed for low-dimensional examples, and it is not clear how they scale. How complex it is to implement such a test has accordingly been receiving attention, and it is tied to the tomography that any test needs to establish its operational equivalences \\cite{pusey2019, schmid2025}. Self-consistent entanglement certification \\cite{zhang2026, zhang2026a} turns this into a well-posed question: it sidesteps the gauge freedom of self-consistent tomography, and the cost is already known when the identities are supplied independently, leaving the cost of inferring them open.\n\nThe problem traces to Goal III, Useful applications, through its witnessing theme: devising tests that are tighter, cheaper to implement and robust, scaling them to high-dimensional systems, and carrying out the corresponding experiments.\n\n## Significance\n\nResolving the problem would clarify the experimental resources needed for a concrete application of generalized noncontextuality, entanglement certification with uncharacterized local devices, counting the cost of establishing the operational identities and not only of estimating the probabilities. The scaling with $d$ and with the number of distinct local effects would say how such tests extend from the low-dimensional examples studied so far to larger systems, which is the scaling question the witnessing theme of Goal III raises, and comparing it with the $\\Theta_d(\\gamma^{-2}\\log(1/\\delta))$ cost when the identities are supplied would isolate the price of self-consistency. This bears directly on the goal of making the failure of classicality, as captured by generalized noncontextuality, a certified resource witnessed in experiments.",
    "note": null,
    "references": [
      {
        "key": "mazurek2016",
        "text": "M. D. Mazurek, M. F. Pusey, R. Kunjwal, K. J. Resch and R. W. Spekkens, An experimental test of noncontextuality without unphysical idealizations, Nat. Commun. 7, 11780 (2016)"
      },
      {
        "key": "mazurek2021",
        "text": "M. D. Mazurek, M. F. Pusey, K. J. Resch and R. W. Spekkens, Experimentally bounding deviations from quantum theory in the landscape of generalized probabilistic theories, PRX Quantum 2, 020302 (2021)"
      },
      {
        "key": "giordani2023",
        "text": "T. Giordani, R. Wagner, C. Esposito, A. Camillini, F. Hoch, G. Carvacho, C. Pentangelo, F. Ceccarelli, S. Piacentini, A. Crespi, N. Spagnolo, R. Osellame, E. F. Galvão and F. Sciarrino, Experimental certification of contextuality, coherence, and dimension in a programmable universal photonic processor, Sci. Adv. 9, eadj4249 (2023)"
      },
      {
        "key": "spekkens2009",
        "text": "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)"
      },
      {
        "key": "zhan2017",
        "text": "X. Zhan, E. G. Cavalcanti, J. Li, Z. Bian, Y. Zhang, H. M. Wiseman and P. Xue, Experimental generalized contextuality with single-photon qubits, Optica 4, 966 (2017)"
      },
      {
        "key": "zhang2019",
        "text": "A. Zhang, H. Xu, J. Xie, H. Zhang, B. J. Smith, M. S. Kim and L. Zhang, Experimental test of contextuality in quantum and classical systems, Phys. Rev. Lett. 122, 080401 (2019)"
      },
      {
        "key": "zhang2026",
        "url": "https://arxiv.org/abs/2507.01122",
        "text": "Y. Zhang, J. Spodek, D. Schmid, C. Reid, L. J. Morrison, T. Jennewein, K. J. Resch and R. W. Spekkens, A new paradigm for entanglement certification using noncontextuality inequalities (2026)"
      },
      {
        "key": "gama2026",
        "url": "https://arxiv.org/abs/2601.16952",
        "text": "J. M. M. Gama, G. T. C. Cruz, M. Khoshbin, L. Catani, J. A. O. Huguenin and W. F. Balthazar, Experimental investigation of nonclassicality in the simplest scenario via the degrees of freedom of light (2026)"
      },
      {
        "key": "rossi2026",
        "url": "https://arxiv.org/abs/2609.18671",
        "text": "V. P. Rossi, E. Polino, B. Polacchi, V. Cimini, D. Schmid, J. H. Selby, G. Corrielli, A. Crespi, R. Osellame, F. Sciarrino and A. B. Sainz, Theory-agnostic nonclassicality certification in an integrated photonic circuit (2026)"
      },
      {
        "key": "pusey2019",
        "url": "https://arxiv.org/abs/1904.08699",
        "text": "M. F. Pusey, L. del Rio and B. Meyer, Contextuality without access to a tomographically complete set (2019)"
      },
      {
        "key": "schmid2025",
        "text": "D. Schmid, J. H. Selby, V. P. Rossi, R. D. Baldijão and A. B. Sainz, Shadows and subsystems of generalized probabilistic theories: when tomographic incompleteness is not a loophole for contextuality proofs, Quantum 9, 1880 (2025)"
      },
      {
        "key": "selby2023",
        "text": "J. H. Selby, D. Schmid, E. Wolfe, A. B. Sainz, R. Kunjwal and R. W. Spekkens, Accessible fragments of generalized probabilistic theories, cone equivalence, and applications to witnessing nonclassicality, Phys. Rev. A 107, 062203 (2023)"
      },
      {
        "key": "gitton2024",
        "text": "V. Gitton and M. P. Woods, System loophole of generalized noncontextuality, Phys. Rev. Res. 6, 043289 (2024)"
      },
      {
        "key": "pusey2018",
        "text": "M. F. Pusey, Robust preparation noncontextuality inequalities in the simplest scenario, Phys. Rev. A 98, 022112 (2018)"
      },
      {
        "key": "fonseca2025",
        "text": "A. M. Fonseca, V. P. Rossi, R. D. Baldijão, J. H. Selby and A. B. Sainz, Robustness of contextuality under different types of noise as quantifiers for parity-oblivious multiplexing tasks, Phys. Rev. A 111, 022217 (2025)"
      },
      {
        "key": "selby2024",
        "text": "J. H. Selby, E. Wolfe, D. Schmid, A. B. Sainz and V. P. Rossi, Linear program for testing nonclassicality and an open-source implementation, Phys. Rev. Lett. 132, 050202 (2024)"
      },
      {
        "key": "khoshbin2024",
        "text": "M. Khoshbin, L. Catani and M. Leifer, Alternative robust ways of witnessing nonclassicality in the simplest scenario, Phys. Rev. A 109, 032212 (2024)"
      },
      {
        "key": "rossi2023",
        "text": "V. P. Rossi, D. Schmid, J. H. Selby and A. B. Sainz, Contextuality with vanishing coherence and maximal robustness to dephasing, Phys. Rev. A 108, 032213 (2023)"
      },
      {
        "key": "grabowecky2022",
        "text": "M. J. Grabowecky, C. A. J. Pollack, A. R. Cameron, R. W. Spekkens and K. J. Resch, Experimentally bounding deviations from quantum theory for a photonic three-level system using theory-agnostic tomography, Phys. Rev. A 105, 032204 (2022)"
      },
      {
        "key": "nielsen2021",
        "text": "E. Nielsen, J. K. Gamble, K. Rudinger, T. Scholten, K. Young and R. Blume-Kohout, Gate set tomography, Quantum 5, 557 (2021)"
      },
      {
        "key": "zhang2026a",
        "url": "https://arxiv.org/abs/2610.08757",
        "text": "Y. Zhang, Complexity of self-consistent entanglement certification (2026)"
      }
    ],
    "history": [
      {
        "date": "2026-10-03",
        "kind": "posed",
        "status": null,
        "text": "Entry created from Problem III of the companion paper.",
        "version": null,
        "contribution": null
      }
    ]
  },
  "contributors": [
    {
      "name": "Yujie Zhang",
      "contributions": [
        "Posed the problem"
      ]
    }
  ],
  "contributions": [],
  "comments": [
    {
      "date": "2026-11-18",
      "author": "Rafael Wagner",
      "body": "What does \"sample complexity\" means in this description?",
      "replies": []
    }
  ],
  "citation": {
    "bibtex": "@misc{opencontext-problem-3,\n  author        = {Yujie Zhang},\n  title         = {{Sample complexity}},\n  howpublished  = {OpenContext: Open problems in generalized contextuality, Problem 3, version 1},\n  year          = {2026},\n  month         = oct,\n  date          = {2026-10-03},\n  url           = {https://open-context.jan-bulling.com/contribution/3},\n  urldate       = {2026-11-20},\n  note          = {Problem posed 3 October 2026; status: open, last updated 3 October 2026}\n}"
  }
}