QuantumBFS/QuDiffEq.jl

Why the QuDiffEq can not be precomplied?

LinhanJi opened this issue · 12 comments

ERROR: LoadError: Failed to precompile QuDiffEq [c02438fe-7edc-11e9-0a49-b5c5aafabe04] to C:\Users\35321.juliapro\JuliaPro_v1.4.2-1\compiled\v1.4\QuDiffEq\hei7O_TPJID.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1272
[3] _require(::Base.PkgId) at .\loading.jl:1029
[4] require(::Base.PkgId) at .\loading.jl:927
[5] require(::Module, ::Symbol) at .\loading.jl:922

Hi sorry, due to lack of human power, this package is not actively maintained currently.

we had several updates in Yao, I believe this package only works with Yao@0.4, you will need to checkout to this commit to use it: https://github.com/QuantumBFS/QuDiffEq.jl/tree/3b189e583065bd8c337f1c88b4a1d2edb5835c52

]add Yao@0.4

You need to git clone QuDiffEq first.

git clone https://github.com/QuantumBFS/QuDiffEq.jl.git QuDiffEq

then checkout to that commit

cd QuDiffEq
git checkout 3b189e583065bd8c337f1c88b4a1d2edb5835c52

or just add this package via

] rm QuDiffEq
] add Yao@0.4.0
]add https://github.com/QuantumBFS/QuDiffEq.jl.git#3b189e583065bd8c337f1c88b4a1d2edb5835c52

You need to remove the incompatible version first.

can you just remove everything you have installed, then add Yao@0.4? Or just use a clean new environment to install this.

orry..I try again now.It is not appear "Failed to precomplied",but
[ Info: Precompiling QuDiffEq [c02438fe-7edc-11e9-0a49-b5c5aafabe04]
Warning: Module Yao with build ID 160534696329001 is missing from the cache.
│ This may mean Yao [5872b779-8223-5990-8dd0-5abbb0748c8c] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1016
[ Info: Skipping precompilation since precompile(false). Importing QuDiffEq [c02438fe-7edc-11e9-0a49-b5c5aafabe04].
ERROR: LoadError: LoadError: LoadError: UndefVarError: DefaultRegister not defined
Stacktrace:

We will update this repo after YaoLang is done. I'll leave this issue open for now.

@Roger-luo , I was wondering if you can help me close this issue.

#31 fixes precompilation

@Roger-luo We can close this issue now.