From 1f69ee1ef270e7b1b653b351b3c549fcaf37b103 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Mon, 6 Nov 2023 11:51:21 -0500 Subject: [PATCH 1/2] [ITensors] Update syntax in DMRG example [no ci] --- examples/dmrg/1d_heisenberg.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/dmrg/1d_heisenberg.jl b/examples/dmrg/1d_heisenberg.jl index a950eff478..57bca58dc6 100644 --- a/examples/dmrg/1d_heisenberg.jl +++ b/examples/dmrg/1d_heisenberg.jl @@ -10,7 +10,7 @@ let # Create N spin-one degrees of freedom sites = siteinds("S=1", N) # Alternatively can make spin-half sites instead - #sites = siteinds("S=1/2",N) + #sites = siteinds("S=1/2", N) # Input operator terms which define a Hamiltonian os = OpSum() @@ -23,7 +23,7 @@ let H = MPO(os, sites) # Create an initial random matrix product state - psi0 = randomMPS(sites, 10) + psi0 = randomMPS(sites; linkdims=10) # Plan to do 5 DMRG sweeps: nsweeps = 5 From 2dd057bed8d57e68c433563b67cea2e2fa5c9190 Mon Sep 17 00:00:00 2001 From: Miles Date: Mon, 6 Nov 2023 14:27:51 -0500 Subject: [PATCH 2/2] [NDTensors] Add StridedViews dependency, increase Strided compat lower bound (#1238) --- NDTensors/Project.toml | 6 ++++-- NDTensors/src/Unwrap/src/Unwrap.jl | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NDTensors/Project.toml b/NDTensors/Project.toml index 4a52808ce7..a1ec0ac183 100644 --- a/NDTensors/Project.toml +++ b/NDTensors/Project.toml @@ -20,6 +20,7 @@ SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d" SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Strided = "5e0ebb24-38b0-5f93-81fe-25c709ecae67" +StridedViews = "4db3bf67-4bd7-4b4e-b153-31dc3fb37143" TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f" TupleTools = "9d95972d-f1c8-5527-a6e0-b4b365fa01f6" @@ -46,12 +47,13 @@ Functors = "0.2, 0.3, 0.4" HDF5 = "0.14, 0.15, 0.16, 0.17" InlineStrings = "1" LinearAlgebra = "1.6" -Requires = "1.1" Random = "1.6" +Requires = "1.1" SimpleTraits = "0.9.4" SplitApplyCombine = "1.2.2" StaticArrays = "0.12, 1.0" -Strided = "0.3, 1, 2" +Strided = "2" +StridedViews = "0.2" TimerOutputs = "0.5.5" TupleTools = "1.2.0" julia = "1.6" diff --git a/NDTensors/src/Unwrap/src/Unwrap.jl b/NDTensors/src/Unwrap/src/Unwrap.jl index c00ccb56e8..c83f05cd71 100644 --- a/NDTensors/src/Unwrap/src/Unwrap.jl +++ b/NDTensors/src/Unwrap/src/Unwrap.jl @@ -2,7 +2,7 @@ module Unwrap using SimpleTraits using LinearAlgebra using Base: ReshapedArray -using Strided.StridedViews +using StridedViews include("expose.jl") include("iswrappedarray.jl")