Dataclass to store information about a single polygon unit to plot on the heatmap
cirq.vis.heatmap.PolygonUnit(
polygon: cirq.vis.heatmap.Polygon
,
value: float,
center: cirq.vis.heatmap.Point
,
annot: Optional[str]
)
For single (grid) qubit heatmaps, the polygon is a square.
For two (grid) qubit interaction heatmaps, the polygon is a hexagon.
Args |
polygon
|
Vertices of the polygon to plot.
|
value
|
The value for the heatmap coloring.
|
center
|
The center point of the polygon where annotation text should be printed.
|
annot
|
The annotation string to print on the coupler.
|
Attributes |
polygon
|
Dataclass field
|
value
|
Dataclass field
|
center
|
Dataclass field
|
annot
|
Dataclass field
|
Methods
__eq__
__eq__(
other
)