diff --git a/src/mqt/qudits/quantum_circuit/qasm.py b/src/mqt/qudits/quantum_circuit/qasm.py index d73409a..043f095 100644 --- a/src/mqt/qudits/quantum_circuit/qasm.py +++ b/src/mqt/qudits/quantum_circuit/qasm.py @@ -158,7 +158,7 @@ def parse_ignore(line: str, rgxs: dict[str, re.Pattern[str]], warned: dict[str, if match: # certain operations we can just ignore and warn about (op,) = match.groups() - if not warned.get(op, False): + if not warned.get(op): # warnings.warn(f"Unsupported operation ignored: {op}", SyntaxWarning, stacklevel=2) warned[op] = True return True