Support multi-qubit measurements in cirq.plot_state_histogram
#3031
Labels
no QC knowledge needed
Want to contribute to Cirq, but don't know quantum computing? This issue is for you.
Quote from the docstring: "Currently this function assumes each measurement gate applies to only a single qubit."
Currently, I get an incorrect histogram if I didn't read the docstring and used a multi-qubit measurement (I always make circuits like this):
If I use single-qubit measurement gates, I get the expected histogram:
This looks like it could be fixed by adding some logic to
plot_state_histogram
(https://github.com/quantumlib/Cirq/blob/master/cirq/study/visualize.py#L22) that checks for multi-qubit measurements and either correctly interpret them or raise an error.The text was updated successfully, but these errors were encountered: