Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Jan 10, 2025
1 parent 4ae3b53 commit df7a4c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gauging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function VidalITensorNetwork(
ψ::ITensorNetwork;
(cache!)=nothing,
update_cache=isnothing(cache!),
cache_update_kwargs=default_cache_update_kwargs(cache!),
cache_update_kwargs=default_cache_update_kwargs(Algorithm("bp")),
kwargs...,
)
if isnothing(cache!)
Expand Down
2 changes: 1 addition & 1 deletion test/test_forms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ using Test: @test, @testset
@test underlying_graph(ket_network(qf)) == underlying_graph(ψket)
@test underlying_graph(operator_network(qf)) == underlying_graph(A)

∂qf_∂v = only(environment(qf, state_vertices(qf, [v])))
∂qf_∂v = only(environment(qf, state_vertices(qf, [v]); alg="exact"))
@test (∂qf_∂v) * (qf[ket_vertex(qf, v)] * qf[bra_vertex(qf, v)]) contract(qf)

∂qf_∂v_bp = environment(qf, state_vertices(qf, [v]); alg="bp", update_cache=false)
Expand Down

0 comments on commit df7a4c5

Please sign in to comment.