Skip to content

Commit

Permalink
fix: undef variable
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Oct 16, 2024
1 parent 3bc74dd commit 731b8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/transpiler/unroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FlagMeta(EnumMeta):
def __getitem__(cls, keys):
if isinstance(keys, str):
return super().__getitem__(keys)
return reduce(or_, [self[key] for key in keys]) # pylint: disable=E1136
return reduce(or_, [cls[key] for key in keys]) # pylint: disable=E1136


class NativeGates(Flag, metaclass=FlagMeta):
Expand Down

0 comments on commit 731b8a1

Please sign in to comment.