fastdla.SparsePauliSum.commutator

SparsePauliSum.commutator(other, normalize=False)

Return the commutator [self, other].

Return type:

SparsePauliSum