Skip to content

Commit

Permalink
optimizer minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lykov committed Sep 7, 2024
1 parent caaf8a3 commit 09d21a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qtensor/optimisation/Optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,9 @@ def get_ordering_ints(self, graph, inplace=True):
#print('graph nodes', len(graph.nodes))
#print('pgraph nodes', len(p_graph.nodes))
# Remove parallel vars from graph
for var in par_vars:
qtree.graph_model.base.remove_node(self.graph, var)
if hasattr(self, 'graph'):
for var in par_vars:
qtree.graph_model.base.remove_node(self.graph, var)
#self.graph = p_graph
return peo, [self.treewidth]

Expand Down

0 comments on commit 09d21a2

Please sign in to comment.