Skip to content

Commit

Permalink
default draw(cregbundle=False) (#4321)
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: Ali Javadi-Abhari <[email protected]>
  • Loading branch information
3 people authored Apr 29, 2020
1 parent 59e4d4f commit ad984ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions qiskit/circuit/quantumcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ def qasm(self, formatted=False, filename=None):
def draw(self, output=None, scale=0.7, filename=None, style=None,
interactive=False, line_length=None, plot_barriers=True,
reverse_bits=False, justify=None, vertical_compression='medium', idle_wires=True,
with_layout=True, fold=None, ax=None, initial_state=False, cregbundle=True):
with_layout=True, fold=None, ax=None, initial_state=False, cregbundle=False):
"""Draw the quantum circuit.
**text**: ASCII art TextDrawing that can be printed in the console.
Expand Down Expand Up @@ -858,7 +858,7 @@ def draw(self, output=None, scale=0.7, filename=None, style=None,
Only used by the ``text``, ``latex`` and ``latex_source`` outputs.
Default: ``False``.
cregbundle (bool): Optional. If set True bundle classical registers. Only used by
the ``text`` output. Default: ``True``.
the ``text`` output. Default: ``False``.
Returns:
:class:`PIL.Image` or :class:`matplotlib.figure` or :class:`str` or
Expand Down
4 changes: 2 additions & 2 deletions qiskit/visualization/circuit_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def circuit_drawer(circuit,
fold=None,
ax=None,
initial_state=False,
cregbundle=True):
cregbundle=False):
"""Draw a quantum circuit to different formats (set by output parameter):
**text**: ASCII art TextDrawing that can be printed in the console.
Expand Down Expand Up @@ -140,7 +140,7 @@ def circuit_drawer(circuit,
Only used by the ``text``, ``latex`` and ``latex_source`` outputs.
Default: ``False``.
cregbundle (bool): Optional. If set True bundle classical registers. Only used by
the ``text`` output. Default: ``True``.
the ``text`` output. Default: ``False``.
Returns:
:class:`PIL.Image` or :class:`matplotlib.figure` or :class:`str` or
:class:`TextDrawing`:
Expand Down

0 comments on commit ad984ab

Please sign in to comment.