qudit_sim.pulse.PulseSequence.generate_fn
- PulseSequence.generate_fn(frame_frequency, drive_base, rwa=False)
Generate the X and Y drive coefficients and the maximum frequency appearing in the sequence.
The return values are equivalent to what is returned by drive.DriveTerm.generate_fn (in fact this function is called within DriveTerm.generate_fn when the drive amplitude is given as a PulseSequence).
- Parameters
frame_frequency (
float) – Frame frequency \(\xi_k^{l}\).drive_base (
complex) – Factor \(\alpha_{jk} e^{i \rho_{jk}} \frac{\Omega_j}{2}\).rwa (
bool) – If True, returns the RWA coefficients.initial_frequency – Initial carrier frequency. Can be None if the first instruction is SetFrequency.
- Return type
tuple- Returns
X and Y coefficient functions.