Skip to content

Commit

Permalink
Updating decoder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nariman87 committed Aug 3, 2022
1 parent 1b80db3 commit f5b5742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flamingpy/decoders/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.
"""Decoding and recovery functions."""

# pylint: disable=import-outside-toplevel
# pylint: disable=import-outside-toplevel,too-many-statements

import sys
import numpy as np
Expand Down Expand Up @@ -59,7 +59,7 @@ def assign_weights(code, decoder, **kwargs):
if decoder == "MWPM":
for node in qubit_coords:
neighbors = G[node]
# Obtain the list and the number of p-squeezed states in
# Obtain the list and the number of p-squeezed states in
# the neighborhood of the node.
p_list = [G.nodes[v]["state"] for v in neighbors if G.nodes[v]["state"] == "p"]
p_count = len(p_list)
Expand Down

0 comments on commit f5b5742

Please sign in to comment.