Skip to content

Commit

Permalink
Fixes the error in the issue #139. Using set makes the result unpredi…
Browse files Browse the repository at this point in the history
…ctable as the order is not preserved.
  • Loading branch information
saipavanc committed Jun 25, 2022
1 parent 70690a1 commit 71fa720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scqubits/core/symbolic_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ def _closure_branches(self):
if tree == []:
closure_branches = []
else:
closure_branches = list(set(superconducting_loop_branches) - set(tree))
closure_branches = [branch for branch in superconducting_loop_branches if branch not in tree]
return closure_branches

def _find_path_to_root(
Expand Down

0 comments on commit 71fa720

Please sign in to comment.