Derek Khu, Andrew Tanggara, Kishor Bharti (Feb 05 2025).
Abstract: Quantum error correction is vital for fault-tolerant quantum computation, with deep connections to entanglement, magic, and uncertainty relations. Entanglement, for instance, has driven key advances like surface codes and has deepened our understanding of quantum gravity through holographic quantum codes. While these connections are well-explored, the role of contextuality, a fundamental non-classical feature of quantum theory, remains unexplored. Notably, Bell nonlocality is a special case of contextuality, and prior works have established contextuality as a key resource for quantum computational advantage. In this work, we establish the first direct link between contextuality and quantum error-correcting codes. Using a sheaf-theoretic framework, we define contextuality for such codes and prove key results on its manifestation. Specifically, we prove the equivalence of contextuality definitions from Abramsky--Brandenburger's sheaf-theoretic framework and Kirby--Love's tree-based approach for the partial closure of Pauli measurement sets. We present several findings, including the proof of a conjecture by Kim and Abramsky [1]. We further show that subsystem stabilizer codes with two or more gauge qubits are strongly contextual, while others are noncontextual. Our findings reveal a direct connection between contextuality and quantum error correction, offering new insights into the non-classical resources enabling fault-tolerant quantum computation.