Canvas
- class braket.ahs.canvas.Canvas(boundary_points)[source]
Bases:
objectDefines a region where atoms can be placed using boundary points.
A Canvas represents a polygonal region in 2D space defined by boundary points. It is used by factory methods to determine which lattice sites should contain atoms.
- Parameters:
boundary_points (
list[tuple[Number,Number]])
Initialize a Canvas with boundary points.
- Parameters:
boundary_points (list[tuple[Number, Number]]) – List of (x, y) coordinates defining the polygon boundary. Must have at least 3 points.
- Raises:
ValueError – If fewer than 3 boundary points are provided.
TypeError – If boundary points are not properly formatted.