Skip to content

Commit

Permalink
Refactor test as suggested by @mtfishman
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Feb 7, 2024
1 parent 8ed0679 commit f07754d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/test_contraction_sequence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ ITensors.disable_warn_order()
res_einexprs_greedy = contract(tn; sequence=seq_einexprs_exhaustive)[]
seq_einexprs_kahypar = contraction_sequence(tn; alg="einexpr", optimizer=HyPar())
res_einexprs_kahypar = contract(tn; sequence=seq_einexprs_kahypar)[]
@test res_optimal
res_greedy
res_tree_sa
res_sa_bipartite
res_einexprs_exhaustive
res_einexprs_greedy
res_einexprs_kahypar
@test res_greedy res_optimal
@test res_tree_sa res_optimal
@test res_sa_bipartite res_optimal
@test res_einexprs_exhaustive res_optimal
@test res_einexprs_greedy res_optimal
@test res_einexprs_kahypar res_optimal

if !Sys.iswindows()
# KaHyPar doesn't work on Windows
Expand Down

0 comments on commit f07754d

Please sign in to comment.