Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
enavarro51 committed Jul 11, 2023
1 parent e0d0d1f commit 6c9d880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qiskit/visualization/circuit/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,8 @@ def __init__(
else:
self.encoding = "utf8"

self._nest_depth = 0 # nesting depth for control flow ops
self._indexset = [] # for loop indices
self._nest_depth = 0 # nesting depth for control flow ops
self._indexset = [] # for loop indices
self._jump_values = [] # jump values for switch/case

def __str__(self):
Expand Down
2 changes: 1 addition & 1 deletion test/python/visualization/test_circuit_drawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_reverse_bits(self):
" ",
]
)
result = visualization.circuit_drawer(circuit, reverse_bits=True)
result = visualization.circuit_drawer(circuit, output="text", reverse_bits=True)
self.assertEqual(result.__str__(), expected)

def test_no_explict_cregbundle(self):
Expand Down

0 comments on commit 6c9d880

Please sign in to comment.