Skip to content
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
8 changes: 8 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
save-always: false
# Don't restore the registries directory from cache: a broken
# ITensorRegistry clone cached by an earlier failed run cannot rebase
# on later runs, so let buildpkg clone the registries fresh each time.
cache-registries: false
- uses: julia-actions/julia-buildpkg@v1
with:
localregistry: https://github.com/ITensor/ITensorRegistry
Expand All @@ -65,6 +69,10 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
save-always: false
# Don't restore the registries directory from cache: a broken
# ITensorRegistry clone cached by an earlier failed run cannot rebase
# on later runs, so let buildpkg clone the registries fresh each time.
cache-registries: false
- uses: julia-actions/julia-buildpkg@v1
with:
localregistry: https://github.com/ITensor/ITensorRegistry
Expand Down
3 changes: 2 additions & 1 deletion test/test_expect.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ using Test: @testset, @test


@testset "Test Expect" begin
Random.seed!(1234)
nx, ny = 4, 4
χ = 2

Expand All @@ -32,7 +33,7 @@ using Test: @testset, @test
Rmps = 16
sz_boundarymps = expect(ψ, ("Z", v_centre); alg = "boundarymps", mps_bond_dimension = Rmps)

@test sz_boundarymps ≈ sz_exact atol = 10*eps(Float32)
@test sz_boundarymps ≈ sz_exact atol = 100*eps(Float32)

if !is_tree(g)
v_centre_neighbor = first(neighbors(g, v_centre))
Expand Down
Loading