Skip to content

About

Deterministic bit-level reversible logic engine and Landauer thermodynamic entropy auditor in VB.NET (.NET 8).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

LandauerReversibleEngine (VB.NET)

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.


Scientific Background

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:

$$E_{\min} = k_B T \ln(2)$$

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 $H(X|Y) = \frac{3}{4}\log_2(3) \approx 1.189\text{ bits}$ of Shannon entropy per operation under uniform input distributions. By contrast, universal reversible primitives like the Toffoli gate (CCNOT) perform bijective (one-to-one) state transitions that are their own mathematical inverse.


Repository Structure

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

Getting Started

Prerequisites

Run Locally

git clone https://github.com/<your-username>/LandauerReversibleEngine.git
cd LandauerReversibleEngine
dotnet run

Sample Output

=== 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

License

Licensed under the MIT License.

About

Deterministic bit-level reversible logic engine and Landauer thermodynamic entropy auditor in VB.NET (.NET 8).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages