Skip to content

Commit

Permalink
add print
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf committed Oct 21, 2024
1 parent c9f8daf commit 3c15ed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def partition_graph(
graph.addFixedVertices(graph_data.fixed_list, num_parts)
part_graph = graph.partition(self.context)
if self.log_level > 0:
pass
print("cut_cost: ", part_graph.cut()) # noqa: T201
vertex_part_id: list[int] = []
for vertex in range(graph_data.n_vertices):
vertex_part_id.append(part_graph.blockID(vertex))
Expand Down
3 changes: 2 additions & 1 deletion tests/multi_zone/compilation_settings_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def test_compilation_settings_linearch(
initial_placement=initial_pl_settings,
routing=routing_settings,
)
backend.compile_circuit_with_routing(ghz_circuit, compilation_settings)
compiled = backend.compile_circuit_with_routing(ghz_circuit, compilation_settings)
print("Shuttles: ", compiled.get_n_shuttles()) # noqa: T201


mtkahypar_skipif = pytest.mark.skipif(
Expand Down

0 comments on commit 3c15ed8

Please sign in to comment.