Skip to content

Commit

Permalink
fixed issue 4292 by updating latex drawer (#4322)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Luciano Bello <luciano.bello@ibm.com>
Co-authored-by: Ali Javadi-Abhari <ajavadia@users.noreply.github.com>
Co-authored-by: Kevin Krsulich <kevin.krsulich@ibm.com>
  • Loading branch information
5 people authored Apr 29, 2020
1 parent 8629433 commit 43196a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qiskit/visualization/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ def _initialize_latex_array(self, aliases=None):
for i in range(self.img_width):
if self.wire_type[self.ordered_regs[i]]:
self._latex[i][0] = "\\lstick{" + self.ordered_regs[i].register.name + \
"_{" + str(self.ordered_regs[i].index) + "}" + \
": 0}"
"_{" + str(self.ordered_regs[i].index) + "}" + ": "
if self.initial_state:
self._latex[i][0] += "0"
self._latex[i][0] += "}"
else:
if self.layout is None:
label = "\\lstick{{ {{{}}}_{{{}}} : ".format(
Expand Down

0 comments on commit 43196a9

Please sign in to comment.