Skip to content

Commit

Permalink
Update back_box_numeric.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SL Simulation Computer 2024 User authored and SL Simulation Computer 2024 User committed Nov 6, 2024
1 parent 551ec71 commit 2559089
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 2559089

Please sign in to comment.