plot_state_histogram(result: cirq.study.trial_result.TrialResult) → numpy.ndarray¶
Plot the state histogram from a single result with repetitions.States is a bitstring representation of all the qubit states in a singleresult.Currently this function assumes each measurement gate applies to onlya single qubit.
Parameters: result – The trial results to plot. Returns: The histogram. A list of values plotted on the y-axis.