diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 66c47f0..cffa7af 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: version: - - '1.6' + - 'lts' - '1' os: - ubuntu-latest diff --git a/Project.toml b/Project.toml index 4563888..9b81fe9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ITensorGaussianMPS" uuid = "2be41995-7c9f-4653-b682-bfa4e7cebb93" authors = ["Matthew Fishman and contributors"] -version = "0.1.11" +version = "0.1.12" [deps] Compat = "34da2185-b29b-5c13-b0c7-acf172513d20" @@ -11,7 +11,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" [compat] Compat = "3.40.0, 4" -ITensorMPS = "0.1, 0.2" -ITensors = "0.3.58, 0.4, 0.5, 0.6" -LinearAlgebra = "1.6" -julia = "1.6" +ITensorMPS = "0.3" +ITensors = "0.7" +LinearAlgebra = "1.10" +julia = "1.10" diff --git a/src/gmps.jl b/src/gmps.jl index fe2141a..eb31736 100644 --- a/src/gmps.jl +++ b/src/gmps.jl @@ -1,6 +1,7 @@ import Base: sortperm, size, length, eltype, conj, transpose, copy, * -using ITensors: alias -using ITensorMPS: ITensorMPS +using ITensors: ITensors, ITensor, alias +using ITensorMPS: ITensorMPS, @OpName_str, MPS, Op, OpName, OpSum, coefficient + abstract type AbstractSymmetry end struct ConservesNfParity{T} <: AbstractSymmetry data::T @@ -710,8 +711,8 @@ end Return an MPS with site indices `sites` by applying the circuit `U` to the starting state `state`. """ -function ITensors.MPS(sites::Vector{<:Index}, state, U::Vector{<:ITensor}; kwargs...) - return apply(U, productMPS(sites, state); kwargs...) +function ITensorMPS.MPS(sites::Vector{<:Index}, state, U::Vector{<:ITensor}; kwargs...) + return apply(U, MPS(sites, state); kwargs...) end function isspinful(s::Index) diff --git a/test/Project.toml b/test/Project.toml index e829e75..5632f8d 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,9 +1,6 @@ [deps] +ITensorGaussianMPS = "2be41995-7c9f-4653-b682-bfa4e7cebb93" ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2" ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" - -[compat] -ITensorMPS = "0.2.2" -ITensors = "0.6.7"