From ddb885aa7f310ca0f0a16ef73db15fad1a272ec6 Mon Sep 17 00:00:00 2001 From: "Davide Gessa (dakk)" Date: Thu, 19 Oct 2023 14:05:46 +0200 Subject: [PATCH] fix linter --- TODO.md | 1 + qlasskit/compiler/poccompiler2.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 8a44fa1f..fcd37292 100644 --- a/TODO.md +++ b/TODO.md @@ -51,6 +51,7 @@ - [x] Builtin functions: max(), min(), len() - [x] Function call (to builtin) - [x] Int arithmetic: + +- [ ] Int: bitwise not - [ ] Int: shift right / left - [ ] Int: subtraction - [ ] Publish doc diff --git a/qlasskit/compiler/poccompiler2.py b/qlasskit/compiler/poccompiler2.py index a5f83f87..65c59947 100644 --- a/qlasskit/compiler/poccompiler2.py +++ b/qlasskit/compiler/poccompiler2.py @@ -78,7 +78,7 @@ def compile(self, name, args: Args, ret_size: int, exprs: BoolExpList) -> QCircu return qc - def compile_expr(self, qc: QCircuit, expr: Boolean) -> int: + def compile_expr(self, qc: QCircuit, expr: Boolean) -> int: # noqa: C901 if isinstance(expr, Symbol): return qc[expr.name]