Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 authored Apr 9, 2024
1 parent 115da06 commit 1c2a294
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ Package for constructing and manipulating low-rank Tensor Network representation
For example to build a bond-dimension 2 cubic tensor-network representation of the function $\cosh(kx + a)$ over the domain $x \in [0,1]$ we can do

```
julia> using ITensors, NamedGraphs, ITensorNetworks, EllipsisNotation
julia> using ITensors, NamedGraphs, ITensorNetworks
julia> using NamedGraphs: add_edges
julia> using ITensorNetworks: delta_network
julia> include("src/QTT_utils.jl")
calculate_xis (generic function with 1 method)
julia> using ITensorNumericalAnalysis
julia> L = 2;
Expand All @@ -21,9 +16,9 @@ julia> a, k = 1.0, 0.5;
julia> s = siteinds("S=1/2", g);
julia> vertex_map = Dict(vertices(g) .=> [i for i in 1:length(vertices(g))]);
julia> bit_map = BitMap(g)
julia> ψ = cosh_itn(s, vertex_map; a, k)
julia> ψ = cosh_itn(s, bit_map; a, k)
ITensorNetwork{Tuple{Int64, Int64, Int64}} with 8 vertices:
8-element Vector{Tuple{Int64, Int64, Int64}}:
(1, 1, 1)
Expand Down

0 comments on commit 1c2a294

Please sign in to comment.