why all values constant?

1 view (last 30 days)
Abu Zar
Abu Zar on 13 Apr 2023
Commented: Mathieu NOE on 19 Apr 2023
for different values of n ,i got the fidelity 1,what is going wrong in this .
Untitled0123
  2 Comments
Mathieu NOE
Mathieu NOE on 14 Apr 2023
hello
looking what is happening here
fidelity(k) = abs(bra_nplus1 * psi_ket_out_norm).^2;
I found out that bra_nplus1 and psi_ket_out_norm vectors will always have only one non zero value at the same index position. the value at this index is either 1 or -1 so the product of the two vectors , once abs is applied , will always be one.
Only the position of the +1 / - 1 value inside those vectors vary with the loop index but the product will always give the same result (1)
Mathieu NOE
Mathieu NOE on 19 Apr 2023
hello again
problem solved ?

Sign in to comment.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!