Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to ITensors v0.7, ITensorMPS v0.3 #13

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6'
- 'lts'
- '1'
os:
- ubuntu-latest
Expand Down
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"
Loading