A deterministic, zero-allocation reversible logic engine and thermodynamic entropy auditor written in Visual Basic .NET (.NET 8).
This project accompanies the article Simulating Landauer’s Principle: Building a Reversible Logic Engine in VB.NET, demonstrating how logically reversible circuits (such as the 3-bit Toffoli gate) eliminate information erasure and bypass the thermodynamic energy floor imposed on irreversible Boolean logic.
In 1961, Rolf Landauer established that erasing a single bit of information in any physical computing system dissipates a minimum amount of heat governed by the second law of thermodynamics:
Where:
-
$k_B = 1.380649 \times 10^{-23}\text{ J}\cdot\text{K}^{-1}$ (exact SI Boltzmann constant) -
$T$ is the ambient operating temperature in Kelvin
Standard two-input AND and OR gates map four input states onto two output states, irreversibly erasing
LandauerReversibleEngine/
├── LandauerReversibleEngine.vbproj # SDK-style .NET 8 VB.NET console project (Option Strict On)
├── Program.vb # TriBitState value type, Toffoli/CNOT gates, & Landauer auditor
├── .gitignore # Standard .NET / Visual Studio ignore rules
├── LICENSE # MIT License
└── README.md # Project documentation
- .NET 8.0 SDK (or newer)
git clone https://github.com/<your-username>/LandauerReversibleEngine.git
cd LandauerReversibleEngine
dotnet run=== Landauer Principle & Reversible Logic Engine (VB.NET) ===
Initial State : (1, 1, 0)
Toffoli Out : (1, 1, 1) (0 bits erased)
Inverse Out : (1, 1, 0) (Exact state recovered)
Exhaustive 8-State Bijection Audit Passed: True
Irreversible Entropy Lost (10^9 AND ops): 1,188,721,875.54 bits
@ 300 K (Room Temp) : 3.4126E-012 J
@ 77 K (Liquid Nitrogen) : 8.7591E-013 J
@ 4 K (Cryogenic) : 4.5502E-014 J
Reversible Toffoli Engine : 0.0000E+000 J
Licensed under the MIT License.