threshold-computers / src /reversible_prog.py

Commit History

neural_reversible: structured reversible programs over the reversible ALU (reversible multiply with inputs preserved, Fibonacci whose inverse recovers the seed, a Janus conditional with an exit assertion); inverting a program is reversing the statement order and inverting each, and running the inverse recovers the input
55a7cc7

CharlesCNorton commited on