We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rand(d::Wigner{2}, n::Int)
I think that the following code is missing a factor of 2 dividing when the function returns.
function rand(d::Wigner{2}, n::Int) A = randn(n, n) + im*randn(n, n) normalization = √(4*n) return Hermitian((A + A') / normalization) end
That is, replace this line return Hermitian((A + A') / normalization) with this other one return Hermitian( (A + A') / 2 / normalization ).
return Hermitian((A + A') / normalization)
return Hermitian( (A + A') / 2 / normalization )
Thanks and regards
Pablo
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think that the following code is missing a factor of 2 dividing when the function returns.
That is, replace this line
return Hermitian((A + A') / normalization)
with this other onereturn Hermitian( (A + A') / 2 / normalization )
.Thanks and regards
Pablo
The text was updated successfully, but these errors were encountered: