From 255908955fc7e422bcac284c696de56aba38a60a Mon Sep 17 00:00:00 2001 From: SL Simulation Computer 2024 User Date: Wed, 6 Nov 2024 23:06:47 +0100 Subject: [PATCH] Update back_box_numeric.py --- pyEPR/calcs/back_box_numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyEPR/calcs/back_box_numeric.py b/pyEPR/calcs/back_box_numeric.py index 8fab76f..b368c00 100644 --- a/pyEPR/calcs/back_box_numeric.py +++ b/pyEPR/calcs/back_box_numeric.py @@ -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)