This mini-project provides pedagogical Jupyter notebooks illustrating the Bloch-Redfield (redfield) master equation using QuTiP's brmesolve and comparisons to Lindblad (mesolve) where appropriate.
- Show simple canonical open quantum system examples.
- Visualize dynamical maps and identify when redfield breaks CP (negative density matrix eigenvalues).
- Demonstrate the secular approximation: Redfield vs Secular Redfield vs Lindblad.
- Explore multiple bath spectral densities (
DrudeLorentzEnvironment,OhmicEnvironment,UnderDampedEnvironment).
01_qubit_dephasing.ipynb: Pure dephasing qubit: analytical vs redfield vs Lindblad.02_qubit_relaxation_drude_lorentz.ipynb: Energy relaxation & temperature dependence.03_harmonic_oscillator_ohmic.ipynb: Damped quantum oscillator & approach to thermal state.04_coupled_qubits_secular_breakdown.ipynb: Breakdown of secular approximation when splittings comparable to rates.05_negative_eigenvalues_explorer.ipynb: Scan parameter regimes to locate positivity violations.
src/ contains small reusable helpers (bath factory, diagnostics, plotting helpers).
tests/ minimal sanity tests (import & a short evolution) to ensure environment reproducibility.
# Create and activate environment from environment.yml
conda env create -f environment.yml
conda activate redfield-education
# Install this package in editable mode (optional)
pip install -e .# Create environment manually
conda create -n redfield-ed python=3.11 -y
conda activate redfield-ed
pip install qutip numpy scipy matplotlib jupyter pytest black ruff tqdm
# Install this package in editable mode (optional)
pip install -e .# Update environment from environment.yml
conda env update -f environment.yml --pruneMIT (add if desired).