Skip to content

Commit 1177911

Browse files
committed
remove TensorKit interface
1 parent 0d872e1 commit 1177911

3 files changed

Lines changed: 0 additions & 37 deletions

File tree

‎Project.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ version = "0.1.0"
66
[deps]
77
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
88
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
9-
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
109
TensorKitSectors = "13a9c161-d5da-41f0-bcbd-e1a08ae0647f"
1110

1211
[compat]

‎src/MultiTensorKit.jl‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ using Pkg
77
using Pkg.Artifacts
88
using TensorKitSectors
99

10-
using TensorKit
11-
import TensorKit: hasblock, dim
12-
1310
include("bimodulesector.jl")
1411

1512
end

‎src/bimodulesector.jl‎

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -280,36 +280,3 @@ function TensorKitSectors.Fsymbol(a::I, b::I, c::I, d::I, e::I, f::I) where {I <
280280
colordict = _get_Fcache(I)[i, j, k, l]
281281
return get!(colordict, (a.label, b.label, c.label, d.label, e.label, f.label), zero_array)
282282
end
283-
284-
# interface with TensorKit where necessary
285-
#-----------------------------------------
286-
287-
# TODO: can remove this once the otimes assert is removed
288-
function TensorKit.fuse(V₁::GradedSpace{I}, V₂::GradedSpace{I}) where {I <: BimoduleSector}
289-
dims = TensorKit.SectorDict{I, Int}()
290-
for a in sectors(V₁), b in sectors(V₂)
291-
a.j == b.i || continue # skip if not compatible
292-
for c in a ⊗ b
293-
dims[c] = get(dims, c, 0) + Nsymbol(a, b, c) * dim(V₁, a) * dim(V₂, b)
294-
end
295-
end
296-
return typeof(V₁)(dims)
297-
end
298-
299-
#TODO: these might not be necessary anymore after TensorKit#291
300-
# check after BlockTensorKit#38
301-
302-
# function TensorKit.unitspace(S::SumSpace{<:GradedSpace{<:BimoduleSector}})
303-
# @assert !isempty(S) "Cannot determine type of empty space"
304-
# return SumSpace(oneunit(first(S.spaces))) # assuming diagonal SumSpace (like in MPSKit)
305-
# end
306-
307-
# function rightunitspace(S::SumSpace{<:GradedSpace{<:BimoduleSector}})
308-
# @assert !isempty(S) "Cannot determine type of empty space"
309-
# return SumSpace(rightunitspace(first(S.spaces)))
310-
# end
311-
312-
# function leftunitspace(S::SumSpace{<:GradedSpace{<:BimoduleSector}})
313-
# @assert !isempty(S) "Cannot determine type of empty space"
314-
# return SumSpace(leftunitspace(first(S.spaces)))
315-
# end

0 commit comments

Comments
 (0)