Skip to content

Commit

Permalink
adding check
Browse files Browse the repository at this point in the history
  • Loading branch information
nealerickson-qtm committed Oct 31, 2023
1 parent 6e123fb commit 2a32d65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytket/phir/sharding/sharder.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _process_command(self, command: Command) -> None:
def _is_command_global_phase(self, command: Command) -> bool:
return command.op.type == OpType.Phase or (
command.op.type == OpType.Conditional
and cast(Conditional, command).op.type == OpType.Phase
and cast(Conditional, command.op).op.type == OpType.Phase
)

def _build_shard(self, command: Command) -> None:
Expand Down

0 comments on commit 2a32d65

Please sign in to comment.