Skip to content

Commit

Permalink
update print method, Co-authored by: Edwin Pednault [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahim-shehzad committed Jan 9, 2024
1 parent e084033 commit aa280e8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""File containing the class needed for representing search-space states when cutting circuits."""
import copy
import numpy as np
from collections import Counter
from collections import Counter, namedtuple


class DisjointSubcircuitsState:
Expand Down Expand Up @@ -162,6 +162,8 @@ def print(self, simple=False):
# Gate=[cut_actions[i][1][0], cut_actions[i][1][1]],
# )
# )
# elif (cut_actions[i][0] == "CutLeftWire") or (cut_actions[i][0] == ("CutRightWire")):


cut_actions = PrintActionListWithNames(self.actions)
cut_actions_sublist = []
Expand All @@ -172,7 +174,7 @@ def print(self, simple=False):
cut_actions_sublist.append(
{
"Cut action": cut_actions[i][0],
"Cut location:": {
"Cut location": {
"Gate": [cut_actions[i][1][0], cut_actions[i][1][1]]
},
"Input wire": cut_actions[i][2][0][0],
Expand Down

0 comments on commit aa280e8

Please sign in to comment.