Skip to content

Commit 8033435

Browse files
author
qyli
committed
fix bug in 4-site correlation
1 parent 7e49c7c commit 8033435

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TensorWrapper/LocalOperator.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,15 @@ end
486486
function _rightOp(lsOp::NTuple{N, LocalOperator}) where N
487487
if N == 1
488488
return (_rightOp(lsOp...),)
489+
elseif isa(lsOp[end], LocalOperator{R, 1} where R)
490+
# already a right operator
491+
return lsOp
489492
else
490493
return _rightOp(lsOp...)
491494
end
492495
end
493496

497+
494498
# dimension of left/right auxiliary bond
495499
function _vdim(O::IdentityOperator, idx::Int64)
496500
@assert idx == 1 || idx == 2

0 commit comments

Comments
 (0)