chemart / matrix-chemistry

View on GitHub

Matrix chemistry — One string folds into an operator that acts on another. A binary string of length N is read as a sqrt(N) x sqrt(N) matrix, applied in chunks to a second string with a threshold, producing a third; both reactants survive,…

chemistry official · built in core fidelity: book+decisions constructive #banzhaf-yamamoto
files / README.md · 467 B · at 597ee080c975 Raw

Matrix chemistry

One of the artificial chemistries of Banzhaf & Yamamoto, Artificial Chemistries (MIT Press, 2015), §chapter 3; revisited in 12.5.2, 13.2; first proposed by Banzhaf, 1993.

Its generator ships with the chemart library, so loading it runs no code from the hub and needs no trust_remote_code.

import chemart

net = chemart.generate_network("chemart/matrix-chemistry", seed=0)   # same as "matrix-chemistry"
print(net.summary())