Skip to content

Instantly share code, notes, and snippets.

View nic-kup's full-sized avatar
💭
...

Niclas Kupper nic-kup

💭
...
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
In this file I generate a loop-erased random walk
along with its associated loop-soup.
"""
import numpy as np
import matplotlib.pyplot as plt
directions = [(1, 0), (-1, 0), (0, 1), (0, -1)]
all_colors = [
"""
This script creates a random graph and optimizes production for a certain roblox game.
The game is encoded as a Hamiltonian and configurations are optimized
using Glauber dynamics and parallel tempering.
"""
import numpy as np
import numpy.random as npr
import matplotlib.pyplot as plt
from tqdm import tqdm
from typing import List, Tuple, Callable