Hi y’all.
Is there a built-in function to plot the histogram of probabilities obtained with qml.probs()?
Hi y’all.
Is there a built-in function to plot the histogram of probabilities obtained with qml.probs()?
Hi @baudoin! No but it can be easily created with matplotlib:
import matplotlib.pyplot as put
import pennylane as qml
...
output = circuit()
plt.bar(range(len(output)), output)
plt.show()
Thank you Guillermo.