Skip to content

schedule_node

tergite_autocalibration.lib.nodes.schedule_node

Classes:

Name Description
ScheduleNode

ScheduleNode

ScheduleNode(name: str, **node_dictionary)

Bases: BaseNode, ABC

Methods:

Name Description
configure_dataset

The dataset retrieved from the instrument coordinator is

final_operation

To be implemented by the child measurement nodes.

initial_operation

To be implemented by the child measurement nodes.

measure_compiled_schedule

Execute a measurement for a node and save the resulting dataset.

measure_node

Measurements that involve only schedule parametres

pre_measurement_operation

To be implemented by the child measurement nodes

Attributes:

Name Type Description
dimensions list

array of dimensions used for raw dataset reshaping

outer_schedule_dimensions int

size of outer samplespace E.g. in

dimensions property

dimensions: list

array of dimensions used for raw dataset reshaping

outer_schedule_dimensions property

outer_schedule_dimensions: int

size of outer samplespace E.g. in self.outer_samplespace = { 'cz_amplitudes': {'q06_q07': np.array([1e-6, 2e-6, 3e-6, 4e-6])} } the external_dimensions is 4

configure_dataset

configure_dataset(raw_ds: Dataset) -> Dataset

The dataset retrieved from the instrument coordinator is too bare-bones. Here the dims, coords and data_vars are configured

final_operation

final_operation()

To be implemented by the child measurement nodes. This is called after ALL the iteration samples of the external samplespace have been executed. e.g. set back the dc_current to 0 in coupler_spectroscopy. See coupler_spectroscopy for examples.

initial_operation

initial_operation()

To be implemented by the child measurement nodes. This is called before the execution of each and every iteration of the samples of the external samplespace. See coupler_spectroscopy for examples.

measure_compiled_schedule

measure_compiled_schedule(compiled_schedule: CompiledSchedule, cluster_status=real, measurement: Tuple[int, int] = (1, 1)) -> Dataset

Execute a measurement for a node and save the resulting dataset.

Parameters:

Name Type Description Default
compiled_schedule CompiledSchedule

The compiled schedule to execute.

required
cluster_status real

The status of the measurement mode.

real
measurement tuple

Tuple of (current_measurement, total_measurements).

(1, 1)

Returns:

Type Description
Dataset

xarray.Dataset: The dataset containing the measurement results.

measure_node

measure_node(cluster_status) -> Dataset

Measurements that involve only schedule parametres

pre_measurement_operation

pre_measurement_operation()

To be implemented by the child measurement nodes