qudit_sim.HamiltonianBuilder.add_drive
- HamiltonianBuilder.add_drive(qudit_id, frequency=None, amplitude=1. + 0.j, constant_phase=None, sequence=None)
Add a drive term.
- Parameters
qudit_id (
Hashable) – Qudit to apply the drive to.frequency (
Optional[float]) – Carrier frequency of the drive. Required when usingamplitudeor whensequencedoes not start fromSetFrequency.amplitude (
Union[float,complex,str,numpy.ndarray,Callable,None]) – Function \(r(t)\). Ignored ifsequenceis set.constant_phase (
Optional[float]) – The phase value ofamplitudewhen it is a str or a callable and is known to have a constant phase. None otherwise. Ignored ifsequenceis set.sequence (
Optional[PulseSequence]) – Pulse sequence of the drive.
- Return type
None