qapply(e) applies the operators in e to the states they act on, as
SymPy's sympy.physics.quantum.qapply: products are evaluated from the
right, commutators and tensor products are expanded, and inner products
are evaluated unless ip_doit = FALSE. With dagger = TRUE operators are
also applied to bras on their left; sum_doit = TRUE evaluates sums.
Examples
qapply(OuterProduct(Ket("a"), Bra("b")) * Ket("c"))
#> <b|c>*|a>