Skip to content

Commit 8e56798

Browse files
authored
Remove some straggling integer space specifiers (#297)
1 parent e98b8d9 commit 8e56798

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

src/networks/tensors.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
6463
The tensor elements are generated based on `f` and the element type is specified in `T`.
6564
"""
6665
function PEPSTensor(
@@ -70,13 +69,6 @@ function PEPSTensor(
7069
) where {T, S <: ElementarySpace}
7170
return f(T, Pspace Nspace Espace Sspace Wspace)
7271
end
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

8173
Base.rotl90(t::PEPSTensor) = permute(t, ((1,), (3, 4, 5, 2)))
8274
Base.rotr90(t::PEPSTensor) = permute(t, ((1,), (5, 2, 3, 4)))

src/operators/transfermatrix.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,6 @@ function initialize_mps(
157157
]
158158
)
159159
end
160-
function initialize_mps(f, T, O::InfiniteTransferMatrix, χ::Int)
161-
return InfiniteMPS(
162-
[
163-
f(T, ℂ^χ * _elementwise_dual(north_virtualspace(O, i)), ℂ^χ) for i in 1:length(O)
164-
]
165-
)
166-
end
167160
function initialize_mps(
168161
f, T, O::MultilineTransferMatrix, virtualspaces::AbstractArray{S, 2}
169162
) where {S}
@@ -180,9 +173,6 @@ end
180173
function initialize_mps(f, T, O::MultilineTransferMatrix, V::ElementarySpace)
181174
return initialize_mps(f, T, O, repeat([V], length(O), length(O[1])))
182175
end
183-
function initialize_mps(f, T, O::MultilineTransferMatrix, χ::Int)
184-
return initialize_mps(f, T, O, repeat([ℂ^χ], length(O), length(O[1])))
185-
end
186176

187177
@doc """
188178
MPSKit.expectation_value(st::InfiniteMPS, op::Union{InfiniteTransferPEPS,InfiniteTransferPEPO})

0 commit comments

Comments
 (0)