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.
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
andAvac
functions, respectively, which lets the user specify which particular modes are assumed to be in a vacuum state.