Skip to content

statements

fill

fill(
    locations: (
        ilist.IList[grid.Grid[Any, Any], Any]
        | list[grid.Grid[Any, Any]]
    )
)

Fill the given locations with the given value.

Parameters:

Name Type Description Default
locations IList[Grid[Any, Any], Any]

The locations to fill. Note that these locations must be valid static trap locations.

required
Source code in src/bloqade/shuttle/dialects/init/_interface.py
10
11
12
13
14
15
16
17
18
19
20
21
@_wraps(Fill)
def fill(
    locations: ilist.IList[grid.Grid[Any, Any], Any] | list[grid.Grid[Any, Any]],
):
    """Fill the given locations with the given value.

    Args:
        locations (ilist.IList[grid.Grid[Any,Any], Any]): The locations to fill.
            Note that these locations must be valid static trap locations.

    """
    ...