Skip to content

Commit ac09e82

Browse files
committed
fix tests, add 1.5
1 parent 6738862 commit ac09e82

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
matrix:
1313
version:
1414
- '1.4'
15+
- '^1.5-0'
1516
- 'nightly'
1617
os:
1718
- ubuntu-latest

test/tensor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ withcache = TensorOperations.use_cache() ? "with" : "without"
255255
E = dot(A12, HrA12)
256256
@tensor HrA12′[a, s1, s2, c] := rhoL[a, a'] * A1[a', t1, b] * A2[b, t2, c'] * rhoR[c', c] * H[s1, s2, t1, t2]
257257
@tensor HrA12′′[:] := rhoL[-1, 1] * H[-2, -3, 4, 5] * A2[2, 5, 3] * rhoR[3, -4] * A1[1, 4, 2] # should be contracted in exactly same order
258-
@tensor HrA12′′′[a, s1, s2, c] := H[s1, s2, t1, t2] * rhoL[a, a'] * rhoR[c', c] * A1[a', t1, b] * A2[b, t2, c'] order=(a',b,c',t1,t2)# should be contracted in exactly same order
258+
@tensor HrA12′′′[a, s1, s2, c] := rhoL[a, a'] * H[s1, s2, t1, t2] * A2[b, t2, c'] * rhoR[c', c] * A1[a', t1, b] order=(a',b,c',t1,t2)# should be contracted in exactly same order
259259
@tensoropt HrA12′′′′[:] := rhoL[-1, 1] * H[-2, -3, 4, 5] * A2[2, 5, 3] * rhoR[3, -4] * A1[1, 4, 2]
260260

261261
@test HrA12′ == HrA12′′ == HrA12′′′ # should be exactly equal

0 commit comments

Comments
 (0)