Skip to content

Commit

Permalink
Update for new TensorKit version
Browse files Browse the repository at this point in the history
  • Loading branch information
leburgel committed Aug 23, 2023
1 parent 67d494b commit f87847f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/heisenberg.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Revise, PEPSKit, TensorKit, TensorKitAD, Zygote, MPSKit
using Revise, PEPSKit, TensorKit, Zygote, MPSKit
using MPSKitModels, LinearAlgebra, OptimKit
using PEPSKit: NORTH,SOUTH,WEST,EAST,NORTHWEST,NORTHEAST,SOUTHEAST,SOUTHWEST,@diffset
using JLD2,ChainRulesCore
Expand Down
2 changes: 1 addition & 1 deletion examples/test_vumps.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Revise, PEPSKit, TensorKit, TensorKitAD, Zygote, MPSKit
using Revise, PEPSKit, TensorKit, Zygote, MPSKit

p = InfinitePEPS(fill(ℂ^2,1,1),fill(ℂ^2,1,1));

Expand Down
4 changes: 2 additions & 2 deletions src/operators/periodicpepo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function PeriodicPEPO(
Pspaces::AbstractArray{S,2},
Nspaces::AbstractArray{S,2},
Espaces::AbstractArray{S,2}=Nspaces
) where {S<:EuclideanSpace}
) where {S<:ElementarySpace}
size(Pspaces) == size(Nspaces) == size(Espaces) ||
throw(ArgumentError("Input spaces should have equal sizes."))

Expand All @@ -61,7 +61,7 @@ end
Allow users to pass in single space.
"""
function PeriodicPEPO(Pspace::S, Nspace::S, Espace::S=Nspace) where {S<:EuclideanSpace}
function PeriodicPEPO(Pspace::S, Nspace::S, Espace::S=Nspace) where {S<:ElementarySpace}
Pspaces = Array{S,2}(undef, (1, 1))
Pspaces[1, 1] = Pspace
Nspaces = Array{S,2}(undef, (1, 1))
Expand Down
4 changes: 2 additions & 2 deletions src/states/abstractpeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Default type for PEPS tensors with a single physical index, and 4 virtual indices,
conventionally ordered as: T : P ← N ⊗ E ⊗ S ⊗ W.
"""
const PEPSTensor{S} = AbstractTensorMap{S, 1, 4} where {S<:EuclideanSpace}
const PEPSTensor{S} = AbstractTensorMap{S, 1, 4} where {S<:ElementarySpace}


"""
Expand All @@ -19,7 +19,7 @@ const PEPSTensor{S} = AbstractTensorMap{S, 1, 4} where {S<:EuclideanSpace}
Default type for PEPO tensors with a single incoming and outgoing physical index, and 4
virtual indices, conventionally ordered as: O : P ⊗ P' ← N ⊗ E ⊗ S ⊗ W.
"""
const PEPOTensor{S} = AbstractTensorMap{S, 2, 4} where {S<:EuclideanSpace}
const PEPOTensor{S} = AbstractTensorMap{S, 2, 4} where {S<:ElementarySpace}

##########################
## Abstract state types ##
Expand Down
4 changes: 2 additions & 2 deletions src/states/infinitepeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function InfinitePEPS(
Pspaces::AbstractArray{S,2},
Nspaces::AbstractArray{S,2},
Espaces::AbstractArray{S,2}=Nspaces
) where {S<:EuclideanSpace}
) where {S<:ElementarySpace}
size(Pspaces) == size(Nspaces) == size(Espaces) ||
throw(ArgumentError("Input spaces should have equal sizes."))

Expand All @@ -50,7 +50,7 @@ end
Allow users to pass in single space.
"""
function InfinitePEPS(Pspace::S, Nspace::S, Espace::S=Nspace) where {S<:EuclideanSpace}
function InfinitePEPS(Pspace::S, Nspace::S, Espace::S=Nspace) where {S<:ElementarySpace}
Pspaces = Array{S,2}(undef, (1, 1))
Pspaces[1, 1] = Pspace
Nspaces = Array{S,2}(undef, (1, 1))
Expand Down

0 comments on commit f87847f

Please sign in to comment.