Skip to content

TensorNetwork example in manual does not work #385

Description

@ChiMaoShuPhy

I copy the example on https://bsc-quantic.github.io/Tenet.jl/stable/manual/design/tensor-network

using Tenet

 tn = TensorNetwork([
           Tensor(zeros(2,2), (:i, :m)), # A
           Tensor(zeros(2,2,2), (:i, :j, :p)), # B
           Tensor(zeros(2,2,2), (:n, :j, :k)), # C
           Tensor(zeros(2,2,2), (:p, :k, :l)), # D
           Tensor(zeros(2,2,2), (:m, :n, :o)), # E
           Tensor(zeros(2,2), (:o, :l)), # F
       ])

leads to the following error message

ERROR: MethodError: no method matching TensorNetwork(::Vector{Tensor{Float64, N, A} where {N, A<:AbstractArray{Float64, N}}})
The type `TensorNetwork` exists, but no method is defined for this combination of argument types when trying to construct it.

Closest candidates are:
  TensorNetwork()
   @ Tangles ~/.julia/packages/Tangles/KzohY/src/Interfaces/TensorNetwork.jl:15

I tested Tenet v0.10.3 on Julia 1.11.7 and latest stable release 1.12.2, both version has the same issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions