- Open Access
Contextuality in Anomalous Heat Flow
PRX Quantum 6, 030359 – Published 22 September, 2025
DOI: https://doi.org/10.1103/f68k-cjx4
Abstract
In classical thermodynamics, heat must spontaneously flow from hot to cold systems. In quantum thermodynamics, the same law applies when considering multipartite product thermal states evolving unitarily. If initial correlations are present, anomalous heat flow can happen, temporarily making cold thermal states colder and hot thermal states hotter. Such an effect can happen due to entanglement but also because of classical randomness, hence lacking a direct connection with nonclassicality. In this work, we introduce scenarios in which anomalous heat flow does have a direct link to nonclassicality, defined as the failure of noncontextual models to explain experimental data. We start by extending known noncontextuality inequalities to a setup in which sequential transformations are considered. We then show a class of quantum prepare-transform-measure protocols, characterized by a time interval for a given critical time , where anomalous heat flow happens only if a noncontextuality inequality is violated. We also analyze a recent experiment from Micadei et al. [Nat. Commun. 10, 2456 (2019)] and find the critical time based on the authors’ experimental parameters. We conclude by investigating heat flow in the evolution of two-qudit systems, showing that our findings are not an artifact of using two-qubit systems.
Physics Subject Headings (PhySH)
Popular Summary
We are accustomed to observing a normal heat flow in our daily lives: when two bodies are in thermal contact, the hotter one warms the colder one. However, this heat flow can be inverted in quantum systems, a phenomenon known as anomalous heat flow. This occurs because quantum systems can share information in a particular way, using this information to exchange energy rather than performing work, as classical systems do. This counterintuitive phenomenon has significant physical and philosophical implications, particularly in thermodynamics, where normal heat flow is associated with a well-defined direction of time. However, research has yet to definitively prove that such a phenomenon cannot be replicated in systems described by classical mechanics. Our work certifies that, for a specific class of physical systems, anomalous heat flow occurs exclusively in a quantum scenario. More specifically, we demonstrate that these systems must exhibit a special characteristic called “contextuality,” which does not exist in classical systems.
Contextuality is the impossibility of making models about an underlying reality to describe a phenomenon without supposing that such reality is highly dependent on the experiment choice in which the phenomenon happens. Building on the concept of contextuality, we have achieved our results by extending a previously established method for certifying contextuality through the analysis of the average evolution of observable quantities, such as energy. The core of our generalization lies in considering a composition of distinct evolutions applied simultaneously to a single system. This approach allows us to account for a wide range of physical systems and interactions by simply varying the definition of “evolution.” This significantly enhances the applicability of the method for studying contextuality in physical systems, including quantum thermal machines.
Additionally, we anticipate that our work will open up new avenues for exploring nonclassical phenomena in thermodynamics, extending beyond just anomalous heat flow.
Article Text
References (97)
- H. Callen, Thermodynamics and an Introduction to Thermostatistics, Student Edition, (Wiley India Pvt. Limited, 2006).
- S. Blundell and K. Blundell, Concepts in Thermal Physics (Oxford University Press, Oxford, 2010).
- A. Eddington, The Nature of the Physical World (Creative Media Partners, LLC, 2018).
- D. Jennings and T. Rudolph, Entanglement and the thermodynamic arrow of time, Phys. Rev. E 81, 061130 (2010).
- V. Vedral, The Arrow of Time and Correlations in Quantum Physics, arXiv:1605.00926 [quant-ph].
- P. Lipka-Bartosik, G. F. Diotallevi, and P. Bakhshinezhad, Fundamental limits on anomalous energy flows in correlated quantum systems, Phys. Rev. Lett. 132, 140402 (2024).
- H. Leff and A. Rex, Maxwell’s Demon: Entropy, Information, Computing (Adam Hilger, 1990).
- H. Leff and A. Rex, Maxwell’s Demon 2 Entropy, Classical and Quantum Information, Computing (CRC Press, 2002).
- A. Rex, Maxwell’s demon—a historical review, Entropy 19, 240 (2017).
- S. Lloyd, Use of mutual information to decrease entropy: Implications for the second law of thermodynamics, Phys. Rev. A 39, 5378 (1989).
- M. H. Partovi, Entanglement versus Stosszahlansatz: Disappearance of the thermodynamic arrow in a high-correlation environment, Phys. Rev. E 77, 021110 (2008).
- M. N. Bera, A. Riera, M. Lewenstein, and A. Winter, Generalized laws of thermodynamics in the presence of correlations, Nat. Commun. 8, 2180 (2017).
- S. Jevtic, D. Jennings, and T. Rudolph, Maximally and minimally correlated states attainable within a closed evolving system, Phys. Rev. Lett. 108, 110403 (2012).
- A. Levy and M. Lostaglio, Quasiprobability distribution for heat fluctuations in the quantum regime, PRX Quantum 1, 010309 (2020).
- S. Jevtic, T. Rudolph, D. Jennings, Y. Hirono, S. Nakayama, and M. Murao, Exchange fluctuation theorem for correlated quantum systems, Phys. Rev. E 92, 042113 (2015).
- T. Sagawa and M. Ueda, Fluctuation theorem with information exchange: Role of correlations in stochastic thermodynamics, Phys. Rev. Lett. 109, 180602 (2012).
- J. V. Koski, V. F. Maisi, T. Sagawa, and J. P. Pekola, Experimental observation of the role of mutual information in the nonequilibrium dynamics of a Maxwell demon, Phys. Rev. Lett. 113, 030601 (2014).
- J. Cai, Y.-J. Xia, and Z.-X. Man, Reversal of heat flow and extraction of work by means of initial correlations within open quantum systems, Phys. Lett. A 501, 129389 (2024).
- I. Henao and R. M. Serra, Role of quantum coherence in the thermodynamics of energy transfer, Phys. Rev. E 97, 062105 (2018).
- K. Micadei, J. P. S. Peterson, A. M. Souza, R. S. Sarthour, I. S. Oliveira, G. T. Landi, T. B. Batalhão, R. M. Serra, and E. Lutz, Reversing the direction of heat flow using quantum correlations, Nat. Commun. 10, 2456 (2019).
- R. W. Spekkens, Contextuality for preparations, transformations, and unsharp measurements, Phys. Rev. A 71, 052108 (2005).
- R. W. Spekkens, The ontological identity of empirical indiscernibles: Leibniz’s methodological principle and its significance in the work of Einstein, arXiv:1909.04628 [physics.hist-ph].
- R. D. Baldijão, R. Wagner, C. Duarte, B. Amaral, and M. T. Cunha, Emergence of noncontextuality under quantum Darwinism, PRX Quantum 2, 030351 (2021).
- C. Budroni, A. Cabello, O. Gühne, M. Kleinmann, and J.-A. Larsson, Kochen-Specker contextuality, Rev. Mod. Phys. 94, 045007 (2022).
- R. Kunjwal, Contextuality beyond the Kochen-Specker theorem, arXiv:arXiv:1612.07250 [quant-ph].
- M. S. Leifer and O. J. E. Maroney, Maximally epistemic interpretations of the quantum state and contextuality, Phys. Rev. Lett. 110, 120401 (2013).
- M. Lostaglio, Certifying quantum signatures in thermodynamics and metrology via contextuality of quantum linear response, Phys. Rev. Lett. 125, 230603 (2020).
- R. W. Spekkens, Negativity and contextuality are equivalent notions of nonclassicality, Phys. Rev. Lett. 101, 020401 (2008).
- D. Schmid, J. H. Selby, M. F. Pusey, and R. W. Spekkens, A structure theorem for generalized-noncontextual ontological models, Quantum 8, 1283 (2024).
- D. Schmid, R. D. Baldijão, Y. Yīng, R. Wagner, and J. H. Selby, Kirkwood-Dirac representations beyond quantum states (and their relation to noncontextuality), arXiv:2405.04573 [quant-ph].
- M. Khoshbin, L. Catani, and M. Leifer, Alternative robust ways of witnessing nonclassicality in the simplest scenario, Phys. Rev. A 109, 032212 (2024).
- 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).
- 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).
- 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, arXiv:2406.12773 [quant-ph].
- 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, 1 (2016).
- 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).
- 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).
- C. Duarte and B. Amaral, Resource theory of contextuality for arbitrary prepare-and-measure experiments, J. Math. Phys. 59, 062202 (2018).
- R. Wagner, R. D. Baldijão, A. Tezzin, and B. Amaral, Using a resource theoretic perspective to witness and engineer quantum generalized contextuality for prepare-and-measure scenarios, J. Phys. A: Math. Theor. 56, 505303 (2023).
- L. Catani, T. D. Galley, and T. Gonda, Resource-theoretic hierarchy of contextuality for general probabilistic theories, arXiv:2406.00717 [quant-ph].
- R. W. Spekkens, Evidence for the epistemic view of quantum states: A toy theory, Phys. Rev. A 75, 032110 (2007).
- L. Hardy, Disentangling nonlocality and teleportation, arXiv:quant-ph/9906123.
- L. Catani, M. Leifer, D. Schmid, and R. W. Spekkens, Why interference phenomena do not capture the essence of quantum theory, Quantum 7, 1119 (2023).
- S. D. Bartlett, T. Rudolph, and R. W. Spekkens, Reconstruction of Gaussian quantum mechanics from Liouville mechanics with an epistemic restriction, Phys. Rev. A 86, 012103 (2012).
- D. Schmid, H. Du, J. H. Selby, and M. F. Pusey, Uniqueness of noncontextual models for stabilizer subtheories, Phys. Rev. Lett. 129, 120403 (2022).
- S. Deffner and S. Campbell, Quantum thermodynamics: An introduction to the thermodynamics of quantum information, arXiv:1907.01596 [quant-ph].
- F. Binder, L. Correa, C. Gogolin, J. Anders, and G. Adesso, Thermodynamics in the Quantum Regime: Fundamental Aspects and New Directions, Fundamental Theories of Physics (Springer International Publishing, 2019).
- J. Goold, M. Huber, A. Riera, L. d. Rio, and P. Skrzypczyk, The role of quantum information in thermodynamics—a topical review, J. Phys. A: Math. Theor. 49, 143001 (2016).
- S. Vinjanampathy and J. Anders, Quantum thermodynamics, Contemp. Phys. 57, 545 (2016).
- R. Alicki and R. Kosloff, Introduction to quantum thermodynamics: History and prospects, arXiv:1801.08314 [quant-ph].
- R. Kosloff, Quantum thermodynamics: A dynamical viewpoint, Entropy 15, 2100 (2013).
- J. Millen and A. Xuereb, Perspective on quantum thermodynamics, New J. Phys. 18, 011002 (2016).
- T. Upadhyaya, J. a. William F. Braasch, G. T. Landi, and N. Y. Halpern, What happens to entropy production when conserved quantities fail to commute with each other, arXiv:2305.15480 [quant-ph].
- M. Lostaglio, Quantum fluctuation theorems, contextuality, and work quasiprobabilities, Phys. Rev. Lett. 120, 040602 (2018).
- M. Lostaglio, An introductory review of the resource theory approach to thermodynamics, Rep. Prog. Phys. 82, 114001 (2019).
- G. T. Landi and M. Paternostro, Irreversible entropy production: From classical to quantum, Rev. Mod. Phys. 93, 035008 (2021).
- R. Clausius, Ueber eine veränderte Form des zweiten Hauptsatzes der mechanischen Wärmetheorie, Ann. Phys. 169, 481 (1854).
- R. Clausius, Ueber verschiedene für die Anwendung bequeme Formen der Hauptgleichungen der mechanischen Wärmetheorie, Ann. Phys. 201, 353 (1865).
- N. Harrigan and R. W. Spekkens, Einstein, incompleteness, and the epistemic view of quantum states, Found. Phys. 40, 125 (2010).
- R. Kunjwal, Beyond the Cabello-Severini-Winter framework: Making sense of contextuality without sharpness of measurements, Quantum 3, 184 (2019).
- D. Schmid, J. H. Selby, and R. W. Spekkens, Unscrambling the omelette of causation and inference: The framework of causal-inferential theories, arXiv:2009.03297 [quant-ph].
- M. Banik, S. S. Bhattacharya, S. K. Choudhary, A. Mukherjee, and A. Roy, Ontological models, preparation contextuality and nonlocality, Found. Phys. 44, 1230 (2014).
- D. Schmid, R. W. Spekkens, and E. Wolfe, All the noncontextuality inequalities for arbitrary prepare-and-measure experiments with respect to any fixed set of operational equivalences, Phys. Rev. A 97, 062103 (2018).
- R. Wagner, R. S. Barbosa, and E. F. Galvão, Inequalities witnessing coherence, nonlocality, and contextuality, Phys. Rev. A 109, 032220 (2024).
- M. F. Pusey, Robust preparation noncontextuality inequalities in the simplest scenario, Phys. Rev. A 98, 022112 (2018).
- M. Nielsen and I. Chuang, Quantum Computation and Quantum Information: 10th Anniversary Edition (Cambridge University Press, 2010).
- M. M. Wilde, Quantum Information Theory (Cambridge University Press, 2013).
- 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).
- D. Saha and A. Chaturvedi, Preparation contextuality as an essential feature underlying quantum communication advantage, Phys. Rev. A 100, 022108 (2019).
- D. Schmid and R. W. Spekkens, Contextual advantage for state discrimination, Phys. Rev. X 8, 011015 (2018).
- K. Flatt, H. Lee, C. R. I. Carceller, J. B. Brask, and J. Bae, Contextual advantages and certification for maximum-confidence discrimination, PRX Quantum 3, 030337 (2022).
- S. Mukherjee, S. Naonit, and A. K. Pan, Discriminating three mirror-symmetric states with a restricted contextual advantage, Phys. Rev. A 106, 012216 (2022).
- M. Lostaglio and G. Senno, Contextual advantage for state-dependent cloning, Quantum 4, 258 (2020).
- R. Wagner, A. Camillini, and E. F. Galvão, Coherence and contextuality in a Mach-Zehnder interferometer, Quantum 8, 1240 (2024).
- P. Lillystone, J. J. Wallman, and J. Emerson, Contextuality and the single-qubit stabilizer subtheory, Phys. Rev. Lett. 122, 140405 (2019).
- M. F. Pusey, Anomalous weak values are proofs of contextuality, Phys. Rev. Lett. 113, 200401 (2014).
- R. Kunjwal, M. Lostaglio, and M. F. Pusey, Anomalous weak values and contextuality: Robustness, tightness, and imaginary parts, Phys. Rev. A 100, 042116 (2019).
- J. H. Selby, D. Schmid, E. Wolfe, A. B. Sainz, R. Kunjwal, and R. W. Spekkens, Contextuality without incompatibility, Phys. Rev. Lett. 130, 230201 (2023).
- J. Miyazaki and K. Matsumoto, Imaginarity-free quantum multiparameter estimation, Quantum 6, 665 (2022).
- H. E. D. Scovil and E. O. Schulz-DuBois, Three-level masers as heat engines, Phys. Rev. Lett. 2, 262 (1959).
- J. C. Garcia-Escartin and P. Chamorro-Posada, A swap gate for qudits, Quantum Inf. Process. 12, 3625 (2013).
- C. M. Wilmott, On swapping the states of two qudits, Int. J. Quantum Inf. 09, 1511 (2011).
- R. Wagner, Z. Schwartzman-Nowik, I. L. Paiva, A. Te’eni, A. Ruiz-Molero, R. S. Barbosa, E. Cohen, and E. F. Galvão, Quantum circuits for measuring weak values, Kirkwood-Dirac quasiprobability distributions, and state spectra, Quantum Sci. Technol. 9, 015030 (2024).
- M. Lostaglio, A. Belenchia, A. Levy, S. Hernández-Gómez, N. Fabbri, and S. Gherardini, Kirkwood-Dirac quasiprobability approach to the statistics of incompatible observables, Quantum 7, 1128 (2023).
- D. R. M. Arvidsson-Shukur, W. F. Braasch Jr., S. D. Bievre, J. Dressel, A. N. Jordan, C. Langrenez, M. Lostaglio, J. S. Lundeen, and N. Y. Halpern, Properties and applications of the Kirkwood-Dirac distribution, arXiv:2403.18899 [quant-ph].
- N. Y. Halpern, B. Swingle, and J. Dressel, Quasiprobability behind the out-of-time-ordered correlator, Phys. Rev. A 97, 042105 (2018).
- S. Gherardini and G. D. Chiara, Quasiprobabilities in quantum thermodynamics and many-body systems: A tutorial, arXiv:2403.17138 [quant-ph].
- H. Margenau and R. N. Hill, Correlation between measurements in quantum theory, Prog. Theor. Phys. 26, 722 (1961).
- Y. P. Terletsky, The limiting transition from quantum to classical mechanics, J. Exp. Theor. Phys. 7, 1290 (1937).
- J. Rau, Relaxation phenomena in spin and harmonic oscillator systems, Phys. Rev. 129, 1880 (1963).
- S. Campbell and B. Vacchini, Collision models in open system dynamics: A versatile tool for deeper insights? Europhys. Lett. 133, 60001 (2021).
- F. Ciccarello, S. Lorenzo, V. Giovannetti, and G. M. Palma, Quantum collision models: Open system dynamics from repeated interactions, Phys. Rep. 954, 1 (2022).
- V. Scarani, M. Ziman, P. Štelmachovič, N. Gisin, and V. Bužek, Thermalizing quantum machines: Dissipation and entanglement, Phys. Rev. Lett. 88, 097905 (2002).
- M. Ziman, P. Štelmachovič, V. Bužek, M. Hillery, V. Scarani, and N. Gisin, Diluting quantum information: An analysis of information transfer in system-reservoir interactions, Phys. Rev. A 65, 042105 (2002).
- S. Cusumano, Quantum collision models: A beginner guide, Entropy 24, 1258 (2022).
- N. E. Comar and G. T. Landi, Correlations breaking homogenization, Phys. Rev. A 104, 032217 (2021).
- S. Campbell, B. Cakmak, O. E. Mustecaplíoglu, M. Paternostro, and B. Vacchini, Collisional unfolding of quantum Darwinism, Phys. Rev. A 99, 042103 (2019).
