braket.ahs.pattern module

class braket.ahs.pattern.Pattern(series: list[Number])[source]

Bases: object

Represents the spatial dependence of a Field.

Parameters:

series (list[Number]) – A series of numbers representing the the local pattern of real numbers.

property series: list[Number]

A series of numbers representing the local pattern of real numbers.

Type:

list[Number]

discretize(resolution: Decimal | None) Pattern[source]

Creates a discretized version of the pattern, where each value is rounded to the closest multiple of the resolution.

Parameters:

resolution (Optional[Decimal]) – Resolution of the discretization

Returns:

Pattern – The new discretized pattern