Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>
  • Loading branch information
psschwei committed Jan 20, 2023
1 parent 45577be commit fe1cf85
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions qiskit/visualization/pass_manager_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def pass_manager_drawer(pass_manager, filename=None, style=None, raw=False):
prev_node = None

for index, controller_group in enumerate(passes):
subgraph, component_id, prev_node = draw_subgraph(controller_group, component_id, style, prev_node, index)
subgraph, component_id, prev_node = draw_subgraph(
controller_group, component_id, style, prev_node, index
)
graph.add_subgraph(subgraph)

output = make_output(graph, raw, filename)
Expand Down Expand Up @@ -176,7 +178,9 @@ def staged_pass_manager_drawer(pass_manager, filename=None, style=None, raw=Fals
passes = stage.passes()
stagegraph = pydot.Cluster(str(st), label=str(st), fontname="helvetica", labeljust="l")
for controller_group in passes:
subgraph, component_id, prev_node = draw_subgraph(controller_group, component_id, style, prev_node, idx)
subgraph, component_id, prev_node = draw_subgraph(
controller_group, component_id, style, prev_node, idx
)
stagegraph.add_subgraph(subgraph)
idx += 1
graph.add_subgraph(stagegraph)
Expand All @@ -193,9 +197,7 @@ def draw_subgraph(controller_group, component_id, style, prev_node, idx):
label = "[{}] {}".format(idx, ", ".join(controller_group["flow_controllers"]))

# create the subgraph for this controller
subgraph = pydot.Cluster(
str(component_id), label=label, fontname="helvetica", labeljust="l"
)
subgraph = pydot.Cluster(str(component_id), label=label, fontname="helvetica", labeljust="l")
component_id += 1

for pass_ in controller_group["passes"]:
Expand Down

0 comments on commit fe1cf85

Please sign in to comment.