0 votes
asked by (290 points)
edited by

I am getting the following error while running purification.jl, strangely, it is working in REPL "https://replit.com/@scin/EnragedJadedNasm#main.jl". Could you please help me out in this ?

β = 0.00 energy = 0.00000000
 LoadError: MethodError: no method matching /(::MPO, ::Float64)
 Closest candidates are:
/(::StridedArray{P, N} where N, ::Real) where P<:Dates.Period at /buildworker    
/(::Union{SparseArrays.SparseVector{Tv, Ti}, SubArray{Tv, 1, var"#s814",    
Tuple{Base.Slice{Base.OneTo{Int64}}, Int64}, false} where var"#s814"   
<:SparseArrays.AbstractSparseMatrixCSC{Tv, Ti}, SubArray{Tv, 1, var"#s814",    
Tuple{Base.Slice{Base.OneTo{Int64}}}, false} where var"#s814" 
<:SparseArrays.AbstractSparseVector{Tv, Ti}} where {Tv, Ti}, ::Number) at   
/(::Complex, ::Real) at complex.jl:333
[ 1] main(; N::Int64, cutoff::Float64, δτ::Float64, beta_max::Float64)
 @ Main /media/test.jl:26
[2] main()
 @ Main /media/test.jl:11
 [3] top-level scope
 @ /media/test.jl:30
 in expression starting at /media/test.jl:30
commented by (70.1k points)
What version of Julia are you using? And what version of ITensor. Also from what I can see, the error does not seem to be related to ITensor, because the error message seems to be coming from the SparseArrays package. But it could be coming from ITensor - it's just hard to tell.

Please log in or register to answer this question.

Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.