cirq.Heatmap

class cirq.Heatmap(value_map: Union[Dict[cirq.devices.grid_qubit.GridQubit, SupportsFloat], Dict[Tuple[int, int], SupportsFloat]])[source]

Distribution of a value in 2D qubit lattice as a color map.

__init__(value_map: Union[Dict[cirq.devices.grid_qubit.GridQubit, SupportsFloat], Dict[Tuple[int, int], SupportsFloat]]) → None[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

plot([ax])

Plots the heatmap on the given Axes.

set_annotation_format(annot_format, …)

Sets a format string to format values for each qubit.

set_annotation_map(annot_map, **text_options)

Sets the annotation text for each qubit.

set_colorbar([position, size, pad])

Sets location and style of colorbar.

set_colormap([colormap, vmin, vmax])

Sets the colormap.

set_url_map(url_map)

Sets the URLs for each cell.

set_value_map(value_map)

Sets the values for each qubit.

unset_annotation()

Disables annotation.

unset_colorbar()

Disables colorbar.

unset_url_map()

Disables URL.