Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【SymPy.physics.quantum】 Thermal state in quantum optics undefined #26495

Open
travlight opened this issue Apr 12, 2024 · 0 comments
Open

Comments

@travlight
Copy link

travlight commented Apr 12, 2024

Hi,

Given that coherent state was defined within this package by BosonCoherentKet(), I wonder why thermal state for photons is not defined.

Coherent state:
image
Thermal state:
image
Although thermal state is a mixed state and should be defined in terms of density matrix, but I believe in principle this can be done.
I tried to define it by myself using BosonFockKet() and OuterProduct(), but unfortunately this doesn't work, because the Sum() function cannot recognize the photon number 'n' inside a ket as dummy index for summation.

This method doesn't work, because the sum function doesn't recognize the dummy index inside the bracket notation.

density_matrix_subspace = OuterProduct(ket_n,Dagger(ket_n))
density_matrix = Sum(nbar**n/(1+nbar)**(n+1)*density_matrix_subspace,(n, 0, oo)).doit()

Any suggestion for this issue?
P.S. I think this is the same issue encountered in #23820: sympy can't handle symbolic Sum of JzKets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant