Quantum trajectory method for determining the time evolution operator of dissipative quantum systems