Skip to content

Commit

Permalink
circuit: fix #240 trivial TN circuit rehearsal
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Jul 3, 2024
1 parent cafc423 commit e20abf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quimb/tensor/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ def rehearsal_dict(tn, tree):
"tn": tn,
"tree": tree,
"W": tree.contraction_width(),
"C": math.log10(tree.contraction_cost()),
"C": math.log10(max(tree.contraction_cost(), 1)),
}


Expand Down

0 comments on commit e20abf4

Please sign in to comment.