arXiv:2610.33193cs.CCOct 2026

Manuscript Offprint

arXiv:2610.33193

The Thermodynamic Complexity of Circuits

Anne Condon, David Doty, Niels Kornerup, David Soloveichik, David Wolpert

Abstract

When any physical system executes a logically irreversible (non-injective) step of a computation, the excess heat released over the so-called Landauer limit is an energetic cost that cannot be recovered. In modern computers this cost vastly dwarfs the Landauer limit. Modern stochastic thermodynamics refers to this cost as the “entropy production” and has derived some very powerful lower bounds on its value, which strictly strengthen the second law of thermodynamics. Here we introduce a model of circuits using heat functions and investigate its entropy production, deriving new results on the thermodynamic complexity of circuits.

In our model, the circuits compute cleanly, erasing their inputs and all intermediate values. We first show that computing the optimal heat functions for gates in a given circuit (the gates that minimize total entropy production) when the circuit's input is uniformly random is PP-complete. We also show that multiplicative approximation of those heat functions is NP-hard, but additive approximation admits a polynomial-time randomized algorithm. We give tight bounds for entropy production for certain specific families of circuits (on uniformly distributed inputs): an n-ary AND tree of depth O(log⁡n)O(\log n) requires Ω(n)\Omega(n) circuit entropy production, while a serial chain achieves O(1)O(1), showing an energy-depth tradeoff. The Batcher odd-even mergesort network on n bits has Θ(n)\Theta(n) entropy production, asymptotically less than its Θ(nlog⁡2n)\Theta(n\log^2 n) gate count. On random permutations of distinct integers its entropy production is Θ(nlog⁡2n)\Theta(n\log^2 n), asymptotically exceeding the Landauer cost of sorting; but preceding it with Leighton and Plaxton's almost-sorting network reduces the total heat released to O(nlog⁡n)O(n\log n). Finally, we show that a clean sorting circuit (not a sorting network) can sort n values with zero circuit entropy production over any exchangeable input distribution. Our framework also yields streamlined proofs of known results in stochastic thermodynamics on mismatch cost and modularity cost.

∗^{*}A preliminary version of this paper appeared in chapter 6 of Niels Kornerup's PhD thesis [Kor25]. This version substantially improves, corrects, and builds on the results in that chapter.

†^{\dagger}Condon was supported by an NSERC Discovery grant.

‡^{\ddagger}Doty was supported by NSF awards 2329909 and 2211793 and DoE award DE-SC0024467.

§^{§}Kornerup was supported by the LDRD Program at Sandia National Laboratories. Sandia is managed and operated by NTESS under DOE NNSA contract DE-NA0003525.

^{¶}Soloveichik was supported by a Schmidt Sciences Polymath award.

Wolpert was supported by NSF award 2626044.

Contents

1 Introduction 2
1.1 Landauer's principle and logical reversibility 3
1.2 Beyond logical reversibility: Stochastic thermodynamics 6
1.3 Prior work on thermodynamics of circuits 9
1.4 Our results 10

2 Preliminaries 14
2.1 Our model 16

3 Deriving optimal heat functions 22

4 The complexity of optimizing heat functions in a given circuit 23
4.1 PP-complete language for optimizing heat functions 24
4.2 Approximation 25

5 Bounds on thermodynamic costs of fixed circuits 28
5.1 Warm-up: entropy-depth tradeoff for computing AND 29
5.2 Batcher's odd-even mergesort network 30
5.2.1 Binary inputs 31
5.2.2 Arbitrary inputs 36
5.3 A more thermodynamically efficient sorting network 44

6 Clean zero entropy circuits for compaction and sorting 46
6.1 A clean compaction circuit with zero entropy production 46
6.2 A clean sorting circuit with zero entropy production 51

7 Conclusion 53

8 Acknowledgments 55
8.1 Discussion of substantive LLM use 55

A Basic lemmas 61

B Analyzing entropy flow in Batcher's sorting network: overwriting model with binary inputs 62

C Re-deriving mismatch costs 65

D Entropy production from modularity 67

References (60)