From a28fefa7f89a5e58359270118ed1d3361155fb40 Mon Sep 17 00:00:00 2001 From: Tom Hodson Date: Wed, 1 Jun 2022 13:17:57 +0200 Subject: [PATCH] Fix some omissions --- code/src/MCFF/ising_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/src/MCFF/ising_model.py b/code/src/MCFF/ising_model.py index 4c37cfc..a0ce7e4 100644 --- a/code/src/MCFF/ising_model.py +++ b/code/src/MCFF/ising_model.py @@ -5,6 +5,7 @@ States are represented by NxM numpy arrays with values +/-1. These functions are """ import numpy as np +from numba import jit def all_up_state(N): "The NxN all up state of the Ising model." @@ -14,7 +15,7 @@ def all_down_state(N): "The NxN all down state of the Ising model." return -np.ones([N, N]) -def random_state(N, magnetisation = 0.5, rng = np.random.default_rng()) +def random_state(N, magnetisation = 0.5, rng = np.random.default_rng()): r"""Return the a random NxN state of the Ising model. Parameters