Pattern

class braket.ahs.pattern.Pattern(series)[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)[source]

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

Parameters:

resolution (Decimal | None) – Resolution of the discretization

Return type:

Pattern

Returns:

Pattern – The new discretized pattern