diff --git a/Project.toml b/Project.toml index 00be98b..828f68a 100644 --- a/Project.toml +++ b/Project.toml @@ -4,25 +4,25 @@ authors = ["Anna Maria Dziubyna ", "Bartłomiej Gar version = "0.1.5" [deps] +CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" +LowRankApprox = "898213cb-b102-5a47-900c-97e73b919f73" MKL = "33e6dc65-8f57-5167-99aa-e5a354878fb2" Memoization = "6fafb56a-5788-4b4e-91ca-c0cea6611c73" -TensorCast = "02d47bb6-7ce6-556a-be16-bb1710789e2b" -TensorOperations = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2" NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd" NNlibCUDA = "a00861dc-f156-4864-bf3c-e6376f28a68d" -CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" -LowRankApprox = "898213cb-b102-5a47-900c-97e73b919f73" -TSVD = "9449cd9e-2762-5aa3-a617-5413e99d722e" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" SpinGlassNetworks = "b7f6bd3e-55dc-4da6-96a9-ef9dbec6ac19" +TSVD = "9449cd9e-2762-5aa3-a617-5413e99d722e" +TensorCast = "02d47bb6-7ce6-556a-be16-bb1710789e2b" +TensorOperations = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2" [compat] +MKL = "0.4.2" +Memoization = "0.1.14" TensorCast = "0.4" TensorOperations = "3.0.1" julia = "1.7, 1.8" -MKL = "0.4.2" -Memoization = "0.1.14" [extras] Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" @@ -31,5 +31,3 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] test = ["Logging", "Test", "Random"] - - diff --git a/src/environment.jl b/src/environment.jl index 17be64b..02bd643 100644 --- a/src/environment.jl +++ b/src/environment.jl @@ -98,9 +98,9 @@ end -- B -- """ function update_env_left( - LE::S, - A::S, - M::T, + LE::S, + A::S, + M::T, B::S ) where {S <: AbstractArray{R, 3}, T <: MpoTensor{R, 4}} where R <: Real for v ∈ M.top A = contract_tensor3_matrix(A, v) end @@ -241,9 +241,9 @@ end -- B -- """ function project_ket_on_bra( - LE::S, - B::S, - M::T, + LE::S, + B::S, + M::T, RE::S ) where {S <: AbstractArray{R, 3}, T <: MpoTensor{R, 4}} where R <: Real for v ∈ reverse(M.bot) B = contract_matrix_tensor3(v, B) end