Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kaosmicadei committed Jul 30, 2024
1 parent 91296c4 commit 8f49bfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions qadence2_ir/irast.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def binary_op_comm(cls, op: str, lhs: AST, rhs: AST) -> AST:
@classmethod
def callable(cls, name: str, *args: Any) -> AST:
return cls.__construct__(cls.Tag.Call, name, *args)

@classmethod
def support(cls, target: tuple[int, ...], control: tuple[int, ...]) -> AST:
return cls.__construct__(cls.Tag.Support, "", target, control)
Expand Down Expand Up @@ -98,7 +98,7 @@ def is_commutative_binary_op(self) -> bool:
@property
def is_callable(self) -> bool:
return self.tag == AST.Tag.Call

@property
def is_support(self) -> bool:
return self.tag == AST.Tag.Support
Expand Down Expand Up @@ -134,4 +134,4 @@ def __eq__(self, other: object) -> bool:
return self.head == other.head and self.args == other.args and self.attrs == other.attrs

def __repr__(self) -> str:
return f"{self.tag}({self.head}, {self.args}, {self.attrs})"
return f"{self.tag}({self.head}, {self.args}, {self.attrs})"
2 changes: 1 addition & 1 deletion tests/test_factory_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import unittest

from qadence2_ir.factory_tools import build_instructions, extract_inputs, filter_ast, flatten_ast
from qadence2_ir.irast import AST
from qadence2_ir.factory_tools import build_instructions, extract_inputs, flatten_ast, filter_ast
from qadence2_ir.types import Alloc, Assign, Call, Load, QuInstruct, Support


Expand Down

0 comments on commit 8f49bfd

Please sign in to comment.