Package evaluation of YaoLang on Julia 1.10.8 (92f03a4775*) started at 2025-02-25T09:14:59.014 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Set-up completed after 5.2s ################################################################################ # Installation # Installing YaoLang... Resolving package versions... Updating `~/.julia/environments/v1.10/Project.toml` [77e32715] + YaoLang v0.3.0 Updating `~/.julia/environments/v1.10/Manifest.toml` ⌅ [ec485272] + ArnoldiMethod v0.1.0 [34da2185] + Compat v4.16.0 [864edb3b] + DataStructures v0.18.20 [e2ba6199] + ExprTools v0.1.10 [7869d1d1] + IRTools v0.4.14 [d25df0c9] + Inflate v0.1.5 [093fc24a] + LightGraphs v1.3.5 ⌅ [d05aeea4] + LuxurySparse v0.6.13 [d8e11817] + MLStyle v0.4.17 [1914dd2f] + MacroTools v0.5.15 [bac558e1] + OrderedCollections v1.8.0 [aea7be01] + PrecompileTools v1.2.1 [21216c6a] + Preferences v1.4.3 [8162dcfd] + PrettyPrint v0.2.0 [83ef0002] + RBNF v0.2.4 [699a6c99] + SimpleTraits v0.9.4 [90137ffa] + StaticArrays v1.9.12 [1e83bf80] + StaticArraysCore v1.4.3 [a759f4b9] + TimerOutputs v0.5.27 ⌅ [0843a435] + YaoAPI v0.1.2 [77e32715] + YaoLang v0.3.0 ⌅ [3525faa3] + ZXCalculus v0.2.2 [56f22d72] + Artifacts [2a0f44e3] + Base64 [ade2ca70] + Dates [8ba89e20] + Distributed [b77e0a4c] + InteractiveUtils [8f399da3] + Libdl [37e2e46d] + LinearAlgebra [d6f4376e] + Markdown [a63ad114] + Mmap [de0858da] + Printf [9a3f8284] + Random [ea8e919c] + SHA v0.7.0 [9e88b42a] + Serialization [1a1011a3] + SharedArrays [6462fe0b] + Sockets [2f01184e] + SparseArrays v1.10.0 [10745b16] + Statistics v1.10.0 [fa267f1f] + TOML v1.0.3 [cf7118a7] + UUIDs [4ec0a83e] + Unicode [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0 [4536629a] + OpenBLAS_jll v0.3.23+4 [bea87d4a] + SuiteSparse_jll v7.2.1+1 [8e850b90] + libblastrampoline_jll v5.11.0+0 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated -m` Installation completed after 5.7s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling package dependencies... Precompilation completed after 38.61s ################################################################################ # Testing # Testing YaoLang Status `/tmp/jl_fNxjwW/Project.toml` [e2ba6199] ExprTools v0.1.10 [7a1cc6ca] FFTW v1.8.1 [7869d1d1] IRTools v0.4.14 ⌅ [d05aeea4] LuxurySparse v0.6.13 [83ef0002] RBNF v0.2.4 [a759f4b9] TimerOutputs v0.5.27 ⌅ [0843a435] YaoAPI v0.1.2 ⌃ [e600142f] YaoArrayRegister v0.7.12 [77e32715] YaoLang v0.3.0 ⌅ [3525faa3] ZXCalculus v0.2.2 [37e2e46d] LinearAlgebra [8dfed614] Test Status `/tmp/jl_fNxjwW/Manifest.toml` [621f4979] AbstractFFTs v1.5.0 ⌅ [79e6a3ab] Adapt v3.7.2 ⌅ [ec485272] ArnoldiMethod v0.1.0 ⌅ [50ba71b6] BitBasis v0.7.4 [34da2185] Compat v4.16.0 [9a962f9c] DataAPI v1.16.0 [864edb3b] DataStructures v0.18.20 [ffbed154] DocStringExtensions v0.9.3 [e2ba6199] ExprTools v0.1.10 [7a1cc6ca] FFTW v1.8.1 [7869d1d1] IRTools v0.4.14 [d25df0c9] Inflate v0.1.5 [92d709cd] IrrationalConstants v0.2.4 [692b3bcd] JLLWrappers v1.7.0 [f1f30506] LegibleLambdas v0.3.0 [093fc24a] LightGraphs v1.3.5 [2ab3a3ac] LogExpFunctions v0.3.29 ⌅ [d05aeea4] LuxurySparse v0.6.13 [d8e11817] MLStyle v0.4.17 [1914dd2f] MacroTools v0.5.15 [e1d29d7a] Missings v1.2.0 [bac558e1] OrderedCollections v1.8.0 [aea7be01] PrecompileTools v1.2.1 [21216c6a] Preferences v1.4.3 [8162dcfd] PrettyPrint v0.2.0 [83ef0002] RBNF v0.2.4 [189a3867] Reexport v1.2.2 [ae029012] Requires v1.3.0 [699a6c99] SimpleTraits v0.9.4 [a2af1166] SortingAlgorithms v1.2.1 [90137ffa] StaticArrays v1.9.12 [1e83bf80] StaticArraysCore v1.4.3 [82ae8749] StatsAPI v1.7.0 ⌅ [2913bbd2] StatsBase v0.33.21 [a759f4b9] TimerOutputs v0.5.27 [9d95972d] TupleTools v1.6.0 ⌅ [0843a435] YaoAPI v0.1.2 ⌃ [e600142f] YaoArrayRegister v0.7.12 ⌅ [a8f54c17] YaoBase v0.14.7 [77e32715] YaoLang v0.3.0 ⌅ [3525faa3] ZXCalculus v0.2.2 [f5851436] FFTW_jll v3.3.10+3 [1d5cc7b8] IntelOpenMP_jll v2025.0.4+0 [856f044c] MKL_jll v2025.0.1+1 [1317d2d5] oneTBB_jll v2022.0.0+0 [0dad84c5] ArgTools v1.1.1 [56f22d72] Artifacts [2a0f44e3] Base64 [ade2ca70] Dates [8ba89e20] Distributed [f43a241f] Downloads v1.6.0 [7b1f6079] FileWatching [b77e0a4c] InteractiveUtils [4af54fe1] LazyArtifacts [b27032c2] LibCURL v0.6.4 [76f85450] LibGit2 [8f399da3] Libdl [37e2e46d] LinearAlgebra [56ddb016] Logging [d6f4376e] Markdown [a63ad114] Mmap [ca575930] NetworkOptions v1.2.0 [44cfe95a] Pkg v1.10.0 [de0858da] Printf [3fa0cd96] REPL [9a3f8284] Random [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization [1a1011a3] SharedArrays [6462fe0b] Sockets [2f01184e] SparseArrays v1.10.0 [10745b16] Statistics v1.10.0 [fa267f1f] TOML v1.0.3 [a4e569a6] Tar v1.10.0 [8dfed614] Test [cf7118a7] UUIDs [4ec0a83e] Unicode [e66e0078] CompilerSupportLibraries_jll v1.1.1+0 [deac9b47] LibCURL_jll v8.4.0+0 [e37daf67] LibGit2_jll v1.6.4+0 [29816b5a] LibSSH2_jll v1.11.0+1 [c8ffd9c3] MbedTLS_jll v2.28.2+1 [14a3606d] MozillaCACerts_jll v2023.1.10 [4536629a] OpenBLAS_jll v0.3.23+4 [bea87d4a] SuiteSparse_jll v7.2.1+1 [83775a58] Zlib_jll v1.2.13+1 [8e850b90] libblastrampoline_jll v5.11.0+0 [8e850ede] nghttp2_jll v1.52.0+1 [3f19e933] p7zip_jll v17.4.0+2 Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. Testing Running tests... WARNING: Method definition convert(Type{var"#s14"} where var"#s14"<:(LinearAlgebra.Diagonal{T, V} where V<:AbstractArray{T, 1} where T), AbstractArray{T, 2} where T) in module LinearAlgebra at /source/usr/share/julia/stdlib/v1.10/LinearAlgebra/src/diagonal.jl:100 overwritten in module LuxurySparse at /home/pkgeval/.julia/packages/LuxurySparse/qV7pU/src/conversions.jl:114. ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation. WARNING: Method definition convert(Type{var"#s14"} where var"#s14"<:(LinearAlgebra.Diagonal{T, V} where V<:AbstractArray{T, 1} where T), AbstractArray{T, 2} where T) in module LinearAlgebra at /source/usr/share/julia/stdlib/v1.10/LinearAlgebra/src/diagonal.jl:100 overwritten in module LuxurySparse at /home/pkgeval/.julia/packages/LuxurySparse/qV7pU/src/conversions.jl:114. ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation. WARNING: Method definition convert(Type{var"#s14"} where var"#s14"<:(LinearAlgebra.Diagonal{T, V} where V<:AbstractArray{T, 1} where T), AbstractArray{T, 2} where T) in module LinearAlgebra at /source/usr/share/julia/stdlib/v1.10/LinearAlgebra/src/diagonal.jl:100 overwritten in module LuxurySparse at /home/pkgeval/.julia/packages/LuxurySparse/qV7pU/src/conversions.jl:114. ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation. WARNING: Method definition convert(Type{var"#s14"} where var"#s14"<:(LinearAlgebra.Diagonal{T, V} where V<:AbstractArray{T, 1} where T), AbstractArray{T, 2} where T) in module LinearAlgebra at /source/usr/share/julia/stdlib/v1.10/LinearAlgebra/src/diagonal.jl:100 overwritten in module LuxurySparse at /home/pkgeval/.julia/packages/LuxurySparse/qV7pU/src/conversions.jl:114. WARNING: method definition for rot_mat at /home/pkgeval/.julia/packages/YaoBase/NIWfs/src/utils/math.jl:314 declares type variable N but does not use it. WARNING: method definition for #measure!#33 at /home/pkgeval/.julia/packages/YaoBase/NIWfs/src/abstract_register.jl:71 declares type variable MODE but does not use it. WARNING: method definition for #measure#34 at /home/pkgeval/.julia/packages/YaoBase/NIWfs/src/abstract_register.jl:89 declares type variable MODE but does not use it. WARNING: method definition for regscale! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/operations.jl:88 declares type variable T1 but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:82 declares type variable M but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:127 declares type variable M but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:372 declares type variable N but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:383 declares type variable N but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:394 declares type variable N but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:501 declares type variable N but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:501 declares type variable N but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:501 declares type variable N but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:501 declares type variable N but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:501 declares type variable N but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:501 declares type variable N but does not use it. WARNING: method definition for instruct! at /home/pkgeval/.julia/packages/YaoArrayRegister/lEHFd/src/instruct.jl:501 declares type variable N but does not use it. Test Summary: | Pass Total Time runtime | 29 29 4.4s WARNING: Method definition (::YaoLang.GenericCircuit{:qft4})() in module Main overwritten. WARNING: Method definition evaluate(YaoLang.GenericCircuit{:qft4}) in module Main overwritten. WARNING: Method definition code_yao(YaoLang.GenericCircuit{:qft4}) in module Main overwritten. circuit qft(n::Int) 1: %1 = 2:@n %2 = Base.iterate(%1) %3 = @_1 = %2 %4 = @_1 === nothing %5 = Base.not_int(%4) %6 = %new%(##register#375) %7 = gate(H, 1) br 3 unless %5 2: %8 = @_1 %9 = Core.getfield(%8, 1) %10 = @_2 = %9 %11 = Core.getfield(%8, 2) %12 = 2π %13 = 2 ^ @_2 %14 = %12 / %13 %15 = shift(%14) %16 = Base.iterate(%1, %11) %17 = @_1 = %16 %18 = @_1 === nothing %19 = Base.not_int(%18) %20 = ctrl(%15, 1, @_2) br 3 unless %19 br 2 3: %21 = @n > 1 br 5 unless %21 4: %22 = @n - 1 %23 = qft(%22) %24 = 2:@n %25 = gate(%23, %24) 5: return nothing circuit single_qubit_layer(configs::AbstractVector, gateset=(X, Y, Z)) 1: %1 = nothing %2 = size(@configs, 1) %3 = 1:%2 %4 = Base.iterate(%3) %5 = @_1 = %4 %6 = @_1 === nothing %7 = Base.not_int(%6) %8 = %new%(##register#406) br 5 unless %7 2: %9 = @_1 %10 = Core.getfield(%9, 1) %11 = @_3 = %10 %12 = Core.getfield(%9, 2) %13 = Base.getindex(@configs, @_3) %14 = @_4 = %13 %15 = @_4 > 0 br 4 unless %15 3: %16 = Base.getindex(@gateset, @_4) %17 = gate(%16, @_3) 4: %18 = Base.iterate(%3, %12) %19 = @_1 = %18 %20 = @_1 === nothing %21 = Base.not_int(%20) br 5 unless %21 br 2 5: %22 = @_2 = nothing %23 = nothing %24 = @_2 return nothing ┌ Warning: `push_ctrl_gate!` is deprecated, use `push_gate!` instead. │ caller = zx_push_ctrl_gate!(circ::ZXDiagram{Int64, Rational{Int64}}, ctrl::Int64, loc::Int64, gate::Symbol) at zx_calculus.jl:186 └ @ YaoLang.Compiler ~/.julia/packages/YaoLang/8EhwC/src/compiler/zx_calculus.jl:186 ┌ Warning: `push_ctrl_gate!` is deprecated, use `push_gate!` instead. │ caller = zx_push_ctrl_gate!(circ::ZXDiagram{Int64, Rational{Int64}}, ctrl::Tuple{Int64, Int64}, loc::Int64, gate::Symbol) at zx_calculus.jl:171 └ @ YaoLang.Compiler ~/.julia/packages/YaoLang/8EhwC/src/compiler/zx_calculus.jl:171 ┌ Warning: `push_ctrl_gate!` is deprecated, use `push_gate!` instead. │ caller = zx_push_ctrl_gate!(circ::ZXDiagram{Int64, Rational{Int64}}, ctrl::Tuple{Int64, Int64}, loc::Int64, gate::Symbol) at zx_calculus.jl:173 └ @ YaoLang.Compiler ~/.julia/packages/YaoLang/8EhwC/src/compiler/zx_calculus.jl:173 ┌ Warning: `push_ctrl_gate!` is deprecated, use `push_gate!` instead. │ caller = zx_push_ctrl_gate!(circ::ZXDiagram{Int64, Rational{Int64}}, ctrl::Tuple{Int64, Int64}, loc::Int64, gate::Symbol) at zx_calculus.jl:175 └ @ YaoLang.Compiler ~/.julia/packages/YaoLang/8EhwC/src/compiler/zx_calculus.jl:175 ┌ Warning: `push_ctrl_gate!` is deprecated, use `push_gate!` instead. │ caller = zx_push_ctrl_gate!(circ::ZXDiagram{Int64, Rational{Int64}}, ctrl::Tuple{Int64, Int64}, loc::Int64, gate::Symbol) at zx_calculus.jl:177 └ @ YaoLang.Compiler ~/.julia/packages/YaoLang/8EhwC/src/compiler/zx_calculus.jl:177 ┌ Warning: `push_ctrl_gate!` is deprecated, use `push_gate!` instead. │ caller = zx_push_ctrl_gate!(circ::ZXDiagram{Int64, Rational{Int64}}, ctrl::Tuple{Int64, Int64}, loc::Int64, gate::Symbol) at zx_calculus.jl:181 └ @ YaoLang.Compiler ~/.julia/packages/YaoLang/8EhwC/src/compiler/zx_calculus.jl:181 ┌ Warning: `push_ctrl_gate!` is deprecated, use `push_gate!` instead. │ caller = zx_push_ctrl_gate!(circ::ZXDiagram{Int64, Rational{Int64}}, ctrl::Tuple{Int64, Int64}, loc::Int64, gate::Symbol) at zx_calculus.jl:184 └ @ YaoLang.Compiler ~/.julia/packages/YaoLang/8EhwC/src/compiler/zx_calculus.jl:184 WARNING: Method definition (::YaoLang.GenericCircuit{:circ_original})() in module Main overwritten. WARNING: Method definition evaluate(YaoLang.GenericCircuit{:circ_original}) in module Main overwritten. WARNING: Method definition code_yao(YaoLang.GenericCircuit{:circ_original}) in module Main overwritten. WARNING: Method definition (::YaoLang.GenericCircuit{:circ_optimized})() in module Main overwritten. WARNING: Method definition evaluate(YaoLang.GenericCircuit{:circ_optimized}) in module Main overwritten. WARNING: Method definition code_yao(YaoLang.GenericCircuit{:circ_optimized}) in module Main overwritten. WARNING: Method definition (::YaoLang.GenericCircuit{:circ_original})() in module Main overwritten. WARNING: Method definition evaluate(YaoLang.GenericCircuit{:circ_original}) in module Main overwritten. WARNING: Method definition code_yao(YaoLang.GenericCircuit{:circ_original}) in module Main overwritten. WARNING: Method definition (::YaoLang.GenericCircuit{:circ_optimized})() in module Main overwritten. WARNING: Method definition evaluate(YaoLang.GenericCircuit{:circ_optimized}) in module Main overwritten. WARNING: Method definition code_yao(YaoLang.GenericCircuit{:circ_optimized}) in module Main overwritten. WARNING: Method definition (::YaoLang.GenericCircuit{:circ_original})() in module Main overwritten. WARNING: Method definition evaluate(YaoLang.GenericCircuit{:circ_original}) in module Main overwritten. WARNING: Method definition code_yao(YaoLang.GenericCircuit{:circ_original}) in module Main overwritten. WARNING: Method definition (::YaoLang.GenericCircuit{:circ_optimized})() in module Main overwritten. WARNING: Method definition evaluate(YaoLang.GenericCircuit{:circ_optimized}) in module Main overwritten. WARNING: Method definition code_yao(YaoLang.GenericCircuit{:circ_optimized}) in module Main overwritten. WARNING: Method definition (::YaoLang.GenericCircuit{:circ_original})() in module Main overwritten. WARNING: Method definition evaluate(YaoLang.GenericCircuit{:circ_original}) in module Main overwritten. WARNING: Method definition code_yao(YaoLang.GenericCircuit{:circ_original}) in module Main overwritten. WARNING: Method definition (::YaoLang.GenericCircuit{:circ_optimized})() in module Main overwritten. WARNING: Method definition evaluate(YaoLang.GenericCircuit{:circ_optimized}) in module Main overwritten. WARNING: Method definition code_yao(YaoLang.GenericCircuit{:circ_optimized}) in module Main overwritten. WARNING: both ZXCalculus and Compiler export "gate_count"; uses of it in module Main must be qualified gate_count: Error During Test at /home/pkgeval/.julia/packages/YaoLang/8EhwC/test/compiler/utils.jl:33 Test threw exception Expression: gate_count(demo_circ_simp) == Dict("YaoLang.T" => 2, "YaoLang.H" => 8, "YaoLang.Rx" => 1, "YaoLang.X" => 2, "YaoLang.S" => 4, "YaoLang.shift" => 2, "@ctrl YaoLang.Z" => 1, "@ctrl YaoLang.X" => 4) UndefVarError: `gate_count` not defined Stacktrace: [1] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:669 [inlined] [2] macro expansion @ ~/.julia/packages/YaoLang/8EhwC/test/compiler/utils.jl:33 [inlined] [3] macro expansion @ /opt/julia/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined] [4] top-level scope @ ~/.julia/packages/YaoLang/8EhwC/test/compiler/utils.jl:33 Test Summary: | Pass Error Total Time compiler | 28 1 29 1m43.1s example/qft | 3 3 6.4s example/hadamard | 3 3 2.0s measure | 1 1 6.8s printing | None 4.9s default value (#19) | 1 1 0.5s callable | 1 1 0.2s purify | 1 1 1.0s sink quantum | 1 1 0.4s validation | 3 3 0.0s disallow constants | 1 1 0.0s gate_count | 1 1 1.6s ERROR: LoadError: Some tests did not pass: 28 passed, 0 failed, 1 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/YaoLang/8EhwC/test/runtests.jl:10 Testing failed after 144.29s ERROR: LoadError: Package YaoLang errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:2034 [3] test @ /opt/julia/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1915 [inlined] [4] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{io::Base.PipeEndpoint}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.10/Pkg/src/API.jl:444 [5] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.PipeEndpoint, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.10/Pkg/src/API.jl:159 [6] test @ /opt/julia/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined] [7] #test#74 @ /opt/julia/share/julia/stdlib/v1.10/Pkg/src/API.jl:146 [inlined] [8] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:219 in expression starting at /PkgEval.jl/scripts/evaluate.jl:210 PkgEval failed after 200.0s: illegal method overwrites during precompilation