Skip to content

Import code from Tensors package #51

Import code from Tensors package

Import code from Tensors package #51

Triggered via pull request August 29, 2023 09:59
Status Success
Total duration 16m 37s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

Documenter.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
failed to run `@example` block in src/examples/google-rqc.md:46-50 ```@example circuit # simplify Tensor Network by preemptively contracting trivial cases tn = transform(tn, Tenet.RankSimplification) plot(tn) # hide ``` value = MethodError: no method matching EinExprs.EinExpr(::Vector{Tensor{ComplexF32, 2, Matrix{ComplexF32}}}) Closest candidates are: EinExprs.EinExpr(::Any, !Matched::AbstractDict{Symbol, Int64}) @ EinExprs ~/.julia/packages/EinExprs/2xI0y/src/EinExpr.jl:18 EinExprs.EinExpr(::Any, !Matched::Any) @ EinExprs ~/.julia/packages/EinExprs/2xI0y/src/EinExpr.jl:11
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
failed to run `@example` block in src/examples/google-rqc.md:65-70 ```@example circuit using EinExprs # hide using NetworkLayout # hide path = einexpr(tn, optimizer = Greedy) # hide plot(path, layout=Stress()) # hide ``` value = ArgumentError: Package NetworkLayout not found in current path. - Run `import Pkg; Pkg.add("NetworkLayout")` to install the NetworkLayout package.
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
failed to run `@setup` block in src/quantum/mps.md ```@setup viz using Makie Makie.inline!(true) set_theme!(resolution=(800,200)) using CairoMakie using Tenet using NetworkLayout ``` exception = LoadError: ArgumentError: Package NetworkLayout not found in current path. - Run `import Pkg; Pkg.add("NetworkLayout")` to install the NetworkLayout package. in expression starting at string:8
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
failed to run `@example` block in src/quantum/mps.md:18-31 ```@example viz fig = Figure() # hide tn_open = rand(MatrixProduct{State,Open}, n=10, χ=4) # hide tn_periodic = rand(MatrixProduct{State,Periodic}, n=10, χ=4) # hide plot!(fig[1,1], tn_open, layout=Spring(iterations=1000, C=0.5, seed=100)) # hide plot!(fig[1,2], tn_periodic, layout=Spring(iterations=1000, C=0.5, seed=100)) # hide Label(fig[1,1, Bottom()], "Open") # hide Label(fig[1,2, Bottom()], "Periodic") # hide fig # hide ``` value = MethodError: no method matching contract(::EinExprs.EinExpr) Closest candidates are: contract(::Union{AbstractArray{T, 0}, T}, !Matched::Tensor{T, N, A} where {N, A<:AbstractArray{T, N}}) where T @ Tenet ~/work/Tenet.jl/Tenet.jl/src/Numerics.jl:62 contract(!Matched::Tensor; dims) @ Tenet ~/work/Tenet.jl/Tenet.jl/src/Numerics.jl:50 contract(!Matched::Tensor, !Matched::Tensor; dims) @ Tenet ~/work/Tenet.jl/Tenet.jl/src/Numerics.jl:37 ...
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
failed to run `@example` block in src/quantum/mps.md:38-51 ```@example viz fig = Figure() # hide tn_open = rand(MatrixProduct{Operator,Open}, n=10, χ=4) # hide tn_periodic = rand(MatrixProduct{Operator,Periodic}, n=10, χ=4) # hide plot!(fig[1,1], tn_open, layout=Spring(iterations=1000, C=0.5, seed=100)) # hide plot!(fig[1,2], tn_periodic, layout=Spring(iterations=1000, C=0.5, seed=100)) # hide Label(fig[1,1, Bottom()], "Open") # hide Label(fig[1,2, Bottom()], "Periodic") # hide fig # hide ``` value = MethodError: no method matching contract(::EinExprs.EinExpr) Closest candidates are: contract(::Union{AbstractArray{T, 0}, T}, !Matched::Tensor{T, N, A} where {N, A<:AbstractArray{T, N}}) where T @ Tenet ~/work/Tenet.jl/Tenet.jl/src/Numerics.jl:62 contract(!Matched::Tensor; dims) @ Tenet ~/work/Tenet.jl/Tenet.jl/src/Numerics.jl:50 contract(!Matched::Tensor, !Matched::Tensor; dims) @ Tenet ~/work/Tenet.jl/Tenet.jl/src/Numerics.jl:37 ...
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
failed to run `@setup` block in src/quantum/peps.md ```@setup viz using Makie Makie.inline!(true) set_theme!(resolution=(800,400)) using CairoMakie CairoMakie.activate!(type = "svg") using Tenet using NetworkLayout ``` exception = LoadError: ArgumentError: Package NetworkLayout not found in current path. - Run `import Pkg; Pkg.add("NetworkLayout")` to install the NetworkLayout package. in expression starting at string:9
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
failed to run `@example` block in src/quantum/peps.md:17-30 ```@example viz fig = Figure() # hide tn_open = rand(PEPS{Open}, rows=10, cols=10, χ=4) # hide tn_periodic = rand(PEPS{Periodic}, rows=10, cols=10, χ=4) # hide plot!(fig[1,1], tn_open, layout=Stress(seed=1)) # hide plot!(fig[1,2], tn_periodic, layout=Stress(seed=10,dim=2,iterations=100000)) # hide Label(fig[1,1, Bottom()], "Open") # hide Label(fig[1,2, Bottom()], "Periodic") # hide fig # hide ``` value = UndefVarError: `Stress` not defined
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
failed to run `@example` block in src/quantum/peps.md:34-47 ```@example viz fig = Figure() # hide tn_open = rand(PEPO{Open}, rows=10, cols=10, χ=4) # hide tn_periodic = rand(PEPO{Periodic}, rows=10, cols=10, χ=4) # hide plot!(fig[1,1], tn_open, layout=Stress(seed=1)) # hide plot!(fig[1,2], tn_periodic, layout=Stress(seed=10,dim=2,iterations=100000)) # hide Label(fig[1,1, Bottom()], "Open") # hide Label(fig[1,2, Bottom()], "Periodic") # hide fig # hide ``` value = UndefVarError: `Stress` not defined
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
failed to run `@example` block in src/transformations.md:25-43 ```@example transformation using QuacIO using CairoMakie using Tenet sites = [5, 6, 14, 15, 16, 17, 24, 25, 26, 27, 28, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 62, 63, 64, 65, 66, 67, 72, 73, 74, 75, 76, 83, 84, 85, 94] circuit = QuacIO.parse(joinpath(@__DIR__, "sycamore_53_10_0.qasm"), format=QuacIO.Qflex(), sites=sites) tn = TensorNetwork(circuit) transformed_tn = transform(tn, Tenet.RankSimplification) fig = Figure() # hide ax1 = Axis(fig[1, 1]; title="Original TensorNetwork") # hide p1 = plot!(ax1, tn; node_size=5.) # hide ax2 = Axis(fig[1, 2], title="Transformed TensorNetwork") # hide p2 = plot!(ax2, transformed_tn; node_size=5.) # hide ax1.titlesize=20 # hide ax2.titlesize=20 # hide fig # hide ``` value = MethodError: no method matching EinExprs.EinExpr(::Vector{Tensor{ComplexF32, 2, Matrix{ComplexF32}}}) Closest candidates are: EinExprs.EinExpr(::Any, !Matched::AbstractDict{Symbol, Int64}) @ EinExprs ~/.julia/packages/EinExprs/2xI0y/src/EinExpr.jl:18 EinExprs.EinExpr(::Any, !Matched::Any) @ EinExprs ~/.julia/packages/EinExprs/2xI0y/src/EinExpr.jl:11
Documenter: ../../../.julia/packages/Documenter/bYYzK/src/Utilities/Utilities.jl#L34
15 docstrings not included in the manual: Tenet.layers :: Union{Tuple{As}, Tuple{TensorNetwork{As}, Any}} where As<:Tenet.Composite Tenet.tag! :: Tuple{Tensor, String} Tenet.ansatz :: Union{Tuple{Type{<:TensorNetwork{A}}}, Tuple{A}} where A Tenet.tags :: Tuple{Tensor} Tenet.marginal :: Tuple{Any, Any} Tenet.Arbitrary Base.in :: Tuple{Tensor, TensorNetwork} Base.:* :: Tuple{Tensor, Tensor} Tenet.Composite Tenet.letter :: Tuple{Any} Tenet.hastag :: Tuple{Tensor, String} Tenet.untag! :: Tuple{Tensor, String} Base.size :: Tuple{Tensor} Tenet.tensors :: Tuple{TensorNetwork{<:Quantum}, Integer, Vararg{Any}} Tenet.Ansatz These are docstrings in the checked modules (configured with the modules keyword) that are not included in @docs or @autodocs blocks.