Skip to content

Commit

Permalink
Update css_code.py
Browse files Browse the repository at this point in the history
linting
  • Loading branch information
hetenyib authored Oct 30, 2023
1 parent 64ce359 commit a3a4b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qiskit_qec/circuits/css_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def __init__(
if set(stabilizer).intersection(set(gauge)) == set(gauge):
gauges.append(g)
self._gauges4stabilizers[j].append(gauges)
self.detectors, self.logicals = self.stim_detectors()

def _get_code_properties(self):
if isinstance(self.code, StabSubSystemCode):
Expand Down Expand Up @@ -256,7 +257,6 @@ def string2nodes(self, string, **kwargs):
Returns:
a list of 'DecodingGraphNode()'-s corresponding to the triggered detectors
"""
self.detectors, self.logicals = self.stim_detectors()

nodes = string2nodes_with_detectors(
string=string,
Expand Down

0 comments on commit a3a4b8d

Please sign in to comment.