Skip to content

Commit

Permalink
remove unreachable stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGupta2012 committed Aug 22, 2024
1 parent 6c4f9e2 commit de11571
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion qbraid_qir/qasm3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
| BranchingStatement | 🔜 | In progress |
| SubroutineDefinition | 🔜 | In progress |
| Looping statements(eg. for) | 🔜 | In progress |
| RangeDefinition | 🔜 | In progress |
| IODeclaration | 📋 | Planned |
| RangeDefinition | 📋 | Planned |
| Pragma || Unsure |
| Annotations || Unsure |
| Pulse-level ops (e.g. delay) || Not supported by QIR |
Expand Down
4 changes: 1 addition & 3 deletions qbraid_qir/qasm3/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ def find_array_element(multi_dim_arr: list[Any], indices: list[int]) -> Any:
return temp

@staticmethod
def analyse_branch_condition(
condition: Union[UnaryExpression, BinaryExpression, IndexExpression]
) -> bool:
def analyse_branch_condition(condition: Any) -> bool:
"""
analyze the branching condition to determine the branch to take
Expand Down
4 changes: 1 addition & 3 deletions qbraid_qir/qasm3/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,7 @@ def transform_gate_params(
# TODO : update the arg value in expressions not just SINGLE identifiers

@staticmethod
def get_branch_params(
condition: Union[UnaryExpression, BinaryExpression, IndexExpression]
) -> tuple[Optional[int], Optional[str]]:
def get_branch_params(condition: Any) -> tuple[Optional[int], Optional[str]]:
"""
Get the branch parameters from the branching condition
Expand Down

0 comments on commit de11571

Please sign in to comment.