Writing the drive Hamiltonian
The Drive
is a composition of waveforms defining the drive Hamiltonian.
from qoolqit import Constant, Rampfrom qoolqit import Drive
# Defining two waveformswf0 = Constant(0.5, 1.0) >> Ramp(1.0, 0.0, 0.5)wf1 = Ramp(2.0, -1.0, 1.0) >> Constant(1.0, 1.0)
# Defining the drivedrive = Drive( amplitude = wf0, detuning = wf1)
# Expanding the drive through compositiondrive = drive >> drive
Amplitude:| 0.00 ≤ t < 0.50: Constant(t, 1.00)| 0.50 ≤ t < 1.50: Ramp(t, 0.00, 0.50)| 1.50 ≤ t < 3.00: Delay(t)| 3.00 ≤ t < 3.50: Constant(t, 1.00)| 3.50 ≤ t < 4.50: Ramp(t, 0.00, 0.50)| 4.50 ≤ t ≤ 6.00: Delay(t)
Detuning:| 0.00 ≤ t < 2.00: Ramp(t, -1.00, 1.00)| 2.00 ≤ t < 3.00: Constant(t, 1.00)| 3.00 ≤ t < 5.00: Ramp(t, -1.00, 1.00)| 5.00 ≤ t ≤ 6.00: Constant(t, 1.00)
drive.draw()