Skip to content

Commit 3997b69

Browse files
authored
Merge pull request #32 from camontag/add_time_analytic
Add time dependence to analytic doppler solver
2 parents 3451c63 + e658011 commit 3997b69

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

docs/source/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Bug Fixes
1515
ARC v3.9.0 updated the precision of a constant used in its internal calculations
1616
that shifts calculated dipole moment values by a small amount.
1717
It is expected that other plots and values will differ by small amounts when using `Cell` and ARC v3.9.0
18+
- Fixed bug where `solve_doppler_analytic` ignored parameter time-dependence.
19+
It now follows the behavior of other steady-state solvers by constructing the Hamiltonian and equations of motion at `t=0`.
1820

1921
Deprecations
2022
++++++++++++

src/rydiqule/doppler_exact.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def solve_doppler_analytic(sensor: Sensor, doppler_mesh_method: Optional[MeshMet
150150
this solver effectively reduces the dimension to 1 or 2, respectively,
151151
leading to faster solves.
152152
153+
If the sensor contains couplings with `time_dependence`, this solver will add those
154+
couplings at their :math:`t=0` value to the steady-state hamiltonian to solve.
155+
153156
If insufficient system memory is available to solve the system in a single call,
154157
system is broken into "slices" of manageable memory footprint which are solved individually.
155158
This slicing behavior does not affect the result.
@@ -224,7 +227,7 @@ def solve_doppler_analytic(sensor: Sensor, doppler_mesh_method: Optional[MeshMet
224227
n = sensor.basis_size
225228

226229
# 1. Get base Liouvillian (L0) and Doppler shifts
227-
L0, dummy_const = generate_eom(sensor.get_hamiltonian(), sensor.decoherence_matrix(),
230+
L0, dummy_const = generate_eom(sensor.get_time_hamiltonian(t=0), sensor.decoherence_matrix(),
228231
remove_ground_state=False, real_eom=True)
229232
all_shifts = sensor.get_doppler_shifts()
230233

0 commit comments

Comments
 (0)