why all values constant?

조회 수: 1 (최근 30일)
Abu Zar
Abu Zar 2023년 4월 13일
댓글: Mathieu NOE 2023년 4월 19일
for different values of n ,i got the fidelity 1,what is going wrong in this .
Untitled0123
  댓글 수: 2
Mathieu NOE
Mathieu NOE 2023년 4월 14일
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 2023년 4월 19일
hello again
problem solved ?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by