@@ -59,8 +59,7 @@ const PEPSTensor{S <: ElementarySpace} = AbstractTensorMap{<:Any, S, 1, 4}
5959 PEPSTensor(f, ::Type{T}, Pspace::S, Nspace::S,
6060 [Espace::S], [Sspace::S], [Wspace::S]) where {T,S<:Union{Int,ElementarySpace}}
6161
62- Construct a PEPS tensor based on the physical, north, east, west and south spaces.
63- Alternatively, only the space dimensions can be provided and ℂ is assumed as the field.
62+ Construct a PEPS tensor based on the physical, north, east, south and west spaces.
6463The tensor elements are generated based on `f` and the element type is specified in `T`.
6564"""
6665function PEPSTensor (
@@ -70,13 +69,6 @@ function PEPSTensor(
7069 ) where {T, S <: ElementarySpace }
7170 return f (T, Pspace ← Nspace ⊗ Espace ⊗ Sspace ⊗ Wspace)
7271end
73- function PEPSTensor (
74- f, :: Type{T} ,
75- Pspace:: Int ,
76- Nspace:: Int , Espace:: Int = Nspace, Sspace:: Int = Nspace, Wspace:: Int = Espace,
77- ) where {T}
78- return f (T, ℂ^ Pspace ← ℂ^ Nspace ⊗ ℂ^ Espace ⊗ (ℂ^ Sspace)' ⊗ (ℂ^ Wspace)' )
79- end
8072
8173Base. rotl90 (t:: PEPSTensor ) = permute (t, ((1 ,), (3 , 4 , 5 , 2 )))
8274Base. rotr90 (t:: PEPSTensor ) = permute (t, ((1 ,), (5 , 2 , 3 , 4 )))
0 commit comments