Skip to content

Commit b3db147

Browse files
committed
change oplus to boxplus
1 parent ce2d7ed commit b3db147

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/algorithms/timestep/taylorcluster.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ function make_time_mpo(
186186
H′ = copy(parent(H))
187187

188188
V_left = left_virtualspace(H[1])
189-
V_left′ = BlockTensorKit.oplus(V_left, oneunit(V_left), oneunit(V_left))
189+
V_left′ = (V_left, oneunit(V_left), oneunit(V_left))
190190
H′[1] = similar(H[1], V_left′ space(H[1], 2) domain(H[1]))
191191
for (I, v) in nonzero_pairs(H[1])
192192
H′[1][I] = v
193193
end
194194

195195
V_right = right_virtualspace(H[end])
196-
V_right′ = BlockTensorKit.oplus(oneunit(V_right), oneunit(V_right), V_right)
196+
V_right′ = (oneunit(V_right), oneunit(V_right), V_right)
197197
H′[end] = similar(H[end], codomain(H[end]) space(H[end], 3)' V_right′)
198198
for (I, v) in nonzero_pairs(H[end])
199199
H′[end][I[1], 1, 1, end] = v

src/algorithms/timestep/wii.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ function make_time_mpo(
9494
H′ = copy(parent(H))
9595

9696
V_left = left_virtualspace(H[1])
97-
V_left′ = BlockTensorKit.oplus(V_left, oneunit(V_left), oneunit(V_left))
97+
V_left′ = (V_left, oneunit(V_left), oneunit(V_left))
9898
H′[1] = similar(H[1], V_left′ space(H[1], 2) domain(H[1]))
9999
for (I, v) in nonzero_pairs(H[1])
100100
H′[1][I] = v
101101
end
102102

103103
V_right = right_virtualspace(H[end])
104-
V_right′ = BlockTensorKit.oplus(oneunit(V_right), oneunit(V_right), V_right)
104+
V_right′ = (oneunit(V_right), oneunit(V_right), V_right)
105105
H′[end] = similar(H[end], codomain(H[end]) space(H[end], 3)' V_right′)
106106
for (I, v) in nonzero_pairs(H[end])
107107
H′[end][I[1], 1, 1, end] = v

src/operators/mpohamiltonian.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,9 +689,9 @@ function Base.:+(
689689
D = H₁[i].D + H₂[i].D
690690

691691
Vleft = i == 1 ? left_virtualspace(H₁, 1) :
692-
BlockTensorKit.oplus(Vtriv, left_virtualspace(A), Vtriv)
692+
(Vtriv, left_virtualspace(A), Vtriv)
693693
Vright = i == N ? right_virtualspace(H₁, N) :
694-
BlockTensorKit.oplus(Vtriv, right_virtualspace(A), Vtriv)
694+
(Vtriv, right_virtualspace(A), Vtriv)
695695
V = Vleft physicalspace(A) physicalspace(A) Vright
696696

697697
H[i] = eltype(H)(V, A, B, C, D)
@@ -711,8 +711,8 @@ function Base.:+(
711711
C = cat(H₁[i].C, H₂[i].C; dims = 3)
712712
D = H₁[i].D + H₂[i].D
713713

714-
Vleft = BlockTensorKit.oplus(Vtriv, left_virtualspace(A), Vtriv)
715-
Vright = BlockTensorKit.oplus(Vtriv, right_virtualspace(A), Vtriv)
714+
Vleft = (Vtriv, left_virtualspace(A), Vtriv)
715+
Vright = (Vtriv, right_virtualspace(A), Vtriv)
716716
V = Vleft physicalspace(A) physicalspace(A) Vright
717717

718718
H[i] = eltype(H)(V, A, B, C, D)

src/operators/ortho.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ function left_canonicalize!(
2222
Q, R = _left_orth!(tmp; alg, trunc = trscheme)
2323

2424
if dim(R) == 0 # fully truncated
25-
V = BlockTensorKit.oplus(oneunit(S), oneunit(S))
25+
V = oneunit(S) oneunit(S)
2626
Q1 = typeof(W.A)(undef, SumSpace{S}() physicalspace(W) physicalspace(W) SumSpace{S}())
2727
Q2 = typeof(W.C)(undef, physicalspace(W) physicalspace(W) SumSpace{S}())
2828
else
29-
V = BlockTensorKit.oplus(oneunit(S), space(R, 1), oneunit(S))
29+
V = (oneunit(S), space(R, 1), oneunit(S))
3030
scale!(Q, d)
3131
scale!(R, inv(d))
3232
Q1 = typeof(W.A)(undef, SumSpace{S}() physicalspace(W) physicalspace(W) space(R, 1))
@@ -38,7 +38,7 @@ function left_canonicalize!(
3838
Q, R = _left_orth!(tmp; alg, trunc = trscheme)
3939

4040
if dim(R) == 0 # fully truncated
41-
V = BlockTensorKit.oplus(oneunit(S), oneunit(S))
41+
V = oneunit(S) oneunit(S)
4242
Q1 = typeof(W.A)(undef, SumSpace{S}() physicalspace(W) physicalspace(W) SumSpace{S}())
4343
Q2 = typeof(W.C)(undef, physicalspace(W) physicalspace(W) SumSpace{S}())
4444
else
@@ -47,7 +47,7 @@ function left_canonicalize!(
4747
Q′ = transpose(Q, ((2, 3), (1, 4)))
4848
Q1 = Q′[2:end, 1, 1, 1]
4949
Q2 = removeunit(SparseBlockTensorMap(Q′[1:1, 1, 1, 1]), 1)
50-
V = BlockTensorKit.oplus(oneunit(S), right_virtualspace(Q′), oneunit(S))
50+
V = (oneunit(S), right_virtualspace(Q′), oneunit(S))
5151
end
5252
H[i] = JordanMPOTensor(codomain(W) physicalspace(W) V, Q1, W.B, Q2, W.D)
5353
end
@@ -108,11 +108,11 @@ function right_canonicalize!(
108108
R, Q = _right_orth!(tmp; alg, trunc = trscheme)
109109

110110
if dim(R) == 0
111-
V = BlockTensorKit.oplus(oneunit(S), oneunit(S))
111+
V = oneunit(S) oneunit(S)
112112
Q1 = typeof(W.A)(undef, SumSpace{S}() physicalspace(W) physicalspace(W) SumSpace{S}())
113113
Q2 = typeof(W.B)(undef, SumSpace{S}() physicalspace(W) physicalspace(W))
114114
else
115-
V = BlockTensorKit.oplus(oneunit(S), space(Q, 1), oneunit(S))
115+
V = (oneunit(S), space(Q, 1), oneunit(S))
116116
scale!(Q, d)
117117
scale!(R, inv(d))
118118
Q1 = typeof(W.A)(undef, space(Q, 1) physicalspace(W) physicalspace(W) SumSpace{S}())
@@ -123,7 +123,7 @@ function right_canonicalize!(
123123
tmp = transpose(cat(insertleftunit(B′, 4), W.A; dims = 4), ((1,), (3, 4, 2)))
124124
R, Q = _right_orth!(tmp; alg, trunc = trscheme)
125125
if dim(R) == 0
126-
V = BlockTensorKit.oplus(oneunit(S), oneunit(S))
126+
V = oneunit(S) oneunit(S)
127127
Q1 = typeof(W.A)(undef, SumSpace{S}() physicalspace(W) physicalspace(W) SumSpace{S}())
128128
Q2 = typeof(W.B)(undef, SumSpace{S}() physicalspace(W) physicalspace(W))
129129
else
@@ -132,7 +132,7 @@ function right_canonicalize!(
132132
Q′ = transpose(Q, ((1, 4), (2, 3)))
133133
Q1 = SparseBlockTensorMap(Q′[1, 1, 1, 2:end])
134134
Q2 = removeunit(SparseBlockTensorMap(Q′[1, 1, 1, 1:1]), 4)
135-
V = BlockTensorKit.oplus(oneunit(S), left_virtualspace(Q′), oneunit(S))
135+
V = (oneunit(S), left_virtualspace(Q′), oneunit(S))
136136
end
137137
H[i] = JordanMPOTensor(V physicalspace(W) domain(W), Q1, Q2, W.C, W.D)
138138
end

0 commit comments

Comments
 (0)