Hi Michele, I don't know the quantum module so well but does qapply work in this case?
Oscar On Sat, 27 Jun 2020 at 19:52, Michele Cotrufo <michelecotr...@gmail.com> wrote: > > Is there a way to specify that the identity operator must act as identity > also on the adjoint operators? > > from sympy.physics.quantum.dagger import Dagger > from sympy.physics.quantum.operator import Operator > from sympy.physics.quantum import IdentityOperator > A = Operators('A') > Identity = IdentityOperator() > A * Identity #This gives A, correctly > B = Dagger(A) > B * Identity #This returns A^\dagger I . so it does not remove the identity > operator > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sympy+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/83e0e21a-4f5a-48b9-9010-74a392928245o%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAHVvXxSeod8pV%2BPzXKSLyq5z8kpAByqQJ2yjwsM%2B8H%2B0vfqsqg%40mail.gmail.com.