Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
timmysilv committed Nov 29, 2024
1 parent b6c02e3 commit 12dc38d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion doc/tutorials/run_error_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
====================================
"""


######################################################################
# *Author: Ilan Tzitrin*
#
Expand Down
1 change: 0 additions & 1 deletion doc/tutorials/run_graph_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
============
"""


######################################################################
# *Authors: Ilan Tzitrin and Luis Mantilla*
#
Expand Down
14 changes: 8 additions & 6 deletions flamingpy/decoders/unionfind/algos.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,21 @@ def initialize_cluster_trees(stabilizer_graph):
root_stabilizer = erasure_graph_nodes[component.pop()]
cluster_root = Root(
node_dict[root_stabilizer],
parity=root_stabilizer.parity
if isinstance(root_stabilizer, Stabilizer)
else "boundary",
parity=(
root_stabilizer.parity if isinstance(root_stabilizer, Stabilizer) else "boundary"
),
) # boundary nodes are represented by tuples
for vertex in component:
vertex_stabilizer = erasure_graph_nodes[vertex]
union(
cluster_root,
Root(
node_dict[vertex_stabilizer],
parity=vertex_stabilizer.parity
if isinstance(vertex_stabilizer, Stabilizer)
else "boundary",
parity=(
vertex_stabilizer.parity
if isinstance(vertex_stabilizer, Stabilizer)
else "boundary"
),
),
)
if cluster_root.parity:
Expand Down
1 change: 1 addition & 0 deletions flamingpy/examples/lc_equivalence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example for testing LC equivalence of graph states."""

from flamingpy.utils.graph_states import star_graph, complete_graph, linear_cluster, ring_graph

print("Testing LC equivalence of graph states:", "\n")
Expand Down

0 comments on commit 12dc38d

Please sign in to comment.