Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
doichanj committed Feb 29, 2024
1 parent 9a77312 commit 60ad04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transpile/fusion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ bool CostBasedFusion::aggregate_operations(oplist_t &ops,
estimate_cost(ops, (uint_t)j,
i) // fusion gate from j-th to i-th, and
+ (j <= fusion_start ? 0.0 : costs[j - 1 - fusion_start]);
// cost of (j-1)-th
// cost of (j-1)-th

// update cost
if (estimated_cost <= costs[i - fusion_start]) {
Expand Down

0 comments on commit 60ad04a

Please sign in to comment.