You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got an error that "MPS is not normalized, norm=1.000000042243257" when I tried to PastaQ.getsamples(ψ, bases). I understand that the MPS norm should be 1, but I'm curious about the reason why the norm is not 1. Does the approximation of floating point numbers cause it, or is there something wrong with my code? In addition, the norm obtained by running my code is usually 1e-8 orders of magnitude different from 1. Could this error be larger? Thanks very much.
The text was updated successfully, but these errors were encountered:
Probably the check is too strict. Can you try normalizing your MPS explicitly?
Thanks for your reply. I fix it by dividing by its norm,i.e., ψ=ψ / LinearAlgebra.norm(ψ), and then it doesn't raise any error. I'm not sure about the meaning of the check is too strict, since I didn't find something like eps in the docs. Actually, I'm curious about the reason and I can accept the current error, 1e-8, but I'm worried that this error could get larger in some extreme cases.
I got an error that
"MPS is not normalized, norm=1.000000042243257"
when I tried toPastaQ.getsamples(ψ, bases)
. I understand that the MPS norm should be 1, but I'm curious about the reason why the norm is not 1. Does the approximation of floating point numbers cause it, or is there something wrong with my code? In addition, the norm obtained by running my code is usually 1e-8 orders of magnitude different from 1. Could this error be larger? Thanks very much.The text was updated successfully, but these errors were encountered: