TLS driver¶
The TLS driver implements a minimal closed two-level system with a single
transition frequency and dipole moment. It is provided by
maxwelllink.mxl_drivers.python.models.TLSModel and ships with
MaxwellLink for lightweight regression tests and benchmark scenarios.
Note
The TLS driver advances the two-level density matrix through
where \(\hat{H}_0 = \mathrm{diag}(0, \hbar\omega_0)\) and \(\hat{\boldsymbol{\mu}} = \mu_{12}\,\mathbf{e}_{i}\,\hat{\sigma}_x\). \(\mathbf{e}_i\) denotes the orientation unit vector of the dipole. The emitted dipole current is evaluated analytically as
which is passed directly to Maxwell’s equations.
Requirements¶
No additional packages are required beyond MaxwellLink’s dependencies.
scipy(already bundled) is used for the short-time propagator.
Usage¶
Socket mode¶
mxl_driver --model tls --port 31415 \
--param "omega=0.242, mu12=187, orientation=2, pe_initial=1e-4, \
checkpoint=false, restart=false"
Non-socket mode¶
mxl.Molecule(
driver="tls",
driver_kwargs={
"omega": 0.242,
"mu12": 187.0,
"orientation": 2,
"pe_initial": 1e-4,
},
# ...
)
Parameters¶
Name |
Description |
|---|---|
|
Transition frequency in atomic units. Default: |
|
Transition dipole moment in atomic units; scaling with the emitted source
amplitude. Default: |
|
Dipole orientation: |
|
Initial excited-state population. Default: |
|
When |
|
When |
|
When |
Returned data¶
time_au– Simulation time in atomic units.energy_au– Instantaneous TLS energy.mux_au,muy_au,muz_au– Dipole vector components (non-zero along the selected orientation) in atomic units.Pe/Pg– Excited- and ground-state populations.Pge_real/Pge_imag– Real and imaginary parts of the coherence.
Notes¶
The driver exposes a deterministic analytic evolution; see
tests/test_tls/test_meep_2d_socket_tls1_relaxation.pyfor reference output.The QuTiP driver replicates this model when
preset=tls; use the TLS driver for the lightest-weight option.