diff --git a/qiskit/visualization/latex.py b/qiskit/visualization/latex.py index 17d0454dc18..5ab2313b349 100644 --- a/qiskit/visualization/latex.py +++ b/qiskit/visualization/latex.py @@ -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(