Skip to content

Commit 322be03

Browse files
authored
Update to ITensors v0.7, ITensorMPS v0.3 (#13)
1 parent 93a8766 commit 322be03

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

Diff for: .github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
version:
26-
- '1.6'
26+
- 'lts'
2727
- '1'
2828
os:
2929
- ubuntu-latest

Diff for: Project.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensorGaussianMPS"
22
uuid = "2be41995-7c9f-4653-b682-bfa4e7cebb93"
33
authors = ["Matthew Fishman <[email protected]> and contributors"]
4-
version = "0.1.11"
4+
version = "0.1.12"
55

66
[deps]
77
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
@@ -11,7 +11,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1111

1212
[compat]
1313
Compat = "3.40.0, 4"
14-
ITensorMPS = "0.1, 0.2"
15-
ITensors = "0.3.58, 0.4, 0.5, 0.6"
16-
LinearAlgebra = "1.6"
17-
julia = "1.6"
14+
ITensorMPS = "0.3"
15+
ITensors = "0.7"
16+
LinearAlgebra = "1.10"
17+
julia = "1.10"

Diff for: src/gmps.jl

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Base: sortperm, size, length, eltype, conj, transpose, copy, *
2-
using ITensors: alias
3-
using ITensorMPS: ITensorMPS
2+
using ITensors: ITensors, ITensor, alias
3+
using ITensorMPS: ITensorMPS, @OpName_str, MPS, Op, OpName, OpSum, coefficient
4+
45
abstract type AbstractSymmetry end
56
struct ConservesNfParity{T} <: AbstractSymmetry
67
data::T
@@ -710,8 +711,8 @@ end
710711
711712
Return an MPS with site indices `sites` by applying the circuit `U` to the starting state `state`.
712713
"""
713-
function ITensors.MPS(sites::Vector{<:Index}, state, U::Vector{<:ITensor}; kwargs...)
714-
return apply(U, productMPS(sites, state); kwargs...)
714+
function ITensorMPS.MPS(sites::Vector{<:Index}, state, U::Vector{<:ITensor}; kwargs...)
715+
return apply(U, MPS(sites, state); kwargs...)
715716
end
716717

717718
function isspinful(s::Index)

Diff for: test/Project.toml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[deps]
2+
ITensorGaussianMPS = "2be41995-7c9f-4653-b682-bfa4e7cebb93"
23
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
34
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
45
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
56
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
6-
7-
[compat]
8-
ITensorMPS = "0.2.2"
9-
ITensors = "0.6.7"

0 commit comments

Comments
 (0)