by Tommy Ogden <t.p.ogden@durham.ac.uk>
This Matlab code solves the time-dependent Schrödinger equation for light interacting with a two-level atom in the rotating wave approximation.
Define the Rabi frequency, detuning and pulse duration of the laser and the initial population of atom levels and the code will solve the system with a Runge-Kutta method. It will plot the population vs time and save the data in a CSV file.
Open tdse-two
in Matlab and run a test, e.g.
>> tdse_two_pulse_test_a
These example tests are included:
- Pulse Test A: 2π pulse
- Pulse Test B: 2π pulse with detuning
- Pulse Test C: ½π pulse
You can make your own tests by copying an existing one and changing the Parameters section.