-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
questionFurther information is requestedFurther information is requested
Milestone
Description
I've looked at the implementation of backend.calculate_overlap
qibo/src/qibo/backends/numpy.py
Lines 748 to 751 in 5b3b6da
| def calculate_overlap(self, state1, state2): | |
| return self.np.abs( | |
| self.np.sum(self.np.conj(self.cast(state1)) * self.cast(state2)) | |
| ) |
it is not clear to me why we need also np.abs the inner product for a Hilbert space doesn't require to take the norm usually. Unless I am missing something I think that we should remove np.abs for better clarity.
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested