# Differences

This shows you the differences between two versions of the page.

 documentation:language_reference:functions:createresonantspectra [2017/03/28 11:00]Maurits W. Haverkort documentation:language_reference:functions:createresonantspectra [2017/09/26 21:38] (current)Maurits W. Haverkort Both sides previous revision Previous revision 2017/09/26 21:38 Maurits W. Haverkort 2017/03/28 11:00 Maurits W. Haverkort 2016/10/10 09:41 external edit2016/10/09 22:04 Maurits W. Haverkort created 2017/09/26 21:38 Maurits W. Haverkort 2017/03/28 11:00 Maurits W. Haverkort 2016/10/10 09:41 external edit2016/10/09 22:04 Maurits W. Haverkort created Line 4: Line 4: //​CreateResonantSpectra($O_1$,​$O_2$,​$O_3$,​$O_4$,​$\psi$)//​ calculates ​ //​CreateResonantSpectra($O_1$,​$O_2$,​$O_3$,​$O_4$,​$\psi$)//​ calculates ​ - \langle \psi | O_3^{\dagger} \frac{1}{(\omega_1 - \mathrm{i} \Gamma_1/2 + E_0 - O_1^{\dagger})} O_4^{\dagger} \frac{1}{(\omega_2 + \mathrm{i} \Gamma_2/2 + E_0 - O_2)} O_4\frac{1}{(\omega_1 + \mathrm{i} \Gamma_1/2 + E_0 - O_1)} O_3 | \psi \rangle, + \langle \psi | O_3^{\dagger} \frac{1}{(\omega_1 - \mathrm{i} \Gamma_1/2 + E_0^{(1)} ​- O_1^{\dagger})} O_4^{\dagger} \frac{1}{(\omega_2 + \mathrm{i} \Gamma_2/2 + E_0^{(2)} ​- O_2)} O_4\frac{1}{(\omega_1 + \mathrm{i} \Gamma_1/2 + E_0^{(1)} ​- O_1)} O_3 | \psi \rangle, - with $E_0 = \langle \psi | O_1 | \psi \rangle$. The spectrum is returned as a spectrum object. ​ + with $E_0^{(i)} ​= \langle \psi | O_i | \psi \rangle$. The spectrum is returned as a spectrum object. ​ ### ###