Skip to content

bloqade.geometry.dialects.grid.sub_grid

← Module overview

functionsub_gridsource

bloqade.geometry.dialects.grid.sub_grid

def sub_grid(grid, x_indices, y_indices)

Get a subgrid from the given grid.

Returns: Grid: a subgrid object

Parameters

NameTypeDescription
gridGrida grid object
x_indices—a list/ilist of x indices
y_indices—a list/ilist of y indices
source