Skip to content

Commit

Permalink
Disable LookaheadSwap mapping benchmarks due to timeout. (Qiskit/qisk…
Browse files Browse the repository at this point in the history
…it-metapackage#845)

The lookahead swap mapping passes timeout consistently and have generated no data (likely due to Qiskit#2171 ) but cost roughly an hour of benchmarking runtime per terra commit.

This commit disables these benchmarks while the problems are investigated.
  • Loading branch information
kdk authored Mar 13, 2020
1 parent db2f1c8 commit d3a36d4
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions test/benchmarks/mapping_passes.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,26 @@ def track_stochastic_swap_swap_count(self, _, __):
swap.property_set['layout'] = self.layout
return swap.run(self.dag).count_ops().get('swap')

def time_lookahead_swap(self, _, __):
swap = LookaheadSwap(self.coupling_map)
swap.property_set['layout'] = self.layout
swap.run(self.dag)

def peakmem_lookahead_swap(self, _, __):
swap = LookaheadSwap(self.coupling_map)
swap.property_set['layout'] = self.layout
swap.run(self.dag)

def track_lookahead_swap_depth(self, _, __):
swap = LookaheadSwap(self.coupling_map)
swap.property_set['layout'] = self.layout
return swap.run(self.dag).depth()

def track_lookahead_swap_swap_count(self, _, __):
swap = LookaheadSwap(self.coupling_map)
swap.property_set['layout'] = self.layout
return swap.run(self.dag).depth().count_ops().get('swap')
# Disable lookahead swap benchmarks due to timeout.
# def time_lookahead_swap(self, _, __):
# swap = LookaheadSwap(self.coupling_map)
# swap.property_set['layout'] = self.layout
# swap.run(self.dag)

# def peakmem_lookahead_swap(self, _, __):
# swap = LookaheadSwap(self.coupling_map)
# swap.property_set['layout'] = self.layout
# swap.run(self.dag)

# def track_lookahead_swap_depth(self, _, __):
# swap = LookaheadSwap(self.coupling_map)
# swap.property_set['layout'] = self.layout
# return swap.run(self.dag).depth()

# def track_lookahead_swap_swap_count(self, _, __):
# swap = LookaheadSwap(self.coupling_map)
# swap.property_set['layout'] = self.layout
# return swap.run(self.dag).depth().count_ops().get('swap')

def time_basic_swap(self, _, __):
swap = BasicSwap(self.coupling_map)
Expand Down

0 comments on commit d3a36d4

Please sign in to comment.