Skip to content

Commit

Permalink
Recover the @jit for free_energy with nopython=True added
Browse files Browse the repository at this point in the history
it does not matter that much
  • Loading branch information
singularitti committed Dec 19, 2023
1 parent 6d1d0bb commit b639b98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/qha/single_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,20 @@

import numpy as np
from lazy_property import LazyProperty
from numba import boolean, float64, jit

from qha.statmech import ho_free_energy
from qha.type_aliases import Scalar, Vector, Matrix, Array3D
from qha.type_aliases import Array3D, Matrix, Scalar, Vector

# ===================== What can be exported? =====================
__all__ = ["free_energy", "HOFreeEnergySampler"]


@jit(
float64[:](float64, float64[:], float64[:], float64[:, :, :], boolean),
nopython=True,
cache=True,
)
def free_energy(
temperature: Scalar,
q_weights: Vector,
Expand Down

0 comments on commit b639b98

Please sign in to comment.