utils

utils#

Utility functions.

Full path: iqm.pulse.utils

Functions

map_waveform_param_types(type_hint)

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

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.