Field
- class braket.ahs.field.Field(time_series, pattern=None)[source]
Bases:
objectA space and time dependent parameter of a program.
- Parameters:
time_series (TimeSeries) – The time series representing this field.
pattern (Pattern | None) – The local pattern of real numbers.
- property time_series: TimeSeries
The time series representing this field.
- Type:
- discretize(time_resolution=None, value_resolution=None, pattern_resolution=None)[source]
Creates a discretized version of the field, where time, value and pattern are rounded to the closest multiple of their corresponding resolutions.
- Parameters:
time_resolution (Decimal | None) – Time resolution
value_resolution (Decimal | None) – Value resolution
pattern_resolution (Decimal | None) – Pattern resolution
- Return type:
- Returns:
Field – A new discretized field.
- static from_lists(times, values, pattern)[source]
Builds Field from lists of time points, values and pattern.
- Parameters:
times (list[Decimal]) – The time points of the field
values (list[Decimal]) – The values of the field
pattern (list[Decimal]) – The pattern of the field
- Raises:
ValueError – If the length of times and values differs.
- Return type:
- Returns:
Field – Field.