Skip to content

Instantly share code, notes, and snippets.

@ultimatile
Last active November 27, 2018 07:52
Show Gist options
  • Save ultimatile/cd28b02b318949336543a4957bb95d14 to your computer and use it in GitHub Desktop.
Save ultimatile/cd28b02b318949336543a4957bb95d14 to your computer and use it in GitHub Desktop.
script to extract an eigenvector from HΦ output binary data in Julia 1.0
io = open("zvo_eigenvec_0_rank_0.dat")
Lanczos = read(io, Int32)
Hilbert = read(io, Int64)
discard = read(io, ComplexF64)
#1st component is useless 0+0*im
evec = zeros(ComplexF64, Hilbert)
for i in 1:Hilbert
evec[i] = read(io, ComplexF64)
end
println(Lanczos)
println(Hilbert)
println(evec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment