qojulia / QuantumOptics.jl

Library for the numerical simulation of closed as well as open quantum systems.
http://qojulia.org
Other
531 stars 104 forks source link

squeeze operators #372

Closed karolpezet closed 1 year ago

karolpezet commented 1 year ago

squeeze operator for harmonic oscillator and collective spins + tests

Krastanov commented 1 year ago

Any specific reason this submitted to QuantumOptics.jl? I think it is already implemented in QuantumOpticsBase.jl https://github.com/qojulia/QuantumOpticsBase.jl/blob/master/src/fock.jl#L70

I had the impression that QuantumOptics.jl is for the dynamics, while QuantumOpticsBase.jl is for this lower level operator constructs.

ChristophHotter commented 1 year ago

@Krastanov Yes you are completely right, thank you. @karolpezet I think the squeeze operator for the SpinBasis is not implemented. Would you like to make a PR to QuantumOpticsBase.jl for this?

karolpezet commented 1 year ago

oh yeah I missed the definition of squeeze operator. I did not find it in docs and assumed it is absent. I will fix it by moving it to QuantumOpticsBase.jl