qiskit-community / qiskit-community-tutorials

A collection of Jupyter notebooks developed by the community showing how to use Qiskit
Apache License 2.0
722 stars 512 forks source link

plot_histogram(result.get_counts(circuit)) not showing probability #126

Open nmathew96 opened 1 year ago

nmathew96 commented 1 year ago

plot_histogram(result.get_counts(circuit)) as per the representation the result of writing above code should give the graph in probability but, I am getting values in counts.

anujang commented 1 year ago

looking at documentation, looks like the histogram would plot counts? https://qiskit.org/documentation/stubs/qiskit.visualization.plot_histogram.html i think it was probability in older docs - https://qiskit.org/documentation/stable/0.19/stubs/qiskit.visualization.plot_histogram.html