Solution of quantum master equations in terms of a non-Hermitian Hamiltonian.