Skip to content

Commit

Permalink
Update back_box_numeric.py (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteele13 authored Nov 8, 2024
1 parent 551ec71 commit b6907f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyEPR/calcs/back_box_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def PT_on_vector(original_vector, original_basis, pertub, energy0, evalue):

def closest_state_to(s):
def distance(s2):
return (s.dag() * s2[1]).norm()
return np.abs((s.dag() * s2[1]))

return max(zip(evals, evecs), key=distance)

Expand Down

0 comments on commit b6907f3

Please sign in to comment.