Skip to content

Commit

Permalink
TN: fix callable j for classical spin system builders
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Feb 5, 2025
1 parent a24d4f2 commit fd76818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quimb/tensor/tensor_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2118,7 +2118,7 @@ def parse_j_coupling_to_function(j):
function.
"""
if callable(j):
return j
return functools.cache(j)

elif isinstance(j, dict):

Expand Down

0 comments on commit fd76818

Please sign in to comment.