iqm.pulla.utils.calset_to_cal_data_tree

iqm.pulla.utils.calset_to_cal_data_tree#

iqm.pulla.utils.calset_to_cal_data_tree(calibration_set_values)#

Build an iqm-pulse QuantumOp calibration data tree from a calibration set.

Splits the dotted observation names that are prefixed with “gates.” into the corresponding calibration data tree paths.

Parameters:

calibration_set_values (dict[str, Annotated[bool | str | int | float | complex | ndarray, PlainValidator(func=~exa.common.data.value.validate_value, json_schema_input_type=~typing.Any), PlainSerializer(func=~exa.common.data.value.serialize_value, return_type=PydanticUndefined, when_used=always), WithJsonSchema(json_schema={'type': 'any'}, mode=None)]])

Return type:

dict[str, dict[str, dict[tuple[str, …], dict[str, Any]]]]