Theory Notes

Short derivations and conventions behind the solvers, so the numerics can be checked against the physics. Throughout, \(H\) is the system Hamiltonian, \(\{C_k\}\) are collapse operators, and \(\rho\) is the density matrix.

Lindblad Dynamics

For a Markovian bath, the state obeys the Lindblad master equation

\[\dot\rho = -i[H, \rho] + \sum_k \left( C_k \rho C_k^\dagger - \tfrac{1}{2}\{C_k^\dagger C_k, \rho\} \right).\]

mesolve integrates this equation with an adaptive Runge-Kutta scheme (Tsit5) or, for time-independent problems, with a Krylov-subspace exponential of the Liouvillian. The Liouvillian is assembled in the column-stacked vectorization convention,

\[\operatorname{vec}(A X B) = (B^\mathsf{T} \otimes A)\, \operatorname{vec}(X),\]

which is the same convention used by openquantumsim.lindblad_superoperator() and openquantumsim.apply_superoperator().

Monte Carlo Wave Function

mcsolve samples the standard MCWF (quantum-jump) unraveling with the waiting-time algorithm. For each trajectory:

  1. Draw a threshold \(r\) uniformly from \([0, 1)\).

  2. Evolve the unnormalised state under the effective non-Hermitian Hamiltonian \(H_\text{eff} = H - \tfrac{i}{2}\sum_k C_k^\dagger C_k\). Its squared norm decays, and equals the probability that no jump has happened yet.

  3. At the instant \(\lVert\psi(t)\rVert^2 = r\), apply collapse operator \(C_k\) with probability proportional to \(\lVert C_k \psi\rVert^2\), normalise, draw a new threshold, and continue.

The no-jump evolution uses an adaptive Runge-Kutta integrator, and the jump instant is located by root-finding on the integrator’s interpolant. The accuracy of a trajectory is therefore set by Options.rtol and Options.atol; there is no time step to choose, and no bias when decay rates are fast compared with the output grid. Options.max_step only caps the adaptive step.

Averaging over independent trajectories reproduces the Lindblad master equation in the limit of many trajectories; the reported standard error is the standard error of the mean over trajectories. Each trajectory draws from its own Xoshiro256++ stream, seeded from the SHA-256 digest of the run seed and the trajectory index. A run is therefore reproducible from Options.seed alone, gives identical numbers on any number of threads, and continues with the same streams when resumed from a checkpoint.

Bloch-Redfield Equation

For weak system-bath coupling, brmesolve derives a Redfield tensor from the bath spectra and then applies the secular approximation: system transitions are grouped by Bohr frequency \(\omega_{mn} = E_m - E_n\), and only terms oscillating at equal frequency are kept. With \(A(\omega)\) collecting the matrix elements of a coupling operator between states whose energy difference is \(\omega\), each channel contributes

\[\mathcal{D}_\omega[\rho] = \gamma(\omega) \left[ A(\omega) \rho A^\dagger(\omega) - \tfrac{1}{2}\{A^\dagger(\omega) A(\omega), \rho\} \right],\]

where \(\gamma(\omega)\) is the user-supplied spectrum. Because \(A(\omega)\) partitions \(A\), a constant spectrum \(\gamma(\omega) = g\) is exactly equivalent to a Lindblad collapse operator \(\sqrt{g}\,A\) — the sanity check used in the test suite. Decay (emission) channels sit at \(\omega < 0\); a zero-temperature bath therefore assigns weight only to negative frequencies.

Quantum Regression Theorem

Two-time correlations \(\langle A(\tau) B(0)\rangle\) are computed with the quantum regression theorem: the operator product \(B\rho(0)\) is propagated over \(\tau\) with the same Liouvillian \(\mathcal{L}\) as the state itself, and the correlation is the trace against \(A\),

\[\langle A(\tau) B(0)\rangle = \operatorname{Tr}\!\left[ A\, e^{\mathcal{L}\tau} \bigl(B\rho(0)\bigr) \right].\]

correlation_2op_1t uses the supplied rho0 as \(\rho(0)\); correlation_2op_2t first evolves the state to each \(t\) with mesolve and applies the same construction to \(B\rho(t)\). spectrum_2op_1t transforms the sampled correlation with a discrete Fourier transform, so the result is the discrete-time spectrum of the sampled function rather than its continuum limit.

Secular Approximation and Degeneracies

The secular approximation is exact for nondegenerate transition frequencies and an approximation otherwise. When several transitions share a Bohr frequency, brmesolve groups them into a single channel, which makes the generator time-independent in the eigenbasis; the grouping is basis-independent for nondegenerate gaps, and users with (near-)degenerate spectra should compare against openquantumsim.mesolve() for their parameter regime.