landauers-principle
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| landauers-principle [March 09, 2026 at 18:06] – yanevskiv | landauers-principle [May 14, 2026 at 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # Landauer' | ||
| + | **[Landauer' | ||
| + | |||
| + | At temperature $T$, the minimum energy needed to erase information is: | ||
| + | |||
| + | $$E = (\text{bits erased}) \times k_B T \ln 2$$ | ||
| + | |||
| + | Where $k_B$ is the Boltzman' | ||
| + | |||
| + | ## Mechanism | ||
| + | The mechanism behind this energy loss comes from the 2nd law of thermodynamics which states that total entropy of a physical system cannot decrease. | ||
| + | |||
| + | For example, the entropy of a 64-bit register that stores some information (e.g. an integer, float, or a pointer) is $S_0 = 64\times k_B\ln 2$. When the register is cleared (e.g. with `xor rax, rax` instruction) the information is destroyed and entropy of the register drops to $S_1 = 0$. This decrease in register' | ||
| + | |||
| + | This means any time a computer destroys information, | ||
| + | |||
| + | |||
| + | ## Single bit | ||
| + | Erasing a single bit stored at room temperature $T = 300K$ dissipates the following amount of heat into the environment: | ||
| + | |||
| + | $$ E_\text{bit} \approx 2.9\times 10^{-21} J$$ | ||
| + | |||
| + | In electron-volts this is: | ||
| + | |||
| + | $$ E_\text{bit} \approx 0.018 \text{eV}$$ | ||
| + | |||
| + | This energy is extremely small and comparable to thermal motion of a single molecule at room temperature. In practice, erasing a bit dissipates several orders of magnitude more energy than that. | ||
| + | |||
| + | |||
| + | ## x86-64 | ||
| + | Any time an instruction is called that destroys information stored in a register or a flag, a Landaurer energy cost is incurred and a small amount of heat is dissipated from the CPU into the environment. | ||
| + | |||
| + | A simple example is a instruction that destroys the information stored in a 64-bit register `rax` | ||
| + | ``` | ||
| + | xor rax, rax | ||
| + | ``` | ||
| + | |||
| + | ## CMOS circuits | ||
| + | Ordinary CMOS circuits lose energy | ||
| + | |||
| + | A single bit flip in a CMOS circuit loses several orders of magnitude more energy through electrical dissipation (like capacitive switching loss, crowbar current, leakage currents, wire losses, ...) compared to the energy lost to heat via Landauer' | ||
| + | |||
| + | ### Links | ||
| + | |||
| + | - https:// | ||
| + | - https:// | ||
| + | |||
