You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to write an operation that looks like n^(a^{\dagger}a)
where n is the average number of photons and a is the annihilation operator. However exponentiation gives error since I cannot use ** or pow() for Qobj.
In particular, I would like to create a density matrix for a squeezed state with a thermal ensemble.
Since the already available option of using thermal_dm only creates the state close to the vacuum, I would like to know if there is a way to do this for any state (say a squeezed state or a coherent state).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I would like to write an operation that looks like
n^(a^{\dagger}a)
where n is the average number of photons and a is the annihilation operator. However exponentiation gives error since I cannot use ** or pow() for Qobj.
In particular, I would like to create a density matrix for a squeezed state with a thermal ensemble.
Since the already available option of using thermal_dm only creates the state close to the vacuum, I would like to know if there is a way to do this for any state (say a squeezed state or a coherent state).
I would be happy to know!
Beta Was this translation helpful? Give feedback.
All reactions