Skip to content

Commit

Permalink
Check if the new test breaks CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryoris committed Sep 10, 2024
1 parent 5953e8a commit 01bcdc7
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions test/python/transpiler/test_sabre_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,24 +315,24 @@ def test_support_var_with_explicit_routing_pass(self):
layout = pass_.property_set["layout"]
self.assertEqual([layout[q] for q in qc.qubits], [2, 3, 4, 1, 5])

@slow_test
def test_release_valve_routes_multiple(self):
"""Test Sabre works if the release valve routes more than 1 operation.
Regression test of #13081.
"""
qv = QuantumVolume(500, seed=42)
qv.measure_all()
qc = Unroll3qOrMore()(qv)

cmap = CouplingMap.from_heavy_hex(21)
pm = PassManager(
[
SabreLayout(cmap, swap_trials=20, layout_trials=20, max_iterations=4, seed=100),
]
)
_ = pm.run(qc)
self.assertIsNotNone(pm.property_set.get("layout"))
# @slow_test
# def test_release_valve_routes_multiple(self):
# """Test Sabre works if the release valve routes more than 1 operation.

# Regression test of #13081.
# """
# qv = QuantumVolume(500, seed=42)
# qv.measure_all()
# qc = Unroll3qOrMore()(qv)

# cmap = CouplingMap.from_heavy_hex(21)
# pm = PassManager(
# [
# SabreLayout(cmap, swap_trials=20, layout_trials=20, max_iterations=4, seed=100),
# ]
# )
# _ = pm.run(qc)
# self.assertIsNotNone(pm.property_set.get("layout"))


class DensePartialSabreTrial(AnalysisPass):
Expand Down

0 comments on commit 01bcdc7

Please sign in to comment.