Skip to content

Commit

Permalink
fix: remove methods added for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
abidart committed Jun 12, 2024
1 parent 0cea7ec commit f44b48e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/autoqasm/types/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,22 +152,10 @@ def __init__(self, *args, annotations: str | Iterable[str] | None = None, **kwar
)
self.name = program.get_program_conversion_context().next_var_name(oqpy.FloatVar)

def __floordiv__(self, other):
raise NotImplementedError("Integer division is supported by OpenQASM.")

def __rfloordiv__(self, other):
raise NotImplementedError("Integer division is supported by OpenQASM.")


class IntVar(oqpy.IntVar):
def __init__(self, *args, annotations: str | Iterable[str] | None = None, **kwargs):
super(IntVar, self).__init__(
*args, annotations=make_annotations_list(annotations), **kwargs
)
self.name = program.get_program_conversion_context().next_var_name(oqpy.IntVar)

def __floordiv__(self, other):
raise NotImplementedError("Integer division is supported by OpenQASM.")

def __rfloordiv__(self, other):
raise NotImplementedError("Integer division is supported by OpenQASM.")

0 comments on commit f44b48e

Please sign in to comment.