utils

utils#

Full path: iqm.pulse.utils

Utility functions.

Module Attributes

TOLERANCE

Tolerance for floating point artefacts in waveform computations.

Functions

fuse_iq_pulses(iq_pulses)

Fuse multiple IQPulses into one by concatenating the sampled waveforms.

map_waveform_param_types(type_hint)

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

modulate_iq(pulse[, assert_ranges])

Sampled baseband waveform of an IQ pulse.

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.