Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
rmshaffer committed May 15, 2024
1 parent 3eea679 commit c75a4de
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/autoqasm/simulator/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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):
Expand Down

0 comments on commit c75a4de

Please sign in to comment.