utils

utils#

Utility functions.

Full path: iqm.pulse.utils

Functions

load_yaml(path)

Load a YAML file from the given path, raise error if the file can't be loaded.

map_waveform_param_types(type_hint)

Map a python typehint into EXA Parameter's (DataType, CollectionType) tuple.

merge_dicts(A, B[, path, merge_nones])

Merge two dictionaries recursively, leaving the originals unchanged.

normalize_angle(angle)

Normalize the given angle to (-pi, pi].

phase_transformation([psi_1, psi_2])

Implement an arbitrary (RZ, PRX, RZ) gate sequence by modifying the parameters of the IQ pulse implementing the PRX.