Package evaluation to load YaoBlocks on Julia 1.14.0-DEV.2373 (cf67ecc88f*) started at 2026-06-13T12:29:53.662 ################################################################################ # Set-up # Set-up completed after 0.14s ################################################################################ # Installation # Installing YaoBlocks... Resolving package versions... Installed LegibleLambdas ───────── v0.3.0 Installed AliasTables ──────────── v1.1.3 Installed Adapt ────────────────── v4.6.1 Installed DataStructures ───────── v0.19.5 Installed YaoAPI ───────────────── v0.4.9 Installed OrderedCollections ───── v1.8.2 Installed DataAPI ──────────────── v1.16.0 Installed MacroTools ───────────── v0.5.16 Installed YaoArrayRegister ─────── v0.9.13 Installed StatsBase ────────────── v0.34.11 Installed Compat ───────────────── v4.18.1 Installed StatsAPI ─────────────── v1.8.0 Installed Statistics ───────────── v1.11.1 Installed BitBasis ─────────────── v0.9.10 Installed TupleTools ───────────── v1.6.0 Installed StaticArraysCore ─────── v1.4.4 Installed LogExpFunctions ──────── v1.0.1 Installed StaticArrays ─────────── v1.9.18 Installed IrrationalConstants ──── v0.2.6 Installed LuxurySparse ─────────── v0.8.1 Installed ChainRulesCore ───────── v1.26.1 Installed PrecompileTools ──────── v1.3.4 Installed KrylovKit ────────────── v0.10.3 Installed PackageExtensionCompat ─ v1.0.2 Installed Missings ─────────────── v1.2.0 Installed VectorInterface ──────── v0.5.0 Installed CacheServers ─────────── v0.2.0 Installed DocStringExtensions ──── v0.9.5 Installed MLStyle ──────────────── v0.4.17 Installed Preferences ──────────── v1.5.2 Installed PtrArrays ────────────── v1.4.0 Installed SortingAlgorithms ────── v1.2.2 Installed YaoBlocks ────────────── v0.14.3 Updating `~/.julia/environments/v1.14/Project.toml` [418bc28f] + YaoBlocks v0.14.3 Updating `~/.julia/environments/v1.14/Manifest.toml` [79e6a3ab] + Adapt v4.6.1 [66dad0bd] + AliasTables v1.1.3 [50ba71b6] + BitBasis v0.9.10 [a921213e] + CacheServers v0.2.0 [d360d2e6] + ChainRulesCore v1.26.1 [34da2185] + Compat v4.18.1 [9a962f9c] + DataAPI v1.16.0 [864edb3b] + DataStructures v0.19.5 [ffbed154] + DocStringExtensions v0.9.5 [92d709cd] + IrrationalConstants v0.2.6 [0b1a1467] + KrylovKit v0.10.3 [f1f30506] + LegibleLambdas v0.3.0 [2ab3a3ac] + LogExpFunctions v1.0.1 [d05aeea4] + LuxurySparse v0.8.1 [d8e11817] + MLStyle v0.4.17 [1914dd2f] + MacroTools v0.5.16 [e1d29d7a] + Missings v1.2.0 ⌅ [bac558e1] + OrderedCollections v1.8.2 [65ce6f38] + PackageExtensionCompat v1.0.2 [aea7be01] + PrecompileTools v1.3.4 [21216c6a] + Preferences v1.5.2 [43287f4e] + PtrArrays v1.4.0 [a2af1166] + SortingAlgorithms v1.2.2 [90137ffa] + StaticArrays v1.9.18 [1e83bf80] + StaticArraysCore v1.4.4 [10745b16] + Statistics v1.11.1 [82ae8749] + StatsAPI v1.8.0 [2913bbd2] + StatsBase v0.34.11 [9d95972d] + TupleTools v1.6.0 ⌅ [409d34a3] + VectorInterface v0.5.0 [0843a435] + YaoAPI v0.4.9 [e600142f] + YaoArrayRegister v0.9.13 [418bc28f] + YaoBlocks v0.14.3 [56f22d72] + Artifacts v1.11.0 [2a0f44e3] + Base64 v1.11.0 [ade2ca70] + Dates v1.11.0 [8ba89e20] + Distributed v1.11.0 [b77e0a4c] + InteractiveUtils v1.11.0 [ac6e5ff7] + JuliaSyntaxHighlighting v1.13.0 [8f399da3] + Libdl v1.11.0 [37e2e46d] + LinearAlgebra v1.14.0 [56ddb016] + Logging v1.11.0 [d6f4376e] + Markdown v1.11.0 [de0858da] + Printf v1.11.0 [9a3f8284] + Random v1.11.0 [ea8e919c] + SHA v1.13.0 [9e88b42a] + Serialization v1.11.0 [6462fe0b] + Sockets v1.11.0 [2f01184e] + SparseArrays v1.13.0 [f489334b] + StyledStrings v1.13.0 [fa267f1f] + TOML v1.0.3 [8dfed614] + Test v1.11.0 [cf7118a7] + UUIDs v1.11.0 [4ec0a83e] + Unicode v1.11.0 [e66e0078] + CompilerSupportLibraries_jll v1.5.2+0 [4536629a] + OpenBLAS_jll v0.3.33+0 [bea87d4a] + SuiteSparse_jll v7.10.1+0 [8e850b90] + libblastrampoline_jll v5.15.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 9.94s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Project No packages added to or removed from `~/.julia/environments/pkgeval/Project.toml` Manifest No packages added to or removed from `~/.julia/environments/pkgeval/Manifest.toml` Precompiling package dependencies... Precompiling project... 3.8 s ✓ MacroTools 0.8 s ✓ Adapt 1.0 s ✓ Statistics 1.0 s ✓ DataAPI 2.2 s ✓ IrrationalConstants 0.9 s ✓ StaticArraysCore 0.6 s ✓ StatsAPI 131.1 s ✓ OrderedCollections 26.3 s ✓ MLStyle 0.7 s ✓ YaoAPI 1.0 s ✓ DocStringExtensions 33.4 s ✓ PtrArrays 1.0 s ✓ TupleTools 1.3 s ✓ VectorInterface 0.6 s ✓ PackageExtensionCompat 1.4 s ✓ Compat 2.3 s ✓ Preferences 18.1 s ✓ CacheServers 0.7 s ✓ LegibleLambdas 35.1 s ✓ Adapt → AdaptSparseArraysExt 36.8 s ✓ Statistics → SparseArraysExt 48.4 s ✓ Missings 148.3 s ✓ DataStructures 1.6 s ✓ LogExpFunctions 34.8 s ✓ AliasTables 150.7 s ✓ KrylovKit 0.6 s ✓ Compat → CompatLinearAlgebraExt 2.6 s ✓ PrecompileTools 33.5 s ✓ SortingAlgorithms 271.5 s ✓ ChainRulesCore 292.8 s ✓ StaticArrays 151.4 s ✓ StatsBase 50.7 s ✓ ChainRulesCore → ChainRulesCoreSparseArraysExt 37.7 s ✓ LogExpFunctions → LogExpFunctionsChainRulesCoreExt 68.3 s ✓ KrylovKit → KrylovKitChainRulesCoreExt 35.2 s ✓ StaticArrays → StaticArraysStatisticsExt 67.5 s ✓ StaticArrays → StaticArraysChainRulesCoreExt 550.9 s ✓ BitBasis 94.5 s ✓ LuxurySparse 33.6 s ✓ Adapt → AdaptStaticArraysExt 89.3 s ✓ YaoArrayRegister ERROR: LoadError: LoweringError: #= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:159 =# - Found unexpected binding of kind static_parameter Expression:  #₁₁/T Containing expressions:  (= #₃₈/T #₁₁/T)  (= #₃ (call core.svec (call core.svec #₂₇/#eliminate_nested#_flatten##0 #₁₁/T) (call core.svec) SourceLocation:/home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:159:0))  (= #₃ (call core.svec (call core.svec (function_type #₁₂/_flatten) #₁₁/T) (call core.svec) SourceLocation:/home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:159:0))  Detailed provenance:  #₁₁/T  └─ T  └─ T  └─ T  ├─ @ /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:159  └─ (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1 =#) "circuit optimisation\n" (module true Optimise (block (using (. YaoBlocks) (. YaoBlocks ConstGate)) (using (: (. YaoBlocks) (. NotImplementedError))) (export replace_block flatten_basic simplify raise_chain canonicalize to_basictypes is_pauli) (export merge_pauli eliminate_nested merge_scale combine_similar) (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:11 =#) " replace_block(actor, tree::AbstractBlock) -> AbstractBlock\n replace_block(pair::Pair{Type{ST}, TT}, tree::AbstractBlock) -> AbstractBlock\n\nreplace blocks in a circuit, where `actor` is a function that given input block,\nreturns the block to replace, or `nothing` for skip replacing and visit sibling.\nIf `pair` is provided, then replace original block with type `ST` with new block (`pair.second`).\n" (function (call replace_block actor (:: tree AbstractBlock)) (block (= res (call actor tree)) (if (|| (call === res tree) (call === res nothing)) (block (return (call chsubblocks tree (. replace_block (tuple (call Ref actor) (call subblocks tree)))))) (block (return res)))))) (function (where (call replace_block (:: pair (curly Pair ST TT)) (:: tree AbstractBlock)) (<: ST AbstractBlock) (<: TT AbstractBlock)) (block (call replace_block (-> x (block (if (call == x (. pair (inert first))) (. pair (inert second)) nothing))) tree))) (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:36 =#) " to_basictypes(block::AbstractBlock)\n\nconvert gates to basic types\n\n * ChainBlock\n * PutBlock\n * PrimitiveBlock\n" (function to_basictypes)) (= (call to_basictypes (:: block PrimitiveBlock)) (block block)) (= (call to_basictypes (:: block MixedUnitaryChannel)) (block block)) (= (call to_basictypes (:: block KrausChannel)) (block block)) (= (call to_basictypes (:: block DepolarizingChannel)) (block block)) (= (call to_basictypes (:: block SuperOp)) (block block)) (function (call to_basictypes (:: block AbstractBlock)) (block (call throw (call NotImplementedError (inert to_basictypes) (call typeof block))))) (function (call to_basictypes (:: block RepeatedBlock)) (block (call chain (. block (inert n)) (call map (-> i (block (call put (. block (inert n)) (call => i (call content block))))) (. block (inert locs)))))) (= (call to_basictypes (:: block CachedBlock)) (block (call content block))) (function (where (call to_basictypes (:: block (curly Subroutine D (<: PrimitiveBlock)))) D) (block (call put (call nqudits block) (call => (. block (inert locs)) (call content block))))) (function (call to_basictypes (:: block Subroutine)) (block (call to_basictypes (call map_address (call content block) (call AddressInfo (. block (inert n)) (vect (... (. block (inert locs))))))))) (function (where (call to_basictypes (:: block (curly Subroutine D (<: Measure)))) D) (block (call map_address (call content block) (call AddressInfo (call nqudits block) (vect (... (. block (inert locs)))))))) (= (call to_basictypes (:: block Daggered)) (block (call Daggered (. block (inert content))))) (= (call to_basictypes (:: block Scale)) (block (call Scale (. block (inert alpha)) (. block (inert content))))) (= (call to_basictypes (:: block KronBlock)) (block (call chain (. block (inert n)) (comprehension (generator (call put (. block (inert n)) (call => i (ref block i))) (= i (. block (inert locs)))))))) (= (call to_basictypes (:: block (curly Union Add PutBlock ChainBlock ControlBlock))) (block block)) (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:76 =#) " is_pauli(x)\n\nCheck if `x` is an element of pauli group.\n" (= (call is_pauli (... xs)) (block (call all is_pauli xs)))) (= (call is_pauli (:: (curly Union XGate YGate ZGate I2Gate))) (block true)) (= (call is_pauli (:: AbstractBlock)) (block false)) (function (call is_pauli (:: s Scale)) (block (if (|| (call == (call factor s) im) (|| (call == (call factor s) (call - im)) (|| (call == (call factor s) 1) (call == (call factor s) -1)))) (block (return (call is_pauli (call content s)))) (block (return false))))) (for (= G (vect (inert I2) (inert X) (inert Y) (inert Z))) (block (= ImG (call Symbol (inert Im) G)) (= nImG (call Symbol (inert nIm) G)) (= nG (call Symbol (inert n) G)) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:97 =#) (const (= ($ ImG) (call * im ($ G))))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:98 =#) (const (= ($ nImG) (call * (call - im) ($ G))))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:99 =#) (const (= ($ nG) (call - ($ G))))))) (= (call merge_pauli x) (block x)) (= (call merge_pauli (:: x AbstractBlock) (:: y AbstractBlock)) (block (call * x y))) (function (call merge_pauli (:: ex ChainBlock)) (block (if (call != (. ex (inert n)) 1) (block (return ex))) (= L (call length ex)) (= new_ex (call chain 1)) (= iterm L) (while (call > iterm 0) (block (if (&& (call > iterm 1) (call is_pauli (ref ex iterm) (ref ex (call - iterm 1)))) (block (call pushfirst! new_ex (call merge_pauli (ref ex iterm) (ref ex (call - iterm 1)))) (= iterm (call - iterm 2))) (block (call pushfirst! new_ex (ref ex iterm)) (unknown_head iterm 1))))) (return new_ex))) (= (call merge_pauli (:: XGate) (:: YGate)) (block ImZ)) (= (call merge_pauli (:: XGate) (:: ZGate)) (block (call - ImY))) (= (call merge_pauli (:: YGate) (:: XGate)) (block (call - ImZ))) (= (call merge_pauli (:: YGate) (:: ZGate)) (block ImX)) (= (call merge_pauli (:: ZGate) (:: XGate)) (block ImY)) (= (call merge_pauli (:: ZGate) (:: YGate)) (block nImX)) (for (= G (vect (inert X) (inert Y) (inert Z))) (block (= GT (call Symbol G (inert Gate))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:138 =#) (= (call merge_pauli (:: I2Gate) (:: x ($ GT))) (block x))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:139 =#) (= (call merge_pauli (:: x ($ GT)) (:: I2Gate)) (block x))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:140 =#) (= (call merge_pauli (:: ($ GT)) (:: ($ GT))) (block I2))))) (= (call merge_pauli (:: I2Gate) (:: I2Gate)) (block I2)) (= (call eliminate_nested (:: ex AbstractBlock)) (block ex)) (function (call eliminate_nested (:: ex PutBlock)) (block (= content (call eliminate_nested (. ex (inert content)))) (if (call isa content PutBlock) (block (return (call put (call nqubits ex) (call => (call map (-> x (block (ref (. ex (inert locs)) x))) (. content (inert locs))) (. content (inert content)))))) (block (return ex))))) (function (where (call eliminate_nested (:: ex T)) (<: T (curly Union ChainBlock Add))) (block (= (call _flatten x) (block (tuple x))) (= (call _flatten (:: x T)) (block (call subblocks x))) (&& (call isone (call length ex)) (return (call first (call subblocks ex)))) (return (call chsubblocks ex (call collect (curly AbstractBlock (call nlevel ex)) (call (. Iterators (inert flatten)) (call map _flatten (call subblocks ex)))))))) (= (call raise_chain (:: ex AbstractBlock)) (block ex)) (= (call raise_chain (:: ex ChainBlock)) (block (call chain (call nqubits ex) (comprehension (generator (call raise_chain block) (= block ex)))))) (function (call raise_chain (:: ex PutBlock)) (block (= content (call raise_chain (. ex (inert content)))) (if (call isa content ChainBlock) (block (return (call chain (call nqubits ex) (comprehension (generator (call put (call nqubits ex) (call => (. ex (inert locs)) block)) (= block content)))))) (block (return ex))))) (= (call _unscale (:: x AbstractBlock)) (block x)) (= (call _unscale (:: x Scale)) (block (call content x))) (= (call merge_alpha alpha (:: x AbstractBlock)) (block alpha)) (= (call merge_alpha alpha (:: x Scale)) (block (call * alpha (. x (inert alpha))))) (= (where (call merge_alpha alpha (:: x (curly Scale (curly Val S)))) S) (block (call * alpha S))) (= (call merge_alpha (:: Nothing) (:: x Scale)) (block (. x (inert alpha)))) (= (where (call merge_alpha (:: Nothing) (:: x (curly Scale (curly Val S)))) S) (block S)) (= (call merge_alpha (:: Nothing) (:: x AbstractBlock)) (block nothing)) (= (call merge_scale (:: ex AbstractBlock)) (block ex)) (= (call _one x) (block (call one x))) (= (where (call _one (:: (curly Type (curly Val S)))) S) (block (call one S))) (= (where (call _one (:: (curly Val S))) S) (block (call one S))) (function (where (call merge_scale (:: ex (curly Union (curly Scale S N) (curly ChainBlock N)))) S N) (block (= alpha nothing) (for (= each (call subblocks ex)) (block (= alpha (call merge_alpha alpha each)))) (= ex (call chsubblocks ex (call map _unscale (call subblocks ex)))) (if (call === alpha nothing) (block (return ex)) (block (return (call * alpha ex)))))) (= (call combine_similar (:: ex AbstractBlock)) (block ex)) (= (call combine_alpha alpha x) (block alpha)) (= (call combine_alpha alpha (:: x AbstractBlock)) (block (call + alpha 1))) (= (call combine_alpha alpha (:: x Scale)) (block (call + alpha (. x (inert alpha))))) (= (where (call combine_alpha alpha (:: x (curly Scale (curly Val S)))) S) (block (call + alpha S))) (function (where (call combine_similar (:: ex (curly Add D))) D) (block (= table (call zeros Bool (call length ex))) (= list (ref (curly AbstractBlock D))) (= p 1) (while (call <= p (call length ex)) (block (if (call == (ref table p) true) (block (unknown_head p 1)) (block (= term (ref ex p)) (= (ref table p) true) (= alpha 1) (for (= (tuple k each) (call enumerate ex)) (block (if (call == (ref table k) true) (block (continue)) (block (if (call == (call _unscale term) (call _unscale each)) (block (= alpha (call combine_alpha alpha each)) (= (ref table k) true))))))) (if (call != alpha 0) (block (= alpha (if (call == (call imag alpha) 0) (call real alpha) alpha)) (= alpha (if (call isinteger alpha) (call Integer alpha) alpha)) (call push! list (call * alpha term)))))))) (if (call isempty list) (block (return (call Add (. ex (inert n))))) (block (return (call Add (. ex (inert n)) list)))))) (const (= __default_simplification_rules__ (ref Function merge_pauli eliminate_nested merge_scale combine_similar))) (const (= __flatten_basic__ (ref Function eliminate_nested to_basictypes))) (const (= __canonicalize__ (ref Function eliminate_nested raise_chain to_basictypes))) (= (call flatten_basic (:: ex AbstractBlock)) (block (call simplify (parameters (kw rules __flatten_basic__)) ex))) (= (call canonicalize (:: ex AbstractBlock)) (block (call simplify (parameters (kw rules __canonicalize__)) ex))) (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:270 =#) " simplify(block[; rules=__default_simplification_rules__])\n\nSimplify a block tree accroding to given rules, default to use\n`YaoBlocks.Optimise.__default_simplification_rules__`.\n" (function (call simplify (parameters (kw rules __default_simplification_rules__)) (:: ex AbstractBlock)) (block (= out1 (call simplify_pass rules ex)) (= out2 (call simplify_pass rules out1)) (= counter 1) (while (&& (call isa out1 AbstractBlock) (&& (call isa out2 AbstractBlock) (call != out2 out1))) (block (= out1 (call simplify_pass rules out2)) (= out2 (call simplify_pass rules out1)) (unknown_head counter 1) (if (call > counter 1000) (block (macrocall @warn :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:285 =#) "possible infinite loop in simplification rules. Breaking") (return out2))))) (return out2)))) (function (call simplify_pass rules ex) (block (if (call > (call length (call subblocks ex)) 0) (block (= ex (call chsubblocks ex (call map (-> x (block (call simplify_pass rules x))) (call subblocks ex)))))) (for (= rule rules) (block (= ex (call rule ex)))) (return ex))))))  └─ @ /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1  Stacktrace:  [1] _renumber(ctx::Base.JuliaLowering.LinearIRContext{Dict{Symbol, Dict{Int64, Any}}}, ssa_rewrites::Dict{Int64, Int64}, slot_rewrites::Dict{Int64, Int64}, label_table::Dict{Int64, Int64}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/linear_ir.jl:1097  [2] renumber_body(ctx::Base.JuliaLowering.LinearIRContext{Dict{Symbol, Dict{Int64, Any}}}, input_code::Base.JuliaSyntax.SyntaxList{Dict{Symbol, Dict{Int64, Any}}, Vector{Int64}}, slot_rewrites::Dict{Int64, Int64})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/linear_ir.jl:1162  [3] compile_lambda(outer_ctx::Base.JuliaLowering.LinearIRContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/linear_ir.jl:1257  [4] linearize_ir(ctx::Base.JuliaLowering.ClosureConversionCtx{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/linear_ir.jl:1287  [5] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing)  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:93  [6] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing)  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532  [7] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined]  [8] top-level scope  @ ~/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1  [9] macro expansion  @ ~/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1 [inlined]  [10] include(mapexpr::Function, mod::Module, _path::String)  @ Base Base.jl:326  [11] top-level scope  @ ~/.julia/packages/YaoBlocks/jhgUh/src/treeutils/treeutils.jl:7  [12] include(mapexpr::Function, mod::Module, _path::String)  @ Base Base.jl:326  [13] top-level scope  @ ~/.julia/packages/YaoBlocks/jhgUh/src/YaoBlocks.jl:129  [14] include(mod::Module, _path::String)  @ Base Base.jl:325  [15] include_package_for_output(pkg::Base.PkgId, input::String, syntax_version::VersionNumber, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)  @ Base loading.jl:3296  [16] top-level scope  @ stdin:5  [17] eval(m::Module, e::Any)  @ Core boot.jl:522  [18] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)  @ Base loading.jl:3132  [19] include_string(m::Module, txt::String, fname::String)  @ Base loading.jl:3142 [inlined]  [20] exec_options(opts::Base.JLOptions)  @ Base client.jl:353  [21] _start()  @ Base client.jl:596 in expression starting at /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1 in expression starting at /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/treeutils.jl:7 in expression starting at /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/YaoBlocks.jl:1 in expression starting at stdin:5 ✗ YaoBlocks 41 dependencies successfully precompiled in 2566 seconds. 16 already precompiled. Precompilation completed after 2581.67s ################################################################################ # Loading # Loading YaoBlocks...  ====================================================================================== Information request received. A stacktrace will print followed by a 1.0 second profile. --trace-compile is enabled during profile collection. ======================================================================================  cmd: /opt/julia/bin/julia 183 running 1 of 1  signal (10): User defined signal 1 egal_types at /source/src/builtins.c:182:13 ijl_types_equal at /source/src/subtype.c:2935:41 jl_specializations_get_linfo_ at /source/src/gf.c:274:17 #specialize_method#6 at ./runtime_internals.jl:1830:0 [inlined] specialize_method at ./runtime_internals.jl:1817:0 [inlined] typeinf_edge at ./../usr/share/julia/Compiler/src/typeinfer.jl:1147:0 (pc: 28) abstract_call_method at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:785:0 (pc: 575) infercalls at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:182:0 (pc: 76) abstract_call_gf_by_type at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:357:0 (pc: 117) abstract_call_known at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:3018:0 (pc: 1607) abstract_call at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:3171:0 (pc: 189) abstract_call at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:3164:0 [inlined] abstract_call at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:3315:0 [inlined] abstract_eval_call at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:3333:0 (pc: 119) abstract_eval_statement_expr at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:3703:0 (pc: 4) abstract_eval_basic_statement at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:4159:0 [inlined] abstract_eval_basic_statement at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:4116:0 [inlined] typeinf_local at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:4700:0 (pc: 3576) jfptr_typeinf_local_1.1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 typeinf at ./../usr/share/julia/Compiler/src/abstractinterpretation.jl:4978:0 (pc: 462) typeinf_ext at ./../usr/share/julia/Compiler/src/typeinfer.jl:1537:0 (pc: 150) typeinf_ext_toplevel at ./../usr/share/julia/Compiler/src/typeinfer.jl:1742:0 [inlined] typeinf_ext_toplevel at ./../usr/share/julia/Compiler/src/typeinfer.jl:1751:0 (pc: 15) jfptr_typeinf_ext_toplevel_5.1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] jl_type_infer at /source/src/gf.c:479:35 jl_compile_method_very_internal at /source/src/gf.c:3923:20 _jl_invoke at /source/src/gf.c:4352:16 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] do_call at /source/src/interpreter.c:123:26 eval_value at /source/src/interpreter.c:243:16 eval_stmt_value at /source/src/interpreter.c:194:23 [inlined] eval_body at /source/src/interpreter.c:706:13 jl_interpret_toplevel_thunk at /source/src/interpreter.c:897:21 ijl_eval_thunk at /source/src/toplevel.c:768:18 jl_toplevel_eval_flex at /source/src/toplevel.c:712:26 ijl_toplevel_eval at /source/src/toplevel.c:782:12 ijl_toplevel_eval_in at /source/src/toplevel.c:827:13 eval at ./boot.jl:522:0 (pc: 1) #_eval#133 at /source/usr/share/julia/JuliaLowering/src/eval.jl:547:0 (pc: 270) _eval at /source/usr/share/julia/JuliaLowering/src/eval.jl:528:0 [inlined] #eval#131 at /source/usr/share/julia/JuliaLowering/src/eval.jl:520:0 [inlined] eval at /source/usr/share/julia/JuliaLowering/src/eval.jl:515:0 [inlined] #eval#132 at /source/usr/share/julia/JuliaLowering/src/eval.jl:525:0 [inlined] eval at /source/usr/share/julia/JuliaLowering/src/eval.jl:524:0 (pc: 12) unknown function (ip: 0x739e58c2efcd) at (unknown file) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] do_call at /source/src/interpreter.c:123:26 eval_value at /source/src/interpreter.c:243:16 eval_body at /source/src/interpreter.c:594:35 jl_interpret_toplevel_thunk at /source/src/interpreter.c:897:21 ijl_eval_thunk at /source/src/toplevel.c:768:18 jl_toplevel_eval_flex at /source/src/toplevel.c:712:26 ijl_toplevel_eval at /source/src/toplevel.c:782:12 ijl_toplevel_eval_in at /source/src/toplevel.c:827:13 eval at ./boot.jl:522:0 (pc: 1) #_eval#133 at /source/usr/share/julia/JuliaLowering/src/eval.jl:547:0 (pc: 270) _eval at /source/usr/share/julia/JuliaLowering/src/eval.jl:528:0 [inlined] #eval#131 at /source/usr/share/julia/JuliaLowering/src/eval.jl:520:0 [inlined] eval at /source/usr/share/julia/JuliaLowering/src/eval.jl:515:0 [inlined] #eval#132 at /source/usr/share/julia/JuliaLowering/src/eval.jl:525:0 [inlined] eval at /source/usr/share/julia/JuliaLowering/src/eval.jl:524:0 (pc: 12) unknown function (ip: 0x739e58c2efcd) at (unknown file) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 macro expansion at /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/primitive/const_gate_gen.jl:33:0 [inlined] top-level scope at /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/primitive/const_gate_gen.jl:33:0 (pc: 51) jl_invoke_oneshot at /source/src/gf.c:4395:23 ijl_eval_thunk at /source/src/toplevel.c:760:18 jl_toplevel_eval_flex at /source/src/toplevel.c:712:26 jl_eval_toplevel_stmts at /source/src/toplevel.c:602:15 jl_toplevel_eval_flex at /source/src/toplevel.c:684:27 ijl_toplevel_eval at /source/src/toplevel.c:782:12 ijl_toplevel_eval_in at /source/src/toplevel.c:827:13 eval at ./boot.jl:522:0 (pc: 1) include_string at ./loading.jl:3132:0 (pc: 207) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 _include at ./loading.jl:3192:0 (pc: 122) include at ./Base.jl:326:0 (pc: 1) IncludeInto at ./Base.jl:327:0 (pc: 2) jfptr_IncludeInto_1.1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] do_call at /source/src/interpreter.c:123:26 eval_value at /source/src/interpreter.c:243:16 eval_stmt_value at /source/src/interpreter.c:194:23 [inlined] eval_body at /source/src/interpreter.c:706:13 jl_interpret_toplevel_thunk at /source/src/interpreter.c:897:21 ijl_eval_thunk at /source/src/toplevel.c:768:18 jl_toplevel_eval_flex at /source/src/toplevel.c:712:26 ijl_toplevel_eval at /source/src/toplevel.c:782:12 ijl_toplevel_eval_in at /source/src/toplevel.c:827:13 eval at ./boot.jl:522:0 (pc: 1) #_eval#133 at /source/usr/share/julia/JuliaLowering/src/eval.jl:547:0 (pc: 270) _eval at /source/usr/share/julia/JuliaLowering/src/eval.jl:528:0 [inlined] #eval#131 at /source/usr/share/julia/JuliaLowering/src/eval.jl:520:0 [inlined] eval at /source/usr/share/julia/JuliaLowering/src/eval.jl:515:0 (pc: 14) unknown function (ip: 0x739e58c490d8) at (unknown file) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] do_call at /source/src/interpreter.c:123:26 eval_value at /source/src/interpreter.c:243:16 eval_stmt_value at /source/src/interpreter.c:194:23 [inlined] eval_body at /source/src/interpreter.c:706:13 jl_interpret_toplevel_thunk at /source/src/interpreter.c:897:21 ijl_eval_thunk at /source/src/toplevel.c:768:18 jl_toplevel_eval_flex at /source/src/toplevel.c:712:26 jl_eval_toplevel_stmts at /source/src/toplevel.c:602:15 jl_toplevel_eval_flex at /source/src/toplevel.c:684:27 ijl_toplevel_eval at /source/src/toplevel.c:782:12 ijl_toplevel_eval_in at /source/src/toplevel.c:827:13 eval at ./boot.jl:522:0 (pc: 1) include_string at ./loading.jl:3132:0 (pc: 207) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 _include at ./loading.jl:3192:0 (pc: 122) include at ./Base.jl:326:0 (pc: 1) IncludeInto at ./Base.jl:327:0 (pc: 2) jfptr_IncludeInto_1.1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] do_call at /source/src/interpreter.c:123:26 eval_value at /source/src/interpreter.c:243:16 eval_stmt_value at /source/src/interpreter.c:194:23 [inlined] eval_body at /source/src/interpreter.c:706:13 jl_interpret_toplevel_thunk at /source/src/interpreter.c:897:21 ijl_eval_thunk at /source/src/toplevel.c:768:18 jl_toplevel_eval_flex at /source/src/toplevel.c:712:26 jl_eval_toplevel_stmts at /source/src/toplevel.c:602:15 jl_toplevel_eval_flex at /source/src/toplevel.c:684:27 ijl_toplevel_eval at /source/src/toplevel.c:782:12 ijl_toplevel_eval_in at /source/src/toplevel.c:827:13 eval at ./boot.jl:522:0 (pc: 1) include_string at ./loading.jl:3132:0 (pc: 207) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 _include at ./loading.jl:3192:0 (pc: 122) include at ./Base.jl:326:0 (pc: 1) IncludeInto at ./Base.jl:327:0 (pc: 2) jfptr_IncludeInto_1.1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] do_call at /source/src/interpreter.c:123:26 eval_value at /source/src/interpreter.c:243:16 eval_stmt_value at /source/src/interpreter.c:194:23 [inlined] eval_body at /source/src/interpreter.c:706:13 jl_interpret_toplevel_thunk at /source/src/interpreter.c:897:21 ijl_eval_thunk at /source/src/toplevel.c:768:18 jl_toplevel_eval_flex at /source/src/toplevel.c:712:26 jl_eval_toplevel_stmts at /source/src/toplevel.c:602:15 jl_eval_module_expr at /source/src/toplevel.c:263:5 [inlined] jl_toplevel_eval_flex at /source/src/toplevel.c:665:27 jl_eval_toplevel_stmts at /source/src/toplevel.c:602:15 jl_toplevel_eval_flex at /source/src/toplevel.c:684:27 jl_eval_toplevel_stmts at /source/src/toplevel.c:602:15 jl_toplevel_eval_flex at /source/src/toplevel.c:684:27 ijl_toplevel_eval at /source/src/toplevel.c:782:12 ijl_toplevel_eval_in at /source/src/toplevel.c:827:13 eval at ./boot.jl:522:0 (pc: 1) include_string at ./loading.jl:3132:0 (pc: 207) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 _include at ./loading.jl:3192:0 (pc: 122) include at ./Base.jl:325:0 (pc: 1) include_package_for_output at ./loading.jl:3296:0 (pc: 837) jfptr_include_package_for_output_1.1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] do_call at /source/src/interpreter.c:123:26 eval_value at /source/src/interpreter.c:243:16 eval_stmt_value at /source/src/interpreter.c:194:23 [inlined] eval_body at /source/src/interpreter.c:706:13 jl_interpret_toplevel_thunk at /source/src/interpreter.c:897:21 ijl_eval_thunk at /source/src/toplevel.c:768:18 jl_toplevel_eval_flex at /source/src/toplevel.c:712:26 jl_eval_toplevel_stmts at /source/src/toplevel.c:602:15 jl_toplevel_eval_flex at /source/src/toplevel.c:684:27 ijl_toplevel_eval at /source/src/toplevel.c:782:12 ijl_toplevel_eval_in at /source/src/toplevel.c:827:13 eval at ./boot.jl:522:0 (pc: 1) include_string at ./loading.jl:3132:0 (pc: 207) include_string at ./loading.jl:3142:0 [inlined] exec_options at ./client.jl:353:0 (pc: 841) _start at ./client.jl:596:0 (pc: 294) jfptr__start_0.1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] true_main at /source/src/jlapi.c:971:29 jl_repl_entrypoint at /source/src/jlapi.c:1138:15 main at /source/cli/loader_exe.c:58:15 unknown function (ip: 0x739e84aaa249) at /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) unknown function (ip: 0x4010b8) at /workspace/srcdir/glibc-2.17/csu/../sysdeps/x86_64/start.S unknown function (ip: (nil)) at (unknown file)   ============================================================== Profile collected. A report will print at the next yield point. Disabling --trace-compile ==============================================================  ====================================================================================== Information request received. A stacktrace will print followed by a 1.0 second profile. --trace-compile is enabled during profile collection. ====================================================================================== cmd: /opt/julia/bin/julia 180 running 0 of 1 signal (10): User defined signal 1 epoll_pwait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) uv__io_poll at /workspace/srcdir/libuv/src/unix/linux.c:1404:0 uv_run at /workspace/srcdir/libuv/src/unix/core.c:430:0 ijl_task_get_next at /source/src/scheduler.c:524:34 wait at ./task.jl:1248:0 (pc: 107) wait_forever at ./task.jl:1170:0 (pc: 4) jfptr_wait_forever_0.1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] start_task at /source/src/task.c:1276:19 unknown function (ip: (nil)) at (unknown file) ============================================================== Profile collected. A report will print at the next yield point. Disabling --trace-compile ============================================================== ┌ Warning: There were no samples collected in one or more groups. │ This may be due to idle threads, or you may need to run your │ program longer (perhaps by running it multiple times), │ or adjust the delay between samples with `Profile.init()`. └ @ Profile /opt/julia/share/julia/stdlib/v1.14/Profile/src/Profile.jl:1361 Overhead ╎ [+additional indent] Count File:Line Function ========================================================= Thread 1 (default) Task 0x00007bce84bd73a0 Total snapshots: 243. Utilization: 0% ╎243 @Base/task.jl:1170 wait_forever() 242╎ 243 @Base/task.jl:1248 wait() │ exception = │ This interactive function requires a stdlib to be loaded, and package code should instead use it directly from that stdlib. │ Stacktrace: │ [1] error(s::String) │ @ Base error.jl:56 │ [2] require_stdlib(package_uuidkey::Base.PkgId, ext::Nothing, from::Module) │ @ Base loading.jl:3024 │ [3] require_stdlib(package_uuidkey::Base.PkgId) │ @ Base loading.jl:3020 [inlined] │ [4] macro expansion │ @ some.jl:157 [inlined] │ [5] profile_printing_listener(cond::Base.AsyncCondition) │ @ Base Base.jl:357 │ [6] (::Base.var"#start_profile_listener##0#start_profile_listener##1"{Base.AsyncCondition})() │ @ Base Base.jl:376 └ @ Base Base.jl:367 98362721517 deps_ns=3947719174 compilation_ns=0 methods=8662 ERROR: LoadError: LoweringError: #= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:159 =# - Found unexpected binding of kind static_parameter Expression:  #₁₁/T Containing expressions:  (= #₃₈/T #₁₁/T)  (= #₃ (call core.svec (call core.svec #₂₇/#eliminate_nested#_flatten##0 #₁₁/T) (call core.svec) SourceLocation:/home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:159:0))  (= #₃ (call core.svec (call core.svec (function_type #₁₂/_flatten) #₁₁/T) (call core.svec) SourceLocation:/home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:159:0))  Detailed provenance:  #₁₁/T  └─ T  └─ T  └─ T  ├─ @ /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:159  └─ (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1 =#) "circuit optimisation\n" (module true Optimise (block (using (. YaoBlocks) (. YaoBlocks ConstGate)) (using (: (. YaoBlocks) (. NotImplementedError))) (export replace_block flatten_basic simplify raise_chain canonicalize to_basictypes is_pauli) (export merge_pauli eliminate_nested merge_scale combine_similar) (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:11 =#) " replace_block(actor, tree::AbstractBlock) -> AbstractBlock\n replace_block(pair::Pair{Type{ST}, TT}, tree::AbstractBlock) -> AbstractBlock\n\nreplace blocks in a circuit, where `actor` is a function that given input block,\nreturns the block to replace, or `nothing` for skip replacing and visit sibling.\nIf `pair` is provided, then replace original block with type `ST` with new block (`pair.second`).\n" (function (call replace_block actor (:: tree AbstractBlock)) (block (= res (call actor tree)) (if (|| (call === res tree) (call === res nothing)) (block (return (call chsubblocks tree (. replace_block (tuple (call Ref actor) (call subblocks tree)))))) (block (return res)))))) (function (where (call replace_block (:: pair (curly Pair ST TT)) (:: tree AbstractBlock)) (<: ST AbstractBlock) (<: TT AbstractBlock)) (block (call replace_block (-> x (block (if (call == x (. pair (inert first))) (. pair (inert second)) nothing))) tree))) (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:36 =#) " to_basictypes(block::AbstractBlock)\n\nconvert gates to basic types\n\n * ChainBlock\n * PutBlock\n * PrimitiveBlock\n" (function to_basictypes)) (= (call to_basictypes (:: block PrimitiveBlock)) (block block)) (= (call to_basictypes (:: block MixedUnitaryChannel)) (block block)) (= (call to_basictypes (:: block KrausChannel)) (block block)) (= (call to_basictypes (:: block DepolarizingChannel)) (block block)) (= (call to_basictypes (:: block SuperOp)) (block block)) (function (call to_basictypes (:: block AbstractBlock)) (block (call throw (call NotImplementedError (inert to_basictypes) (call typeof block))))) (function (call to_basictypes (:: block RepeatedBlock)) (block (call chain (. block (inert n)) (call map (-> i (block (call put (. block (inert n)) (call => i (call content block))))) (. block (inert locs)))))) (= (call to_basictypes (:: block CachedBlock)) (block (call content block))) (function (where (call to_basictypes (:: block (curly Subroutine D (<: PrimitiveBlock)))) D) (block (call put (call nqudits block) (call => (. block (inert locs)) (call content block))))) (function (call to_basictypes (:: block Subroutine)) (block (call to_basictypes (call map_address (call content block) (call AddressInfo (. block (inert n)) (vect (... (. block (inert locs))))))))) (function (where (call to_basictypes (:: block (curly Subroutine D (<: Measure)))) D) (block (call map_address (call content block) (call AddressInfo (call nqudits block) (vect (... (. block (inert locs)))))))) (= (call to_basictypes (:: block Daggered)) (block (call Daggered (. block (inert content))))) (= (call to_basictypes (:: block Scale)) (block (call Scale (. block (inert alpha)) (. block (inert content))))) (= (call to_basictypes (:: block KronBlock)) (block (call chain (. block (inert n)) (comprehension (generator (call put (. block (inert n)) (call => i (ref block i))) (= i (. block (inert locs)))))))) (= (call to_basictypes (:: block (curly Union Add PutBlock ChainBlock ControlBlock))) (block block)) (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:76 =#) " is_pauli(x)\n\nCheck if `x` is an element of pauli group.\n" (= (call is_pauli (... xs)) (block (call all is_pauli xs)))) (= (call is_pauli (:: (curly Union XGate YGate ZGate I2Gate))) (block true)) (= (call is_pauli (:: AbstractBlock)) (block false)) (function (call is_pauli (:: s Scale)) (block (if (|| (call == (call factor s) im) (|| (call == (call factor s) (call - im)) (|| (call == (call factor s) 1) (call == (call factor s) -1)))) (block (return (call is_pauli (call content s)))) (block (return false))))) (for (= G (vect (inert I2) (inert X) (inert Y) (inert Z))) (block (= ImG (call Symbol (inert Im) G)) (= nImG (call Symbol (inert nIm) G)) (= nG (call Symbol (inert n) G)) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:97 =#) (const (= ($ ImG) (call * im ($ G))))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:98 =#) (const (= ($ nImG) (call * (call - im) ($ G))))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:99 =#) (const (= ($ nG) (call - ($ G))))))) (= (call merge_pauli x) (block x)) (= (call merge_pauli (:: x AbstractBlock) (:: y AbstractBlock)) (block (call * x y))) (function (call merge_pauli (:: ex ChainBlock)) (block (if (call != (. ex (inert n)) 1) (block (return ex))) (= L (call length ex)) (= new_ex (call chain 1)) (= iterm L) (while (call > iterm 0) (block (if (&& (call > iterm 1) (call is_pauli (ref ex iterm) (ref ex (call - iterm 1)))) (block (call pushfirst! new_ex (call merge_pauli (ref ex iterm) (ref ex (call - iterm 1)))) (= iterm (call - iterm 2))) (block (call pushfirst! new_ex (ref ex iterm)) (unknown_head iterm 1))))) (return new_ex))) (= (call merge_pauli (:: XGate) (:: YGate)) (block ImZ)) (= (call merge_pauli (:: XGate) (:: ZGate)) (block (call - ImY))) (= (call merge_pauli (:: YGate) (:: XGate)) (block (call - ImZ))) (= (call merge_pauli (:: YGate) (:: ZGate)) (block ImX)) (= (call merge_pauli (:: ZGate) (:: XGate)) (block ImY)) (= (call merge_pauli (:: ZGate) (:: YGate)) (block nImX)) (for (= G (vect (inert X) (inert Y) (inert Z))) (block (= GT (call Symbol G (inert Gate))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:138 =#) (= (call merge_pauli (:: I2Gate) (:: x ($ GT))) (block x))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:139 =#) (= (call merge_pauli (:: x ($ GT)) (:: I2Gate)) (block x))) (macrocall @eval :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:140 =#) (= (call merge_pauli (:: ($ GT)) (:: ($ GT))) (block I2))))) (= (call merge_pauli (:: I2Gate) (:: I2Gate)) (block I2)) (= (call eliminate_nested (:: ex AbstractBlock)) (block ex)) (function (call eliminate_nested (:: ex PutBlock)) (block (= content (call eliminate_nested (. ex (inert content)))) (if (call isa content PutBlock) (block (return (call put (call nqubits ex) (call => (call map (-> x (block (ref (. ex (inert locs)) x))) (. content (inert locs))) (. content (inert content)))))) (block (return ex))))) (function (where (call eliminate_nested (:: ex T)) (<: T (curly Union ChainBlock Add))) (block (= (call _flatten x) (block (tuple x))) (= (call _flatten (:: x T)) (block (call subblocks x))) (&& (call isone (call length ex)) (return (call first (call subblocks ex)))) (return (call chsubblocks ex (call collect (curly AbstractBlock (call nlevel ex)) (call (. Iterators (inert flatten)) (call map _flatten (call subblocks ex)))))))) (= (call raise_chain (:: ex AbstractBlock)) (block ex)) (= (call raise_chain (:: ex ChainBlock)) (block (call chain (call nqubits ex) (comprehension (generator (call raise_chain block) (= block ex)))))) (function (call raise_chain (:: ex PutBlock)) (block (= content (call raise_chain (. ex (inert content)))) (if (call isa content ChainBlock) (block (return (call chain (call nqubits ex) (comprehension (generator (call put (call nqubits ex) (call => (. ex (inert locs)) block)) (= block content)))))) (block (return ex))))) (= (call _unscale (:: x AbstractBlock)) (block x)) (= (call _unscale (:: x Scale)) (block (call content x))) (= (call merge_alpha alpha (:: x AbstractBlock)) (block alpha)) (= (call merge_alpha alpha (:: x Scale)) (block (call * alpha (. x (inert alpha))))) (= (where (call merge_alpha alpha (:: x (curly Scale (curly Val S)))) S) (block (call * alpha S))) (= (call merge_alpha (:: Nothing) (:: x Scale)) (block (. x (inert alpha)))) (= (where (call merge_alpha (:: Nothing) (:: x (curly Scale (curly Val S)))) S) (block S)) (= (call merge_alpha (:: Nothing) (:: x AbstractBlock)) (block nothing)) (= (call merge_scale (:: ex AbstractBlock)) (block ex)) (= (call _one x) (block (call one x))) (= (where (call _one (:: (curly Type (curly Val S)))) S) (block (call one S))) (= (where (call _one (:: (curly Val S))) S) (block (call one S))) (function (where (call merge_scale (:: ex (curly Union (curly Scale S N) (curly ChainBlock N)))) S N) (block (= alpha nothing) (for (= each (call subblocks ex)) (block (= alpha (call merge_alpha alpha each)))) (= ex (call chsubblocks ex (call map _unscale (call subblocks ex)))) (if (call === alpha nothing) (block (return ex)) (block (return (call * alpha ex)))))) (= (call combine_similar (:: ex AbstractBlock)) (block ex)) (= (call combine_alpha alpha x) (block alpha)) (= (call combine_alpha alpha (:: x AbstractBlock)) (block (call + alpha 1))) (= (call combine_alpha alpha (:: x Scale)) (block (call + alpha (. x (inert alpha))))) (= (where (call combine_alpha alpha (:: x (curly Scale (curly Val S)))) S) (block (call + alpha S))) (function (where (call combine_similar (:: ex (curly Add D))) D) (block (= table (call zeros Bool (call length ex))) (= list (ref (curly AbstractBlock D))) (= p 1) (while (call <= p (call length ex)) (block (if (call == (ref table p) true) (block (unknown_head p 1)) (block (= term (ref ex p)) (= (ref table p) true) (= alpha 1) (for (= (tuple k each) (call enumerate ex)) (block (if (call == (ref table k) true) (block (continue)) (block (if (call == (call _unscale term) (call _unscale each)) (block (= alpha (call combine_alpha alpha each)) (= (ref table k) true))))))) (if (call != alpha 0) (block (= alpha (if (call == (call imag alpha) 0) (call real alpha) alpha)) (= alpha (if (call isinteger alpha) (call Integer alpha) alpha)) (call push! list (call * alpha term)))))))) (if (call isempty list) (block (return (call Add (. ex (inert n))))) (block (return (call Add (. ex (inert n)) list)))))) (const (= __default_simplification_rules__ (ref Function merge_pauli eliminate_nested merge_scale combine_similar))) (const (= __flatten_basic__ (ref Function eliminate_nested to_basictypes))) (const (= __canonicalize__ (ref Function eliminate_nested raise_chain to_basictypes))) (= (call flatten_basic (:: ex AbstractBlock)) (block (call simplify (parameters (kw rules __flatten_basic__)) ex))) (= (call canonicalize (:: ex AbstractBlock)) (block (call simplify (parameters (kw rules __canonicalize__)) ex))) (macrocall @doc :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:270 =#) " simplify(block[; rules=__default_simplification_rules__])\n\nSimplify a block tree accroding to given rules, default to use\n`YaoBlocks.Optimise.__default_simplification_rules__`.\n" (function (call simplify (parameters (kw rules __default_simplification_rules__)) (:: ex AbstractBlock)) (block (= out1 (call simplify_pass rules ex)) (= out2 (call simplify_pass rules out1)) (= counter 1) (while (&& (call isa out1 AbstractBlock) (&& (call isa out2 AbstractBlock) (call != out2 out1))) (block (= out1 (call simplify_pass rules out2)) (= out2 (call simplify_pass rules out1)) (unknown_head counter 1) (if (call > counter 1000) (block (macrocall @warn :(#= /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:285 =#) "possible infinite loop in simplification rules. Breaking") (return out2))))) (return out2)))) (function (call simplify_pass rules ex) (block (if (call > (call length (call subblocks ex)) 0) (block (= ex (call chsubblocks ex (call map (-> x (block (call simplify_pass rules x))) (call subblocks ex)))))) (for (= rule rules) (block (= ex (call rule ex)))) (return ex))))))  └─ @ /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1  Stacktrace:  [1] _renumber(ctx::Base.JuliaLowering.LinearIRContext{Dict{Symbol, Dict{Int64, Any}}}, ssa_rewrites::Dict{Int64, Int64}, slot_rewrites::Dict{Int64, Int64}, label_table::Dict{Int64, Int64}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/linear_ir.jl:1097  [2] renumber_body(ctx::Base.JuliaLowering.LinearIRContext{Dict{Symbol, Dict{Int64, Any}}}, input_code::Base.JuliaSyntax.SyntaxList{Dict{Symbol, Dict{Int64, Any}}, Vector{Int64}}, slot_rewrites::Dict{Int64, Int64})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/linear_ir.jl:1162  [3] compile_lambda(outer_ctx::Base.JuliaLowering.LinearIRContext{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/linear_ir.jl:1257  [4] linearize_ir(ctx::Base.JuliaLowering.ClosureConversionCtx{Dict{Symbol, Dict{Int64, Any}}}, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/linear_ir.jl:1287  [5] lower_step(iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}, mod::Module, world::UInt64; soft_scope::Nothing)  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:93  [6] _eval(mod::Module, iter::Base.JuliaLowering.LoweringIterator{Dict{Symbol, Dict{Int64, Any}}}; soft_scope::Nothing)  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:532  [7] eval(mod::Module, ex::Base.JuliaSyntax.SyntaxTree{Dict{Symbol, Dict{Int64, Any}}}; macro_world::UInt64, soft_scope::Nothing, opts::@Kwargs{expr_compat_mode::Bool})  @ Base.JuliaLowering /source/usr/share/julia/JuliaLowering/src/eval.jl:520 [inlined]  [8] top-level scope  @ ~/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1  [9] macro expansion  @ ~/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1 [inlined]  [10] include(mapexpr::Function, mod::Module, _path::String)  @ Base Base.jl:326  [11] top-level scope  @ ~/.julia/packages/YaoBlocks/jhgUh/src/treeutils/treeutils.jl:7  [12] include(mapexpr::Function, mod::Module, _path::String)  @ Base Base.jl:326  [13] top-level scope  @ ~/.julia/packages/YaoBlocks/jhgUh/src/YaoBlocks.jl:129  [14] include(mod::Module, _path::String)  @ Base Base.jl:325  [15] include_package_for_output(pkg::Base.PkgId, input::String, syntax_version::VersionNumber, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)  @ Base loading.jl:3296  [16] top-level scope  @ stdin:5  [17] eval(m::Module, e::Any)  @ Core boot.jl:522  [18] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)  @ Base loading.jl:3132  [19] include_string(m::Module, txt::String, fname::String)  @ Base loading.jl:3142 [inlined]  [20] exec_options(opts::Base.JLOptions)  @ Base client.jl:353  [21] _start()  @ Base client.jl:596 in expression starting at /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/optimise.jl:1 in expression starting at /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/treeutils/treeutils.jl:7 in expression starting at /home/pkgeval/.julia/packages/YaoBlocks/jhgUh/src/YaoBlocks.jl:1 in expression starting at stdin:5 1 dependency had output during precompilation: ┌ YaoBlocks │ [Output was shown above] └ ====================================================================================== Information request received. A stacktrace will print followed by a 1.0 second profile. --trace-compile is enabled during profile collection. ====================================================================================== cmd: /opt/julia/bin/julia 1 running 0 of 1 signal (10): User defined signal 1 epoll_pwait at /lib/x86_64-linux-gnu/libc.so.6 (unknown line) uv__io_poll at /workspace/srcdir/libuv/src/unix/linux.c:1404:0 uv_run at /workspace/srcdir/libuv/src/unix/core.c:430:0 ijl_task_get_next at /source/src/scheduler.c:524:34 wait at ./task.jl:1248:0 (pc: 107) wait_forever at ./task.jl:1170:0 (pc: 4) jfptr_wait_forever_0.1 at /opt/julia/lib/julia/sys.so (unknown line) _jl_invoke at /source/src/gf.c:4360:23 [inlined] ijl_apply_generic at /source/src/gf.c:4598:12 jl_apply at /source/src/julia.h:2388:12 [inlined] start_task at /source/src/task.c:1276:19 unknown function (ip: (nil)) at (unknown file) ============================================================== Profile collected. A report will print at the next yield point. Disabling --trace-compile ============================================================== ERROR: The following 1 package failed to precompile: YaoBlocks Failed to precompile YaoBlocks [418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df] to "/home/pkgeval/.julia/compiled/v1.14/YaoBlocks/jl_qLHKkT" (ProcessExited(1)). ┌ Warning: There were no samples collected in one or more groups. │ This may be due to idle threads, or you may need to run your │ program longer (perhaps by running it multiple times), │ or adjust the delay between samples with `Profile.init()`. └ @ Profile /opt/julia/share/julia/stdlib/v1.14/Profile/src/Profile.jl:1361 Overhead ╎ [+additional indent] Count File:Line Function ========================================================= Thread 1 (default) Task 0x00007e532dbe8880 Total snapshots: 313. Utilization: 0% ╎313 @Base/task.jl:1170 wait_forever() 312╎ 313 @Base/task.jl:1248 wait() Loading failed after 115.43s ERROR: LoadError: failed process: Process( PkgEval terminated after 2730.42s: test duration exceeded the time limit