jfeist / QuantumAlgebra.jl

Quantum operator algebra in Julia
MIT License
60 stars 10 forks source link

Implement partial vacuum states #22

Closed KlimkinND closed 1 month ago

KlimkinND commented 2 months ago

Description

Consider an operator A acting on multiple modes, e.g. $A[a, b]$. Suppose we need to compute its action on a state that's only a vacuum state for some modes, e.g. $\ket{\psi} = \ket{\phi{a}} \otimes \ket{0{b}}$ with no assumptions made for $\ket{\phi_{a}}$.

Suggested solution

Add an option to the vacA and Avac functions, respectively, which lets the user specify which particular modes are assumed to be in a vacuum state.

jfeist commented 1 month ago

Thanks for the suggestion, this has been implemented and released in v1.5.0.