From c75a4de4a5056523107c280ff377336b23e5ba77 Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Wed, 15 May 2024 16:51:22 -0400 Subject: [PATCH] Remove unreachable code --- src/autoqasm/simulator/conversion.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/autoqasm/simulator/conversion.py b/src/autoqasm/simulator/conversion.py index acf92e3..31981be 100644 --- a/src/autoqasm/simulator/conversion.py +++ b/src/autoqasm/simulator/conversion.py @@ -29,7 +29,7 @@ @singledispatch def convert_to_output(value: LiteralType) -> Any: - raise TypeError(f"converting {value} to output") + raise NotImplementedError(f"converting {value} to output") @convert_to_output.register(IntegerLiteral) @@ -40,11 +40,6 @@ def _(value): return value.value -@convert_to_output.register(BitstringLiteral) -def _(value): - return np.array(np.binary_repr(value.value, value.width)) - - @convert_to_output.register def _(value: ArrayLiteral): if isinstance(value.values[0], BooleanLiteral):