Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo-Mijares-Vilarino committed Aug 2, 2022
1 parent 785a3f2 commit 3a76836
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qiskit/visualization/counts_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def plot_histogram(
.. jupyter-execute::
# Plot two counts in the same figure with legends and colors specified.
from qiskit import QuantumCircuit, BasicAer, transpile
from qiskit.visualization import plot_histogram
Expand All @@ -123,7 +123,7 @@ def plot_histogram(
color=['crimson','midnightblue'], title="New Histogram")
.. jupyter-execute::
# You can sort the bitstrings using different methods.
from qiskit import transpile
Expand All @@ -146,7 +146,7 @@ def plot_histogram(
hist1 = plot_histogram(counts, sort = 'value_desc')
# Sort by the hamming distance (the number of bit flips to change from
# one bitstring to the other)from a target string.
# one bitstring to the other)from a target string.
hist2 = plot_histogram(counts, sort = 'hamming', target_string = '001')
display(hist1, hist2)
Expand Down

0 comments on commit 3a76836

Please sign in to comment.