Early install and tutorial errors

Hello All,
I am trying to start with Quera and got the following errors on installation of Bloqade.

julia> using Bloqade
┌ Warning: Error requiring KrylovKit from LinearSolve
│ exception =
│ LoadError: ArgumentError: Package LinearSolve does not have KrylovKit in its dependencies:
│ - You may have a partially installed environment. Try Pkg.instantiate()
│ to ensure all packages in the environment are installed.
│ - Or, if you have LinearSolve checked out for development and have
│ added KrylovKit as a dependency but haven’t updated your primary
│ environment’s manifest file, try Pkg.resolve().
│ - Otherwise you may need to report an issue with LinearSolve
│ Stacktrace:
│ [1] macro expansion
│ @ .\loading.jl:1167 [inlined]
│ [2] macro expansion
│ @ .\lock.jl:223 [inlined]
│ [3] require(into::Module, mod::Symbol)
│ @ Base .\loading.jl:1144
│ [4] include(mod::Module, _path::String)
│ @ Base .\Base.jl:419
│ [5] include(x::String)
│ @ LinearSolve C:\Users\quant.julia\packages\LinearSolve\qCLK7\src\LinearSolve.jl:1
│ [6] macro expansion
│ @ C:\Users\quant.julia\packages\Requires\Z8rfN\src\Requires.jl:40 [inlined]
│ [7] top-level scope
│ @ C:\Users\quant.julia\packages\LinearSolve\qCLK7\src\init.jl:13
│ [8] eval
│ @ .\boot.jl:368 [inlined]
│ [9] eval
│ @ C:\Users\quant.julia\packages\LinearSolve\qCLK7\src\LinearSolve.jl:1 [inlined]
│ [10] (::LinearSolve.var"#85#94")()
│ @ LinearSolve C:\Users\quant.julia\packages\Requires\Z8rfN\src\require.jl:101
│ [11] macro expansion
│ @ .\timing.jl:382 [inlined]
│ [12] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│ @ Requires C:\Users\quant.julia\packages\Requires\Z8rfN\src\require.jl:47
│ [13] (::LinearSolve.var"#84#93")()
│ @ LinearSolve C:\Users\quant.julia\packages\Requires\Z8rfN\src\require.jl:100
│ [14] withpath(f::Any, path::String)
│ @ Requires C:\Users\quant.julia\packages\Requires\Z8rfN\src\require.jl:37
│ [15] (::LinearSolve.var"#83#92")()
│ @ LinearSolve C:\Users\quant.julia\packages\Requires\Z8rfN\src\require.jl:99
│ [16] listenpkg(f::Any, pkg::Base.PkgId)
│ @ Requires C:\Users\quant.julia\packages\Requires\Z8rfN\src\require.jl:20
│ [17] macro expansion
│ @ C:\Users\quant.julia\packages\Requires\Z8rfN\src\require.jl:98 [inlined]
│ [18] init()
│ @ LinearSolve C:\Users\quant.julia\packages\LinearSolve\qCLK7\src\init.jl:12
│ [19] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
│ @ Base .\loading.jl:831
│ [20] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, sourcepath::String, depmods::Vector{Any})
│ @ Base .\loading.jl:938
│ [21] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
│ @ Base .\loading.jl:1028
│ [22] _require(pkg::Base.PkgId)
│ @ Base .\loading.jl:1315
│ [23] _require_prelocked(uuidkey::Base.PkgId)
│ @ Base .\loading.jl:1200
│ [24] macro expansion
│ @ .\loading.jl:1180 [inlined]
│ [25] macro expansion
│ @ .\lock.jl:223 [inlined]
│ [26] require(into::Module, mod::Symbol)
│ @ Base .\loading.jl:1144
│ [27] eval
│ @ .\boot.jl:368 [inlined]
│ [28] eval_user_input(ast::Any, backend::REPL.REPLBackend)
│ @ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:151
│ [29] repl_backend_loop(backend::REPL.REPLBackend)
│ @ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:247
│ [30] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
│ @ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:232
│ [31] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
│ @ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:369
│ [32] run_repl(repl::REPL.AbstractREPL, consumer::Any)
│ @ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:355
│ [33] (::Base.var"#967#969"{Bool, Bool, Bool})(REPL::Module)
│ @ Base .\client.jl:419
│ [34] #invokelatest#2
│ @ .\essentials.jl:729 [inlined]
│ [35] invokelatest
│ @ .\essentials.jl:726 [inlined]
│ [36] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
│ @ Base .\client.jl:404
│ [37] exec_options(opts::Base.JLOptions)
│ @ Base .\client.jl:318
│ [38] _start()
│ @ Base .\client.jl:522
│ in expression starting at C:\Users\quant.julia\packages\LinearSolve\qCLK7\ext\LinearSolveKrylovKitExt.jl:1
└ @ Requires C:\Users\quant.julia\packages\Requires\Z8rfN\src\require.jl:51

And when I just run the examples. I get

julia> atoms = generate_sites(ChainLattice(), nsites, scale = 5.74)
Error showing value of type AtomList{1, Float64}:
ERROR: BoundsError: attempt to access Tuple{Float64} at index [2]
Stacktrace:
[1] getindex(t::Tuple, i::Int64)
@ Base .\tuple.jl:29
[2] show(io::IOContext{Base.TTY}, mime::MIME{Symbol(“text/plain”)}, atoms::AtomList{1, Float64})
@ BloqadeLattices C:\Users\quant.julia\packages\BloqadeLattices\QxD8R\src\visualize.jl:395
[3] (::REPL.var"#43#44"{REPL.REPLDisplay{REPL.LineEditREPL}, MIME{Symbol(“text/plain”)}, Base.RefValue{Any}})(io::Any)
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:267
[4] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:521
[5] display(d::REPL.REPLDisplay, mime::MIME{Symbol(“text/plain”)}, x::Any)
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:260
[6] display(d::REPL.REPLDisplay, x::Any)
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:272
[7] display(x::Any)
@ Base.Multimedia .\multimedia.jl:328
[8] #15
@ C:\Users\quant.julia\packages\Media\ItEPc\src\compat.jl:28 [inlined]
[9] hookless(f::Media.var"#15#16"{AtomList{1, Float64}})
@ Media C:\Users\quant.julia\packages\Media\ItEPc\src\compat.jl:14
[10] render
@ C:\Users\quant.julia\packages\Media\ItEPc\src\compat.jl:27 [inlined]
[11] render(x::AtomList{1, Float64})
@ Media C:\Users\quant.julia\packages\Media\ItEPc\src\system.jl:160
[12] display(#unused#::Media.DisplayHook, x::AtomList{1, Float64})
@ Media C:\Users\quant.julia\packages\Media\ItEPc\src\compat.jl:9
[13] display(x::Any)
@ Base.Multimedia .\multimedia.jl:328
[14] #invokelatest#2
@ .\essentials.jl:729 [inlined]
[15] invokelatest
@ .\essentials.jl:726 [inlined]
[16] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:296
[17] (::REPL.var"#45#46"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:278
[18] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:521
[19] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:276
[20] (::REPL.var"#do_respond#66"{Bool, Bool, REPL.var"#77#87"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:857
[21] #invokelatest#2
@ .\essentials.jl:729 [inlined]
[22] invokelatest
@ .\essentials.jl:726 [inlined]
[23] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ REPL.LineEdit C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\LineEdit.jl:2510
[24] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
@ REPL C:\Users\quant\AppData\Local\Programs\Julia-1.8.2\share\julia\stdlib\v1.8\REPL\src\REPL.jl:1248
[25] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
@ REPL .\task.jl:484

My julia version is 1.8.2 and it was the only version where I could come so far on Bloqade.
Best,
Ammar

Hi Ammar,

Welcome to the QuEra forum!

In regards to your problem there seem to be two things happening here.

For the warning that’s emitted from using Bloqade we strongly recommend updating to the latest version of Julia 1.8 or higher if you can.

The second error you see from atoms = generate_sites(...) is a bug with the pretty printing which has been fixed very recently in the latest version of Bloqade (0.2.2). We recommend updating Bloqade to this version in your environment as well.

thanks. I will do so.