Skip to content

Commit

Permalink
Fix the issue that not compatible with python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
beizhansl committed Sep 16, 2023
1 parent 29b454e commit c579253
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quafu/visualisation/circuitPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _circuit_wires(self):
x1 = self.xs[-1] - 1
self._h_wire_points.append([[x0, y], [x1, y]])

def _inits_label(self, labels: dict[int: str] = None):
def _inits_label(self, labels: dict = None):
""" qubit-labeling """
if labels is None:
labels = self.q_label
Expand All @@ -241,7 +241,7 @@ def _inits_label(self, labels: dict[int: str] = None):
)
self._text_list.append(txt)

def _measured_label(self, labels: dict[int: str] = None):
def _measured_label(self, labels: dict = None):
""" measured qubit-labeling """
if labels is None:
labels = self.c_label
Expand Down Expand Up @@ -553,4 +553,4 @@ def _render_circuit(self):
self._render_measure()
self._render_barrier()
self._render_closed_patch()
self._render_txt()
self._render_txt()

0 comments on commit c579253

Please sign in to comment.