Hello,
I'd like to see if there is a way to define operators that do not commute with themselves, but do commute with elements from a different set.
For instance,
from sympy import *
from sympy.physics.quantum.operator import HermitianOperator, Operator
A0 = HermitianOperator('A0')
A1 = HermitianOperator('A1')
B0 = HermitianOperator('B0')
B1 = HermitianOperator('B1')
Here, the variables are noncommutative. However, I do want the "A" variables to commute with the "B" variables. Specifically, I would like it so that [Ax,By] = 0 for all "x" and "y".
Is there a way to do that using the Operator package? Or if not, then just the symbol one? Thanks!