Skip to content

Commit

Permalink
Update src/qibo/quantum_info/quantum_networks.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Sopena <44305203+AlejandroSopena@users.noreply.github.com>
  • Loading branch information
renatomello and AlejandroSopena committed Feb 3, 2024
1 parent 0413922 commit b7eac04
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/qibo/quantum_info/quantum_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,6 @@ def _check_subscript_pattern(self, subscripts: str):
braket = "[a-z]"
pattern_two = re.compile(braket * 2 + "," + braket * 2 + "->" + braket * 2)
pattern_four = re.compile(braket * 4 + "," + braket * 4 + "->" + braket * 4)
# pattern_two = re.compile("[a-z][a-z],[a-z][a-z]->[a-z][a-z]")
# pattern_four = re.compile("[a-z][a-z][a-z][a-z],[a-z][a-z]->[a-z][a-z]")

return bool(re.match(pattern_two, subscripts)), bool(
re.match(pattern_four, subscripts)
Expand Down

0 comments on commit b7eac04

Please sign in to comment.