# cirq.plot_state_histogram¶

cirq.plot_state_histogram(result: cirq.study.trial_result.TrialResult) → numpy.ndarray[source]

Plot the state histogram from a single result with repetitions.

States is a bitstring representation of all the qubit states in a single
result.
Currently this function assumes each measurement gate applies to only
a single qubit.
Parameters: result – The trial results to plot. The histogram. A list of values plotted on the y-axis.