The commutator of two operators A and B is notated as and defined to be [A,B] = AB - BA . A and B commute when [A,B] = 0, i.e. AB = BA.