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
Then I remind that function von_neumann_entropy() have a operattion p = max.(eigvals(dm), eps(real(eltype(dm)))) but it seems eigvals() operation have not been implemented in CUDA.jl.
I wander if there is any way to improve this operation in Yao.jl so that it can run successfully on the GPU, or alternatively, to only load the quantum state onto the CPU when calculating the entropy?
The text was updated successfully, but these errors were encountered:
I have tried change the p = max.(eigvals(dm), eps(real(eltype(dm))))
to
_, l =eigen(dm)
p =max.(l, eps(real(eltype(dm))))
but due to computational precision, the density matrix is not a Hermitian matrix and LinearAlgebra.eigen() only seems to work for symmetric/hermitian inputs.
When calculating the
von_neumann_entropy()
of a certain quantum state on the GPU, I often receive CUDA errors likeThen I remind that function
von_neumann_entropy()
have a operattionp = max.(eigvals(dm), eps(real(eltype(dm))))
but it seemseigvals()
operation have not been implemented in CUDA.jl.I wander if there is any way to improve this operation in Yao.jl so that it can run successfully on the GPU, or alternatively, to only load the quantum state onto the CPU when calculating the entropy?
The text was updated successfully, but these errors were encountered: