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 using amplitude or when sequence does not start from SetFrequency.

  • amplitude (Union[float, complex, str, numpy.ndarray, Callable, None]) – Function \(r(t)\). Ignored if sequence is set.

  • 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. Ignored if sequence is set.

  • sequence (Optional[PulseSequence]) – Pulse sequence of the drive.

Return type

None