symop.ccr.algebra.density.expand_word_times_monomial¶
Expansion of an operator word acting on a monomial from the left.
This module provides a symbolic normal-ordering helper for products of the form
where \(W\) is an operator word (a finite ordered sequence of ladder operators) and \(\hat{M}\) is a normally-ordered monomial in ladder operators.
The result is returned as a list of ket terms representing the normally-ordered expansion of \(W \hat{M}\).
Functions
|
Expand an operator word acting on a monomial from the left. |
- expand_word_times_monomial(word: Iterable[LadderOp], M: Monomial) list[KetTerm]¶
Expand an operator word acting on a monomial from the left.
Computes the normally-ordered expansion of
\[W \cdot \hat{M},\]where
Wis a sequence of ladder operators and \(\hat{M}\) is the target monomial.Internally, this starts from the one-term ket representing \(\hat{M}\) and applies the operators in
wordone-by-one (right-to-left) usingket_apply_word().