Skip to content

Commit 5d73974

Browse files
committed
style: reformat after pylint fixes
1 parent 89bc37c commit 5d73974

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

qualtran/surface_code/flasq/measurement_depth.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ def _cbloq_measurement_depth(
201201
else: # pragma: no cover
202202
# This case should ideally not be reached with valid CompositeBloqs
203203
logger.warning(
204-
"Unexpected node type %s found in binst_graph for %s. "
205-
"Assigning 0 depth.",
204+
"Unexpected node type %s found in binst_graph for %s. " "Assigning 0 depth.",
206205
type(node),
207206
cbloq,
208207
)
@@ -294,9 +293,16 @@ def compute(
294293
except (DecomposeNotImplementedError, DecomposeTypeError):
295294
# Decomposition failed or not implemented, proceed to fallback
296295
logger.debug("Decomposition failed for %s, using fallback.", bloq)
297-
except (ValueError, TypeError, NotImplementedError, AttributeError) as e: # pragma: no cover
296+
except (
297+
ValueError,
298+
TypeError,
299+
NotImplementedError,
300+
AttributeError,
301+
) as e: # pragma: no cover
298302
# Catch unexpected errors during decomposition itself
299-
logger.error("Unexpected error during decomposition of %s: %s", bloq, e, exc_info=True)
303+
logger.error(
304+
"Unexpected error during decomposition of %s: %s", bloq, e, exc_info=True
305+
)
300306

301307
if isinstance(cbloq, CompositeBloq):
302308
return _cbloq_measurement_depth(cbloq, get_callee_cost)

qualtran/surface_code/flasq/utils_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
import sympy
1616
from frozendict import frozendict # type: ignore[import-untyped]
1717

18-
# pylint: disable=no-value-for-parameter
19-
2018
from qualtran.surface_code.flasq.utils import substitute_until_fixed_point
2119

20+
# pylint: disable=no-value-for-parameter
21+
2222

2323
def test_basic_substitution():
2424
x = sympy.Symbol("x")

0 commit comments

Comments
 (0)