Skip to content

Commit 024b694

Browse files
authored
Merge pull request #1 from jlapeyre/gjl-edits
Restructure code base and depend on DataStructures rather than copying code.
2 parents f823ce8 + 60fc399 commit 024b694

20 files changed

+68
-2054
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
/Manifest.toml
3+
/dev/

Manifest.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ authors = ["Christopher Chubb <[email protected]>"]
44
version = "0.1.4"
55

66
[deps]
7+
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
78
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
89

910
[compat]
1011
julia = "1.4"
12+
13+
[extras]
14+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
15+
16+
[targets]
17+
test = ["Test"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Julia package for the contraction of tensor networks using the sweep-line-based contraction algorithm laid out in the paper [General tensor network decoding of 2D Pauli codes](https://arxiv.org/abs/2101.04125). This algorithm is primarily designed for two-dimensional tensor networks but contains graph manipulation tools that allow it to function for generic tensor networks.
44

5-
![Sweep-line anim](anim.gif)
5+
![Sweep-line anim](resources/anim.gif)
66

77
Below I have provided some examples of `SweepContractor.jl` at work. Scripts with working versions of each of these examples are also included in the package. For more detailed documentation consult help pages by using `?` in the Julia REPL.
88

@@ -12,11 +12,11 @@ Feel free to contact me with any comments, questions, or suggestions at [github@
1212

1313
Consider the following four tensor networks, taken from the tensor network review [Hand-waving and Interpretive Dance](https://arxiv.org/abs/1603.03039):
1414

15-
>![ABCD1](ABCD1.png),
15+
>![ABCD1](resources/ABCD1.png),
1616
1717
where each tensor is defined
1818

19-
>![ABCD2](ABCD2.png)
19+
>![ABCD2](resources/ABCD2.png)
2020
2121
First we need to install `SweepContract.jl`, which we do by running
2222
```julia
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)