From a5103206cebd6143eb16fde492ce047f10015593 Mon Sep 17 00:00:00 2001 From: jofrevalles Date: Mon, 18 Nov 2024 15:04:26 +0100 Subject: [PATCH] Fix small typos --- ext/TenetITensorMPSExt.jl | 5 +++-- test/integration/ITensorMPS_test.jl | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/TenetITensorMPSExt.jl b/ext/TenetITensorMPSExt.jl index 796bfcdf..5218df0d 100644 --- a/ext/TenetITensorMPSExt.jl +++ b/ext/TenetITensorMPSExt.jl @@ -1,8 +1,9 @@ module TenetITensorMPSExt using Tenet -using ITensors: ITensor, Index, dim +using ITensors using ITensorMPS +using ITensors: ITensor, Index, dim using Tenet: MPS, tensors, form, inds # Convert an AbstractMPS to an ITensor MPS @@ -89,7 +90,7 @@ function Base.convert(::Type{MPS}, itensors_mps::ITensorMPS.MPS) # Map llim and rlim to your MPS's orthogonality center(s) mps_form = if llim + 1 == rlim - 1 - Tenet.MixedCanonical(Tenet.Site(; n=llim + 1)) + Tenet.MixedCanonical(Tenet.Site(llim + 1)) elseif llim + 1 < rlim - 1 Tenet.MixedCanonical([Tenet.Site(j) for j in (llim + 1):(rlim - 1)]) else diff --git a/test/integration/ITensorMPS_test.jl b/test/integration/ITensorMPS_test.jl index 8890a198..2005b98d 100644 --- a/test/integration/ITensorMPS_test.jl +++ b/test/integration/ITensorMPS_test.jl @@ -1,7 +1,8 @@ @testset "ITensorMPS" begin using ITensorMPS + using ITensors using ITensors: ITensor, Index, dim, dims - using Tenet: MPS, tensors, form + using Tenet: MPS, tensors, form, inds # Tenet to ITensorMPS conversion tenet_mps = rand(MPS; n=5, maxdim=30)