Visit the CORN Wiki! This code generates and minimizes the energy of a lattice/network:
![](https://private-user-images.githubusercontent.com/8275672/331936500-922ac19e-9e6c-4860-852b-6e5d909308b6.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDcwOTUsIm5iZiI6MTczOTI0Njc5NSwicGF0aCI6Ii84Mjc1NjcyLzMzMTkzNjUwMC05MjJhYzE5ZS05ZTZjLTQ4NjAtODUyYi02ZTVkOTA5MzA4YjYuZ2lmP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMDQwNjM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODc5OTc5NTg2ZWYwYzdjZGNmYTliOTdkMTQ3NjAyOTJkMmI5ZTM5NTAwMWI0Y2U0NjUyMTU5Yzg2ZjI2YjBiOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.D-pHMzlgOybF74WYzERZK32ZEZ7g7sdwQvwtwQn_Sds)
See requirements.txt
These can be installed with pip install -r requirements.txt.
An older, but optimized (including GPU-accelerated) version of the code can be found in the optimized
branch, but this requires installation of additional libraries
python main.py
main.py
will requires a folder named outputs
in the same directory as it.
It will then try to create a folder based on the initial time run and
subsequent subfolders for each bond occupation probability.
Alternatively, there are pre-existing bash scripts which can perform batch runs