Correlations¶
Two-time correlation functions via the quantum regression theorem.
- openquantumsim.correlations.correlation_2op_1t(H, rho0, taulist, a_op, b_op, *, c_ops=None, options=None)[source]¶
Return
<A(tau) B(0)>using quantum regression.This first implementation supports time-independent Lindblad systems.
- openquantumsim.correlations.correlation_2op_2t(H, rho0, tlist, taulist, a_op, b_op, *, c_ops=None, options=None)[source]¶
Return
<A(t + tau) B(t)>for eachtandtau.
- openquantumsim.correlations.spectrum_correlation_fft(taulist, correlation)[source]¶
Return the frequency-domain spectrum of a sampled correlation function.
Given
C(tau)sampled on a uniform grid, computes the discrete approximation ofS(w) = integral C(tau) exp(i w tau) dtauwithw = 2 * pi * f. Returns(wlist, spectrum)sorted by ascending frequency, in the same order.For
correlation_2op_1toutput,|S(w)|peaks at the resonance frequencies of the system, mirroring QuTiP’sspectrumhelper.- Parameters:
taulist (Sequence[float])
correlation (ndarray[tuple[Any, ...], dtype[complex128]])
- Return type:
tuple[ndarray[tuple[Any, …], dtype[float64]], ndarray[tuple[Any, …], dtype[complex128]]]
- openquantumsim.correlations.spectrum_2op_1t(H, rho0, taulist, a_op, b_op, *, c_ops=None, options=None)[source]¶
Return
(wlist, spectrum)for<A(tau) B(0)>via FFT.Runs
correlation_2op_1t(quantum regression, requires the Julia backend) and transforms the result withspectrum_correlation_fft.taulistmust be uniformly spaced.