qudit_sim.drive.DriveTerm
- class qudit_sim.drive.DriveTerm(frequency=None, amplitude=1 + 0j, constant_phase=None)
Data class representing a drive.
- Parameters
frequency (
Optional[float]) – Carrier frequency of the drive. None is allowed if amplitude is a PulseSequence that starts with SetFrequency.amplitude (
Union[float,complex,str,numpy.ndarray,Callable]) – Function \(r(t)\).constant_phase (
Optional[float]) – The phase value of amplitude when it is a str or a callable and is known to have a constant phase. None otherwise.
Methods
generate_fn(frame_frequency, drive_base, rwa)Generate the coefficients for X and Y drives.
Attributes
amplitudeconstant_phasefrequency