I have: $$p=iab$$ $p,a,b$ are operators. So in mathematica I am writing this as:
p=I*a**b
Conjugate of above is $$-iba$$
In mathematica I tried ConjugateTranspose
, but not working on p to find it's conjugate transpose.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this community
NonCommutativeMultiply
(i.e.,**
) has essentially no built-in meaning. You have to either give it that meaning or develop replacement rules for transforming expressions involving**
. Alternatively, you might try the NCAlgebra package. $\endgroup$NonCommutativeMultiply
for some hints on how to do this. Also I recommend you search the function name on this SE for related questions (they do exist). $\endgroup$I
anda
on the left-hand side and theI
and theb
on the right-hand side. An alternative thing to do (which is what I do when doing these kinds of calculations), is to define replacement rules instead. I.e., make a list of things likeconj[I a_**b_] :> -I b**a
and then usingReplaceAll
(/.
) to transform the expressions. $\endgroup$