Skip to content

Commit

Permalink
Start using ITensorMPS.jl (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman authored May 9, 2024
1 parent c2a2d6f commit 80b7f74
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ authors = ["Niccolò Baldelli <[email protected]>, Matthew Fishman <mfish
version = "0.1.0"

[deps]
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
TupleTools = "9d95972d-f1c8-5527-a6e0-b4b365fa01f6"

[compat]
ITensors = "0.3.18"
ITensorMPS = "0.1"
ITensors = "0.3.18, 0.4, 0.5, 0.6"
TupleTools = "1"
julia = "1.6"

[extras]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ITensorCorrelators

This is a package for efficiently measuring n-point correlators of matrix product states (MPS), built on top of the [ITensors.jl](https://github.com/ITensor/ITensors.jl) library.
This is a package for efficiently measuring n-point correlators of matrix product states (MPS), built on top of the [ITensors.jl](https://github.com/ITensor/ITensors.jl) and [ITensorMPS.jl](https://github.com/ITensor/ITensorMPS.jl) libraries.

## Installation

Expand All @@ -15,7 +15,7 @@ julia> Pkg.add(url="https://github.com/ITensor/ITensorCorrelators.jl.git")

As an example, to compute the correlator `<Sz_i Sz_j Sz_k Sz_l>` on some set of sites `i, j, k, l`, you can use the `correlator` function:
```julia
using ITensors
using ITensors, ITensorMPS
using ITensorCorrelators

s = siteinds("S=1/2", 10)
Expand Down
2 changes: 1 addition & 1 deletion examples/4_point_correlator.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ITensors
using ITensors, ITensorMPS
using ITensorCorrelators
using Random

Expand Down
2 changes: 1 addition & 1 deletion src/ITensorCorrelators.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ITensorCorrelators

using ITensors
using ITensors, ITensorMPS

include("correlator_bosonic_repeat.jl")
include("correlator_bosonic_recursive.jl")
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

0 comments on commit 80b7f74

Please sign in to comment.