Skip to content

Commit

Permalink
Update to ITensors v0.7, ITensorMPS v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Oct 23, 2024
1 parent 93a8766 commit b6b7c7e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ITensorGaussianMPS"
uuid = "2be41995-7c9f-4653-b682-bfa4e7cebb93"
authors = ["Matthew Fishman <[email protected]> and contributors"]
version = "0.1.11"
version = "0.1.12"

[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Expand All @@ -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"
9 changes: 5 additions & 4 deletions src/gmps.jl
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 1 addition & 4 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit b6b7c7e

Please sign in to comment.